skillfit 0.15.0 → 0.15.2
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 +58 -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 +190 -90
- 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,427 +0,0 @@
|
|
|
1
|
-
import test from 'ava';
|
|
2
|
-
import normalizeUrl from './index.js';
|
|
3
|
-
|
|
4
|
-
test('main', t => {
|
|
5
|
-
t.is(normalizeUrl('sindresorhus.com'), 'http://sindresorhus.com');
|
|
6
|
-
t.is(normalizeUrl('sindresorhus.com '), 'http://sindresorhus.com');
|
|
7
|
-
t.is(normalizeUrl('sindresorhus.com.'), 'http://sindresorhus.com');
|
|
8
|
-
t.is(normalizeUrl('SindreSorhus.com'), 'http://sindresorhus.com');
|
|
9
|
-
t.is(normalizeUrl('HTTP://sindresorhus.com'), 'http://sindresorhus.com');
|
|
10
|
-
t.is(normalizeUrl('//sindresorhus.com'), 'http://sindresorhus.com');
|
|
11
|
-
t.is(normalizeUrl('http://sindresorhus.com'), 'http://sindresorhus.com');
|
|
12
|
-
t.is(normalizeUrl('http://sindresorhus.com:80'), 'http://sindresorhus.com');
|
|
13
|
-
t.is(normalizeUrl('https://sindresorhus.com:443'), 'https://sindresorhus.com');
|
|
14
|
-
t.is(normalizeUrl('http://www.sindresorhus.com'), 'http://sindresorhus.com');
|
|
15
|
-
t.is(normalizeUrl('www.com'), 'http://www.com');
|
|
16
|
-
t.is(normalizeUrl('http://www.www.sindresorhus.com'), 'http://www.www.sindresorhus.com');
|
|
17
|
-
t.is(normalizeUrl('www.sindresorhus.com'), 'http://sindresorhus.com');
|
|
18
|
-
t.is(normalizeUrl('http://sindresorhus.com/foo/'), 'http://sindresorhus.com/foo');
|
|
19
|
-
t.is(normalizeUrl('sindresorhus.com/?foo=bar baz'), 'http://sindresorhus.com/?foo=bar+baz');
|
|
20
|
-
t.is(normalizeUrl('https://foo.com/https://bar.com'), 'https://foo.com/https://bar.com');
|
|
21
|
-
t.is(normalizeUrl('https://foo.com/https://bar.com/foo//bar'), 'https://foo.com/https://bar.com/foo/bar');
|
|
22
|
-
t.is(normalizeUrl('https://foo.com/http://bar.com'), 'https://foo.com/http://bar.com');
|
|
23
|
-
t.is(normalizeUrl('https://foo.com/http://bar.com/foo//bar'), 'https://foo.com/http://bar.com/foo/bar');
|
|
24
|
-
t.is(normalizeUrl('http://sindresorhus.com/%7Efoo/'), 'http://sindresorhus.com/~foo', 'decode URI octets');
|
|
25
|
-
t.is(normalizeUrl('https://foo.com/%FAIL%/07/94/ca/55.jpg'), 'https://foo.com/%FAIL%/07/94/ca/55.jpg');
|
|
26
|
-
t.is(normalizeUrl('http://sindresorhus.com/?'), 'http://sindresorhus.com');
|
|
27
|
-
t.is(normalizeUrl('êxample.com'), 'http://xn--xample-hva.com');
|
|
28
|
-
t.is(normalizeUrl('http://sindresorhus.com/?b=bar&a=foo'), 'http://sindresorhus.com/?a=foo&b=bar');
|
|
29
|
-
t.is(normalizeUrl('http://sindresorhus.com/?foo=bar*|<>:"'), 'http://sindresorhus.com/?foo=bar*|%3C%3E:%22');
|
|
30
|
-
t.is(normalizeUrl('http://sindresorhus.com:5000'), 'http://sindresorhus.com:5000');
|
|
31
|
-
t.is(normalizeUrl('//sindresorhus.com/', {normalizeProtocol: false}), '//sindresorhus.com');
|
|
32
|
-
t.is(normalizeUrl('//sindresorhus.com:80/', {normalizeProtocol: false}), '//sindresorhus.com');
|
|
33
|
-
t.is(normalizeUrl('http://sindresorhus.com/foo#bar'), 'http://sindresorhus.com/foo#bar');
|
|
34
|
-
t.is(normalizeUrl('http://sindresorhus.com/foo#bar', {stripHash: true}), 'http://sindresorhus.com/foo');
|
|
35
|
-
t.is(normalizeUrl('http://sindresorhus.com/foo#bar:~:text=hello%20world', {stripHash: true}), 'http://sindresorhus.com/foo');
|
|
36
|
-
t.is(normalizeUrl('http://sindresorhus.com/foo/bar/../baz'), 'http://sindresorhus.com/foo/baz');
|
|
37
|
-
t.is(normalizeUrl('http://sindresorhus.com/foo/bar/./baz'), 'http://sindresorhus.com/foo/bar/baz');
|
|
38
|
-
// t.is(normalizeUrl('sindre://www.sorhus.com'), 'sindre://sorhus.com');
|
|
39
|
-
// t.is(normalizeUrl('sindre://www.sorhus.com/'), 'sindre://sorhus.com');
|
|
40
|
-
// t.is(normalizeUrl('sindre://www.sorhus.com/foo/bar'), 'sindre://sorhus.com/foo/bar');
|
|
41
|
-
t.is(normalizeUrl('https://i.vimeocdn.com/filter/overlay?src0=https://i.vimeocdn.com/video/598160082_1280x720.jpg&src1=https://f.vimeocdn.com/images_v6/share/play_icon_overlay.png'), 'https://i.vimeocdn.com/filter/overlay?src0=https://i.vimeocdn.com/video/598160082_1280x720.jpg&src1=https://f.vimeocdn.com/images_v6/share/play_icon_overlay.png');
|
|
42
|
-
t.is(normalizeUrl('sindresorhus.com:123'), 'http://sindresorhus.com:123');
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
test('defaultProtocol option', t => {
|
|
46
|
-
t.is(normalizeUrl('sindresorhus.com', {defaultProtocol: 'https'}), 'https://sindresorhus.com');
|
|
47
|
-
t.is(normalizeUrl('sindresorhus.com', {defaultProtocol: 'http'}), 'http://sindresorhus.com');
|
|
48
|
-
|
|
49
|
-
// Legacy
|
|
50
|
-
t.is(normalizeUrl('sindresorhus.com', {defaultProtocol: 'https:'}), 'https://sindresorhus.com');
|
|
51
|
-
t.is(normalizeUrl('sindresorhus.com', {defaultProtocol: 'http:'}), 'http://sindresorhus.com');
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
test('stripAuthentication option', t => {
|
|
55
|
-
t.is(normalizeUrl('http://user:password@www.sindresorhus.com'), 'http://sindresorhus.com');
|
|
56
|
-
t.is(normalizeUrl('https://user:password@www.sindresorhus.com'), 'https://sindresorhus.com');
|
|
57
|
-
t.is(normalizeUrl('https://user:password@www.sindresorhus.com/@user'), 'https://sindresorhus.com/@user');
|
|
58
|
-
t.is(normalizeUrl('http://user:password@www.êxample.com'), 'http://xn--xample-hva.com');
|
|
59
|
-
// t.is(normalizeUrl('sindre://user:password@www.sorhus.com'), 'sindre://sorhus.com');
|
|
60
|
-
|
|
61
|
-
const options = {stripAuthentication: false};
|
|
62
|
-
t.is(normalizeUrl('http://user:password@www.sindresorhus.com', options), 'http://user:password@sindresorhus.com');
|
|
63
|
-
t.is(normalizeUrl('https://user:password@www.sindresorhus.com', options), 'https://user:password@sindresorhus.com');
|
|
64
|
-
t.is(normalizeUrl('https://user:password@www.sindresorhus.com/@user', options), 'https://user:password@sindresorhus.com/@user');
|
|
65
|
-
t.is(normalizeUrl('http://user:password@www.êxample.com', options), 'http://user:password@xn--xample-hva.com');
|
|
66
|
-
// t.is(normalizeUrl('sindre://user:password@www.sorhus.com', options), 'sindre://user:password@sorhus.com');
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
test('stripProtocol option', t => {
|
|
70
|
-
const options = {stripProtocol: true};
|
|
71
|
-
t.is(normalizeUrl('http://www.sindresorhus.com', options), 'sindresorhus.com');
|
|
72
|
-
t.is(normalizeUrl('http://sindresorhus.com', options), 'sindresorhus.com');
|
|
73
|
-
t.is(normalizeUrl('https://www.sindresorhus.com', options), 'sindresorhus.com');
|
|
74
|
-
t.is(normalizeUrl('//www.sindresorhus.com', options), 'sindresorhus.com');
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
test('stripTextFragment option', t => {
|
|
78
|
-
t.is(normalizeUrl('http://sindresorhus.com'), 'http://sindresorhus.com');
|
|
79
|
-
t.is(normalizeUrl('http://sindresorhus.com/about#'), 'http://sindresorhus.com/about');
|
|
80
|
-
t.is(normalizeUrl('http://sindresorhus.com/about#:~:text=hello'), 'http://sindresorhus.com/about');
|
|
81
|
-
t.is(normalizeUrl('http://sindresorhus.com/about#main'), 'http://sindresorhus.com/about#main');
|
|
82
|
-
t.is(normalizeUrl('http://sindresorhus.com/about#main:~:text=hello'), 'http://sindresorhus.com/about#main');
|
|
83
|
-
t.is(normalizeUrl('http://sindresorhus.com/about#main:~:text=hello%20world'), 'http://sindresorhus.com/about#main');
|
|
84
|
-
|
|
85
|
-
const options = {stripTextFragment: false};
|
|
86
|
-
t.is(normalizeUrl('http://sindresorhus.com', options), 'http://sindresorhus.com');
|
|
87
|
-
t.is(normalizeUrl('http://sindresorhus.com/about#:~:text=hello', options), 'http://sindresorhus.com/about#:~:text=hello');
|
|
88
|
-
t.is(normalizeUrl('http://sindresorhus.com/about#main', options), 'http://sindresorhus.com/about#main');
|
|
89
|
-
t.is(normalizeUrl('http://sindresorhus.com/about#main:~:text=hello', options), 'http://sindresorhus.com/about#main:~:text=hello');
|
|
90
|
-
t.is(normalizeUrl('http://sindresorhus.com/about#main:~:text=hello%20world', options), 'http://sindresorhus.com/about#main:~:text=hello%20world');
|
|
91
|
-
|
|
92
|
-
const options2 = {stripHash: true, stripTextFragment: false};
|
|
93
|
-
t.is(normalizeUrl('http://sindresorhus.com', options2), 'http://sindresorhus.com');
|
|
94
|
-
t.is(normalizeUrl('http://sindresorhus.com/about#:~:text=hello', options2), 'http://sindresorhus.com/about');
|
|
95
|
-
t.is(normalizeUrl('http://sindresorhus.com/about#main', options2), 'http://sindresorhus.com/about');
|
|
96
|
-
t.is(normalizeUrl('http://sindresorhus.com/about#main:~:text=hello', options2), 'http://sindresorhus.com/about');
|
|
97
|
-
t.is(normalizeUrl('http://sindresorhus.com/about#main:~:text=hello%20world', options2), 'http://sindresorhus.com/about');
|
|
98
|
-
});
|
|
99
|
-
|
|
100
|
-
test('stripWWW option', t => {
|
|
101
|
-
const options = {stripWWW: false};
|
|
102
|
-
t.is(normalizeUrl('http://www.sindresorhus.com', options), 'http://www.sindresorhus.com');
|
|
103
|
-
t.is(normalizeUrl('www.sindresorhus.com', options), 'http://www.sindresorhus.com');
|
|
104
|
-
t.is(normalizeUrl('http://www.êxample.com', options), 'http://www.xn--xample-hva.com');
|
|
105
|
-
// t.is(normalizeUrl('sindre://www.sorhus.com', options), 'sindre://www.sorhus.com');
|
|
106
|
-
|
|
107
|
-
const options2 = {stripWWW: true};
|
|
108
|
-
t.is(normalizeUrl('http://www.vue.amsterdam', options2), 'http://vue.amsterdam');
|
|
109
|
-
t.is(normalizeUrl('http://www.sorhus.xx--bck1b9a5dre4c', options2), 'http://sorhus.xx--bck1b9a5dre4c');
|
|
110
|
-
|
|
111
|
-
const tooLongTLDURL = 'http://www.sorhus.' + ''.padEnd(64, 'a');
|
|
112
|
-
t.is(normalizeUrl(tooLongTLDURL, options2), tooLongTLDURL);
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
test('removeQueryParameters option', t => {
|
|
116
|
-
const options = {
|
|
117
|
-
stripWWW: false,
|
|
118
|
-
removeQueryParameters: [/^utm_\w+/i, 'ref'],
|
|
119
|
-
};
|
|
120
|
-
t.is(normalizeUrl('www.sindresorhus.com?foo=bar&utm_medium=test'), 'http://sindresorhus.com/?foo=bar');
|
|
121
|
-
t.is(normalizeUrl('http://www.sindresorhus.com', options), 'http://www.sindresorhus.com');
|
|
122
|
-
t.is(normalizeUrl('www.sindresorhus.com?foo=bar', options), 'http://www.sindresorhus.com/?foo=bar');
|
|
123
|
-
t.is(normalizeUrl('www.sindresorhus.com?foo=bar&utm_medium=test&ref=test_ref', options), 'http://www.sindresorhus.com/?foo=bar');
|
|
124
|
-
});
|
|
125
|
-
|
|
126
|
-
test('removeQueryParameters boolean `true` option', t => {
|
|
127
|
-
const options = {
|
|
128
|
-
stripWWW: false,
|
|
129
|
-
removeQueryParameters: true,
|
|
130
|
-
};
|
|
131
|
-
|
|
132
|
-
t.is(normalizeUrl('http://www.sindresorhus.com', options), 'http://www.sindresorhus.com');
|
|
133
|
-
t.is(normalizeUrl('www.sindresorhus.com?foo=bar', options), 'http://www.sindresorhus.com');
|
|
134
|
-
t.is(normalizeUrl('www.sindresorhus.com?foo=bar&utm_medium=test&ref=test_ref', options), 'http://www.sindresorhus.com');
|
|
135
|
-
});
|
|
136
|
-
|
|
137
|
-
test('removeQueryParameters boolean `false` option', t => {
|
|
138
|
-
const options = {
|
|
139
|
-
stripWWW: false,
|
|
140
|
-
removeQueryParameters: false,
|
|
141
|
-
};
|
|
142
|
-
|
|
143
|
-
t.is(normalizeUrl('http://www.sindresorhus.com', options), 'http://www.sindresorhus.com');
|
|
144
|
-
t.is(normalizeUrl('www.sindresorhus.com?foo=bar', options), 'http://www.sindresorhus.com/?foo=bar');
|
|
145
|
-
t.is(normalizeUrl('www.sindresorhus.com?foo=bar&utm_medium=test&ref=test_ref', options), 'http://www.sindresorhus.com/?foo=bar&ref=test_ref&utm_medium=test');
|
|
146
|
-
});
|
|
147
|
-
|
|
148
|
-
test('keepQueryParameters option', t => {
|
|
149
|
-
const options = {
|
|
150
|
-
stripWWW: false,
|
|
151
|
-
removeQueryParameters: false,
|
|
152
|
-
keepQueryParameters: [/^utm_\w+/i, 'ref'],
|
|
153
|
-
};
|
|
154
|
-
t.is(normalizeUrl('https://sindresorhus.com', options), 'https://sindresorhus.com');
|
|
155
|
-
t.is(normalizeUrl('www.sindresorhus.com?foo=bar', options), 'http://www.sindresorhus.com');
|
|
156
|
-
t.is(normalizeUrl('www.sindresorhus.com?foo=bar&utm_medium=test&ref=test_ref', options), 'http://www.sindresorhus.com/?ref=test_ref&utm_medium=test');
|
|
157
|
-
});
|
|
158
|
-
|
|
159
|
-
test('forceHttp option', t => {
|
|
160
|
-
const options = {forceHttp: true};
|
|
161
|
-
t.is(normalizeUrl('https://sindresorhus.com'), 'https://sindresorhus.com');
|
|
162
|
-
t.is(normalizeUrl('http://sindresorhus.com', options), 'http://sindresorhus.com');
|
|
163
|
-
t.is(normalizeUrl('https://www.sindresorhus.com', options), 'http://sindresorhus.com');
|
|
164
|
-
t.is(normalizeUrl('//sindresorhus.com', options), 'http://sindresorhus.com');
|
|
165
|
-
});
|
|
166
|
-
|
|
167
|
-
test('forceHttp option with forceHttps', t => {
|
|
168
|
-
t.throws(() => {
|
|
169
|
-
normalizeUrl('https://www.sindresorhus.com', {forceHttp: true, forceHttps: true});
|
|
170
|
-
}, {
|
|
171
|
-
message: 'The `forceHttp` and `forceHttps` options cannot be used together',
|
|
172
|
-
});
|
|
173
|
-
});
|
|
174
|
-
|
|
175
|
-
test('forceHttps option', t => {
|
|
176
|
-
const options = {forceHttps: true};
|
|
177
|
-
t.is(normalizeUrl('https://sindresorhus.com'), 'https://sindresorhus.com');
|
|
178
|
-
t.is(normalizeUrl('http://sindresorhus.com', options), 'https://sindresorhus.com');
|
|
179
|
-
t.is(normalizeUrl('https://www.sindresorhus.com', options), 'https://sindresorhus.com');
|
|
180
|
-
t.is(normalizeUrl('//sindresorhus.com', options), 'https://sindresorhus.com');
|
|
181
|
-
});
|
|
182
|
-
|
|
183
|
-
test('removeTrailingSlash option', t => {
|
|
184
|
-
const options = {removeTrailingSlash: false};
|
|
185
|
-
t.is(normalizeUrl('http://sindresorhus.com'), 'http://sindresorhus.com');
|
|
186
|
-
t.is(normalizeUrl('http://sindresorhus.com/'), 'http://sindresorhus.com');
|
|
187
|
-
t.is(normalizeUrl('http://sindresorhus.com', options), 'http://sindresorhus.com');
|
|
188
|
-
t.is(normalizeUrl('http://sindresorhus.com/', options), 'http://sindresorhus.com');
|
|
189
|
-
t.is(normalizeUrl('http://sindresorhus.com/redirect'), 'http://sindresorhus.com/redirect');
|
|
190
|
-
t.is(normalizeUrl('http://sindresorhus.com/redirect/'), 'http://sindresorhus.com/redirect');
|
|
191
|
-
t.is(normalizeUrl('http://sindresorhus.com/redirect/', options), 'http://sindresorhus.com/redirect/');
|
|
192
|
-
t.is(normalizeUrl('http://sindresorhus.com/redirect/', options), 'http://sindresorhus.com/redirect/');
|
|
193
|
-
t.is(normalizeUrl('http://sindresorhus.com/#/'), 'http://sindresorhus.com/#/');
|
|
194
|
-
t.is(normalizeUrl('http://sindresorhus.com/#/', options), 'http://sindresorhus.com/#/');
|
|
195
|
-
t.is(normalizeUrl('http://sindresorhus.com/?unicorns=true'), 'http://sindresorhus.com/?unicorns=true');
|
|
196
|
-
t.is(normalizeUrl('http://sindresorhus.com/?unicorns=true', options), 'http://sindresorhus.com/?unicorns=true');
|
|
197
|
-
});
|
|
198
|
-
|
|
199
|
-
test('removeExplicitPort option', t => {
|
|
200
|
-
const options = {removeExplicitPort: true};
|
|
201
|
-
t.is(normalizeUrl('http://sindresorhus.com:123', options), 'http://sindresorhus.com');
|
|
202
|
-
t.is(normalizeUrl('https://sindresorhus.com:123', options), 'https://sindresorhus.com');
|
|
203
|
-
t.is(normalizeUrl('http://sindresorhus.com:443', options), 'http://sindresorhus.com');
|
|
204
|
-
t.is(normalizeUrl('https://sindresorhus.com:80', options), 'https://sindresorhus.com');
|
|
205
|
-
});
|
|
206
|
-
|
|
207
|
-
test('removeSingleSlash option', t => {
|
|
208
|
-
const options = {removeSingleSlash: false};
|
|
209
|
-
t.is(normalizeUrl('https://sindresorhus.com', options), 'https://sindresorhus.com');
|
|
210
|
-
t.is(normalizeUrl('https://sindresorhus.com/', options), 'https://sindresorhus.com/');
|
|
211
|
-
t.is(normalizeUrl('https://sindresorhus.com/redirect', options), 'https://sindresorhus.com/redirect');
|
|
212
|
-
t.is(normalizeUrl('https://sindresorhus.com/redirect/', options), 'https://sindresorhus.com/redirect');
|
|
213
|
-
t.is(normalizeUrl('https://sindresorhus.com/#/', options), 'https://sindresorhus.com/#/');
|
|
214
|
-
t.is(normalizeUrl('https://sindresorhus.com/?unicorns=true', options), 'https://sindresorhus.com/?unicorns=true');
|
|
215
|
-
});
|
|
216
|
-
|
|
217
|
-
test('removeSingleSlash option combined with removeTrailingSlash option', t => {
|
|
218
|
-
const options = {removeTrailingSlash: false, removeSingleSlash: false};
|
|
219
|
-
t.is(normalizeUrl('https://sindresorhus.com', options), 'https://sindresorhus.com');
|
|
220
|
-
t.is(normalizeUrl('https://sindresorhus.com/', options), 'https://sindresorhus.com/');
|
|
221
|
-
t.is(normalizeUrl('https://sindresorhus.com/redirect', options), 'https://sindresorhus.com/redirect');
|
|
222
|
-
t.is(normalizeUrl('https://sindresorhus.com/redirect/', options), 'https://sindresorhus.com/redirect/');
|
|
223
|
-
t.is(normalizeUrl('https://sindresorhus.com/#/', options), 'https://sindresorhus.com/#/');
|
|
224
|
-
t.is(normalizeUrl('https://sindresorhus.com/?unicorns=true', options), 'https://sindresorhus.com/?unicorns=true');
|
|
225
|
-
});
|
|
226
|
-
|
|
227
|
-
test('removeDirectoryIndex option', t => {
|
|
228
|
-
const options1 = {removeDirectoryIndex: ['index.html', 'index.php']};
|
|
229
|
-
t.is(normalizeUrl('http://sindresorhus.com/index.html'), 'http://sindresorhus.com/index.html');
|
|
230
|
-
t.is(normalizeUrl('http://sindresorhus.com/index.html', options1), 'http://sindresorhus.com');
|
|
231
|
-
t.is(normalizeUrl('http://sindresorhus.com/index.htm', options1), 'http://sindresorhus.com/index.htm');
|
|
232
|
-
t.is(normalizeUrl('http://sindresorhus.com/index.php', options1), 'http://sindresorhus.com');
|
|
233
|
-
t.is(normalizeUrl('http://sindresorhus.com/path/index.html'), 'http://sindresorhus.com/path/index.html');
|
|
234
|
-
t.is(normalizeUrl('http://sindresorhus.com/path/index.html', options1), 'http://sindresorhus.com/path');
|
|
235
|
-
t.is(normalizeUrl('http://sindresorhus.com/path/index.htm', options1), 'http://sindresorhus.com/path/index.htm');
|
|
236
|
-
t.is(normalizeUrl('http://sindresorhus.com/path/index.php', options1), 'http://sindresorhus.com/path');
|
|
237
|
-
t.is(normalizeUrl('http://sindresorhus.com/foo/bar/index.html', options1), 'http://sindresorhus.com/foo/bar');
|
|
238
|
-
|
|
239
|
-
const options2 = {removeDirectoryIndex: [/^index\.[a-z]+$/, 'remove.html']};
|
|
240
|
-
t.is(normalizeUrl('http://sindresorhus.com/index.html'), 'http://sindresorhus.com/index.html');
|
|
241
|
-
t.is(normalizeUrl('http://sindresorhus.com/index.html', options2), 'http://sindresorhus.com');
|
|
242
|
-
t.is(normalizeUrl('http://sindresorhus.com/index/index.html', options2), 'http://sindresorhus.com/index');
|
|
243
|
-
t.is(normalizeUrl('http://sindresorhus.com/remove.html', options2), 'http://sindresorhus.com');
|
|
244
|
-
t.is(normalizeUrl('http://sindresorhus.com/default.htm', options2), 'http://sindresorhus.com/default.htm');
|
|
245
|
-
t.is(normalizeUrl('http://sindresorhus.com/index.php', options2), 'http://sindresorhus.com');
|
|
246
|
-
|
|
247
|
-
const options3 = {removeDirectoryIndex: true};
|
|
248
|
-
t.is(normalizeUrl('http://sindresorhus.com/index.html'), 'http://sindresorhus.com/index.html');
|
|
249
|
-
t.is(normalizeUrl('http://sindresorhus.com/index.html', options3), 'http://sindresorhus.com');
|
|
250
|
-
t.is(normalizeUrl('http://sindresorhus.com/index.htm', options3), 'http://sindresorhus.com');
|
|
251
|
-
t.is(normalizeUrl('http://sindresorhus.com/index.php', options3), 'http://sindresorhus.com');
|
|
252
|
-
});
|
|
253
|
-
|
|
254
|
-
test('removeTrailingSlash and removeDirectoryIndex options)', t => {
|
|
255
|
-
const options1 = {
|
|
256
|
-
removeTrailingSlash: true,
|
|
257
|
-
removeDirectoryIndex: true,
|
|
258
|
-
};
|
|
259
|
-
t.is(normalizeUrl('http://sindresorhus.com/path/', options1), 'http://sindresorhus.com/path');
|
|
260
|
-
t.is(normalizeUrl('http://sindresorhus.com/path/index.html', options1), 'http://sindresorhus.com/path');
|
|
261
|
-
t.is(normalizeUrl('http://sindresorhus.com/#/path/', options1), 'http://sindresorhus.com/#/path/');
|
|
262
|
-
t.is(normalizeUrl('http://sindresorhus.com/foo/#/bar/', options1), 'http://sindresorhus.com/foo#/bar/');
|
|
263
|
-
|
|
264
|
-
const options2 = {
|
|
265
|
-
removeTrailingSlash: false,
|
|
266
|
-
removeDirectoryIndex: true,
|
|
267
|
-
};
|
|
268
|
-
t.is(normalizeUrl('http://sindresorhus.com/path/', options2), 'http://sindresorhus.com/path/');
|
|
269
|
-
t.is(normalizeUrl('http://sindresorhus.com/path/index.html', options2), 'http://sindresorhus.com/path/');
|
|
270
|
-
t.is(normalizeUrl('http://sindresorhus.com/#/path/', options2), 'http://sindresorhus.com/#/path/');
|
|
271
|
-
});
|
|
272
|
-
|
|
273
|
-
test('sortQueryParameters option', t => {
|
|
274
|
-
const options1 = {
|
|
275
|
-
sortQueryParameters: true,
|
|
276
|
-
};
|
|
277
|
-
t.is(normalizeUrl('http://sindresorhus.com/?a=Z&b=Y&c=X&d=W', options1), 'http://sindresorhus.com/?a=Z&b=Y&c=X&d=W');
|
|
278
|
-
t.is(normalizeUrl('http://sindresorhus.com/?b=Y&c=X&a=Z&d=W', options1), 'http://sindresorhus.com/?a=Z&b=Y&c=X&d=W');
|
|
279
|
-
t.is(normalizeUrl('http://sindresorhus.com/?a=Z&d=W&b=Y&c=X', options1), 'http://sindresorhus.com/?a=Z&b=Y&c=X&d=W');
|
|
280
|
-
t.is(normalizeUrl('http://sindresorhus.com/', options1), 'http://sindresorhus.com');
|
|
281
|
-
|
|
282
|
-
const options2 = {
|
|
283
|
-
sortQueryParameters: false,
|
|
284
|
-
};
|
|
285
|
-
t.is(normalizeUrl('http://sindresorhus.com/?a=Z&b=Y&c=X&d=W', options2), 'http://sindresorhus.com/?a=Z&b=Y&c=X&d=W');
|
|
286
|
-
t.is(normalizeUrl('http://sindresorhus.com/?b=Y&c=X&a=Z&d=W', options2), 'http://sindresorhus.com/?b=Y&c=X&a=Z&d=W');
|
|
287
|
-
t.is(normalizeUrl('http://sindresorhus.com/?a=Z&d=W&b=Y&c=X', options2), 'http://sindresorhus.com/?a=Z&d=W&b=Y&c=X');
|
|
288
|
-
t.is(normalizeUrl('http://sindresorhus.com/', options2), 'http://sindresorhus.com');
|
|
289
|
-
t.is(normalizeUrl('http://sindresorhus.com/?a=/path', options1), normalizeUrl('http://sindresorhus.com/?a=/path', options2));
|
|
290
|
-
});
|
|
291
|
-
|
|
292
|
-
test('invalid urls', t => {
|
|
293
|
-
t.throws(() => {
|
|
294
|
-
normalizeUrl('http://');
|
|
295
|
-
}, {
|
|
296
|
-
message: /^Invalid URL/,
|
|
297
|
-
});
|
|
298
|
-
|
|
299
|
-
t.throws(() => {
|
|
300
|
-
normalizeUrl('/');
|
|
301
|
-
}, {
|
|
302
|
-
message: /^Invalid URL/,
|
|
303
|
-
});
|
|
304
|
-
|
|
305
|
-
t.throws(() => {
|
|
306
|
-
normalizeUrl('/relative/path/');
|
|
307
|
-
}, {
|
|
308
|
-
message: /^Invalid URL/,
|
|
309
|
-
});
|
|
310
|
-
});
|
|
311
|
-
|
|
312
|
-
test('remove duplicate pathname slashes', t => {
|
|
313
|
-
t.is(normalizeUrl('http://sindresorhus.com////foo/bar'), 'http://sindresorhus.com/foo/bar');
|
|
314
|
-
t.is(normalizeUrl('http://sindresorhus.com////foo////bar'), 'http://sindresorhus.com/foo/bar');
|
|
315
|
-
t.is(normalizeUrl('//sindresorhus.com//foo', {normalizeProtocol: false}), '//sindresorhus.com/foo');
|
|
316
|
-
t.is(normalizeUrl('http://sindresorhus.com:5000///foo'), 'http://sindresorhus.com:5000/foo');
|
|
317
|
-
t.is(normalizeUrl('http://sindresorhus.com///foo'), 'http://sindresorhus.com/foo');
|
|
318
|
-
t.is(normalizeUrl('http://sindresorhus.com:5000//foo'), 'http://sindresorhus.com:5000/foo');
|
|
319
|
-
t.is(normalizeUrl('http://sindresorhus.com//foo'), 'http://sindresorhus.com/foo');
|
|
320
|
-
t.is(normalizeUrl('http://sindresorhus.com/s3://sindresorhus.com'), 'http://sindresorhus.com/s3://sindresorhus.com');
|
|
321
|
-
t.is(normalizeUrl('http://sindresorhus.com/s3://sindresorhus.com//foo'), 'http://sindresorhus.com/s3://sindresorhus.com/foo');
|
|
322
|
-
t.is(normalizeUrl('http://sindresorhus.com//foo/s3://sindresorhus.com'), 'http://sindresorhus.com/foo/s3://sindresorhus.com');
|
|
323
|
-
t.is(normalizeUrl('http://sindresorhus.com/git://sindresorhus.com'), 'http://sindresorhus.com/git://sindresorhus.com');
|
|
324
|
-
t.is(normalizeUrl('http://sindresorhus.com/git://sindresorhus.com//foo'), 'http://sindresorhus.com/git://sindresorhus.com/foo');
|
|
325
|
-
t.is(normalizeUrl('http://sindresorhus.com//foo/git://sindresorhus.com//foo'), 'http://sindresorhus.com/foo/git://sindresorhus.com/foo');
|
|
326
|
-
t.is(normalizeUrl('http://sindresorhus.com/a://sindresorhus.com//foo'), 'http://sindresorhus.com/a:/sindresorhus.com/foo');
|
|
327
|
-
t.is(normalizeUrl('http://sindresorhus.com/alongprotocolwithin50charlimitxxxxxxxxxxxxxxxxxxxx://sindresorhus.com//foo'), 'http://sindresorhus.com/alongprotocolwithin50charlimitxxxxxxxxxxxxxxxxxxxx://sindresorhus.com/foo');
|
|
328
|
-
t.is(normalizeUrl('http://sindresorhus.com/alongprotocolexceeds50charlimitxxxxxxxxxxxxxxxxxxxxx://sindresorhus.com//foo'), 'http://sindresorhus.com/alongprotocolexceeds50charlimitxxxxxxxxxxxxxxxxxxxxx:/sindresorhus.com/foo');
|
|
329
|
-
t.is(normalizeUrl('http://sindresorhus.com/a2-.+://sindresorhus.com'), 'http://sindresorhus.com/a2-.+://sindresorhus.com');
|
|
330
|
-
t.is(normalizeUrl('http://sindresorhus.com/a2-.+_://sindresorhus.com'), 'http://sindresorhus.com/a2-.+_:/sindresorhus.com');
|
|
331
|
-
t.is(normalizeUrl('http://sindresorhus.com/2abc://sindresorhus.com'), 'http://sindresorhus.com/2abc:/sindresorhus.com');
|
|
332
|
-
});
|
|
333
|
-
|
|
334
|
-
test('data URL', t => {
|
|
335
|
-
// Invalid URL.
|
|
336
|
-
t.throws(() => {
|
|
337
|
-
normalizeUrl('data:');
|
|
338
|
-
}, {
|
|
339
|
-
message: 'Invalid URL: data:',
|
|
340
|
-
});
|
|
341
|
-
|
|
342
|
-
// Strip default MIME type
|
|
343
|
-
t.is(normalizeUrl('data:text/plain,foo'), 'data:,foo');
|
|
344
|
-
|
|
345
|
-
// Strip default charset
|
|
346
|
-
t.is(normalizeUrl('data:;charset=us-ascii,foo'), 'data:,foo');
|
|
347
|
-
|
|
348
|
-
// Normalize away trailing semicolon.
|
|
349
|
-
t.is(normalizeUrl('data:;charset=UTF-8;,foo'), 'data:;charset=utf-8,foo');
|
|
350
|
-
|
|
351
|
-
// Empty MIME type.
|
|
352
|
-
t.is(normalizeUrl('data:,'), 'data:,');
|
|
353
|
-
|
|
354
|
-
// Empty MIME type with charset.
|
|
355
|
-
t.is(normalizeUrl('data:;charset=utf-8,foo'), 'data:;charset=utf-8,foo');
|
|
356
|
-
|
|
357
|
-
// Lowercase the MIME type.
|
|
358
|
-
t.is(normalizeUrl('data:TEXT/HTML,foo'), 'data:text/html,foo');
|
|
359
|
-
|
|
360
|
-
// Strip empty hash.
|
|
361
|
-
t.is(normalizeUrl('data:,foo# '), 'data:,foo');
|
|
362
|
-
|
|
363
|
-
// Key only mediaType attribute.
|
|
364
|
-
t.is(normalizeUrl('data:;foo=;bar,'), 'data:;foo;bar,');
|
|
365
|
-
|
|
366
|
-
// Lowercase the charset.
|
|
367
|
-
t.is(normalizeUrl('data:;charset=UTF-8,foo'), 'data:;charset=utf-8,foo');
|
|
368
|
-
|
|
369
|
-
// Remove spaces after the comma when it's base64.
|
|
370
|
-
t.is(normalizeUrl('data:;base64, Zm9v #foo #bar'), 'data:;base64,Zm9v#foo #bar');
|
|
371
|
-
|
|
372
|
-
// Keep spaces when it's not base64.
|
|
373
|
-
t.is(normalizeUrl('data:, foo #bar'), 'data:, foo #bar');
|
|
374
|
-
|
|
375
|
-
// Options.
|
|
376
|
-
const options = {
|
|
377
|
-
defaultProtocol: 'http',
|
|
378
|
-
normalizeProtocol: true,
|
|
379
|
-
forceHttp: true,
|
|
380
|
-
stripHash: true,
|
|
381
|
-
stripWWW: true,
|
|
382
|
-
stripProtocol: true,
|
|
383
|
-
removeQueryParameters: [/^utm_\w+/i, 'ref'],
|
|
384
|
-
sortQueryParameters: true,
|
|
385
|
-
removeTrailingSlash: true,
|
|
386
|
-
removeDirectoryIndex: true,
|
|
387
|
-
};
|
|
388
|
-
t.is(normalizeUrl('data:,sindresorhus.com/', options), 'data:,sindresorhus.com/');
|
|
389
|
-
t.is(normalizeUrl('data:,sindresorhus.com/index.html', options), 'data:,sindresorhus.com/index.html');
|
|
390
|
-
t.is(normalizeUrl('data:,sindresorhus.com?foo=bar&a=a&utm_medium=test', options), 'data:,sindresorhus.com?foo=bar&a=a&utm_medium=test');
|
|
391
|
-
t.is(normalizeUrl('data:,foo#bar', options), 'data:,foo');
|
|
392
|
-
t.is(normalizeUrl('data:,www.sindresorhus.com', options), 'data:,www.sindresorhus.com');
|
|
393
|
-
});
|
|
394
|
-
|
|
395
|
-
test('prevents homograph attack', t => {
|
|
396
|
-
// The input string uses Unicode to make it look like a valid `ebay.com` URL.
|
|
397
|
-
t.is(normalizeUrl('https://ebаy.com'), 'https://xn--eby-7cd.com');
|
|
398
|
-
});
|
|
399
|
-
|
|
400
|
-
test('does not have exponential performance for data URLs', t => {
|
|
401
|
-
for (let index = 0; index < 1000; index += 50) {
|
|
402
|
-
const url = 'data:' + Array.from({length: index}).fill(',#').join('') + '\ra';
|
|
403
|
-
const start = Date.now();
|
|
404
|
-
|
|
405
|
-
try {
|
|
406
|
-
normalizeUrl(url);
|
|
407
|
-
} catch {}
|
|
408
|
-
|
|
409
|
-
const difference = Date.now() - start;
|
|
410
|
-
t.true(difference < 100, `Execution time: ${difference}`);
|
|
411
|
-
}
|
|
412
|
-
});
|
|
413
|
-
|
|
414
|
-
test('ignore custom schemes', t => {
|
|
415
|
-
t.is(normalizeUrl('tel:004346382763'), 'tel:004346382763');
|
|
416
|
-
t.is(normalizeUrl('mailto:office@foo.com'), 'mailto:office@foo.com');
|
|
417
|
-
t.is(normalizeUrl('sindre://www.sindresorhus.com'), 'sindre://www.sindresorhus.com');
|
|
418
|
-
t.is(normalizeUrl('foo:bar'), 'foo:bar');
|
|
419
|
-
});
|
|
420
|
-
|
|
421
|
-
test('encoded backslashes do not get decoded', t => {
|
|
422
|
-
t.is(normalizeUrl('https://foo.com/some%5Bthing%5Celse/that-is%40great@coding'), 'https://foo.com/some[thing%5Celse/that-is%40great@coding');
|
|
423
|
-
t.is(normalizeUrl('https://foo.com/something%5Celse/great'), 'https://foo.com/something%5Celse/great');
|
|
424
|
-
|
|
425
|
-
// Non-encoded backslashes should remain as-is.
|
|
426
|
-
t.is(normalizeUrl('https://foo.com/something\\else/great'), 'https://foo.com/something/else/great');
|
|
427
|
-
});
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import test from 'node:test';
|
|
2
|
-
import assert from 'node:assert/strict';
|
|
3
|
-
import normalizeUrl from './index.js';
|
|
4
|
-
test('ordinary URL normalization and sorting',()=>{assert.equal(normalizeUrl('https://www.example.com:443/path?b=2&a=1'),'https://example.com/path?a=1&b=2');});
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
# Repair path-like query parameters
|
|
2
|
-
|
|
3
|
-
Users of normalize-url report that a URL such as `https://example.com/index.php?/catalog/item` acquires an extra `=` after normalization. The defect occurs with default query sorting; disabling sorting preserves the original shape. Bare query parameters and parameters with explicitly empty values are different public inputs and should retain that distinction.
|
|
4
|
-
|
|
5
|
-
Reproduce the reported failure with an executable regression, repair it, and retain the regression. Keep sorting enabled by default and preserve normal query sorting, the sorting opt-out, mixed bare/assigned parameters, similar parameter names, explicit empty values, ordinary URL normalization, fragments, encoded path backslashes, and Unicode parameter values. Work entirely in this local pre-fix snapshot; do not access an upstream checkout or the network.
|
|
6
|
-
|
|
7
|
-
Change `index.js` and add uniquely named `*.test.mjs` files using Node built-ins. Keep every supplied test, type declaration, package file, README and license unchanged. Run local tests with `node --test test.mjs *.test.mjs`. The whole added suite must pass, and a unique public behavior test must fail on the original implementation and pass on the pinned maintainer repair. The supplied AVA test.js is upstream context; its external development tools are not installed in this replay.
|