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,7 +0,0 @@
|
|
|
1
|
-
import { resolve } from 'node:path';
|
|
2
|
-
import { applyOracle } from '../../../verifiers/oracle.mjs';
|
|
3
|
-
applyOracle('fetch-size', resolve(process.argv[2]), `
|
|
4
|
-
const jobs = new Map(); const c = new Cache({ maxSize: 10, sizeCalculation: (v, k) => k,
|
|
5
|
-
fetchMethod: key => new Promise(res => jobs.set(key, res)) });
|
|
6
|
-
const ps = [3,4,5].map(k => c.fetch(k)); jobs.get(4)(4); await ps[1]; jobs.get(5)(5); await ps[2]; jobs.get(3)(3); await ps[0];
|
|
7
|
-
assert.equal(c.size, 2); assert.equal(c.calculatedSize, 8); assert.equal(c.has(3), true); assert.equal(c.has(5), true); cleanup();`);
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import assert from 'node:assert/strict';
|
|
2
|
-
|
|
3
|
-
export const turn = () => new Promise(resolve => setImmediate(resolve));
|
|
4
|
-
export function deferred() { let resolve, reject; const promise = new Promise((a, b) => { resolve = a; reject = b; }); return { promise, resolve, reject }; }
|
|
5
|
-
export function tracked(promise) { const state = { settled: false }; Promise.resolve(promise).then(value => Object.assign(state, { settled: true, value }), error => Object.assign(state, { settled: true, error })); return state; }
|
|
6
|
-
function entries(cache) { const it = cache.entries(); const rows = []; for (let i = 0; i < 20; i++) { const row = it.next(); if (row.done) return rows; rows.push(row.value); } throw new Error('iteration did not terminate within bounded cache capacity'); }
|
|
7
|
-
function pendingCache(Cache, extra = {}) { const jobs = new Map(); const signals = new Map(); const cache = new Cache({ max: 2, fetchMethod: (key, old, { signal }) => { const job = deferred(); jobs.set(key, job); signals.set(key, signal); return job.promise; }, ...extra }); return { cache, jobs, signals }; }
|
|
8
|
-
|
|
9
|
-
export function checksFor(id, Cache) {
|
|
10
|
-
const common = [['ordinary LRU and successful async fetch', async () => {
|
|
11
|
-
const c = new Cache({ max: 2, fetchMethod: async key => `${key}!` }); c.set('a', 'A'); c.set('b', 'B');
|
|
12
|
-
assert.equal(c.get('a'), 'A'); c.set('c', 'C'); assert.equal(c.has('b'), false);
|
|
13
|
-
assert.equal(await c.fetch('d'), 'd!'); assert.equal(c.get('d'), 'd!'); assert.equal(c.size, 2);
|
|
14
|
-
}], ['concurrent fetches deduplicate provider work', async () => {
|
|
15
|
-
let calls = 0; const job = deferred(); const c = new Cache({ max: 3, fetchMethod: () => { calls++; return job.promise; } });
|
|
16
|
-
const a = c.fetch('x'); const b = c.fetch('x'); assert.equal(calls, 1); job.resolve('X');
|
|
17
|
-
assert.deepEqual(await Promise.all([a, b]), ['X', 'X']); assert.equal(c.get('x'), 'X');
|
|
18
|
-
}]];
|
|
19
|
-
if (id === 'fetch-size') return [...common,
|
|
20
|
-
['size accounting and LRU order after out-of-order resolution', async () => {
|
|
21
|
-
const jobs = new Map(); const c = new Cache({ maxSize: 10, sizeCalculation: (v, k) => k,
|
|
22
|
-
fetchMethod: key => { const job = deferred(); jobs.set(key, job); return job.promise; } });
|
|
23
|
-
const ps = [3, 4, 5].map(key => c.fetch(key));
|
|
24
|
-
jobs.get(4).resolve(4); await ps[1]; jobs.get(5).resolve(5); await ps[2]; jobs.get(3).resolve(3); await ps[0];
|
|
25
|
-
const rows = entries(c); assert.equal(c.size, 2); assert.deepEqual(rows, [[3, 3], [5, 5]]);
|
|
26
|
-
assert.equal(c.calculatedSize, rows.reduce((sum, [k]) => sum + k, 0)); assert.equal(c.calculatedSize, 8);
|
|
27
|
-
}], ['size-bound ordinary updates preserve newest entry', async () => {
|
|
28
|
-
const c = new Cache({ maxSize: 6, sizeCalculation: value => value }); c.set('a', 2); c.set('b', 3); c.set('a', 4);
|
|
29
|
-
assert.equal(c.get('a'), 4); assert.equal(c.has('b'), false); assert.equal(c.calculatedSize, 4); assert.equal(c.size, 1);
|
|
30
|
-
}]];
|
|
31
|
-
if (id === 'fetch-abort') return [...common,
|
|
32
|
-
...['deleted', 'evicted', 'replaced'].map(reason => [`${reason} pending fetch rejects before provider completion`, async () => {
|
|
33
|
-
const { cache: c, jobs, signals } = pendingCache(Cache); const state = tracked(c.fetch('x'));
|
|
34
|
-
if (reason === 'deleted') c.delete('x');
|
|
35
|
-
else if (reason === 'replaced') c.set('x', 'explicit');
|
|
36
|
-
else { c.set('a', 'A'); c.set('b', 'B'); }
|
|
37
|
-
await turn(); const beforeRelease = { ...state }; const signal = signals.get('x');
|
|
38
|
-
jobs.get('x').resolve('late'); await turn();
|
|
39
|
-
assert.equal(signal.aborted, true); assert.equal(beforeRelease.settled, true, 'must settle independently of provider completion');
|
|
40
|
-
assert.ok(beforeRelease.error instanceof Error); assert.equal(beforeRelease.error, signal.reason);
|
|
41
|
-
assert.equal(state.error, signal.reason);
|
|
42
|
-
if (reason === 'replaced') assert.equal(c.get('x'), 'explicit'); else assert.equal(c.has('x'), false);
|
|
43
|
-
}]), ['stale-on-rejection remains supported', async () => {
|
|
44
|
-
const { cache: c, jobs } = pendingCache(Cache, { allowStaleOnFetchRejection: true }); c.set('x', 'stale');
|
|
45
|
-
const promise = c.fetch('x', { forceRefresh: true }); jobs.get('x').reject(new Error('provider failed'));
|
|
46
|
-
assert.equal(await promise, 'stale'); assert.equal(c.get('x'), 'stale');
|
|
47
|
-
}]];
|
|
48
|
-
if (id === 'fetch-lifecycle') return [...common,
|
|
49
|
-
['onInsert hides placeholder and classifies resolved application values', async () => {
|
|
50
|
-
const inserted = []; const { cache: c, jobs } = pendingCache(Cache, { max: 5, onInsert: (...args) => inserted.push(args) });
|
|
51
|
-
const fresh = c.fetch('new'); assert.deepEqual(inserted, []); jobs.get('new').resolve('N'); await fresh;
|
|
52
|
-
c.set('same', 'S'); const same = c.fetch('same', { forceRefresh: true }); jobs.get('same').resolve('S'); await same;
|
|
53
|
-
c.set('change', 'old'); const changed = c.fetch('change', { forceRefresh: true }); jobs.get('change').resolve('new'); await changed;
|
|
54
|
-
assert.deepEqual(inserted, [['N', 'new', 'add'], ['S', 'same', 'add'], ['S', 'same', 'update'], ['old', 'change', 'add'], ['new', 'change', 'replace']]);
|
|
55
|
-
}], ['refresh eviction disposes stale value once in both callbacks', async () => {
|
|
56
|
-
const disposed = []; const after = []; const { cache: c, jobs } = pendingCache(Cache, { max: 2,
|
|
57
|
-
dispose: (...args) => disposed.push(args), disposeAfter: (...args) => after.push(args) });
|
|
58
|
-
c.set('x', 'stale'); const state = tracked(c.fetch('x', { forceRefresh: true })); c.set('a', 'A'); c.set('b', 'B');
|
|
59
|
-
await turn(); jobs.get('x').resolve('late'); await turn();
|
|
60
|
-
assert.equal(state.error?.message, 'evicted'); assert.deepEqual(disposed, [['stale', 'x', 'evict']]); assert.deepEqual(after, disposed);
|
|
61
|
-
assert.equal(c.has('x'), false);
|
|
62
|
-
}], ['synchronous fetch result settles and is cached', async () => {
|
|
63
|
-
const c = new Cache({ max: 2, fetchMethod: key => `${key}!` }); const state = tracked(c.fetch('x'));
|
|
64
|
-
await turn(); assert.equal(state.settled, true); assert.equal(state.value, 'x!'); assert.equal(c.get('x'), 'x!');
|
|
65
|
-
}], ['own refresh completion does not abort the provider', async () => {
|
|
66
|
-
const { cache: c, jobs, signals } = pendingCache(Cache); c.set('x', 'old'); const p = c.fetch('x', { forceRefresh: true });
|
|
67
|
-
jobs.get('x').resolve('new'); assert.equal(await p, 'new'); assert.equal(signals.get('x').aborted, false);
|
|
68
|
-
}], ['explicit replacement still aborts refresh and retains replacement', async () => {
|
|
69
|
-
const { cache: c, jobs, signals } = pendingCache(Cache); c.set('x', 'old'); const state = tracked(c.fetch('x', { forceRefresh: true }));
|
|
70
|
-
c.set('x', 'explicit'); await turn(); jobs.get('x').resolve('late'); await turn();
|
|
71
|
-
assert.equal(signals.get('x').aborted, true); assert.equal(state.error?.message, 'replaced'); assert.equal(c.get('x'), 'explicit');
|
|
72
|
-
}]];
|
|
73
|
-
throw new Error(`Unknown case: ${id}`);
|
|
74
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { cpSync, writeFileSync } from 'node:fs';
|
|
2
|
-
import { dirname, join } from 'node:path';
|
|
3
|
-
import { fileURLToPath } from 'node:url';
|
|
4
|
-
const here = dirname(fileURLToPath(import.meta.url));
|
|
5
|
-
export function applyOracle(id, root, testBody) {
|
|
6
|
-
const source = id === 'fetch-lifecycle' ? 'src/index.ts' : 'index.js';
|
|
7
|
-
cpSync(join(here, '..', 'tasks', id, 'reference', source), join(root, source));
|
|
8
|
-
writeFileSync(join(root, 'regression.test.mjs'), `import assert from 'node:assert/strict';\nimport { test } from 'node:test';\nimport { loadCache } from './runtime.mjs';\nimport { dirname } from 'node:path';\nimport { fileURLToPath } from 'node:url';\nconst { Cache, cleanup } = await loadCache(dirname(fileURLToPath(import.meta.url)), ${id === 'fetch-lifecycle'});\ntest('historical failure regression', async () => {\n${testBody}\n});\n`);
|
|
9
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { resolve } from 'node:path';
|
|
2
|
-
import { loadCache } from '../runtime.mjs';
|
|
3
|
-
import { checksFor } from './cases.mjs';
|
|
4
|
-
const [id, root] = process.argv.slice(2);
|
|
5
|
-
let loaded; const checks = [];
|
|
6
|
-
try {
|
|
7
|
-
loaded = await loadCache(resolve(root), id === 'fetch-lifecycle');
|
|
8
|
-
for (const [name, body] of checksFor(id, loaded.Cache)) {
|
|
9
|
-
try { await body(); checks.push({ name, pass: true }); }
|
|
10
|
-
catch (error) { checks.push({ name, pass: false, detail: String(error.message).slice(0, 400) }); }
|
|
11
|
-
}
|
|
12
|
-
console.log(JSON.stringify({ checks }));
|
|
13
|
-
} catch (error) { console.log(JSON.stringify({ error: String(error.message).slice(0, 400) })); }
|
|
14
|
-
finally { loaded?.cleanup(); }
|
|
@@ -1,131 +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
|
-
import { checksFor } from './cases.mjs';
|
|
8
|
-
|
|
9
|
-
const bench = resolve(dirname(fileURLToPath(import.meta.url)), '..');
|
|
10
|
-
function files(root, rel = '') { return readdirSync(join(root, rel), { withFileTypes: true }).flatMap(entry => {
|
|
11
|
-
if (entry.name === '.git' || entry.name.startsWith('_')) return [];
|
|
12
|
-
const child = rel ? `${rel}/${entry.name}` : entry.name;
|
|
13
|
-
if (entry.isSymbolicLink()) return [];
|
|
14
|
-
return entry.isDirectory() ? files(root, child) : entry.isFile() ? [child] : [];
|
|
15
|
-
}); }
|
|
16
|
-
export function testRun(root, tests, pattern) {
|
|
17
|
-
const env = { ...process.env }; delete env.NODE_TEST_CONTEXT;
|
|
18
|
-
const reporter = pathToFileURL(join(bench, 'verifiers/test-reporter.mjs')).href;
|
|
19
|
-
const result = spawnSync(process.execPath, ['--test', `--test-reporter=${reporter}`,
|
|
20
|
-
...(pattern ? [`--test-name-pattern=${pattern}`] : []), ...tests], { cwd: root, encoding: 'utf8', timeout: 5000, env });
|
|
21
|
-
let evidence;
|
|
22
|
-
try { evidence = JSON.parse(result.stdout.trim()); } catch { evidence = null; }
|
|
23
|
-
if (evidence?.schemaVersion !== 1 || evidence?.kind !== 'node-test-evidence' || !evidence?.summary || !Array.isArray(evidence?.records)) evidence = null;
|
|
24
|
-
const counts = evidence?.summary?.counts;
|
|
25
|
-
const records = evidence?.records ?? [];
|
|
26
|
-
return { completed: !result.error && result.signal == null && typeof result.status === 'number',
|
|
27
|
-
passed: result.status === 0 && evidence?.summary?.success === true,
|
|
28
|
-
tests: counts?.tests > 0 && records.some(row => row.registered && row.leaf),
|
|
29
|
-
noSkips: counts?.skipped === 0 && counts?.todo === 0 && counts?.cancelled === 0,
|
|
30
|
-
records, counts };
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function caseWitnesses(submitted, original, reference) {
|
|
34
|
-
if (!submitted.completed || !original.completed || !reference.completed) return [];
|
|
35
|
-
const groups = result => {
|
|
36
|
-
const map = new Map();
|
|
37
|
-
for (const row of result.records.filter(row => row.registered && row.leaf && !row.skip && !row.todo)) {
|
|
38
|
-
const key = JSON.stringify([row.file, row.path]);
|
|
39
|
-
map.set(key, [...(map.get(key) ?? []), row]);
|
|
40
|
-
}
|
|
41
|
-
return map;
|
|
42
|
-
};
|
|
43
|
-
const [final, before, upstream] = [submitted, original, reference].map(groups);
|
|
44
|
-
const witnesses = [];
|
|
45
|
-
for (const [key, rows] of final) {
|
|
46
|
-
const old = before.get(key); const ref = upstream.get(key);
|
|
47
|
-
if (rows.length === 1 && old?.length === 1 && ref?.length === 1 && rows[0].pass &&
|
|
48
|
-
!old[0].pass && old[0].failureType === 'testCodeFailure' && ref[0].pass) {
|
|
49
|
-
witnesses.push({ file: rows[0].file, path: rows[0].path });
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
return witnesses;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export function regressionEvidence(run, canonical, reference, source) {
|
|
56
|
-
const candidates = files(run).filter(p => /(?:^|\/)[^/]+\.(?:test|spec)\.mjs$/.test(p) && !existsSync(join(canonical, p)));
|
|
57
|
-
return candidates.map(p => {
|
|
58
|
-
const final = testRun(run, [p]); const restored = mkdtempSync(join(tmpdir(), 'skillfit-lru-regression-'));
|
|
59
|
-
try {
|
|
60
|
-
cpSync(run, restored, { recursive: true, filter: file => !relative(run, file).split(/[\\/]/).some(s => s === '.git' || s.startsWith('_')) && !lstatSync(file).isSymbolicLink() });
|
|
61
|
-
cpSync(join(canonical, source), join(restored, source));
|
|
62
|
-
const original = testRun(restored, [p]);
|
|
63
|
-
cpSync(join(reference, source), join(restored, source));
|
|
64
|
-
const upstream = testRun(restored, [p]);
|
|
65
|
-
const witnesses = caseWitnesses(final, original, upstream);
|
|
66
|
-
const targeted = [];
|
|
67
|
-
// An unrelated test can exhaust the whole original/reference suite's guard. Never use that
|
|
68
|
-
// timeout as evidence: replay a unique candidate alone on all three sides instead.
|
|
69
|
-
if (final.completed && final.passed && final.tests && final.noSkips &&
|
|
70
|
-
(!original.completed || !upstream.completed)) {
|
|
71
|
-
const candidates = final.records.filter(row => row.registered && row.leaf && row.pass && !row.skip && !row.todo);
|
|
72
|
-
// Two targeted candidates keep the whole verifier within its 60-second guard.
|
|
73
|
-
for (const row of candidates.slice(0, 2)) {
|
|
74
|
-
const flat = row.path.join(' ');
|
|
75
|
-
if (candidates.filter(other => other.path.join(' ') === flat).length !== 1) continue;
|
|
76
|
-
const escape = value => value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
77
|
-
const prefixes = row.path.map((_, i) => escape(row.path.slice(0, i + 1).join(' ')));
|
|
78
|
-
const pattern = `^(?:${prefixes.join('|')})$`;
|
|
79
|
-
const submittedCase = testRun(run, [p], pattern);
|
|
80
|
-
cpSync(join(canonical, source), join(restored, source));
|
|
81
|
-
const originalCase = testRun(restored, [p], pattern);
|
|
82
|
-
cpSync(join(reference, source), join(restored, source));
|
|
83
|
-
const referenceCase = testRun(restored, [p], pattern);
|
|
84
|
-
const matched = caseWitnesses(submittedCase, originalCase, referenceCase).filter(w =>
|
|
85
|
-
w.file === row.file && JSON.stringify(w.path) === JSON.stringify(row.path));
|
|
86
|
-
targeted.push({ file: row.file, path: row.path, completed: [submittedCase.completed, originalCase.completed, referenceCase.completed],
|
|
87
|
-
witnesses: matched });
|
|
88
|
-
if (submittedCase.passed && matched.length > 0) { witnesses.push(...matched); break; }
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
return { path: p, finalPassed: final.completed && final.passed && final.tests && final.noSkips,
|
|
92
|
-
originalFailed: original.completed && !original.passed && original.tests && original.noSkips,
|
|
93
|
-
referencePassed: upstream.completed && upstream.passed && upstream.tests && upstream.noSkips,
|
|
94
|
-
caseWitnesses: witnesses, targeted,
|
|
95
|
-
counts: { submitted: final.counts, original: original.counts, reference: upstream.counts } };
|
|
96
|
-
} finally { rmSync(restored, { recursive: true, force: true }); }
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export async function grade(id, run) {
|
|
101
|
-
const canonical = join(bench, 'tasks', id, 'fixture'); const source = id === 'fetch-lifecycle' ? 'src/index.ts' : 'index.js';
|
|
102
|
-
const checks = [];
|
|
103
|
-
const check = async (name, body) => { try { await body(); checks.push({ name, pass: true }); }
|
|
104
|
-
catch (error) { checks.push({ name, pass: false, detail: String(error.message).slice(0, 400) }); } };
|
|
105
|
-
await check('existing assets unchanged and smoke tests pass', () => {
|
|
106
|
-
for (const p of files(canonical).filter(p => p !== source)) {
|
|
107
|
-
assert.equal(lstatSync(join(run, p)).isSymbolicLink(), false); assert.deepEqual(readFileSync(join(run, p)), readFileSync(join(canonical, p)));
|
|
108
|
-
}
|
|
109
|
-
assert.equal(lstatSync(join(run, source)).isSymbolicLink(), false);
|
|
110
|
-
const smoke = testRun(run, ['test.mjs']); assert.equal(smoke.completed && smoke.passed && smoke.tests && smoke.noSkips, true);
|
|
111
|
-
});
|
|
112
|
-
try {
|
|
113
|
-
// Grade in a subprocess: an implementation that exits early cannot exit this grader with 0.
|
|
114
|
-
const result = spawnSync(process.execPath, [join(bench, 'verifiers/probe.mjs'), id, run], { encoding: 'utf8', timeout: 5000 });
|
|
115
|
-
assert.equal(result.error == null && result.signal == null && result.status === 0, true, 'runtime probe did not complete');
|
|
116
|
-
const summary = JSON.parse((result.stdout ?? '').trim().split('\n').at(-1));
|
|
117
|
-
assert.equal(summary.error, undefined, summary.error);
|
|
118
|
-
const names = checksFor(id, undefined).map(([name]) => name);
|
|
119
|
-
assert.deepEqual(summary.checks?.map(c => c.name), names, 'runtime probe omitted checks');
|
|
120
|
-
assert.ok(summary.checks.every(c => typeof c.pass === 'boolean'));
|
|
121
|
-
checks.push(...summary.checks);
|
|
122
|
-
} catch (error) { checks.push({ name: 'runtime probe completeness', pass: false, detail: error.message }); }
|
|
123
|
-
let evidence = [];
|
|
124
|
-
await check('new regression has submission-pass/original-fail/reference-pass test-case evidence', () => {
|
|
125
|
-
evidence = regressionEvidence(run, canonical, join(bench, 'tasks', id, 'reference'), source);
|
|
126
|
-
assert.ok(evidence.length > 0 && evidence.every(row => row.finalPassed) && evidence.some(row => row.caseWitnesses.length > 0));
|
|
127
|
-
});
|
|
128
|
-
const count = checks.filter(c => c.pass).length; const passed = count === checks.length;
|
|
129
|
-
console.log(JSON.stringify({ score: count / checks.length, passed, checks, evidence }));
|
|
130
|
-
return passed;
|
|
131
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { isAbsolute, relative, sep } from 'node:path';
|
|
2
|
-
|
|
3
|
-
// Node delivers start/pass/fail in declaration order. Child stdout is a separate event and ignored.
|
|
4
|
-
export default async function* report(source) {
|
|
5
|
-
const frames = []; const records = []; let summary = null;
|
|
6
|
-
for await (const event of source) {
|
|
7
|
-
const data = event.data;
|
|
8
|
-
if (event.type === 'test:start') {
|
|
9
|
-
if (!Number.isInteger(data.nesting) || data.nesting < 0) continue;
|
|
10
|
-
if (data.nesting > 0 && frames[data.nesting - 1]) frames[data.nesting - 1].hasChildren = true;
|
|
11
|
-
frames.length = data.nesting;
|
|
12
|
-
frames.push({ name: data.name, hasChildren: false });
|
|
13
|
-
} else if (event.type === 'test:pass' || event.type === 'test:fail') {
|
|
14
|
-
const frame = frames[data.nesting];
|
|
15
|
-
const file = typeof data.file === 'string' ? relative(process.cwd(), data.file).split(sep).join('/') : null;
|
|
16
|
-
// A process that exits without declaring tests gets a synthetic root named after its file.
|
|
17
|
-
const fileWrapper = data.nesting === 0 && (data.name === data.file || data.name === file);
|
|
18
|
-
const registered = !fileWrapper && file !== null && file !== '..' && !file.startsWith('../') && !isAbsolute(file) &&
|
|
19
|
-
Number.isInteger(data.line) && data.line > 0 && frame?.name === data.name &&
|
|
20
|
-
frames.slice(0, data.nesting).every(parent => typeof parent.name === 'string');
|
|
21
|
-
records.push({ file, path: [...frames.slice(0, data.nesting).map(parent => parent.name), data.name],
|
|
22
|
-
// Node 22 omits details.type for ordinary tests; explicit suites still carry 'suite'.
|
|
23
|
-
registered, leaf: data.details?.type !== 'suite' && !frame?.hasChildren,
|
|
24
|
-
pass: event.type === 'test:pass', skip: !!data.skip, todo: !!data.todo,
|
|
25
|
-
failureType: data.details?.error?.failureType ?? null });
|
|
26
|
-
} else if (event.type === 'test:summary' && data.file === undefined) summary = data;
|
|
27
|
-
}
|
|
28
|
-
yield JSON.stringify({ schemaVersion: 1, kind: 'node-test-evidence', summary, records }) + '\n';
|
|
29
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 pietrozullo
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
<a id="real-oss-workflow-example-mcp-use-html-resource-utf-8"></a>
|
|
2
|
-
|
|
3
|
-
# MCP HTML resource UTF-8 defect
|
|
4
|
-
|
|
5
|
-
The `view-utf8` task reproduces a base64 HTML decoding defect in mcp-use.
|
|
6
|
-
It is a small workflow/regression example; passing offline gates does not prove
|
|
7
|
-
model difficulty or Skill benefit. Inputs live under `tasks/view-utf8/`;
|
|
8
|
-
`bench.json` owns the executed paths.
|
|
9
|
-
|
|
10
|
-
## Source and adaptation
|
|
11
|
-
|
|
12
|
-
- Repository: [`mcp-use/mcp-use`](https://github.com/mcp-use/mcp-use).
|
|
13
|
-
- Pre-fix commit: `d90a070615a910b96eaf65f65f9eb4cad0123a90`.
|
|
14
|
-
- Original path: `libraries/typescript/packages/client/src/react/view/resolve-view-resource.ts`.
|
|
15
|
-
- Original Git blob: `160f426753aaac5bd89bc4c01564b8d975c1815b`. The fixture's
|
|
16
|
-
`src/resolve-view-resource.ts` retains those exact bytes.
|
|
17
|
-
- Upstream MIT notice is retained in `LICENSE.upstream` and the fixture `LICENSE`.
|
|
18
|
-
- `ext-apps-bridge.js` replaces the external runtime import with its MIME constant.
|
|
19
|
-
Type-only dependencies are erased by Node's built-in TypeScript stripping.
|
|
20
|
-
The fixture does not exercise React rendering, the full package or its build.
|
|
21
|
-
- The prompt, visible sanity test, verifier and reference repair were authored for
|
|
22
|
-
this replay. The reference is not represented as an upstream merged patch.
|
|
23
|
-
- Requires Node **22.6+** for `--experimental-strip-types`; no installed package,
|
|
24
|
-
network, model or agent is needed for the offline gate.
|
|
25
|
-
|
|
26
|
-
## Request-to-check contract
|
|
27
|
-
|
|
28
|
-
The request names the Unicode blob symptom, existing behaviors to preserve, and
|
|
29
|
-
an executable retained regression. It does not disclose the repair. Eight checks
|
|
30
|
-
grade observable results, including tests that are rerun on the original source:
|
|
31
|
-
|
|
32
|
-
| Request requirement | Hidden check |
|
|
33
|
-
|---|---|
|
|
34
|
-
| Repair Chinese text/emoji in base64 HTML | Unicode blob round-trip |
|
|
35
|
-
| Preserve existing blob behavior | ASCII blob unchanged |
|
|
36
|
-
| Preserve text handling | text content takes precedence |
|
|
37
|
-
| Preserve CSP and permission metadata | content-level metadata merges over listing |
|
|
38
|
-
| Preserve permissive CSP behavior | permissive CSP stays unenforced |
|
|
39
|
-
| Preserve MIME validation and missing-content behavior | MIME validation and missing-content behavior |
|
|
40
|
-
| Repair and retain executable tests | final test suite passes |
|
|
41
|
-
| Regression catches the original reported defect | regression test is red on original source |
|
|
42
|
-
|
|
43
|
-
The checker does not grade debugging narration, the order of edits or whether a
|
|
44
|
-
particular algorithm was used. The eight checks are frozen by the bench hash.
|
|
45
|
-
This adapted fixture narrows the claim to this function and its local tests.
|
|
46
|
-
|
|
47
|
-
## Replay from a built skillfit checkout
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
node dist/cli.js bench check benches/contrib/oss-mcp-use-utf8
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
This checks the untouched and reference-repaired fixtures without model calls.
|
|
54
|
-
Use [bench authoring](../../../docs/guides/bench-authoring.md) and the
|
|
55
|
-
[evaluation workflow](../../../docs/guides/experiment-workflow.md) to prepare a
|
|
56
|
-
separately authorized comparison with your own pinned Skill. Saved results use
|
|
57
|
-
report/export and their sealed inputs; this source dataset is not a result archive.
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": 1,
|
|
3
|
-
"name": "oss-mcp-use-view-utf8",
|
|
4
|
-
"description": "Pinned real mcp-use UTF-8 defect, with an offline runtime stub and a locally authored reference repair. Reproducible workflow/regression example; not a discriminative efficacy benchmark.",
|
|
5
|
-
"tasks": [
|
|
6
|
-
{
|
|
7
|
-
"id": "view-utf8",
|
|
8
|
-
"fixture": "tasks/view-utf8/fixture",
|
|
9
|
-
"prompt": "tasks/view-utf8/prompt.md",
|
|
10
|
-
"verifier": "node --experimental-strip-types tasks/view-utf8/verify.mjs",
|
|
11
|
-
"verifierKind": "command",
|
|
12
|
-
"oracle": "node tasks/view-utf8/reference/oracle.mjs",
|
|
13
|
-
"shouldTrigger": true
|
|
14
|
-
}
|
|
15
|
-
]
|
|
16
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 pietrozullo
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
package/benches/contrib/oss-mcp-use-utf8/tasks/view-utf8/fixture/src/resolve-view-resource.ts
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { RESOURCE_MIME_TYPE } from "./ext-apps-bridge.js";
|
|
2
|
-
import type {
|
|
3
|
-
McpUiResourceCsp,
|
|
4
|
-
McpUiResourcePermissions,
|
|
5
|
-
} from "./ext-apps-bridge.js";
|
|
6
|
-
import type { ResolvedViewResource, ViewCspMode } from "./types.js";
|
|
7
|
-
|
|
8
|
-
/** MCP App UI metadata read from a resource listing or content block. */
|
|
9
|
-
type UiMeta = {
|
|
10
|
-
csp?: McpUiResourceCsp;
|
|
11
|
-
permissions?: McpUiResourcePermissions;
|
|
12
|
-
prefersBorder?: boolean;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Normalizes a resource response into HTML and effective MCP App policy.
|
|
17
|
-
*
|
|
18
|
-
* Content-level UI metadata overrides listing metadata. In permissive mode the
|
|
19
|
-
* declared CSP is reported but not enforced.
|
|
20
|
-
*
|
|
21
|
-
* @param options - Resource response, listing metadata, CSP policy, and URI.
|
|
22
|
-
* @returns The normalized view resource.
|
|
23
|
-
* @throws When the first content block contains no text or base64 HTML.
|
|
24
|
-
*/
|
|
25
|
-
export function resolveViewResource(options: {
|
|
26
|
-
resourceResult: unknown;
|
|
27
|
-
listingResource?: { _meta?: { ui?: unknown } } | null;
|
|
28
|
-
cspMode: ViewCspMode;
|
|
29
|
-
resourceUri?: string;
|
|
30
|
-
}): ResolvedViewResource {
|
|
31
|
-
const { resourceResult, listingResource, cspMode, resourceUri } = options;
|
|
32
|
-
const contentsArray = Array.isArray(
|
|
33
|
-
(resourceResult as { contents?: unknown })?.contents
|
|
34
|
-
)
|
|
35
|
-
? ((resourceResult as { contents: unknown[] }).contents as Array<{
|
|
36
|
-
mimeType?: string;
|
|
37
|
-
text?: string;
|
|
38
|
-
blob?: string;
|
|
39
|
-
_meta?: { ui?: UiMeta };
|
|
40
|
-
}>)
|
|
41
|
-
: [];
|
|
42
|
-
|
|
43
|
-
const firstContent = contentsArray[0];
|
|
44
|
-
let htmlContent = "";
|
|
45
|
-
let mimeType: string | undefined;
|
|
46
|
-
|
|
47
|
-
if (firstContent) {
|
|
48
|
-
mimeType = firstContent.mimeType;
|
|
49
|
-
if (typeof firstContent.text === "string") {
|
|
50
|
-
htmlContent = firstContent.text;
|
|
51
|
-
} else if (typeof firstContent.blob === "string") {
|
|
52
|
-
htmlContent = atob(firstContent.blob);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
if (!htmlContent) {
|
|
57
|
-
throw new Error("No HTML content in resource");
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
const listingUiMeta = listingResource?._meta?.ui as UiMeta | undefined;
|
|
61
|
-
const contentUiMeta = firstContent?._meta?.ui as UiMeta | undefined;
|
|
62
|
-
const mergedUiMeta =
|
|
63
|
-
listingUiMeta || contentUiMeta
|
|
64
|
-
? { ...listingUiMeta, ...contentUiMeta }
|
|
65
|
-
: undefined;
|
|
66
|
-
|
|
67
|
-
const declaredCsp = mergedUiMeta?.csp;
|
|
68
|
-
const permissions = mergedUiMeta?.permissions;
|
|
69
|
-
const prefersBorder = mergedUiMeta?.prefersBorder ?? false;
|
|
70
|
-
|
|
71
|
-
const mimeTypeValid = mimeType === RESOURCE_MIME_TYPE;
|
|
72
|
-
const mimeTypeWarning = !mimeTypeValid
|
|
73
|
-
? mimeType
|
|
74
|
-
? `Invalid MIME type "${mimeType}" - SEP-1865 requires "${RESOURCE_MIME_TYPE}"`
|
|
75
|
-
: `Missing MIME type - SEP-1865 requires "${RESOURCE_MIME_TYPE}"`
|
|
76
|
-
: null;
|
|
77
|
-
|
|
78
|
-
if (mimeTypeWarning) {
|
|
79
|
-
console.warn("[ViewRenderer] MIME type validation:", mimeTypeWarning, {
|
|
80
|
-
resourceUri,
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
const isPermissive = cspMode === "permissive";
|
|
85
|
-
|
|
86
|
-
return {
|
|
87
|
-
html: htmlContent,
|
|
88
|
-
declaredCsp,
|
|
89
|
-
csp: isPermissive ? undefined : declaredCsp,
|
|
90
|
-
permissions,
|
|
91
|
-
prefersBorder,
|
|
92
|
-
mimeType,
|
|
93
|
-
mimeTypeValid,
|
|
94
|
-
mimeTypeWarning,
|
|
95
|
-
};
|
|
96
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import test from 'node:test';
|
|
2
|
-
import assert from 'node:assert/strict';
|
|
3
|
-
import { resolveViewResource } from '../src/resolve-view-resource.ts';
|
|
4
|
-
import { RESOURCE_MIME_TYPE } from '../src/ext-apps-bridge.js';
|
|
5
|
-
|
|
6
|
-
test('uses text content when present', () => {
|
|
7
|
-
const result = resolveViewResource({
|
|
8
|
-
resourceResult: { contents: [{ mimeType: RESOURCE_MIME_TYPE, text: '<p>Hello</p>' }] },
|
|
9
|
-
cspMode: 'permissive',
|
|
10
|
-
});
|
|
11
|
-
assert.equal(result.html, '<p>Hello</p>');
|
|
12
|
-
assert.equal(result.mimeTypeValid, true);
|
|
13
|
-
});
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
# Task: fix garbled Unicode in MCP App HTML resources
|
|
2
|
-
|
|
3
|
-
Users report that an MCP App view renders Chinese text and emoji incorrectly when its HTML arrives as a base64 `blob`. The same HTML works when supplied as `text`. This fixture contains the relevant `resolveViewResource` implementation from a real pre-fix mcp-use revision, with the external MIME constant stubbed locally.
|
|
4
|
-
|
|
5
|
-
Reproduce the reported behavior with an executable regression test, repair the implementation, and keep the regression test. Preserve existing text handling, CSP and permission metadata, MIME validation, and missing-content behavior. Use Node built-ins only. Work entirely in this local snapshot; do not access the network or an upstream checkout.
|
|
6
|
-
|
|
7
|
-
Run the tests with `node --experimental-strip-types --test`. Keep tests in `test/*.test.mjs`.
|
|
8
|
-
The retained regression must pass after the repair and fail if the original implementation is restored.
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
# Provenance
|
|
2
|
-
|
|
3
|
-
The fixture's `resolve-view-resource.ts` comes from the public `mcp-use/mcp-use` repository at commit `d90a070615a910b96eaf65f65f9eb4cad0123a90`, path `libraries/typescript/packages/client/src/react/view/resolve-view-resource.ts` (Git blob `160f426753aaac5bd89bc4c01564b8d975c1815b`). Its sole runtime import is stubbed with the original MIME constant; the rest of the fixture and hidden verifier were built for this local experiment. No new PR is required or created.
|
|
4
|
-
|
|
5
|
-
The prompt is derived from the historical Unicode-in-blob bug. It withholds the exact source change and the hidden test cases.
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { cpSync } from 'node:fs';
|
|
2
|
-
import { dirname, join } from 'node:path';
|
|
3
|
-
import { fileURLToPath } from 'node:url';
|
|
4
|
-
|
|
5
|
-
const runDir = process.argv[2];
|
|
6
|
-
if (!runDir) {
|
|
7
|
-
console.error('usage: node oracle-view-utf8.mjs <run-dir>');
|
|
8
|
-
process.exit(2);
|
|
9
|
-
}
|
|
10
|
-
const here = dirname(fileURLToPath(import.meta.url));
|
|
11
|
-
cpSync(join(here, 'solutions', 'view-utf8'), runDir, { recursive: true });
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { RESOURCE_MIME_TYPE } from "./ext-apps-bridge.js";
|
|
2
|
-
import type {
|
|
3
|
-
McpUiResourceCsp,
|
|
4
|
-
McpUiResourcePermissions,
|
|
5
|
-
} from "./ext-apps-bridge.js";
|
|
6
|
-
import type { ResolvedViewResource, ViewCspMode } from "./types.js";
|
|
7
|
-
|
|
8
|
-
/** MCP App UI metadata read from a resource listing or content block. */
|
|
9
|
-
type UiMeta = {
|
|
10
|
-
csp?: McpUiResourceCsp;
|
|
11
|
-
permissions?: McpUiResourcePermissions;
|
|
12
|
-
prefersBorder?: boolean;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Normalizes a resource response into HTML and effective MCP App policy.
|
|
17
|
-
*
|
|
18
|
-
* Content-level UI metadata overrides listing metadata. In permissive mode the
|
|
19
|
-
* declared CSP is reported but not enforced.
|
|
20
|
-
*
|
|
21
|
-
* @param options - Resource response, listing metadata, CSP policy, and URI.
|
|
22
|
-
* @returns The normalized view resource.
|
|
23
|
-
* @throws When the first content block contains no text or base64 HTML.
|
|
24
|
-
*/
|
|
25
|
-
export function resolveViewResource(options: {
|
|
26
|
-
resourceResult: unknown;
|
|
27
|
-
listingResource?: { _meta?: { ui?: unknown } } | null;
|
|
28
|
-
cspMode: ViewCspMode;
|
|
29
|
-
resourceUri?: string;
|
|
30
|
-
}): ResolvedViewResource {
|
|
31
|
-
const { resourceResult, listingResource, cspMode, resourceUri } = options;
|
|
32
|
-
const contentsArray = Array.isArray(
|
|
33
|
-
(resourceResult as { contents?: unknown })?.contents
|
|
34
|
-
)
|
|
35
|
-
? ((resourceResult as { contents: unknown[] }).contents as Array<{
|
|
36
|
-
mimeType?: string;
|
|
37
|
-
text?: string;
|
|
38
|
-
blob?: string;
|
|
39
|
-
_meta?: { ui?: UiMeta };
|
|
40
|
-
}>)
|
|
41
|
-
: [];
|
|
42
|
-
|
|
43
|
-
const firstContent = contentsArray[0];
|
|
44
|
-
let htmlContent = "";
|
|
45
|
-
let mimeType: string | undefined;
|
|
46
|
-
|
|
47
|
-
if (firstContent) {
|
|
48
|
-
mimeType = firstContent.mimeType;
|
|
49
|
-
if (typeof firstContent.text === "string") {
|
|
50
|
-
htmlContent = firstContent.text;
|
|
51
|
-
} else if (typeof firstContent.blob === "string") {
|
|
52
|
-
htmlContent = new TextDecoder().decode(Uint8Array.from(atob(firstContent.blob), (char) => char.charCodeAt(0)));
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
if (!htmlContent) {
|
|
57
|
-
throw new Error("No HTML content in resource");
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
const listingUiMeta = listingResource?._meta?.ui as UiMeta | undefined;
|
|
61
|
-
const contentUiMeta = firstContent?._meta?.ui as UiMeta | undefined;
|
|
62
|
-
const mergedUiMeta =
|
|
63
|
-
listingUiMeta || contentUiMeta
|
|
64
|
-
? { ...listingUiMeta, ...contentUiMeta }
|
|
65
|
-
: undefined;
|
|
66
|
-
|
|
67
|
-
const declaredCsp = mergedUiMeta?.csp;
|
|
68
|
-
const permissions = mergedUiMeta?.permissions;
|
|
69
|
-
const prefersBorder = mergedUiMeta?.prefersBorder ?? false;
|
|
70
|
-
|
|
71
|
-
const mimeTypeValid = mimeType === RESOURCE_MIME_TYPE;
|
|
72
|
-
const mimeTypeWarning = !mimeTypeValid
|
|
73
|
-
? mimeType
|
|
74
|
-
? `Invalid MIME type "${mimeType}" - SEP-1865 requires "${RESOURCE_MIME_TYPE}"`
|
|
75
|
-
: `Missing MIME type - SEP-1865 requires "${RESOURCE_MIME_TYPE}"`
|
|
76
|
-
: null;
|
|
77
|
-
|
|
78
|
-
if (mimeTypeWarning) {
|
|
79
|
-
console.warn("[ViewRenderer] MIME type validation:", mimeTypeWarning, {
|
|
80
|
-
resourceUri,
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
const isPermissive = cspMode === "permissive";
|
|
85
|
-
|
|
86
|
-
return {
|
|
87
|
-
html: htmlContent,
|
|
88
|
-
declaredCsp,
|
|
89
|
-
csp: isPermissive ? undefined : declaredCsp,
|
|
90
|
-
permissions,
|
|
91
|
-
prefersBorder,
|
|
92
|
-
mimeType,
|
|
93
|
-
mimeTypeValid,
|
|
94
|
-
mimeTypeWarning,
|
|
95
|
-
};
|
|
96
|
-
}
|