skillfit 0.15.0 → 0.15.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/CHANGELOG.md +50 -0
- package/README.md +76 -33
- package/README.zh-CN.md +75 -32
- package/benches/README.md +1 -1
- package/dist/agents/accounting.js +27 -10
- package/dist/agents/adapters/api.js +59 -32
- package/dist/agents/adapters/cli.js +208 -111
- package/dist/agents/adapters/codex-usage.js +51 -25
- package/dist/agents/adapters/kimi-usage.js +23 -16
- package/dist/agents/call-budget.js +67 -33
- package/dist/agents/call-limits.js +11 -7
- package/dist/agents/contracts.js +2 -2
- package/dist/agents/environment.js +46 -22
- package/dist/agents/execution.js +32 -19
- package/dist/agents/health.js +88 -66
- package/dist/agents/installed-skills.js +28 -9
- package/dist/agents/matrix.js +5 -3
- package/dist/agents/mcp-probe.js +157 -146
- package/dist/agents/observation/model-identity.js +96 -49
- package/dist/agents/observation/trigger-contract.js +40 -21
- package/dist/agents/observation/trigger-detection.js +100 -61
- package/dist/agents/preflight-contract.js +40 -20
- package/dist/agents/preflight.js +136 -70
- package/dist/agents/session-observation.js +39 -29
- package/dist/agents/timeout.js +14 -6
- package/dist/bench/authoring.js +320 -201
- package/dist/bench/claims.js +6 -3
- package/dist/bench/constants.js +1 -1
- package/dist/bench/controls.js +123 -91
- package/dist/bench/diagnostics.js +57 -24
- package/dist/bench/draft.js +133 -68
- package/dist/bench/gates/check.js +79 -69
- package/dist/bench/gates/error.js +26 -17
- package/dist/bench/gates/summary.js +7 -7
- package/dist/bench/gates/timeout.js +2 -2
- package/dist/bench/gates/verifier.js +12 -5
- package/dist/bench/location.js +18 -10
- package/dist/bench/output-layout.js +5 -5
- package/dist/bench/read.js +74 -42
- package/dist/bench/scope.js +56 -34
- package/dist/bench/source.js +32 -20
- package/dist/bench/templates.js +30 -22
- package/dist/cli/bench-check-report.js +34 -10
- package/dist/cli/bench-manage.js +6 -6
- package/dist/cli/bench.js +45 -38
- package/dist/cli/confirm.js +3 -3
- package/dist/cli/definition.js +172 -114
- package/dist/cli/doctor.js +14 -14
- package/dist/cli/eval-cli.js +3 -3
- package/dist/cli/eval-component.js +21 -7
- package/dist/cli/eval-display.js +66 -55
- package/dist/cli/eval-plan.js +7 -2
- package/dist/cli/eval-report.js +114 -83
- package/dist/cli/eval-single-arm-report.js +53 -33
- package/dist/cli/eval.js +2 -2
- package/dist/cli/evaluation-host.js +5 -5
- package/dist/cli/evaluation-report.js +1 -1
- package/dist/cli/main.js +350 -196
- package/dist/cli/mcp.js +7 -7
- package/dist/cli/report.js +40 -17
- package/dist/cli/trigger-summary.js +23 -23
- package/dist/cli.js +1 -1
- package/dist/commands/bench-draft.test.js +226 -96
- package/dist/commands/bench-source.test.js +70 -53
- package/dist/commands/bench.js +1 -1
- package/dist/commands/bundle.js +1 -1
- package/dist/commands/eval-api-failure.test.js +61 -28
- package/dist/commands/eval-cli.js +1 -1
- package/dist/commands/eval-export.js +1 -1
- package/dist/commands/eval-layout.test.js +148 -70
- package/dist/commands/eval-single-arm-replay.js +1 -1
- package/dist/commands/eval.js +1 -1
- package/dist/commands/evaluation-report.js +1 -1
- package/dist/commands/install.js +1 -1
- package/dist/composition.js +41 -20
- package/dist/configuration/bundle.js +109 -89
- package/dist/configuration/constants.js +1 -1
- package/dist/configuration/install.js +184 -112
- package/dist/configuration/setup.js +64 -41
- package/dist/configuration/transaction.js +13 -11
- package/dist/configuration/upstream.js +61 -43
- package/dist/evaluation/application/calibration.js +231 -85
- package/dist/evaluation/application/evaluation.js +166 -56
- package/dist/evaluation/application/export.js +107 -67
- package/dist/evaluation/application/planning.js +289 -114
- package/dist/evaluation/application/preflight-error.js +11 -4
- package/dist/evaluation/application/preflight.js +54 -21
- package/dist/evaluation/application/read.js +1 -1
- package/dist/evaluation/application/request.js +45 -21
- package/dist/evaluation/application/self-test.js +188 -75
- package/dist/evaluation/execution/activation.js +91 -65
- package/dist/evaluation/execution/budget.js +20 -9
- package/dist/evaluation/execution/control-executor.js +34 -16
- package/dist/evaluation/execution/interrupted.js +2 -2
- package/dist/evaluation/execution/judge.js +51 -26
- package/dist/evaluation/execution/mock-executor.js +7 -7
- package/dist/evaluation/execution/paired.js +104 -72
- package/dist/evaluation/execution/prompt.js +21 -15
- package/dist/evaluation/measurement/acceptance.js +143 -68
- package/dist/evaluation/measurement/costs.js +39 -29
- package/dist/evaluation/measurement/efficiency.js +51 -18
- package/dist/evaluation/measurement/invocation-costs.js +50 -29
- package/dist/evaluation/measurement/judge-protocol.js +16 -18
- package/dist/evaluation/measurement/paired-contract.js +4 -3
- package/dist/evaluation/measurement/policy.js +48 -31
- package/dist/evaluation/measurement/report.js +51 -43
- package/dist/evaluation/measurement/scope.js +25 -7
- package/dist/evaluation/measurement/statistics.js +7 -3
- package/dist/evaluation/measurement/trial-summary.js +20 -12
- package/dist/evaluation/measurement/trigger-summary.js +1 -1
- package/dist/evaluation/records/assess.js +4 -2
- package/dist/evaluation/records/audit.js +336 -202
- package/dist/evaluation/records/contracts.js +44 -21
- package/dist/evaluation/records/formats.js +36 -19
- package/dist/evaluation/records/input-snapshot.js +88 -53
- package/dist/evaluation/records/judge-audit.js +37 -31
- package/dist/evaluation/records/manifest.js +302 -223
- package/dist/evaluation/records/model-identity.js +39 -29
- package/dist/evaluation/records/read.js +122 -42
- package/dist/evaluation/records/replay-package.js +81 -48
- package/dist/evaluation/records/session.js +200 -93
- package/dist/evaluation/records/single-arm-audit.js +313 -195
- package/dist/evaluation/records/single-arm-read.js +235 -112
- package/dist/evaluation/targets/native-diff.js +22 -13
- package/dist/evaluation/targets/output-layout.js +6 -6
- package/dist/evaluation/targets/skill.js +16 -13
- package/dist/evaluation/targets/workspace.js +19 -19
- package/dist/harness/bench-location.test.js +21 -21
- package/dist/harness/executors/cli.js +1 -1
- package/dist/harness/hash.js +1 -1
- package/dist/harness/interruption.js +1 -1
- package/dist/harness/replay-package.js +1 -1
- package/dist/harness/single-arm-audit.js +1 -1
- package/dist/harness/verifier-timeout.test.js +63 -32
- package/dist/matrix/agents.json +29 -6
- package/dist/matrix/agents.schema.json +17 -3
- package/dist/resources/experiment.js +18 -16
- package/dist/resources/frontmatter.js +6 -6
- package/dist/resources/installed-skill.js +32 -22
- package/dist/resources/skill.js +10 -10
- package/dist/shared/backup.js +1 -1
- package/dist/shared/cancellation.js +10 -4
- package/dist/shared/command.js +8 -7
- package/dist/shared/digest.js +2 -2
- package/dist/shared/hash.js +9 -9
- package/dist/shared/input-directories.js +6 -5
- package/dist/shared/json.js +10 -6
- package/dist/shared/local-files.js +8 -10
- package/dist/shared/output-path.js +4 -4
- package/dist/shared/package-root.js +7 -5
- package/dist/shared/process-tree.js +20 -14
- package/dist/shared/process.js +20 -15
- package/dist/shared/read-json.js +3 -3
- package/dist/shared/timing.js +22 -11
- package/dist/shared/version.js +3 -3
- package/dist/usage/receipts.js +41 -27
- package/docs/README.md +6 -6
- package/docs/assets/skillfit-report.svg +17 -0
- package/docs/guides/bench-authoring.md +1 -1
- package/docs/guides/first-real-eval.md +16 -0
- package/docs/maintainers/architecture.md +3 -3
- package/docs/maintainers/releases.md +5 -0
- package/docs/reference/evaluation-reports.md +3 -1
- package/docs/reference/metrics.md +1 -1
- package/package.json +9 -4
- package/skills/skillfit/SKILL.md +14 -15
- package/tools/verify/recipes/0.11.0-feature-smoke.mjs +491 -140
- package/tools/verify/recipes/release-docs-smoke.mjs +38 -21
- package/tools/verify/recipes/release-feature-smoke.mjs +187 -88
- package/benches/contrib/README.md +0 -73
- package/benches/contrib/oss-lru-cache/README.md +0 -27
- package/benches/contrib/oss-lru-cache/bench.json +0 -37
- package/benches/contrib/oss-lru-cache/provenance.json +0 -62
- package/benches/contrib/oss-lru-cache/runtime.mjs +0 -32
- package/benches/contrib/oss-lru-cache/tasks/fetch-abort/fixture/LICENSE +0 -15
- package/benches/contrib/oss-lru-cache/tasks/fetch-abort/fixture/README.md +0 -3
- package/benches/contrib/oss-lru-cache/tasks/fetch-abort/fixture/index.js +0 -1044
- package/benches/contrib/oss-lru-cache/tasks/fetch-abort/fixture/package.json +0 -11
- package/benches/contrib/oss-lru-cache/tasks/fetch-abort/fixture/runtime.mjs +0 -32
- package/benches/contrib/oss-lru-cache/tasks/fetch-abort/fixture/test.mjs +0 -11
- package/benches/contrib/oss-lru-cache/tasks/fetch-abort/prompt.md +0 -5
- package/benches/contrib/oss-lru-cache/tasks/fetch-abort/reference/LICENSE +0 -15
- package/benches/contrib/oss-lru-cache/tasks/fetch-abort/reference/answer.md +0 -11
- package/benches/contrib/oss-lru-cache/tasks/fetch-abort/reference/index.js +0 -1053
- package/benches/contrib/oss-lru-cache/tasks/fetch-abort/reference/oracle.mjs +0 -8
- package/benches/contrib/oss-lru-cache/tasks/fetch-abort/verify.mjs +0 -3
- package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/fixture/LICENSE.md +0 -55
- package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/fixture/README.md +0 -3
- package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/fixture/package.json +0 -11
- package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/fixture/runtime.mjs +0 -32
- package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/fixture/src/diagnostics-channel-browser.ts +0 -11
- package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/fixture/src/diagnostics-channel-cjs.cts +0 -11
- package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/fixture/src/diagnostics-channel-esm.mts +0 -29
- package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/fixture/src/diagnostics-channel-node.ts +0 -7
- package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/fixture/src/diagnostics-channel.ts +0 -6
- package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/fixture/src/index.ts +0 -3148
- package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/fixture/src/perf.ts +0 -17
- package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/fixture/test.mjs +0 -11
- package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/prompt.md +0 -5
- package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/reference/LICENSE.md +0 -55
- package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/reference/answer.md +0 -11
- package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/reference/oracle.mjs +0 -7
- package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/reference/src/diagnostics-channel-browser.ts +0 -11
- package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/reference/src/diagnostics-channel-cjs.cts +0 -11
- package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/reference/src/diagnostics-channel-esm.mts +0 -29
- package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/reference/src/diagnostics-channel-node.ts +0 -7
- package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/reference/src/diagnostics-channel.ts +0 -6
- package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/reference/src/index.ts +0 -3174
- package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/reference/src/perf.ts +0 -17
- package/benches/contrib/oss-lru-cache/tasks/fetch-lifecycle/verify.mjs +0 -3
- package/benches/contrib/oss-lru-cache/tasks/fetch-size/fixture/LICENSE +0 -15
- package/benches/contrib/oss-lru-cache/tasks/fetch-size/fixture/README.md +0 -3
- package/benches/contrib/oss-lru-cache/tasks/fetch-size/fixture/index.js +0 -1028
- package/benches/contrib/oss-lru-cache/tasks/fetch-size/fixture/package.json +0 -11
- package/benches/contrib/oss-lru-cache/tasks/fetch-size/fixture/runtime.mjs +0 -32
- package/benches/contrib/oss-lru-cache/tasks/fetch-size/fixture/test.mjs +0 -11
- package/benches/contrib/oss-lru-cache/tasks/fetch-size/prompt.md +0 -5
- package/benches/contrib/oss-lru-cache/tasks/fetch-size/reference/LICENSE +0 -15
- package/benches/contrib/oss-lru-cache/tasks/fetch-size/reference/answer.md +0 -11
- package/benches/contrib/oss-lru-cache/tasks/fetch-size/reference/index.js +0 -1028
- package/benches/contrib/oss-lru-cache/tasks/fetch-size/reference/oracle.mjs +0 -7
- package/benches/contrib/oss-lru-cache/tasks/fetch-size/verify.mjs +0 -3
- package/benches/contrib/oss-lru-cache/verifiers/cases.mjs +0 -74
- package/benches/contrib/oss-lru-cache/verifiers/oracle.mjs +0 -9
- package/benches/contrib/oss-lru-cache/verifiers/probe.mjs +0 -14
- package/benches/contrib/oss-lru-cache/verifiers/shared.mjs +0 -131
- package/benches/contrib/oss-lru-cache/verifiers/test-reporter.mjs +0 -29
- package/benches/contrib/oss-mcp-use-utf8/LICENSE.upstream +0 -21
- package/benches/contrib/oss-mcp-use-utf8/README.md +0 -57
- package/benches/contrib/oss-mcp-use-utf8/bench.json +0 -16
- package/benches/contrib/oss-mcp-use-utf8/tasks/view-utf8/fixture/LICENSE +0 -21
- package/benches/contrib/oss-mcp-use-utf8/tasks/view-utf8/fixture/package.json +0 -3
- package/benches/contrib/oss-mcp-use-utf8/tasks/view-utf8/fixture/src/ext-apps-bridge.js +0 -3
- package/benches/contrib/oss-mcp-use-utf8/tasks/view-utf8/fixture/src/resolve-view-resource.ts +0 -96
- package/benches/contrib/oss-mcp-use-utf8/tasks/view-utf8/fixture/test/basic.test.mjs +0 -13
- package/benches/contrib/oss-mcp-use-utf8/tasks/view-utf8/prompt.md +0 -8
- package/benches/contrib/oss-mcp-use-utf8/tasks/view-utf8/reference/README.md +0 -5
- package/benches/contrib/oss-mcp-use-utf8/tasks/view-utf8/reference/oracle.mjs +0 -11
- package/benches/contrib/oss-mcp-use-utf8/tasks/view-utf8/reference/solutions/view-utf8/src/resolve-view-resource.ts +0 -96
- package/benches/contrib/oss-mcp-use-utf8/tasks/view-utf8/reference/solutions/view-utf8/test/utf8.regression.test.mjs +0 -14
- package/benches/contrib/oss-mcp-use-utf8/tasks/view-utf8/verify.mjs +0 -120
- package/benches/contrib/oss-minipass/README.md +0 -32
- package/benches/contrib/oss-minipass/bench.json +0 -43
- package/benches/contrib/oss-minipass/provenance.json +0 -87
- package/benches/contrib/oss-minipass/tasks/async-end/fixture/LICENSE +0 -15
- package/benches/contrib/oss-minipass/tasks/async-end/fixture/README.md +0 -717
- package/benches/contrib/oss-minipass/tasks/async-end/fixture/UPSTREAM.package.json +0 -39
- package/benches/contrib/oss-minipass/tasks/async-end/fixture/index.js +0 -615
- package/benches/contrib/oss-minipass/tasks/async-end/fixture/package.json +0 -8
- package/benches/contrib/oss-minipass/tasks/async-end/fixture/runtime.cjs +0 -11
- package/benches/contrib/oss-minipass/tasks/async-end/fixture/test.mjs +0 -16
- package/benches/contrib/oss-minipass/tasks/async-end/fixture/vendor/yallist/LICENSE +0 -15
- package/benches/contrib/oss-minipass/tasks/async-end/fixture/vendor/yallist/README.md +0 -204
- package/benches/contrib/oss-minipass/tasks/async-end/fixture/vendor/yallist/iterator.js +0 -8
- package/benches/contrib/oss-minipass/tasks/async-end/fixture/vendor/yallist/package.json +0 -29
- package/benches/contrib/oss-minipass/tasks/async-end/fixture/vendor/yallist/yallist.js +0 -426
- package/benches/contrib/oss-minipass/tasks/async-end/prompt.md +0 -3
- package/benches/contrib/oss-minipass/tasks/async-end/reference/LICENSE +0 -15
- package/benches/contrib/oss-minipass/tasks/async-end/reference/README.md +0 -717
- package/benches/contrib/oss-minipass/tasks/async-end/reference/UPSTREAM.package.json +0 -39
- package/benches/contrib/oss-minipass/tasks/async-end/reference/index.js +0 -622
- package/benches/contrib/oss-minipass/tasks/async-end/reference/oracle.mjs +0 -4
- package/benches/contrib/oss-minipass/tasks/async-end/reference/package.json +0 -8
- package/benches/contrib/oss-minipass/tasks/async-end/reference/regression.test.mjs +0 -10
- package/benches/contrib/oss-minipass/tasks/async-end/reference/runtime.cjs +0 -11
- package/benches/contrib/oss-minipass/tasks/async-end/reference/test.mjs +0 -16
- package/benches/contrib/oss-minipass/tasks/async-end/reference/vendor/yallist/LICENSE +0 -15
- package/benches/contrib/oss-minipass/tasks/async-end/reference/vendor/yallist/README.md +0 -204
- package/benches/contrib/oss-minipass/tasks/async-end/reference/vendor/yallist/iterator.js +0 -8
- package/benches/contrib/oss-minipass/tasks/async-end/reference/vendor/yallist/package.json +0 -29
- package/benches/contrib/oss-minipass/tasks/async-end/reference/vendor/yallist/yallist.js +0 -426
- package/benches/contrib/oss-minipass/tasks/async-end/verify.mjs +0 -2
- package/benches/contrib/oss-minipass/tasks/buffered-readable/fixture/LICENSE +0 -15
- package/benches/contrib/oss-minipass/tasks/buffered-readable/fixture/README.md +0 -613
- package/benches/contrib/oss-minipass/tasks/buffered-readable/fixture/UPSTREAM.package.json +0 -39
- package/benches/contrib/oss-minipass/tasks/buffered-readable/fixture/index.js +0 -594
- package/benches/contrib/oss-minipass/tasks/buffered-readable/fixture/package.json +0 -8
- package/benches/contrib/oss-minipass/tasks/buffered-readable/fixture/runtime.cjs +0 -11
- package/benches/contrib/oss-minipass/tasks/buffered-readable/fixture/test.mjs +0 -16
- package/benches/contrib/oss-minipass/tasks/buffered-readable/fixture/vendor/yallist/LICENSE +0 -15
- package/benches/contrib/oss-minipass/tasks/buffered-readable/fixture/vendor/yallist/README.md +0 -204
- package/benches/contrib/oss-minipass/tasks/buffered-readable/fixture/vendor/yallist/iterator.js +0 -8
- package/benches/contrib/oss-minipass/tasks/buffered-readable/fixture/vendor/yallist/package.json +0 -29
- package/benches/contrib/oss-minipass/tasks/buffered-readable/fixture/vendor/yallist/yallist.js +0 -426
- package/benches/contrib/oss-minipass/tasks/buffered-readable/prompt.md +0 -3
- package/benches/contrib/oss-minipass/tasks/buffered-readable/reference/LICENSE +0 -15
- package/benches/contrib/oss-minipass/tasks/buffered-readable/reference/README.md +0 -613
- package/benches/contrib/oss-minipass/tasks/buffered-readable/reference/UPSTREAM.package.json +0 -39
- package/benches/contrib/oss-minipass/tasks/buffered-readable/reference/index.js +0 -596
- package/benches/contrib/oss-minipass/tasks/buffered-readable/reference/oracle.mjs +0 -4
- package/benches/contrib/oss-minipass/tasks/buffered-readable/reference/package.json +0 -8
- package/benches/contrib/oss-minipass/tasks/buffered-readable/reference/regression.test.mjs +0 -9
- package/benches/contrib/oss-minipass/tasks/buffered-readable/reference/runtime.cjs +0 -11
- package/benches/contrib/oss-minipass/tasks/buffered-readable/reference/test.mjs +0 -16
- package/benches/contrib/oss-minipass/tasks/buffered-readable/reference/vendor/yallist/LICENSE +0 -15
- package/benches/contrib/oss-minipass/tasks/buffered-readable/reference/vendor/yallist/README.md +0 -204
- package/benches/contrib/oss-minipass/tasks/buffered-readable/reference/vendor/yallist/iterator.js +0 -8
- package/benches/contrib/oss-minipass/tasks/buffered-readable/reference/vendor/yallist/package.json +0 -29
- package/benches/contrib/oss-minipass/tasks/buffered-readable/reference/vendor/yallist/yallist.js +0 -426
- package/benches/contrib/oss-minipass/tasks/buffered-readable/verify.mjs +0 -2
- package/benches/contrib/oss-minipass/tasks/end-listeners/fixture/LICENSE +0 -15
- package/benches/contrib/oss-minipass/tasks/end-listeners/fixture/README.md +0 -205
- package/benches/contrib/oss-minipass/tasks/end-listeners/fixture/UPSTREAM.package.json +0 -34
- package/benches/contrib/oss-minipass/tasks/end-listeners/fixture/index.js +0 -415
- package/benches/contrib/oss-minipass/tasks/end-listeners/fixture/package.json +0 -8
- package/benches/contrib/oss-minipass/tasks/end-listeners/fixture/runtime.cjs +0 -11
- package/benches/contrib/oss-minipass/tasks/end-listeners/fixture/test.mjs +0 -16
- package/benches/contrib/oss-minipass/tasks/end-listeners/fixture/vendor/yallist/LICENSE +0 -15
- package/benches/contrib/oss-minipass/tasks/end-listeners/fixture/vendor/yallist/README.md +0 -204
- package/benches/contrib/oss-minipass/tasks/end-listeners/fixture/vendor/yallist/iterator.js +0 -8
- package/benches/contrib/oss-minipass/tasks/end-listeners/fixture/vendor/yallist/package.json +0 -29
- package/benches/contrib/oss-minipass/tasks/end-listeners/fixture/vendor/yallist/yallist.js +0 -426
- package/benches/contrib/oss-minipass/tasks/end-listeners/prompt.md +0 -3
- package/benches/contrib/oss-minipass/tasks/end-listeners/reference/LICENSE +0 -15
- package/benches/contrib/oss-minipass/tasks/end-listeners/reference/README.md +0 -205
- package/benches/contrib/oss-minipass/tasks/end-listeners/reference/UPSTREAM.package.json +0 -34
- package/benches/contrib/oss-minipass/tasks/end-listeners/reference/index.js +0 -407
- package/benches/contrib/oss-minipass/tasks/end-listeners/reference/oracle.mjs +0 -4
- package/benches/contrib/oss-minipass/tasks/end-listeners/reference/package.json +0 -8
- package/benches/contrib/oss-minipass/tasks/end-listeners/reference/regression.test.mjs +0 -9
- package/benches/contrib/oss-minipass/tasks/end-listeners/reference/runtime.cjs +0 -11
- package/benches/contrib/oss-minipass/tasks/end-listeners/reference/test.mjs +0 -16
- package/benches/contrib/oss-minipass/tasks/end-listeners/reference/vendor/yallist/LICENSE +0 -15
- package/benches/contrib/oss-minipass/tasks/end-listeners/reference/vendor/yallist/README.md +0 -204
- package/benches/contrib/oss-minipass/tasks/end-listeners/reference/vendor/yallist/iterator.js +0 -8
- package/benches/contrib/oss-minipass/tasks/end-listeners/reference/vendor/yallist/package.json +0 -29
- package/benches/contrib/oss-minipass/tasks/end-listeners/reference/vendor/yallist/yallist.js +0 -426
- package/benches/contrib/oss-minipass/tasks/end-listeners/verify.mjs +0 -2
- package/benches/contrib/oss-minipass/tasks/pipeline-order/fixture/LICENSE +0 -15
- package/benches/contrib/oss-minipass/tasks/pipeline-order/fixture/README.md +0 -613
- package/benches/contrib/oss-minipass/tasks/pipeline-order/fixture/UPSTREAM.package.json +0 -39
- package/benches/contrib/oss-minipass/tasks/pipeline-order/fixture/index.js +0 -538
- package/benches/contrib/oss-minipass/tasks/pipeline-order/fixture/package.json +0 -8
- package/benches/contrib/oss-minipass/tasks/pipeline-order/fixture/runtime.cjs +0 -11
- package/benches/contrib/oss-minipass/tasks/pipeline-order/fixture/test.mjs +0 -16
- package/benches/contrib/oss-minipass/tasks/pipeline-order/fixture/vendor/yallist/LICENSE +0 -15
- package/benches/contrib/oss-minipass/tasks/pipeline-order/fixture/vendor/yallist/README.md +0 -204
- package/benches/contrib/oss-minipass/tasks/pipeline-order/fixture/vendor/yallist/iterator.js +0 -8
- package/benches/contrib/oss-minipass/tasks/pipeline-order/fixture/vendor/yallist/package.json +0 -29
- package/benches/contrib/oss-minipass/tasks/pipeline-order/fixture/vendor/yallist/yallist.js +0 -426
- package/benches/contrib/oss-minipass/tasks/pipeline-order/prompt.md +0 -3
- package/benches/contrib/oss-minipass/tasks/pipeline-order/reference/LICENSE +0 -15
- package/benches/contrib/oss-minipass/tasks/pipeline-order/reference/README.md +0 -613
- package/benches/contrib/oss-minipass/tasks/pipeline-order/reference/UPSTREAM.package.json +0 -39
- package/benches/contrib/oss-minipass/tasks/pipeline-order/reference/index.js +0 -545
- package/benches/contrib/oss-minipass/tasks/pipeline-order/reference/oracle.mjs +0 -4
- package/benches/contrib/oss-minipass/tasks/pipeline-order/reference/package.json +0 -8
- package/benches/contrib/oss-minipass/tasks/pipeline-order/reference/regression.test.mjs +0 -19
- package/benches/contrib/oss-minipass/tasks/pipeline-order/reference/runtime.cjs +0 -11
- package/benches/contrib/oss-minipass/tasks/pipeline-order/reference/test.mjs +0 -16
- package/benches/contrib/oss-minipass/tasks/pipeline-order/reference/vendor/yallist/LICENSE +0 -15
- package/benches/contrib/oss-minipass/tasks/pipeline-order/reference/vendor/yallist/README.md +0 -204
- package/benches/contrib/oss-minipass/tasks/pipeline-order/reference/vendor/yallist/iterator.js +0 -8
- package/benches/contrib/oss-minipass/tasks/pipeline-order/reference/vendor/yallist/package.json +0 -29
- package/benches/contrib/oss-minipass/tasks/pipeline-order/reference/vendor/yallist/yallist.js +0 -426
- package/benches/contrib/oss-minipass/tasks/pipeline-order/verify.mjs +0 -2
- package/benches/contrib/oss-minipass/upstream/async-end.patch +0 -83
- package/benches/contrib/oss-minipass/upstream/buffered-readable.patch +0 -79
- package/benches/contrib/oss-minipass/upstream/end-listeners.patch +0 -77
- package/benches/contrib/oss-minipass/upstream/pipeline-order.patch +0 -173
- package/benches/contrib/oss-minipass/verifiers/cases.mjs +0 -88
- package/benches/contrib/oss-minipass/verifiers/grade.mjs +0 -35
- package/benches/contrib/oss-minipass/verifiers/probe.mjs +0 -10
- package/benches/contrib/oss-minipass/verifiers/regression-evidence.mjs +0 -98
- package/benches/contrib/oss-minipass/verifiers/test-reporter.mjs +0 -29
- package/benches/contrib/oss-normalize-url/README.md +0 -31
- package/benches/contrib/oss-normalize-url/bench.json +0 -16
- package/benches/contrib/oss-normalize-url/provenance.json +0 -41
- package/benches/contrib/oss-normalize-url/tasks/query-shape/fixture/index.d.ts +0 -303
- package/benches/contrib/oss-normalize-url/tasks/query-shape/fixture/index.js +0 -285
- package/benches/contrib/oss-normalize-url/tasks/query-shape/fixture/license +0 -9
- package/benches/contrib/oss-normalize-url/tasks/query-shape/fixture/package.json +0 -57
- package/benches/contrib/oss-normalize-url/tasks/query-shape/fixture/readme.md +0 -312
- package/benches/contrib/oss-normalize-url/tasks/query-shape/fixture/test.js +0 -427
- package/benches/contrib/oss-normalize-url/tasks/query-shape/fixture/test.mjs +0 -4
- package/benches/contrib/oss-normalize-url/tasks/query-shape/prompt.md +0 -7
- package/benches/contrib/oss-normalize-url/tasks/query-shape/reference/index.js +0 -294
- package/benches/contrib/oss-normalize-url/tasks/query-shape/reference/license +0 -9
- package/benches/contrib/oss-normalize-url/tasks/query-shape/reference/oracle.mjs +0 -7
- package/benches/contrib/oss-normalize-url/tasks/query-shape/reference/query-shape.md +0 -12
- package/benches/contrib/oss-normalize-url/tasks/query-shape/reference/query-shape.regression.test.mjs +0 -6
- package/benches/contrib/oss-normalize-url/tasks/query-shape/verify.mjs +0 -40
- package/benches/contrib/oss-normalize-url/verifiers/cases.mjs +0 -26
- package/benches/contrib/oss-normalize-url/verifiers/probe.mjs +0 -10
- package/benches/contrib/oss-normalize-url/verifiers/regression-evidence.mjs +0 -98
- package/benches/contrib/oss-normalize-url/verifiers/test-reporter.mjs +0 -29
- package/benches/contrib/oss-skill-followup/README.md +0 -54
- package/benches/contrib/oss-skill-followup/bench.json +0 -79
- package/benches/contrib/oss-skill-followup/provenance.json +0 -730
- package/benches/contrib/oss-skill-followup/tasks/debounce-context-classes/fixture/LICENSE +0 -11
- package/benches/contrib/oss-skill-followup/tasks/debounce-context-classes/fixture/README.md +0 -61
- package/benches/contrib/oss-skill-followup/tasks/debounce-context-classes/fixture/index.js +0 -93
- package/benches/contrib/oss-skill-followup/tasks/debounce-context-classes/fixture/package.json +0 -9
- package/benches/contrib/oss-skill-followup/tasks/debounce-context-classes/fixture/test-clock.mjs +0 -64
- package/benches/contrib/oss-skill-followup/tasks/debounce-context-classes/fixture/test.mjs +0 -22
- package/benches/contrib/oss-skill-followup/tasks/debounce-context-classes/fixture/upstream-package.json +0 -47
- package/benches/contrib/oss-skill-followup/tasks/debounce-context-classes/prompt.md +0 -3
- package/benches/contrib/oss-skill-followup/tasks/debounce-context-classes/reference/index.js +0 -97
- package/benches/contrib/oss-skill-followup/tasks/debounce-context-classes/reference/oracle.mjs +0 -1
- package/benches/contrib/oss-skill-followup/tasks/debounce-context-classes/reference/regression.test.mjs +0 -2
- package/benches/contrib/oss-skill-followup/tasks/debounce-context-classes/verify.mjs +0 -1
- package/benches/contrib/oss-skill-followup/tasks/debounce-recursive-args/fixture/LICENSE +0 -21
- package/benches/contrib/oss-skill-followup/tasks/debounce-recursive-args/fixture/README.md +0 -69
- package/benches/contrib/oss-skill-followup/tasks/debounce-recursive-args/fixture/index.js +0 -70
- package/benches/contrib/oss-skill-followup/tasks/debounce-recursive-args/fixture/package.json +0 -9
- package/benches/contrib/oss-skill-followup/tasks/debounce-recursive-args/fixture/test-clock.mjs +0 -64
- package/benches/contrib/oss-skill-followup/tasks/debounce-recursive-args/fixture/test.mjs +0 -22
- package/benches/contrib/oss-skill-followup/tasks/debounce-recursive-args/fixture/upstream-package.json +0 -27
- package/benches/contrib/oss-skill-followup/tasks/debounce-recursive-args/prompt.md +0 -3
- package/benches/contrib/oss-skill-followup/tasks/debounce-recursive-args/reference/index.js +0 -72
- package/benches/contrib/oss-skill-followup/tasks/debounce-recursive-args/reference/oracle.mjs +0 -1
- package/benches/contrib/oss-skill-followup/tasks/debounce-recursive-args/reference/regression.test.mjs +0 -2
- package/benches/contrib/oss-skill-followup/tasks/debounce-recursive-args/verify.mjs +0 -1
- package/benches/contrib/oss-skill-followup/tasks/debounce-timer-boundary/fixture/LICENSE +0 -23
- package/benches/contrib/oss-skill-followup/tasks/debounce-timer-boundary/fixture/README.md +0 -46
- package/benches/contrib/oss-skill-followup/tasks/debounce-timer-boundary/fixture/index.js +0 -56
- package/benches/contrib/oss-skill-followup/tasks/debounce-timer-boundary/fixture/package.json +0 -9
- package/benches/contrib/oss-skill-followup/tasks/debounce-timer-boundary/fixture/test-clock.mjs +0 -64
- package/benches/contrib/oss-skill-followup/tasks/debounce-timer-boundary/fixture/test.mjs +0 -22
- package/benches/contrib/oss-skill-followup/tasks/debounce-timer-boundary/fixture/upstream-package.json +0 -22
- package/benches/contrib/oss-skill-followup/tasks/debounce-timer-boundary/prompt.md +0 -3
- package/benches/contrib/oss-skill-followup/tasks/debounce-timer-boundary/reference/index.js +0 -56
- package/benches/contrib/oss-skill-followup/tasks/debounce-timer-boundary/reference/oracle.mjs +0 -1
- package/benches/contrib/oss-skill-followup/tasks/debounce-timer-boundary/reference/regression.test.mjs +0 -2
- package/benches/contrib/oss-skill-followup/tasks/debounce-timer-boundary/verify.mjs +0 -1
- package/benches/contrib/oss-skill-followup/tasks/duration-large-digits/fixture/LICENSE +0 -24
- package/benches/contrib/oss-skill-followup/tasks/duration-large-digits/fixture/README.md +0 -469
- package/benches/contrib/oss-skill-followup/tasks/duration-large-digits/fixture/index.js +0 -1645
- package/benches/contrib/oss-skill-followup/tasks/duration-large-digits/fixture/package.json +0 -9
- package/benches/contrib/oss-skill-followup/tasks/duration-large-digits/fixture/test-clock.mjs +0 -64
- package/benches/contrib/oss-skill-followup/tasks/duration-large-digits/fixture/test.mjs +0 -22
- package/benches/contrib/oss-skill-followup/tasks/duration-large-digits/fixture/upstream-package.json +0 -86
- package/benches/contrib/oss-skill-followup/tasks/duration-large-digits/prompt.md +0 -3
- package/benches/contrib/oss-skill-followup/tasks/duration-large-digits/reference/index.js +0 -1643
- package/benches/contrib/oss-skill-followup/tasks/duration-large-digits/reference/oracle.mjs +0 -1
- package/benches/contrib/oss-skill-followup/tasks/duration-large-digits/reference/regression.test.mjs +0 -2
- package/benches/contrib/oss-skill-followup/tasks/duration-large-digits/verify.mjs +0 -1
- package/benches/contrib/oss-skill-followup/tasks/duration-plural-count/fixture/LICENSE +0 -24
- package/benches/contrib/oss-skill-followup/tasks/duration-plural-count/fixture/README.md +0 -470
- package/benches/contrib/oss-skill-followup/tasks/duration-plural-count/fixture/index.js +0 -1676
- package/benches/contrib/oss-skill-followup/tasks/duration-plural-count/fixture/package.json +0 -9
- package/benches/contrib/oss-skill-followup/tasks/duration-plural-count/fixture/test-clock.mjs +0 -64
- package/benches/contrib/oss-skill-followup/tasks/duration-plural-count/fixture/test.mjs +0 -22
- package/benches/contrib/oss-skill-followup/tasks/duration-plural-count/fixture/upstream-package.json +0 -86
- package/benches/contrib/oss-skill-followup/tasks/duration-plural-count/prompt.md +0 -3
- package/benches/contrib/oss-skill-followup/tasks/duration-plural-count/reference/index.js +0 -1676
- package/benches/contrib/oss-skill-followup/tasks/duration-plural-count/reference/oracle.mjs +0 -1
- package/benches/contrib/oss-skill-followup/tasks/duration-plural-count/reference/regression.test.mjs +0 -2
- package/benches/contrib/oss-skill-followup/tasks/duration-plural-count/verify.mjs +0 -1
- package/benches/contrib/oss-skill-followup/tasks/promise-falsy-rejection/fixture/LICENSE +0 -9
- package/benches/contrib/oss-skill-followup/tasks/promise-falsy-rejection/fixture/README.md +0 -136
- package/benches/contrib/oss-skill-followup/tasks/promise-falsy-rejection/fixture/index.js +0 -153
- package/benches/contrib/oss-skill-followup/tasks/promise-falsy-rejection/fixture/package.json +0 -9
- package/benches/contrib/oss-skill-followup/tasks/promise-falsy-rejection/fixture/test-clock.mjs +0 -64
- package/benches/contrib/oss-skill-followup/tasks/promise-falsy-rejection/fixture/test.mjs +0 -22
- package/benches/contrib/oss-skill-followup/tasks/promise-falsy-rejection/fixture/upstream-package.json +0 -53
- package/benches/contrib/oss-skill-followup/tasks/promise-falsy-rejection/prompt.md +0 -3
- package/benches/contrib/oss-skill-followup/tasks/promise-falsy-rejection/reference/index.js +0 -155
- package/benches/contrib/oss-skill-followup/tasks/promise-falsy-rejection/reference/oracle.mjs +0 -1
- package/benches/contrib/oss-skill-followup/tasks/promise-falsy-rejection/reference/regression.test.mjs +0 -2
- package/benches/contrib/oss-skill-followup/tasks/promise-falsy-rejection/verify.mjs +0 -1
- package/benches/contrib/oss-skill-followup/tasks/promise-method-context/fixture/LICENSE +0 -9
- package/benches/contrib/oss-skill-followup/tasks/promise-method-context/fixture/README.md +0 -92
- package/benches/contrib/oss-skill-followup/tasks/promise-method-context/fixture/index.js +0 -57
- package/benches/contrib/oss-skill-followup/tasks/promise-method-context/fixture/package.json +0 -9
- package/benches/contrib/oss-skill-followup/tasks/promise-method-context/fixture/test-clock.mjs +0 -64
- package/benches/contrib/oss-skill-followup/tasks/promise-method-context/fixture/test.mjs +0 -22
- package/benches/contrib/oss-skill-followup/tasks/promise-method-context/fixture/upstream-package.json +0 -53
- package/benches/contrib/oss-skill-followup/tasks/promise-method-context/prompt.md +0 -3
- package/benches/contrib/oss-skill-followup/tasks/promise-method-context/reference/index.js +0 -57
- package/benches/contrib/oss-skill-followup/tasks/promise-method-context/reference/oracle.mjs +0 -1
- package/benches/contrib/oss-skill-followup/tasks/promise-method-context/reference/regression.test.mjs +0 -2
- package/benches/contrib/oss-skill-followup/tasks/promise-method-context/verify.mjs +0 -1
- package/benches/contrib/oss-skill-followup/tasks/promise-overlap-results/fixture/LICENSE +0 -9
- package/benches/contrib/oss-skill-followup/tasks/promise-overlap-results/fixture/README.md +0 -102
- package/benches/contrib/oss-skill-followup/tasks/promise-overlap-results/fixture/index.js +0 -117
- package/benches/contrib/oss-skill-followup/tasks/promise-overlap-results/fixture/package.json +0 -9
- package/benches/contrib/oss-skill-followup/tasks/promise-overlap-results/fixture/test-clock.mjs +0 -64
- package/benches/contrib/oss-skill-followup/tasks/promise-overlap-results/fixture/test.mjs +0 -22
- package/benches/contrib/oss-skill-followup/tasks/promise-overlap-results/fixture/upstream-package.json +0 -53
- package/benches/contrib/oss-skill-followup/tasks/promise-overlap-results/prompt.md +0 -3
- package/benches/contrib/oss-skill-followup/tasks/promise-overlap-results/reference/index.js +0 -112
- package/benches/contrib/oss-skill-followup/tasks/promise-overlap-results/reference/oracle.mjs +0 -1
- package/benches/contrib/oss-skill-followup/tasks/promise-overlap-results/reference/regression.test.mjs +0 -2
- package/benches/contrib/oss-skill-followup/tasks/promise-overlap-results/verify.mjs +0 -1
- package/benches/contrib/oss-skill-followup/test-clock.mjs +0 -64
- package/benches/contrib/oss-skill-followup/verifiers/cases.mjs +0 -214
- package/benches/contrib/oss-skill-followup/verifiers/grade.mjs +0 -35
- package/benches/contrib/oss-skill-followup/verifiers/probe.mjs +0 -10
- package/benches/contrib/oss-skill-followup/verifiers/regression-evidence.mjs +0 -98
- package/benches/contrib/oss-skill-followup/verifiers/test-reporter.mjs +0 -29
- package/benches/contrib/oss-skill-independent/README.md +0 -61
- package/benches/contrib/oss-skill-independent/bench.json +0 -79
- package/benches/contrib/oss-skill-independent/provenance.json +0 -1903
- package/benches/contrib/oss-skill-independent/task-specs.json +0 -63
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/LICENSE +0 -22
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/Readme.md +0 -1015
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/esm.mjs +0 -15
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/index.js +0 -27
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/lib/argument.js +0 -147
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/lib/command.js +0 -1944
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/lib/error.js +0 -45
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/lib/help.js +0 -396
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/lib/option.js +0 -208
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/lib/suggestSimilar.js +0 -100
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/package-support.json +0 -16
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/package.json +0 -63
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/test-clock.mjs +0 -65
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/test.mjs +0 -4
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/typings/index.d.ts +0 -774
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/typings/index.test-d.ts +0 -416
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/fixture/upstream-package.json +0 -69
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/prompt.md +0 -3
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/LICENSE +0 -22
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/Readme.md +0 -1015
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/esm.mjs +0 -15
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/index.js +0 -27
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/lib/argument.js +0 -147
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/lib/command.js +0 -1948
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/lib/error.js +0 -45
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/lib/help.js +0 -396
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/lib/option.js +0 -208
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/lib/suggestSimilar.js +0 -100
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/oracle.mjs +0 -1
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/package-support.json +0 -16
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/package.json +0 -63
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/regression.test.mjs +0 -5
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/test-clock.mjs +0 -65
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/test.mjs +0 -4
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/typings/index.d.ts +0 -774
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/typings/index.test-d.ts +0 -416
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/reference/upstream-package.json +0 -69
- package/benches/contrib/oss-skill-independent/tasks/commander-async-listener-order/verify.mjs +0 -1
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/LICENSE +0 -22
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/Readme.md +0 -1149
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/esm.mjs +0 -16
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/index.js +0 -24
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/lib/argument.js +0 -149
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/lib/command.js +0 -2662
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/lib/error.js +0 -39
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/lib/help.js +0 -713
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/lib/option.js +0 -367
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/lib/suggestSimilar.js +0 -101
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/package-support.json +0 -16
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/package.json +0 -71
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/test-clock.mjs +0 -65
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/test.mjs +0 -4
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/typings/esm.d.mts +0 -3
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/typings/index.d.ts +0 -1045
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/typings/index.test-d.ts +0 -737
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/fixture/upstream-package.json +0 -82
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/prompt.md +0 -3
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/LICENSE +0 -22
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/Readme.md +0 -1149
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/esm.mjs +0 -16
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/index.js +0 -24
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/lib/argument.js +0 -149
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/lib/command.js +0 -2666
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/lib/error.js +0 -39
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/lib/help.js +0 -713
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/lib/option.js +0 -367
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/lib/suggestSimilar.js +0 -101
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/oracle.mjs +0 -1
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/package-support.json +0 -16
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/package.json +0 -71
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/regression.test.mjs +0 -5
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/test-clock.mjs +0 -65
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/test.mjs +0 -4
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/typings/esm.d.mts +0 -3
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/typings/index.d.ts +0 -1045
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/typings/index.test-d.ts +0 -737
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/reference/upstream-package.json +0 -82
- package/benches/contrib/oss-skill-independent/tasks/commander-output-isolation/verify.mjs +0 -1
- package/benches/contrib/oss-skill-independent/tasks/limit-async-context/fixture/index.d.ts +0 -40
- package/benches/contrib/oss-skill-independent/tasks/limit-async-context/fixture/index.js +0 -68
- package/benches/contrib/oss-skill-independent/tasks/limit-async-context/fixture/license +0 -9
- package/benches/contrib/oss-skill-independent/tasks/limit-async-context/fixture/package.json +0 -54
- package/benches/contrib/oss-skill-independent/tasks/limit-async-context/fixture/readme.md +0 -99
- package/benches/contrib/oss-skill-independent/tasks/limit-async-context/fixture/test-clock.mjs +0 -65
- package/benches/contrib/oss-skill-independent/tasks/limit-async-context/fixture/test.mjs +0 -4
- package/benches/contrib/oss-skill-independent/tasks/limit-async-context/fixture/upstream-package.json +0 -54
- package/benches/contrib/oss-skill-independent/tasks/limit-async-context/fixture/vendor/yocto-queue/index.js +0 -67
- package/benches/contrib/oss-skill-independent/tasks/limit-async-context/fixture/vendor/yocto-queue/license +0 -9
- package/benches/contrib/oss-skill-independent/tasks/limit-async-context/fixture/vendor/yocto-queue/package.json +0 -46
- package/benches/contrib/oss-skill-independent/tasks/limit-async-context/prompt.md +0 -3
- package/benches/contrib/oss-skill-independent/tasks/limit-async-context/reference/async-hooks-stub.js +0 -15
- package/benches/contrib/oss-skill-independent/tasks/limit-async-context/reference/index.d.ts +0 -40
- package/benches/contrib/oss-skill-independent/tasks/limit-async-context/reference/index.js +0 -71
- package/benches/contrib/oss-skill-independent/tasks/limit-async-context/reference/license +0 -9
- package/benches/contrib/oss-skill-independent/tasks/limit-async-context/reference/oracle.mjs +0 -1
- package/benches/contrib/oss-skill-independent/tasks/limit-async-context/reference/package.json +0 -61
- package/benches/contrib/oss-skill-independent/tasks/limit-async-context/reference/readme.md +0 -99
- package/benches/contrib/oss-skill-independent/tasks/limit-async-context/reference/regression.test.mjs +0 -6
- package/benches/contrib/oss-skill-independent/tasks/limit-async-context/reference/test-clock.mjs +0 -65
- package/benches/contrib/oss-skill-independent/tasks/limit-async-context/reference/test.mjs +0 -4
- package/benches/contrib/oss-skill-independent/tasks/limit-async-context/reference/upstream-package.json +0 -54
- package/benches/contrib/oss-skill-independent/tasks/limit-async-context/reference/vendor/yocto-queue/index.js +0 -67
- package/benches/contrib/oss-skill-independent/tasks/limit-async-context/reference/vendor/yocto-queue/license +0 -9
- package/benches/contrib/oss-skill-independent/tasks/limit-async-context/reference/vendor/yocto-queue/package.json +0 -46
- package/benches/contrib/oss-skill-independent/tasks/limit-async-context/verify.mjs +0 -1
- package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/fixture/index.d.ts +0 -136
- package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/fixture/index.js +0 -132
- package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/fixture/license +0 -9
- package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/fixture/package.json +0 -57
- package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/fixture/readme.md +0 -181
- package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/fixture/test-clock.mjs +0 -65
- package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/fixture/test.mjs +0 -4
- package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/fixture/upstream-package.json +0 -58
- package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/fixture/vendor/yocto-queue/index.js +0 -84
- package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/fixture/vendor/yocto-queue/license +0 -9
- package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/fixture/vendor/yocto-queue/package.json +0 -48
- package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/prompt.md +0 -3
- package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/reference/index.d.ts +0 -136
- package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/reference/index.js +0 -148
- package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/reference/license +0 -9
- package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/reference/oracle.mjs +0 -1
- package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/reference/package.json +0 -57
- package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/reference/readme.md +0 -181
- package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/reference/regression.test.mjs +0 -5
- package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/reference/test-clock.mjs +0 -65
- package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/reference/test.mjs +0 -4
- package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/reference/upstream-package.json +0 -58
- package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/reference/vendor/yocto-queue/index.js +0 -84
- package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/reference/vendor/yocto-queue/license +0 -9
- package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/reference/vendor/yocto-queue/package.json +0 -48
- package/benches/contrib/oss-skill-independent/tasks/limit-map-iteration-rejection/verify.mjs +0 -1
- package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/fixture/index.d.ts +0 -136
- package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/fixture/index.js +0 -116
- package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/fixture/license +0 -9
- package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/fixture/package.json +0 -60
- package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/fixture/readme.md +0 -170
- package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/fixture/test-clock.mjs +0 -65
- package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/fixture/test.mjs +0 -4
- package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/fixture/upstream-package.json +0 -60
- package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/prompt.md +0 -3
- package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/reference/index.d.ts +0 -136
- package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/reference/index.js +0 -121
- package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/reference/license +0 -9
- package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/reference/oracle.mjs +0 -1
- package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/reference/package.json +0 -60
- package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/reference/readme.md +0 -170
- package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/reference/regression.test.mjs +0 -6
- package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/reference/test-clock.mjs +0 -65
- package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/reference/test.mjs +0 -4
- package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/reference/upstream-package.json +0 -60
- package/benches/contrib/oss-skill-independent/tasks/throttle-sync-throw/verify.mjs +0 -1
- package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/fixture/index.d.ts +0 -149
- package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/fixture/index.js +0 -93
- package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/fixture/license +0 -9
- package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/fixture/package.json +0 -52
- package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/fixture/readme.md +0 -192
- package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/fixture/test-clock.mjs +0 -65
- package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/fixture/test.mjs +0 -4
- package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/fixture/upstream-package.json +0 -52
- package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/prompt.md +0 -3
- package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/reference/index.d.ts +0 -149
- package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/reference/index.js +0 -95
- package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/reference/license +0 -9
- package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/reference/oracle.mjs +0 -1
- package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/reference/package.json +0 -52
- package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/reference/readme.md +0 -192
- package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/reference/regression.test.mjs +0 -5
- package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/reference/test-clock.mjs +0 -65
- package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/reference/test.mjs +0 -4
- package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/reference/upstream-package.json +0 -52
- package/benches/contrib/oss-skill-independent/tasks/timeout-custom-timers/verify.mjs +0 -1
- package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/fixture/index.d.ts +0 -151
- package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/fixture/index.js +0 -114
- package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/fixture/license +0 -9
- package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/fixture/package.json +0 -48
- package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/fixture/readme.md +0 -158
- package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/fixture/test-clock.mjs +0 -65
- package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/fixture/test.mjs +0 -4
- package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/fixture/upstream-package.json +0 -48
- package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/prompt.md +0 -3
- package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/reference/index.d.ts +0 -151
- package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/reference/index.js +0 -114
- package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/reference/license +0 -9
- package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/reference/oracle.mjs +0 -1
- package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/reference/package.json +0 -48
- package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/reference/readme.md +0 -158
- package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/reference/regression.test.mjs +0 -5
- package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/reference/test-clock.mjs +0 -65
- package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/reference/test.mjs +0 -4
- package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/reference/upstream-package.json +0 -48
- package/benches/contrib/oss-skill-independent/tasks/timeout-infinity-abort/verify.mjs +0 -1
- package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/fixture/index.d.ts +0 -151
- package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/fixture/index.js +0 -122
- package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/fixture/license +0 -9
- package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/fixture/package.json +0 -50
- package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/fixture/readme.md +0 -190
- package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/fixture/test-clock.mjs +0 -65
- package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/fixture/test.mjs +0 -4
- package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/fixture/upstream-package.json +0 -50
- package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/prompt.md +0 -3
- package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/reference/index.d.ts +0 -151
- package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/reference/index.js +0 -122
- package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/reference/license +0 -9
- package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/reference/oracle.mjs +0 -1
- package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/reference/package.json +0 -50
- package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/reference/readme.md +0 -190
- package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/reference/regression.test.mjs +0 -5
- package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/reference/test-clock.mjs +0 -65
- package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/reference/test.mjs +0 -4
- package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/reference/upstream-package.json +0 -50
- package/benches/contrib/oss-skill-independent/tasks/timeout-rejection-listener/verify.mjs +0 -1
- package/benches/contrib/oss-skill-independent/test-clock.mjs +0 -65
- package/benches/contrib/oss-skill-independent/verifiers/cases.mjs +0 -197
- package/benches/contrib/oss-skill-independent/verifiers/grade.mjs +0 -48
- package/benches/contrib/oss-skill-independent/verifiers/probe.mjs +0 -16
- package/benches/contrib/oss-skill-independent/verifiers/regression-evidence.mjs +0 -105
- package/benches/contrib/oss-skill-independent/verifiers/test-reporter.mjs +0 -29
- package/benches/contrib/oss-skill-validation/README.md +0 -33
- package/benches/contrib/oss-skill-validation/bench.json +0 -79
- package/benches/contrib/oss-skill-validation/provenance.json +0 -119
- package/benches/contrib/oss-skill-validation/tasks/async-concurrency/fixture/UPSTREAM.package.json +0 -57
- package/benches/contrib/oss-skill-validation/tasks/async-concurrency/fixture/index.js +0 -281
- package/benches/contrib/oss-skill-validation/tasks/async-concurrency/fixture/license +0 -9
- package/benches/contrib/oss-skill-validation/tasks/async-concurrency/fixture/package.json +0 -8
- package/benches/contrib/oss-skill-validation/tasks/async-concurrency/fixture/readme.md +0 -169
- package/benches/contrib/oss-skill-validation/tasks/async-concurrency/fixture/test.mjs +0 -5
- package/benches/contrib/oss-skill-validation/tasks/async-concurrency/prompt.md +0 -3
- package/benches/contrib/oss-skill-validation/tasks/async-concurrency/reference/UPSTREAM.package.json +0 -57
- package/benches/contrib/oss-skill-validation/tasks/async-concurrency/reference/index.js +0 -281
- package/benches/contrib/oss-skill-validation/tasks/async-concurrency/reference/license +0 -9
- package/benches/contrib/oss-skill-validation/tasks/async-concurrency/reference/oracle.mjs +0 -4
- package/benches/contrib/oss-skill-validation/tasks/async-concurrency/reference/package.json +0 -8
- package/benches/contrib/oss-skill-validation/tasks/async-concurrency/reference/readme.md +0 -169
- package/benches/contrib/oss-skill-validation/tasks/async-concurrency/reference/regression.test.mjs +0 -115
- package/benches/contrib/oss-skill-validation/tasks/async-concurrency/reference/test.mjs +0 -5
- package/benches/contrib/oss-skill-validation/tasks/async-concurrency/verify.mjs +0 -2
- package/benches/contrib/oss-skill-validation/tasks/cold-thenable/fixture/UPSTREAM.package.json +0 -57
- package/benches/contrib/oss-skill-validation/tasks/cold-thenable/fixture/index.js +0 -661
- package/benches/contrib/oss-skill-validation/tasks/cold-thenable/fixture/license +0 -9
- package/benches/contrib/oss-skill-validation/tasks/cold-thenable/fixture/package.json +0 -8
- package/benches/contrib/oss-skill-validation/tasks/cold-thenable/fixture/readme.md +0 -404
- package/benches/contrib/oss-skill-validation/tasks/cold-thenable/fixture/test.mjs +0 -5
- package/benches/contrib/oss-skill-validation/tasks/cold-thenable/prompt.md +0 -3
- package/benches/contrib/oss-skill-validation/tasks/cold-thenable/reference/UPSTREAM.package.json +0 -57
- package/benches/contrib/oss-skill-validation/tasks/cold-thenable/reference/index.js +0 -663
- package/benches/contrib/oss-skill-validation/tasks/cold-thenable/reference/license +0 -9
- package/benches/contrib/oss-skill-validation/tasks/cold-thenable/reference/oracle.mjs +0 -4
- package/benches/contrib/oss-skill-validation/tasks/cold-thenable/reference/package.json +0 -8
- package/benches/contrib/oss-skill-validation/tasks/cold-thenable/reference/readme.md +0 -404
- package/benches/contrib/oss-skill-validation/tasks/cold-thenable/reference/regression.test.mjs +0 -115
- package/benches/contrib/oss-skill-validation/tasks/cold-thenable/reference/test.mjs +0 -5
- package/benches/contrib/oss-skill-validation/tasks/cold-thenable/verify.mjs +0 -2
- package/benches/contrib/oss-skill-validation/tasks/consumer-stop/fixture/UPSTREAM.package.json +0 -57
- package/benches/contrib/oss-skill-validation/tasks/consumer-stop/fixture/index.js +0 -288
- package/benches/contrib/oss-skill-validation/tasks/consumer-stop/fixture/license +0 -9
- package/benches/contrib/oss-skill-validation/tasks/consumer-stop/fixture/package.json +0 -8
- package/benches/contrib/oss-skill-validation/tasks/consumer-stop/fixture/readme.md +0 -190
- package/benches/contrib/oss-skill-validation/tasks/consumer-stop/fixture/test.mjs +0 -5
- package/benches/contrib/oss-skill-validation/tasks/consumer-stop/prompt.md +0 -3
- package/benches/contrib/oss-skill-validation/tasks/consumer-stop/reference/UPSTREAM.package.json +0 -57
- package/benches/contrib/oss-skill-validation/tasks/consumer-stop/reference/index.js +0 -293
- package/benches/contrib/oss-skill-validation/tasks/consumer-stop/reference/license +0 -9
- package/benches/contrib/oss-skill-validation/tasks/consumer-stop/reference/oracle.mjs +0 -4
- package/benches/contrib/oss-skill-validation/tasks/consumer-stop/reference/package.json +0 -8
- package/benches/contrib/oss-skill-validation/tasks/consumer-stop/reference/readme.md +0 -190
- package/benches/contrib/oss-skill-validation/tasks/consumer-stop/reference/regression.test.mjs +0 -115
- package/benches/contrib/oss-skill-validation/tasks/consumer-stop/reference/test.mjs +0 -5
- package/benches/contrib/oss-skill-validation/tasks/consumer-stop/verify.mjs +0 -2
- package/benches/contrib/oss-skill-validation/tasks/mapper-index/fixture/UPSTREAM.package.json +0 -57
- package/benches/contrib/oss-skill-validation/tasks/mapper-index/fixture/index.js +0 -283
- package/benches/contrib/oss-skill-validation/tasks/mapper-index/fixture/license +0 -9
- package/benches/contrib/oss-skill-validation/tasks/mapper-index/fixture/package.json +0 -8
- package/benches/contrib/oss-skill-validation/tasks/mapper-index/fixture/readme.md +0 -190
- package/benches/contrib/oss-skill-validation/tasks/mapper-index/fixture/test.mjs +0 -5
- package/benches/contrib/oss-skill-validation/tasks/mapper-index/prompt.md +0 -3
- package/benches/contrib/oss-skill-validation/tasks/mapper-index/reference/UPSTREAM.package.json +0 -57
- package/benches/contrib/oss-skill-validation/tasks/mapper-index/reference/index.js +0 -284
- package/benches/contrib/oss-skill-validation/tasks/mapper-index/reference/license +0 -9
- package/benches/contrib/oss-skill-validation/tasks/mapper-index/reference/oracle.mjs +0 -4
- package/benches/contrib/oss-skill-validation/tasks/mapper-index/reference/package.json +0 -8
- package/benches/contrib/oss-skill-validation/tasks/mapper-index/reference/readme.md +0 -190
- package/benches/contrib/oss-skill-validation/tasks/mapper-index/reference/regression.test.mjs +0 -115
- package/benches/contrib/oss-skill-validation/tasks/mapper-index/reference/test.mjs +0 -5
- package/benches/contrib/oss-skill-validation/tasks/mapper-index/verify.mjs +0 -2
- package/benches/contrib/oss-skill-validation/tasks/source-close/fixture/UPSTREAM.package.json +0 -57
- package/benches/contrib/oss-skill-validation/tasks/source-close/fixture/index.js +0 -300
- package/benches/contrib/oss-skill-validation/tasks/source-close/fixture/license +0 -9
- package/benches/contrib/oss-skill-validation/tasks/source-close/fixture/package.json +0 -8
- package/benches/contrib/oss-skill-validation/tasks/source-close/fixture/readme.md +0 -190
- package/benches/contrib/oss-skill-validation/tasks/source-close/fixture/test.mjs +0 -5
- package/benches/contrib/oss-skill-validation/tasks/source-close/prompt.md +0 -3
- package/benches/contrib/oss-skill-validation/tasks/source-close/reference/UPSTREAM.package.json +0 -57
- package/benches/contrib/oss-skill-validation/tasks/source-close/reference/index.js +0 -310
- package/benches/contrib/oss-skill-validation/tasks/source-close/reference/license +0 -9
- package/benches/contrib/oss-skill-validation/tasks/source-close/reference/oracle.mjs +0 -4
- package/benches/contrib/oss-skill-validation/tasks/source-close/reference/package.json +0 -8
- package/benches/contrib/oss-skill-validation/tasks/source-close/reference/readme.md +0 -190
- package/benches/contrib/oss-skill-validation/tasks/source-close/reference/regression.test.mjs +0 -115
- package/benches/contrib/oss-skill-validation/tasks/source-close/reference/test.mjs +0 -5
- package/benches/contrib/oss-skill-validation/tasks/source-close/verify.mjs +0 -2
- package/benches/contrib/oss-skill-validation/tasks/source-error/fixture/UPSTREAM.package.json +0 -57
- package/benches/contrib/oss-skill-validation/tasks/source-error/fixture/index.js +0 -293
- package/benches/contrib/oss-skill-validation/tasks/source-error/fixture/license +0 -9
- package/benches/contrib/oss-skill-validation/tasks/source-error/fixture/package.json +0 -8
- package/benches/contrib/oss-skill-validation/tasks/source-error/fixture/readme.md +0 -190
- package/benches/contrib/oss-skill-validation/tasks/source-error/fixture/test.mjs +0 -5
- package/benches/contrib/oss-skill-validation/tasks/source-error/prompt.md +0 -3
- package/benches/contrib/oss-skill-validation/tasks/source-error/reference/UPSTREAM.package.json +0 -57
- package/benches/contrib/oss-skill-validation/tasks/source-error/reference/index.js +0 -292
- package/benches/contrib/oss-skill-validation/tasks/source-error/reference/license +0 -9
- package/benches/contrib/oss-skill-validation/tasks/source-error/reference/oracle.mjs +0 -4
- package/benches/contrib/oss-skill-validation/tasks/source-error/reference/package.json +0 -8
- package/benches/contrib/oss-skill-validation/tasks/source-error/reference/readme.md +0 -190
- package/benches/contrib/oss-skill-validation/tasks/source-error/reference/regression.test.mjs +0 -115
- package/benches/contrib/oss-skill-validation/tasks/source-error/reference/test.mjs +0 -5
- package/benches/contrib/oss-skill-validation/tasks/source-error/verify.mjs +0 -2
- package/benches/contrib/oss-skill-validation/tasks/ttl-duration/fixture/UPSTREAM.package.json +0 -51
- package/benches/contrib/oss-skill-validation/tasks/ttl-duration/fixture/index.js +0 -261
- package/benches/contrib/oss-skill-validation/tasks/ttl-duration/fixture/license +0 -9
- package/benches/contrib/oss-skill-validation/tasks/ttl-duration/fixture/package.json +0 -8
- package/benches/contrib/oss-skill-validation/tasks/ttl-duration/fixture/readme.md +0 -143
- package/benches/contrib/oss-skill-validation/tasks/ttl-duration/fixture/test.mjs +0 -5
- package/benches/contrib/oss-skill-validation/tasks/ttl-duration/prompt.md +0 -3
- package/benches/contrib/oss-skill-validation/tasks/ttl-duration/reference/UPSTREAM.package.json +0 -51
- package/benches/contrib/oss-skill-validation/tasks/ttl-duration/reference/index.js +0 -265
- package/benches/contrib/oss-skill-validation/tasks/ttl-duration/reference/license +0 -9
- package/benches/contrib/oss-skill-validation/tasks/ttl-duration/reference/oracle.mjs +0 -4
- package/benches/contrib/oss-skill-validation/tasks/ttl-duration/reference/package.json +0 -8
- package/benches/contrib/oss-skill-validation/tasks/ttl-duration/reference/readme.md +0 -143
- package/benches/contrib/oss-skill-validation/tasks/ttl-duration/reference/regression.test.mjs +0 -115
- package/benches/contrib/oss-skill-validation/tasks/ttl-duration/reference/test.mjs +0 -5
- package/benches/contrib/oss-skill-validation/tasks/ttl-duration/verify.mjs +0 -2
- package/benches/contrib/oss-skill-validation/tasks/ttl-refresh/fixture/UPSTREAM.package.json +0 -51
- package/benches/contrib/oss-skill-validation/tasks/ttl-refresh/fixture/index.js +0 -261
- package/benches/contrib/oss-skill-validation/tasks/ttl-refresh/fixture/license +0 -9
- package/benches/contrib/oss-skill-validation/tasks/ttl-refresh/fixture/package.json +0 -8
- package/benches/contrib/oss-skill-validation/tasks/ttl-refresh/fixture/readme.md +0 -143
- package/benches/contrib/oss-skill-validation/tasks/ttl-refresh/fixture/test.mjs +0 -5
- package/benches/contrib/oss-skill-validation/tasks/ttl-refresh/prompt.md +0 -3
- package/benches/contrib/oss-skill-validation/tasks/ttl-refresh/reference/UPSTREAM.package.json +0 -51
- package/benches/contrib/oss-skill-validation/tasks/ttl-refresh/reference/index.js +0 -261
- package/benches/contrib/oss-skill-validation/tasks/ttl-refresh/reference/license +0 -9
- package/benches/contrib/oss-skill-validation/tasks/ttl-refresh/reference/oracle.mjs +0 -4
- package/benches/contrib/oss-skill-validation/tasks/ttl-refresh/reference/package.json +0 -8
- package/benches/contrib/oss-skill-validation/tasks/ttl-refresh/reference/readme.md +0 -143
- package/benches/contrib/oss-skill-validation/tasks/ttl-refresh/reference/regression.test.mjs +0 -115
- package/benches/contrib/oss-skill-validation/tasks/ttl-refresh/reference/test.mjs +0 -5
- package/benches/contrib/oss-skill-validation/tasks/ttl-refresh/verify.mjs +0 -2
- package/benches/contrib/oss-skill-validation/upstream/async-concurrency.patch +0 -77
- package/benches/contrib/oss-skill-validation/upstream/cold-thenable.patch +0 -162
- package/benches/contrib/oss-skill-validation/upstream/consumer-stop.patch +0 -217
- package/benches/contrib/oss-skill-validation/upstream/mapper-index.patch +0 -48
- package/benches/contrib/oss-skill-validation/upstream/source-close.patch +0 -179
- package/benches/contrib/oss-skill-validation/upstream/source-error.patch +0 -132
- package/benches/contrib/oss-skill-validation/upstream/ttl-duration.patch +0 -73
- package/benches/contrib/oss-skill-validation/upstream/ttl-refresh.patch +0 -41
- package/benches/contrib/oss-skill-validation/verifiers/cases.mjs +0 -111
- package/benches/contrib/oss-skill-validation/verifiers/grade.mjs +0 -35
- package/benches/contrib/oss-skill-validation/verifiers/probe.mjs +0 -10
- package/benches/contrib/oss-skill-validation/verifiers/regression-evidence.mjs +0 -98
- package/benches/contrib/oss-skill-validation/verifiers/test-reporter.mjs +0 -29
- package/benches/contrib/waza-behavior/LICENSE.upstream +0 -21
- package/benches/contrib/waza-behavior/README.md +0 -36
- package/benches/contrib/waza-behavior/bench.json +0 -34
- package/benches/contrib/waza-behavior/tasks/explicit-hold/fixture/README.md +0 -1
- package/benches/contrib/waza-behavior/tasks/explicit-hold/fixture/notes.txt +0 -1
- package/benches/contrib/waza-behavior/tasks/explicit-hold/prompt.md +0 -1
- package/benches/contrib/waza-behavior/tasks/receipt-current/fixture/README.md +0 -1
- package/benches/contrib/waza-behavior/tasks/receipt-current/fixture/docs/guide.md +0 -2
- package/benches/contrib/waza-behavior/tasks/receipt-current/fixture/notes.txt +0 -1
- package/benches/contrib/waza-behavior/tasks/receipt-current/fixture/scripts/check-links.mjs +0 -16
- package/benches/contrib/waza-behavior/tasks/receipt-current/fixture/validation-receipt.json +0 -10
- package/benches/contrib/waza-behavior/tasks/receipt-current/prompt.md +0 -1
- package/benches/contrib/waza-behavior/tasks/receipt-stale/fixture/README.md +0 -1
- package/benches/contrib/waza-behavior/tasks/receipt-stale/fixture/docs/guide.md +0 -3
- package/benches/contrib/waza-behavior/tasks/receipt-stale/fixture/notes.txt +0 -1
- package/benches/contrib/waza-behavior/tasks/receipt-stale/fixture/scripts/check-links.mjs +0 -16
- package/benches/contrib/waza-behavior/tasks/receipt-stale/fixture/validation-receipt.json +0 -10
- package/benches/contrib/waza-behavior/tasks/receipt-stale/prompt.md +0 -1
- package/benches/contrib/waza-behavior/verifiers/behavior.mjs +0 -59
- package/benches/contrib/waza-behavior/verifiers/oracle.mjs +0 -24
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
commit 6d80111d0905704929334ce097adf03bbb11f472
|
|
2
|
-
Author: isaacs <i@izs.me>
|
|
3
|
-
AuthorDate: Fri Jun 10 11:41:48 2022 -0700
|
|
4
|
-
Commit: isaacs <i@izs.me>
|
|
5
|
-
CommitDate: Fri Jun 10 11:42:00 2022 -0700
|
|
6
|
-
|
|
7
|
-
fix: async streams only end destinations 1 time
|
|
8
|
-
|
|
9
|
-
diff --git a/index.js b/index.js
|
|
10
|
-
index 7fd73b3..8627a2d 100644
|
|
11
|
-
--- a/index.js
|
|
12
|
-
+++ b/index.js
|
|
13
|
-
@@ -27,10 +27,11 @@ const BUFFERSHIFT = Symbol('bufferShift')
|
|
14
|
-
const OBJECTMODE = Symbol('objectMode')
|
|
15
|
-
const DESTROYED = Symbol('destroyed')
|
|
16
|
-
const EMITDATA = Symbol('emitData')
|
|
17
|
-
-const EMITEND = Symbol('emitData')
|
|
18
|
-
+const EMITEND = Symbol('emitEnd')
|
|
19
|
-
+const EMITEND2 = Symbol('emitEnd2')
|
|
20
|
-
const ASYNC = Symbol('async')
|
|
21
|
-
|
|
22
|
-
-const defer = fn => process.nextTick(fn)
|
|
23
|
-
+const defer = fn => Promise.resolve().then(fn)
|
|
24
|
-
|
|
25
|
-
// TODO remove when Node v8 support drops
|
|
26
|
-
const doIter = global._MP_NO_ITERATOR_SYMBOLS_ !== '1'
|
|
27
|
-
@@ -427,10 +428,7 @@ module.exports = class Minipass extends Stream {
|
|
28
|
-
: this[ASYNC] ? defer(() => this[EMITDATA](data))
|
|
29
|
-
: this[EMITDATA](data)
|
|
30
|
-
} else if (ev === 'end') {
|
|
31
|
-
- // only actual end gets this treatment
|
|
32
|
-
- return this[EMITTED_END] ? false
|
|
33
|
-
- : this[ASYNC] ? defer(() => this[EMITEND]())
|
|
34
|
-
- : this[EMITEND]()
|
|
35
|
-
+ return this[EMITEND]()
|
|
36
|
-
} else if (ev === 'close') {
|
|
37
|
-
this[CLOSED] = true
|
|
38
|
-
// don't emit close before 'end' and 'finish'
|
|
39
|
-
@@ -471,9 +469,18 @@ module.exports = class Minipass extends Stream {
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
[EMITEND] () {
|
|
43
|
-
+ if (this[EMITTED_END])
|
|
44
|
-
+ return
|
|
45
|
-
+
|
|
46
|
-
this[EMITTED_END] = true
|
|
47
|
-
this.readable = false
|
|
48
|
-
+ if (this[ASYNC])
|
|
49
|
-
+ defer(() => this[EMITEND2]())
|
|
50
|
-
+ else
|
|
51
|
-
+ this[EMITEND2]()
|
|
52
|
-
+ }
|
|
53
|
-
|
|
54
|
-
+ [EMITEND2] () {
|
|
55
|
-
if (this[DECODER]) {
|
|
56
|
-
const data = this[DECODER].end()
|
|
57
|
-
if (data) {
|
|
58
|
-
diff --git a/test/async-duplicate-end.js b/test/async-duplicate-end.js
|
|
59
|
-
new file mode 100644
|
|
60
|
-
index 0000000..e636323
|
|
61
|
-
--- /dev/null
|
|
62
|
-
+++ b/test/async-duplicate-end.js
|
|
63
|
-
@@ -0,0 +1,20 @@
|
|
64
|
-
+const Minipass = require('../')
|
|
65
|
-
+const t = require('tap')
|
|
66
|
-
+
|
|
67
|
-
+t.test('async pipes should only end one time', t => {
|
|
68
|
-
+ const m = new Minipass({ async: true })
|
|
69
|
-
+ let ended = 0
|
|
70
|
-
+ const d = new Minipass()
|
|
71
|
-
+ d.end = () => {
|
|
72
|
-
+ ended++
|
|
73
|
-
+ Minipass.prototype.end.call(d)
|
|
74
|
-
+ }
|
|
75
|
-
+ m.pipe(d)
|
|
76
|
-
+ m.end()
|
|
77
|
-
+ m.end()
|
|
78
|
-
+ m.end()
|
|
79
|
-
+ setTimeout(() => {
|
|
80
|
-
+ t.equal(ended, 1)
|
|
81
|
-
+ t.end()
|
|
82
|
-
+ })
|
|
83
|
-
+})
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
commit 6472384be41273ae223280342fb9dcd632608a9e
|
|
2
|
-
Author: isaacs <i@izs.me>
|
|
3
|
-
AuthorDate: Tue Jun 7 22:49:06 2022 -0700
|
|
4
|
-
Commit: isaacs <i@izs.me>
|
|
5
|
-
CommitDate: Tue Jun 7 22:49:06 2022 -0700
|
|
6
|
-
|
|
7
|
-
readable event emitted right away when listened for
|
|
8
|
-
|
|
9
|
-
Fix: https://github.com/isaacs/minipass/issues/36
|
|
10
|
-
|
|
11
|
-
diff --git a/index.js b/index.js
|
|
12
|
-
index fa2c694..76a7d5e 100644
|
|
13
|
-
--- a/index.js
|
|
14
|
-
+++ b/index.js
|
|
15
|
-
@@ -372,6 +372,8 @@ module.exports = class Minipass extends Stream {
|
|
16
|
-
const ret = super.on(ev, fn)
|
|
17
|
-
if (ev === 'data' && !this.pipes.length && !this.flowing)
|
|
18
|
-
this[RESUME]()
|
|
19
|
-
+ else if (ev === 'readable' && this[BUFFERLENGTH] !== 0)
|
|
20
|
-
+ super.emit('readable')
|
|
21
|
-
else if (isEndish(ev) && this[EMITTED_END]) {
|
|
22
|
-
super.emit(ev)
|
|
23
|
-
this.removeAllListeners(ev)
|
|
24
|
-
diff --git a/test/readable-emits-immediately.js b/test/readable-emits-immediately.js
|
|
25
|
-
new file mode 100644
|
|
26
|
-
index 0000000..821631e
|
|
27
|
-
--- /dev/null
|
|
28
|
-
+++ b/test/readable-emits-immediately.js
|
|
29
|
-
@@ -0,0 +1,14 @@
|
|
30
|
-
+// https://github.com/isaacs/minipass/issues/36
|
|
31
|
-
+const Minipass = require('../')
|
|
32
|
-
+const t = require('tap')
|
|
33
|
-
+
|
|
34
|
-
+const m = new Minipass({ encoding: 'utf8' })
|
|
35
|
-
+m.write('hello')
|
|
36
|
-
+t.equal(m.flowing, false)
|
|
37
|
-
+let readableEmitted = false
|
|
38
|
-
+m.on('readable', () => {
|
|
39
|
-
+ readableEmitted = true
|
|
40
|
-
+ m.on('data', c => t.equal(c, 'hello'))
|
|
41
|
-
+})
|
|
42
|
-
+t.equal(m.flowing, true)
|
|
43
|
-
+t.equal(readableEmitted, true)
|
|
44
|
-
diff --git a/test/write-returns-true-when-readable-triggers-flow.js b/test/write-returns-true-when-readable-triggers-flow.js
|
|
45
|
-
index ef87f66..566da60 100644
|
|
46
|
-
--- a/test/write-returns-true-when-readable-triggers-flow.js
|
|
47
|
-
+++ b/test/write-returns-true-when-readable-triggers-flow.js
|
|
48
|
-
@@ -11,7 +11,14 @@ t.test('empty write', async t => {
|
|
49
|
-
const p = dest.concat().then(d => t.equal(d, 'a', 'got data'))
|
|
50
|
-
t.equal(s.write('a'), false, 'first write returns false')
|
|
51
|
-
t.equal(s.write(''), false, 'empty write returns false')
|
|
52
|
-
- s.on('readable', () => s.pipe(dest))
|
|
53
|
-
+ // since readable emits immediately, the NEXT one needs to trigger
|
|
54
|
-
+ let firstReadable = false
|
|
55
|
-
+ s.on('readable', () => {
|
|
56
|
-
+ if (!firstReadable)
|
|
57
|
-
+ firstReadable = true
|
|
58
|
-
+ else
|
|
59
|
-
+ s.pipe(dest)
|
|
60
|
-
+ })
|
|
61
|
-
t.equal(s.flowing, false, 'src is not flowing yet')
|
|
62
|
-
t.equal(s.write(''), true, 'return true, now flowing')
|
|
63
|
-
s.end()
|
|
64
|
-
@@ -24,7 +31,14 @@ t.test('non-empty write', async t => {
|
|
65
|
-
const p = dest.concat().then(d => t.equal(d, 'ab', 'got data'))
|
|
66
|
-
t.equal(s.write('a'), false, 'first write returns false')
|
|
67
|
-
t.equal(s.write(''), false, 'empty write returns false')
|
|
68
|
-
- s.on('readable', () => s.pipe(dest))
|
|
69
|
-
+ // since readable emits immediately, the NEXT one needs to trigger
|
|
70
|
-
+ let firstReadable = false
|
|
71
|
-
+ s.on('readable', () => {
|
|
72
|
-
+ if (!firstReadable)
|
|
73
|
-
+ firstReadable = true
|
|
74
|
-
+ else
|
|
75
|
-
+ s.pipe(dest)
|
|
76
|
-
+ })
|
|
77
|
-
t.equal(s.flowing, false, 'src is not flowing yet')
|
|
78
|
-
t.equal(s.write('b'), true, 'return true, now flowing')
|
|
79
|
-
s.end()
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
commit f7b7b283b317cd374ce754402ca574ddf645fbc6
|
|
2
|
-
Author: isaacs <i@izs.me>
|
|
3
|
-
AuthorDate: Mon Sep 16 14:57:57 2019 -0700
|
|
4
|
-
Commit: isaacs <i@izs.me>
|
|
5
|
-
CommitDate: Mon Sep 16 14:57:57 2019 -0700
|
|
6
|
-
|
|
7
|
-
fix: do not remove all endish listeners on endish events
|
|
8
|
-
|
|
9
|
-
The 'finish' event was removing the 'end' listeners, which is not
|
|
10
|
-
what we want, obviously.
|
|
11
|
-
|
|
12
|
-
diff --git a/index.js b/index.js
|
|
13
|
-
index 287602c..e99a168 100644
|
|
14
|
-
--- a/index.js
|
|
15
|
-
+++ b/index.js
|
|
16
|
-
@@ -3,7 +3,6 @@ const EE = require('events')
|
|
17
|
-
const Yallist = require('yallist')
|
|
18
|
-
const EOF = Symbol('EOF')
|
|
19
|
-
const MAYBE_EMIT_END = Symbol('maybeEmitEnd')
|
|
20
|
-
-const REMOVE_ALL_END_LISTENERS = Symbol('removeAllEndListeners')
|
|
21
|
-
const EMITTED_END = Symbol('emittedEnd')
|
|
22
|
-
const EMITTING_END = Symbol('emittingEnd')
|
|
23
|
-
const CLOSED = Symbol('closed')
|
|
24
|
-
@@ -257,7 +256,7 @@ module.exports = class MiniPass extends EE {
|
|
25
|
-
this[RESUME]()
|
|
26
|
-
else if (isEndish(ev) && this[EMITTED_END]) {
|
|
27
|
-
super.emit(ev)
|
|
28
|
-
- this[REMOVE_ALL_END_LISTENERS]()
|
|
29
|
-
+ this.removeAllListeners(ev)
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
@@ -277,7 +276,6 @@ module.exports = class MiniPass extends EE {
|
|
34
|
-
this.emit('finish')
|
|
35
|
-
if (this[CLOSED])
|
|
36
|
-
this.emit('close')
|
|
37
|
-
- this[REMOVE_ALL_END_LISTENERS]()
|
|
38
|
-
this[EMITTING_END] = false
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
@@ -332,16 +330,10 @@ module.exports = class MiniPass extends EE {
|
|
42
|
-
if (!isEndish(ev))
|
|
43
|
-
this[MAYBE_EMIT_END]()
|
|
44
|
-
else
|
|
45
|
-
- this[REMOVE_ALL_END_LISTENERS]()
|
|
46
|
-
+ this.removeAllListeners(ev)
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
- [REMOVE_ALL_END_LISTENERS] () {
|
|
51
|
-
- this.removeAllListeners('end')
|
|
52
|
-
- this.removeAllListeners('prefinish')
|
|
53
|
-
- this.removeAllListeners('finish')
|
|
54
|
-
- }
|
|
55
|
-
-
|
|
56
|
-
// const all = await stream.collect()
|
|
57
|
-
collect () {
|
|
58
|
-
const buf = []
|
|
59
|
-
diff --git a/test/end-missed.js b/test/end-missed.js
|
|
60
|
-
index b337f24..09a7247 100644
|
|
61
|
-
--- a/test/end-missed.js
|
|
62
|
-
+++ b/test/end-missed.js
|
|
63
|
-
@@ -19,3 +19,14 @@ t.test('listening for any endish event after end re-emits', t => {
|
|
64
|
-
mp.on('data', d => str += d)
|
|
65
|
-
mp.on('finish', () => t.equal(str, 'foo'))
|
|
66
|
-
})
|
|
67
|
-
+
|
|
68
|
-
+t.test('all endish listeners get called', t => {
|
|
69
|
-
+ t.plan(3)
|
|
70
|
-
+ const mp = new MP()
|
|
71
|
-
+ let str = ''
|
|
72
|
-
+ mp.on('finish', () => t.equal(str, 'foo'))
|
|
73
|
-
+ mp.on('prefinish', () => t.equal(str, 'foo'))
|
|
74
|
-
+ mp.end('foo')
|
|
75
|
-
+ mp.on('data', d => str += d)
|
|
76
|
-
+ mp.on('end', () => t.equal(str, 'foo'))
|
|
77
|
-
+})
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
commit 4c5a106ed34bef4da06083466a476e16c39f4a20
|
|
2
|
-
Author: isaacs <i@izs.me>
|
|
3
|
-
AuthorDate: Tue May 12 17:52:21 2020 -0700
|
|
4
|
-
Commit: isaacs <i@izs.me>
|
|
5
|
-
CommitDate: Tue May 12 17:52:21 2020 -0700
|
|
6
|
-
|
|
7
|
-
Flush buffer before emitting 'data' during write()
|
|
8
|
-
|
|
9
|
-
It takes quite a convoluted set of streams to reproduce this error, but
|
|
10
|
-
it's possible to end up in a state where there is a chunk in the buffer,
|
|
11
|
-
AND we're in a flowing state, during a write() call. Since the
|
|
12
|
-
assumption was that a flowing state means that the buffer must be empty,
|
|
13
|
-
this resulted in sending data out of order, breaking the streaming in
|
|
14
|
-
make-fetch-happen and npm-registry-fetch, due to how cacache was
|
|
15
|
-
proxying writes to a slow tmp file writer, and how make-fetch-happen was
|
|
16
|
-
creating a Pipeline to produce the caching response body.
|
|
17
|
-
|
|
18
|
-
Fix: https://github.com/npm/npm-registry-fetch/issues/23
|
|
19
|
-
Re: https://github.com/npm/make-fetch-happen/commit/7f896bef4bbcab73eccb92b5999204b673cdf485
|
|
20
|
-
|
|
21
|
-
diff --git a/index.js b/index.js
|
|
22
|
-
index d0c83e3..56cbd66 100644
|
|
23
|
-
--- a/index.js
|
|
24
|
-
+++ b/index.js
|
|
25
|
-
@@ -134,12 +134,11 @@ module.exports = class Minipass extends Stream {
|
|
26
|
-
// this ensures at this point that the chunk is a buffer or string
|
|
27
|
-
// don't buffer it up or send it to the decoder
|
|
28
|
-
if (!this.objectMode && !chunk.length) {
|
|
29
|
-
- const ret = this.flowing
|
|
30
|
-
if (this[BUFFERLENGTH] !== 0)
|
|
31
|
-
this.emit('readable')
|
|
32
|
-
if (cb)
|
|
33
|
-
cb()
|
|
34
|
-
- return ret
|
|
35
|
-
+ return this.flowing
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// fast-path writing strings of same encoding to a stream with
|
|
39
|
-
@@ -153,16 +152,24 @@ module.exports = class Minipass extends Stream {
|
|
40
|
-
if (Buffer.isBuffer(chunk) && this[ENCODING])
|
|
41
|
-
chunk = this[DECODER].write(chunk)
|
|
42
|
-
|
|
43
|
-
- try {
|
|
44
|
-
- return this.flowing
|
|
45
|
-
- ? (this.emit('data', chunk), this.flowing)
|
|
46
|
-
- : (this[BUFFERPUSH](chunk), false)
|
|
47
|
-
- } finally {
|
|
48
|
-
+ if (this.flowing) {
|
|
49
|
-
+ // if we somehow have something in the buffer, but we think we're
|
|
50
|
-
+ // flowing, then we need to flush all that out first, or we get
|
|
51
|
-
+ // chunks coming in out of order. Can't emit 'drain' here though,
|
|
52
|
-
+ // because we're mid-write, so that'd be bad.
|
|
53
|
-
if (this[BUFFERLENGTH] !== 0)
|
|
54
|
-
- this.emit('readable')
|
|
55
|
-
- if (cb)
|
|
56
|
-
- cb()
|
|
57
|
-
- }
|
|
58
|
-
+ this[FLUSH](true)
|
|
59
|
-
+ this.emit('data', chunk)
|
|
60
|
-
+ } else
|
|
61
|
-
+ this[BUFFERPUSH](chunk)
|
|
62
|
-
+
|
|
63
|
-
+ if (this[BUFFERLENGTH] !== 0)
|
|
64
|
-
+ this.emit('readable')
|
|
65
|
-
+
|
|
66
|
-
+ if (cb)
|
|
67
|
-
+ cb()
|
|
68
|
-
+
|
|
69
|
-
+ return this.flowing
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
read (n) {
|
|
73
|
-
@@ -286,10 +293,10 @@ module.exports = class Minipass extends Stream {
|
|
74
|
-
return this.buffer.shift()
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
- [FLUSH] () {
|
|
78
|
-
+ [FLUSH] (noDrain) {
|
|
79
|
-
do {} while (this[FLUSHCHUNK](this[BUFFERSHIFT]()))
|
|
80
|
-
|
|
81
|
-
- if (!this.buffer.length && !this[EOF])
|
|
82
|
-
+ if (!noDrain && !this.buffer.length && !this[EOF])
|
|
83
|
-
this.emit('drain')
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
diff --git a/test/flush-buffer-before-flowing.js b/test/flush-buffer-before-flowing.js
|
|
87
|
-
new file mode 100644
|
|
88
|
-
index 0000000..261a2c5
|
|
89
|
-
--- /dev/null
|
|
90
|
-
+++ b/test/flush-buffer-before-flowing.js
|
|
91
|
-
@@ -0,0 +1,44 @@
|
|
92
|
-
+// this is a minimal reproduction of a pretty complex interaction between
|
|
93
|
-
+// minipass-pipeline and a slow-draining proxy stream, which occurred in
|
|
94
|
-
+// make-fetch-happen. https://github.com/npm/npm-registry-fetch/issues/23
|
|
95
|
-
+// The pipeline in question was a wrapper that tee'd data into the cache,
|
|
96
|
-
+// which is a slow-draining sink stream. When multiple chunks come through,
|
|
97
|
-
+// the Pipeline's buffer is holding a chunk, but the Pipeline itself is in
|
|
98
|
-
+// flowing mode. The solution is to always drain the buffer before emitting
|
|
99
|
-
+// 'data', if there is other data waiting to be emitted.
|
|
100
|
-
+const Minipass = require('../')
|
|
101
|
-
+const t = require('tap')
|
|
102
|
-
+
|
|
103
|
-
+const src = new Minipass({ encoding: 'utf8' })
|
|
104
|
-
+const mid = new Minipass({ encoding: 'utf8' })
|
|
105
|
-
+const proxy = new Minipass({ encoding: 'utf8' })
|
|
106
|
-
+mid.write = function (chunk, encoding, cb) {
|
|
107
|
-
+ Minipass.prototype.write.call(this, chunk, encoding, cb)
|
|
108
|
-
+ return proxy.write(chunk, encoding, cb)
|
|
109
|
-
+}
|
|
110
|
-
+proxy.on('drain', chunk => mid.emit('drain'))
|
|
111
|
-
+proxy.on('readable', () => setTimeout(() => proxy.read()))
|
|
112
|
-
+
|
|
113
|
-
+const dest = new Minipass({ encoding: 'utf8' })
|
|
114
|
-
+src.write('a')
|
|
115
|
-
+src.write('b')
|
|
116
|
-
+
|
|
117
|
-
+const pipeline = new (class Pipeline extends Minipass {
|
|
118
|
-
+ constructor (opt) {
|
|
119
|
-
+ super(opt)
|
|
120
|
-
+ dest.on('data', c => super.write(c))
|
|
121
|
-
+ dest.on('end', () => super.end())
|
|
122
|
-
+ }
|
|
123
|
-
+ emit (ev, ...args) {
|
|
124
|
-
+ if (ev === 'resume')
|
|
125
|
-
+ dest.resume()
|
|
126
|
-
+ return super.emit(ev, ...args)
|
|
127
|
-
+ }
|
|
128
|
-
+})({ encoding: 'utf8'})
|
|
129
|
-
+
|
|
130
|
-
+mid.pipe(dest)
|
|
131
|
-
+src.pipe(mid)
|
|
132
|
-
+t.test('get all data', t => pipeline.concat().then(d => t.equal(d, 'abcd')))
|
|
133
|
-
+src.write('c')
|
|
134
|
-
+src.write('d')
|
|
135
|
-
+src.end()
|
|
136
|
-
diff --git a/test/write-returns-true-when-readable-triggers-flow.js b/test/write-returns-true-when-readable-triggers-flow.js
|
|
137
|
-
new file mode 100644
|
|
138
|
-
index 0000000..ef87f66
|
|
139
|
-
--- /dev/null
|
|
140
|
-
+++ b/test/write-returns-true-when-readable-triggers-flow.js
|
|
141
|
-
@@ -0,0 +1,32 @@
|
|
142
|
-
+// if you do s.on('readable', s => s.pipe(d)), then s.write() should return
|
|
143
|
-
+// true, because even though s is not flowing at the START of the write(),
|
|
144
|
-
+// it IS flowing by the END of the write call.
|
|
145
|
-
+
|
|
146
|
-
+const Minipass = require('../')
|
|
147
|
-
+const t = require('tap')
|
|
148
|
-
+
|
|
149
|
-
+t.test('empty write', async t => {
|
|
150
|
-
+ const s = new Minipass({ encoding: 'utf8' })
|
|
151
|
-
+ const dest = new Minipass({ encoding: 'utf8' })
|
|
152
|
-
+ const p = dest.concat().then(d => t.equal(d, 'a', 'got data'))
|
|
153
|
-
+ t.equal(s.write('a'), false, 'first write returns false')
|
|
154
|
-
+ t.equal(s.write(''), false, 'empty write returns false')
|
|
155
|
-
+ s.on('readable', () => s.pipe(dest))
|
|
156
|
-
+ t.equal(s.flowing, false, 'src is not flowing yet')
|
|
157
|
-
+ t.equal(s.write(''), true, 'return true, now flowing')
|
|
158
|
-
+ s.end()
|
|
159
|
-
+ await p
|
|
160
|
-
+})
|
|
161
|
-
+
|
|
162
|
-
+t.test('non-empty write', async t => {
|
|
163
|
-
+ const s = new Minipass({ encoding: 'utf8' })
|
|
164
|
-
+ const dest = new Minipass({ encoding: 'utf8' })
|
|
165
|
-
+ const p = dest.concat().then(d => t.equal(d, 'ab', 'got data'))
|
|
166
|
-
+ t.equal(s.write('a'), false, 'first write returns false')
|
|
167
|
-
+ t.equal(s.write(''), false, 'empty write returns false')
|
|
168
|
-
+ s.on('readable', () => s.pipe(dest))
|
|
169
|
-
+ t.equal(s.flowing, false, 'src is not flowing yet')
|
|
170
|
-
+ t.equal(s.write('b'), true, 'return true, now flowing')
|
|
171
|
-
+ s.end()
|
|
172
|
-
+ await p
|
|
173
|
-
+})
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import assert from 'node:assert/strict';
|
|
2
|
-
|
|
3
|
-
const turns = async () => { for (let i = 0; i < 24; i++) await new Promise(setImmediate); };
|
|
4
|
-
async function pipeEnd(M, options, values = []) {
|
|
5
|
-
const source = new M({async: true, encoding: 'utf8'});
|
|
6
|
-
const destination = new M({encoding: 'utf8'});
|
|
7
|
-
let ends = 0; let data = '';
|
|
8
|
-
destination.on('data', chunk => { data += chunk; });
|
|
9
|
-
const original = destination.end;
|
|
10
|
-
destination.end = function (...args) { ends++; return original.apply(this, args); };
|
|
11
|
-
source.pipe(destination, options);
|
|
12
|
-
for (const value of values) source.write(value);
|
|
13
|
-
source.end(); source.end(); source.end();
|
|
14
|
-
await turns();
|
|
15
|
-
return {ends, data};
|
|
16
|
-
}
|
|
17
|
-
async function pipeline(M, chunks) {
|
|
18
|
-
const source = new M({encoding: 'utf8'});
|
|
19
|
-
const mid = new M({encoding: 'utf8'});
|
|
20
|
-
const proxy = new M({encoding: 'utf8'});
|
|
21
|
-
mid.write = function (chunk, encoding, cb) {
|
|
22
|
-
M.prototype.write.call(this, chunk, encoding, cb);
|
|
23
|
-
return proxy.write(chunk, encoding, cb);
|
|
24
|
-
};
|
|
25
|
-
proxy.on('drain', () => mid.emit('drain'));
|
|
26
|
-
proxy.on('readable', () => setImmediate(() => proxy.read()));
|
|
27
|
-
const destination = new M({encoding: 'utf8'});
|
|
28
|
-
for (const chunk of chunks.slice(0, 2)) source.write(chunk);
|
|
29
|
-
const output = new (class extends M {
|
|
30
|
-
constructor() {
|
|
31
|
-
super({encoding: 'utf8'});
|
|
32
|
-
destination.on('data', chunk => super.write(chunk));
|
|
33
|
-
destination.on('end', () => super.end());
|
|
34
|
-
}
|
|
35
|
-
emit(event, ...args) {
|
|
36
|
-
if (event === 'resume') destination.resume();
|
|
37
|
-
return super.emit(event, ...args);
|
|
38
|
-
}
|
|
39
|
-
})();
|
|
40
|
-
mid.pipe(destination); source.pipe(mid);
|
|
41
|
-
let result; let error; let settled = false;
|
|
42
|
-
output.concat().then(value => {result = value; settled = true;}, value => {error = value; settled = true;});
|
|
43
|
-
for (const chunk of chunks.slice(2)) source.write(chunk);
|
|
44
|
-
source.end();
|
|
45
|
-
await turns();
|
|
46
|
-
assert.equal(settled, true, 'pipeline did not finish after deterministic event-loop drainage');
|
|
47
|
-
if (error) throw error;
|
|
48
|
-
return result;
|
|
49
|
-
}
|
|
50
|
-
function completedEvents(M) {
|
|
51
|
-
const source = new M({encoding: 'utf8'});
|
|
52
|
-
const events = [];
|
|
53
|
-
for (const event of ['end', 'prefinish', 'finish']) source.on(event, () => events.push(event));
|
|
54
|
-
source.resume(); source.end();
|
|
55
|
-
return {source, events};
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export function casesFor(M, task) {
|
|
59
|
-
if (task === 'async-end') return [
|
|
60
|
-
['repeated async end closes one destination once', async () => assert.equal((await pipeEnd(M)).ends, 1)],
|
|
61
|
-
['async buffered data is preserved before completion', async () => assert.deepEqual(await pipeEnd(M, undefined, ['alpha', 'β']), {ends: 1, data: 'alphaβ'})],
|
|
62
|
-
['pipe end:false keeps destination open', async () => assert.deepEqual(await pipeEnd(M, {end: false}, ['value']), {ends: 0, data: 'value'})],
|
|
63
|
-
['independent destinations each finish once', async () => {
|
|
64
|
-
const source = new M({async: true}); const counts = [0, 0];
|
|
65
|
-
for (let i = 0; i < 2; i++) { const destination = new M(); const end = destination.end; destination.end = function (...args) {counts[i]++; return end.apply(this, args);}; source.pipe(destination); }
|
|
66
|
-
source.end(); source.end(); await turns(); assert.deepEqual(counts, [1, 1]);
|
|
67
|
-
}],
|
|
68
|
-
];
|
|
69
|
-
if (task === 'buffered-readable') return [
|
|
70
|
-
['listener added after buffering observes existing data immediately', () => {const s = new M({encoding:'utf8'}); s.write('hello'); let seen = false; s.on('readable', () => {seen = true;}); assert.equal(seen, true);}],
|
|
71
|
-
['readable listener can start flow without losing buffered data', () => {const s = new M({encoding:'utf8'}); s.write('α'); s.write('β'); const values = []; s.on('readable', () => s.on('data', value => values.push(value))); assert.equal(values.join(''), 'αβ'); assert.equal(s.flowing, true);}],
|
|
72
|
-
['empty and flowing streams do not gain false readable notifications', () => {for (const flowing of [false,true]) {const s = new M(); if (flowing) s.resume(); let calls = 0; s.on('readable', () => calls++); assert.equal(calls, 0);}}],
|
|
73
|
-
['object-mode buffered values remain actual application objects', () => {const s = new M({objectMode:true}); const object = {key:'value'}; s.write(object); let seen; s.on('readable', () => {seen = s.read();}); assert.equal(seen, object);}],
|
|
74
|
-
];
|
|
75
|
-
if (task === 'pipeline-order') return [
|
|
76
|
-
['slow proxy pipeline retains original chunk order', async () => assert.equal(await pipeline(M, ['a','b','c','d']), 'abcd')],
|
|
77
|
-
['slow proxy pipeline preserves Unicode and longer chunk sequences', async () => assert.equal(await pipeline(M, ['α','β','γ','δ','ε']), 'αβγδε')],
|
|
78
|
-
['write result reflects flow started during readable notification', async () => {for (const chunk of ['', 'b']) {const s = new M({encoding:'utf8'}); const d = new M({encoding:'utf8'}); let result; d.concat().then(value => {result = value;}); s.write('a'); s.on('readable', () => s.pipe(d)); assert.equal(s.write(chunk), true); s.end(); await turns(); assert.equal(result, 'a'+chunk);}}],
|
|
79
|
-
['ordinary writes retain backpressure and callbacks', () => {const s = new M({encoding:'utf8'}); let callbacks = 0; assert.equal(s.write('a', () => callbacks++), false); assert.equal(callbacks, 1); assert.equal(s.read(), 'a');}],
|
|
80
|
-
];
|
|
81
|
-
if (task === 'end-listeners') return [
|
|
82
|
-
['all registered completion events reach their handlers', () => assert.deepEqual(completedEvents(M).events, ['end','prefinish','finish'])],
|
|
83
|
-
['one completion event does not remove another event listener', () => {const s = new M(); let finish = 0; s.on('finish', () => finish++); s.emit('prefinish'); assert.equal(s.listenerCount('finish'), 1); s.resume(); s.end(); assert.equal(finish, 1);}],
|
|
84
|
-
['repeated end remains one-shot for registered listeners', () => {const {source,events} = completedEvents(M); source.end(); source.end(); assert.deepEqual(events, ['end','prefinish','finish']);}],
|
|
85
|
-
['late completion listeners are delivered and removed per event', () => {const {source} = completedEvents(M); const events = []; for (const event of ['finish','end','prefinish']) {source.on(event, () => events.push(event)); assert.equal(source.listenerCount(event), 0);} assert.deepEqual(events, ['finish','end','prefinish']);}],
|
|
86
|
-
];
|
|
87
|
-
throw new Error('Unknown task '+task);
|
|
88
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import assert from 'node:assert/strict';
|
|
2
|
-
import {existsSync,lstatSync,readFileSync} from 'node:fs';
|
|
3
|
-
import {dirname,join,resolve} from 'node:path';
|
|
4
|
-
import {fileURLToPath} from 'node:url';
|
|
5
|
-
import {spawnSync} from 'node:child_process';
|
|
6
|
-
import {casesFor} from './cases.mjs';
|
|
7
|
-
import {files,regressionEvidence,testRun} from './regression-evidence.mjs';
|
|
8
|
-
const bench = resolve(dirname(fileURLToPath(import.meta.url)), '..');
|
|
9
|
-
export async function grade(task, supplied) {
|
|
10
|
-
const run = resolve(supplied), canonical = join(bench,'tasks',task,'fixture');
|
|
11
|
-
const checks = [], check = (name, fn) => {try {fn(); checks.push({name,pass:true});} catch(error) {checks.push({name,pass:false,detail:String(error.message).slice(0,300)});}};
|
|
12
|
-
check('supplied assets unchanged and ordinary smoke tests pass', () => {
|
|
13
|
-
for (const file of files(canonical).filter(file => file !== 'index.js')) {
|
|
14
|
-
assert.equal(existsSync(join(run,file)),true); assert.equal(lstatSync(join(run,file)).isSymbolicLink(),false);
|
|
15
|
-
assert.deepEqual(readFileSync(join(run,file)),readFileSync(join(canonical,file)));
|
|
16
|
-
}
|
|
17
|
-
assert.equal(lstatSync(join(run,'index.js')).isSymbolicLink(),false);
|
|
18
|
-
const result = testRun(run,['test.mjs']); assert.equal(result.completed && result.passed && result.tests && result.noSkips,true);
|
|
19
|
-
});
|
|
20
|
-
try {
|
|
21
|
-
const result = spawnSync(process.execPath,[join(bench,'verifiers/probe.mjs'),task,run],{encoding:'utf8',timeout:5000});
|
|
22
|
-
assert.ok(!result.error && result.signal == null && result.status === 0, 'probe did not complete');
|
|
23
|
-
const value = JSON.parse(result.stdout.trim().split('\n').at(-1));
|
|
24
|
-
assert.deepEqual(value.checks.map(row => row.name),casesFor(undefined,task).map(([name]) => name));
|
|
25
|
-
assert.ok(value.checks.every(row => typeof row.pass === 'boolean')); checks.push(...value.checks);
|
|
26
|
-
} catch(error) {checks.push({name:'public behavior probe completeness',pass:false,detail:error.message});}
|
|
27
|
-
let evidence = [];
|
|
28
|
-
check('retained regression passes submission and upstream fix but fails original', () => {
|
|
29
|
-
evidence = regressionEvidence(run,canonical,join(bench,'tasks',task,'reference'),'index.js');
|
|
30
|
-
assert.ok(evidence.length > 0 && evidence.every(row => row.finalPassed) && evidence.some(row => row.caseWitnesses.length > 0));
|
|
31
|
-
});
|
|
32
|
-
const passed = checks.every(row => row.pass);
|
|
33
|
-
console.log(JSON.stringify({passed,score:checks.filter(row=>row.pass).length/checks.length,checks,evidence}));
|
|
34
|
-
process.exitCode = passed ? 0 : 1;
|
|
35
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import {createRequire} from 'node:module';
|
|
2
|
-
import {resolve} from 'node:path';
|
|
3
|
-
import {casesFor} from './cases.mjs';
|
|
4
|
-
const M = createRequire(import.meta.url)(resolve(process.argv[3], 'runtime.cjs'));
|
|
5
|
-
const checks = [];
|
|
6
|
-
for (const [name, run] of casesFor(M, process.argv[2])) {
|
|
7
|
-
try {await run(); checks.push({name,pass:true});}
|
|
8
|
-
catch (error) {checks.push({name,pass:false,detail:String(error.message).slice(0,300)});}
|
|
9
|
-
}
|
|
10
|
-
console.log(JSON.stringify({checks}));
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import assert from 'node:assert/strict';
|
|
2
|
-
import { cpSync, existsSync, lstatSync, mkdtempSync, readFileSync, readdirSync, rmSync } from 'node:fs';
|
|
3
|
-
import { tmpdir } from 'node:os';
|
|
4
|
-
import { dirname, join, relative, resolve } from 'node:path';
|
|
5
|
-
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
6
|
-
import { spawnSync } from 'node:child_process';
|
|
7
|
-
|
|
8
|
-
const bench = resolve(dirname(fileURLToPath(import.meta.url)), '..');
|
|
9
|
-
export function files(root, rel = '') { return readdirSync(join(root, rel), { withFileTypes: true }).flatMap(entry => {
|
|
10
|
-
if (entry.name === '.git' || entry.name.startsWith('_')) return [];
|
|
11
|
-
const child = rel ? `${rel}/${entry.name}` : entry.name;
|
|
12
|
-
if (entry.isSymbolicLink()) return [];
|
|
13
|
-
return entry.isDirectory() ? files(root, child) : entry.isFile() ? [child] : [];
|
|
14
|
-
}); }
|
|
15
|
-
export function testRun(root, tests, pattern) {
|
|
16
|
-
const env = { ...process.env }; delete env.NODE_TEST_CONTEXT;
|
|
17
|
-
const reporter = pathToFileURL(join(bench, 'verifiers/test-reporter.mjs')).href;
|
|
18
|
-
const result = spawnSync(process.execPath, ['--test', `--test-reporter=${reporter}`,
|
|
19
|
-
...(pattern ? [`--test-name-pattern=${pattern}`] : []), ...tests], { cwd: root, encoding: 'utf8', timeout: 5000, env });
|
|
20
|
-
let evidence;
|
|
21
|
-
try { evidence = JSON.parse(result.stdout.trim()); } catch { evidence = null; }
|
|
22
|
-
if (evidence?.schemaVersion !== 1 || evidence?.kind !== 'node-test-evidence' || !evidence?.summary || !Array.isArray(evidence?.records)) evidence = null;
|
|
23
|
-
const counts = evidence?.summary?.counts;
|
|
24
|
-
const records = evidence?.records ?? [];
|
|
25
|
-
return { completed: !result.error && result.signal == null && typeof result.status === 'number',
|
|
26
|
-
passed: result.status === 0 && evidence?.summary?.success === true,
|
|
27
|
-
tests: counts?.tests > 0 && records.some(row => row.registered && row.leaf),
|
|
28
|
-
noSkips: counts?.skipped === 0 && counts?.todo === 0 && counts?.cancelled === 0,
|
|
29
|
-
records, counts };
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
function caseWitnesses(submitted, original, reference) {
|
|
33
|
-
if (!submitted.completed || !original.completed || !reference.completed) return [];
|
|
34
|
-
const groups = result => {
|
|
35
|
-
const map = new Map();
|
|
36
|
-
for (const row of result.records.filter(row => row.registered && row.leaf && !row.skip && !row.todo)) {
|
|
37
|
-
const key = JSON.stringify([row.file, row.path]);
|
|
38
|
-
map.set(key, [...(map.get(key) ?? []), row]);
|
|
39
|
-
}
|
|
40
|
-
return map;
|
|
41
|
-
};
|
|
42
|
-
const [final, before, upstream] = [submitted, original, reference].map(groups);
|
|
43
|
-
const witnesses = [];
|
|
44
|
-
for (const [key, rows] of final) {
|
|
45
|
-
const old = before.get(key); const ref = upstream.get(key);
|
|
46
|
-
if (rows.length === 1 && old?.length === 1 && ref?.length === 1 && rows[0].pass &&
|
|
47
|
-
!old[0].pass && old[0].failureType === 'testCodeFailure' && ref[0].pass) {
|
|
48
|
-
witnesses.push({ file: rows[0].file, path: rows[0].path });
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
return witnesses;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export function regressionEvidence(run, canonical, reference, source) {
|
|
55
|
-
const candidates = files(run).filter(p => /(?:^|\/)[^/]+\.(?:test|spec)\.mjs$/.test(p) && !existsSync(join(canonical, p)));
|
|
56
|
-
return candidates.map(p => {
|
|
57
|
-
const final = testRun(run, [p]); const restored = mkdtempSync(join(tmpdir(), 'skillfit-lru-regression-'));
|
|
58
|
-
try {
|
|
59
|
-
cpSync(run, restored, { recursive: true, filter: file => !relative(run, file).split(/[\\/]/).some(s => s === '.git' || s.startsWith('_')) && !lstatSync(file).isSymbolicLink() });
|
|
60
|
-
cpSync(join(canonical, source), join(restored, source));
|
|
61
|
-
const original = testRun(restored, [p]);
|
|
62
|
-
cpSync(join(reference, source), join(restored, source));
|
|
63
|
-
const upstream = testRun(restored, [p]);
|
|
64
|
-
const witnesses = caseWitnesses(final, original, upstream);
|
|
65
|
-
const targeted = [];
|
|
66
|
-
// An unrelated test can exhaust the whole original/reference suite's guard. Never use that
|
|
67
|
-
// timeout as evidence: replay a unique candidate alone on all three sides instead.
|
|
68
|
-
if (final.completed && final.passed && final.tests && final.noSkips &&
|
|
69
|
-
(!original.completed || !upstream.completed)) {
|
|
70
|
-
const candidates = final.records.filter(row => row.registered && row.leaf && row.pass && !row.skip && !row.todo);
|
|
71
|
-
// Two targeted candidates keep the whole verifier within its 60-second guard.
|
|
72
|
-
for (const row of candidates.slice(0, 2)) {
|
|
73
|
-
const flat = row.path.join(' ');
|
|
74
|
-
if (candidates.filter(other => other.path.join(' ') === flat).length !== 1) continue;
|
|
75
|
-
const escape = value => value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
76
|
-
const prefixes = row.path.map((_, i) => escape(row.path.slice(0, i + 1).join(' ')));
|
|
77
|
-
const pattern = `^(?:${prefixes.join('|')})$`;
|
|
78
|
-
const submittedCase = testRun(run, [p], pattern);
|
|
79
|
-
cpSync(join(canonical, source), join(restored, source));
|
|
80
|
-
const originalCase = testRun(restored, [p], pattern);
|
|
81
|
-
cpSync(join(reference, source), join(restored, source));
|
|
82
|
-
const referenceCase = testRun(restored, [p], pattern);
|
|
83
|
-
const matched = caseWitnesses(submittedCase, originalCase, referenceCase).filter(w =>
|
|
84
|
-
w.file === row.file && JSON.stringify(w.path) === JSON.stringify(row.path));
|
|
85
|
-
targeted.push({ file: row.file, path: row.path, completed: [submittedCase.completed, originalCase.completed, referenceCase.completed],
|
|
86
|
-
witnesses: matched });
|
|
87
|
-
if (submittedCase.passed && matched.length > 0) { witnesses.push(...matched); break; }
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
return { path: p, finalPassed: final.completed && final.passed && final.tests && final.noSkips,
|
|
91
|
-
originalFailed: original.completed && !original.passed && original.tests && original.noSkips,
|
|
92
|
-
referencePassed: upstream.completed && upstream.passed && upstream.tests && upstream.noSkips,
|
|
93
|
-
caseWitnesses: witnesses, targeted,
|
|
94
|
-
counts: { submitted: final.counts, original: original.counts, reference: upstream.counts } };
|
|
95
|
-
} finally { rmSync(restored, { recursive: true, force: true }); }
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
|