Repository navigation
fix(cli): support top-level command fallback - #12810
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughAdds external subcommand capture, routes it through fallback dispatch, extends ChangesExternal command fallback execution
Estimated code review effort: 3 (Moderate) | ~25 minutes Possibly related PRs
Suggested labels: ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
PR Summary by QodoCLI: support pnpm-style top-level fallback to exec for unknown commands
AI Description
Diagram
High-Level Assessment
Files changed (6)
|
Micro-Benchmark ResultsLinux |
Code Review by Qodo
1.
|
There was a problem hiding this comment.
🧹 Nitpick comments (1)
pacquet/crates/cli/tests/run.rs (1)
335-392: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winNo test exercises the
ctx.recursivebranch ofdispatch_script::fallback.Both new tests only cover the non-recursive
run_fallbackpath. Thefallbackdispatcher (per context snippet 1 indispatch_script.rs) also has arun_recursivebranch whenctx.recursiveis true, which remains untested here.As per path instructions (pacquet/AGENTS.md): "don't 'skip' missing-tool branches silently (no probe-and-return test early)" — while this isn't a probe-and-return case, the recursive dispatch path for the new External fallback is currently unverified by any test in this PR.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pacquet/crates/cli/tests/run.rs` around lines 335 - 392, The new fallback tests in run.rs only verify the non-recursive dispatch path, leaving the ctx.recursive branch of dispatch_script::fallback untested. Add a test that drives the recursive path in dispatch_script::fallback (and its run_recursive branch) for the External fallback behavior, using the existing CommandTempCwd setup and the same commitlint-style fixture symbols to keep it aligned with the current coverage.Source: Path instructions
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@pacquet/crates/cli/tests/run.rs`:
- Around line 335-392: The new fallback tests in run.rs only verify the
non-recursive dispatch path, leaving the ctx.recursive branch of
dispatch_script::fallback untested. Add a test that drives the recursive path in
dispatch_script::fallback (and its run_recursive branch) for the External
fallback behavior, using the existing CommandTempCwd setup and the same
commitlint-style fixture symbols to keep it aligned with the current coverage.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 76cf347e-0f7b-4463-b230-3e55418c7336
📒 Files selected for processing (6)
pacquet/crates/cli/src/cli_args/cli_command.rspacquet/crates/cli/src/cli_args/dispatch.rspacquet/crates/cli/src/cli_args/dispatch_script.rspacquet/crates/cli/src/cli_args/run.rspacquet/crates/cli/src/cli_args/tests.rspacquet/crates/cli/tests/run.rs
|
Code review by qodo was updated up to the latest commit f921a4a |
|
Code review by qodo was updated up to the latest commit 9215562 |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
pacquet/crates/cli/tests/run_recursive.rs (1)
102-130: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winTest doesn't cover the actual fallback-to-local-binary scenario.
This test defines a
commitlintscript in each project'spackage.json, so-r commitlintis satisfied via the normal script-run branch ofrun_inner(script found → executed directly), never reachingexec_fallback. It provesCliCommand::Externalcorrectly routes todispatch_script::fallback→run_recursivewhen a script exists, but it doesn't exercise the PR's headline behavior: falling back to executing a local binary fromnode_modules/.binrecursively when no script matches (the scenariorun.rs'srun_innerhandles viaexec_fallbackonNoImporterManifestFound/emptyspecified).Consider adding a companion recursive test where no
commitlintscript is defined but a local binary/shim exists innode_modules/.bin, asserting the binary actually executes per-project. As per path instructions, "add/extend Rust integration tests that prove the same scenario(s) as the TS tests."🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pacquet/crates/cli/tests/run_recursive.rs` around lines 102 - 130, The recursive run test currently only covers the script-execution path, not the local binary fallback path. Update or add a test around run_recursive::top_level_fallback_enters_recursive_run so it omits the commitlint script and instead provides a local binary/shim under node_modules/.bin, then assert run_inner reaches exec_fallback and executes that binary for each workspace project. Use the existing CommandTempCwd, write_workspace, and pacquet CLI flow to keep the test aligned with the recursive fallback behavior.Source: Path instructions
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pacquet/crates/cli/tests/run_recursive.rs`:
- Line 109: The `run_recursive` test uses `scripts.commitlint` with `touch
ran.txt`, which is not Windows-safe. Update this test case to use the same
cross-platform file creation approach used elsewhere in the recursive run tests,
or conditionally skip/gate the `commitlint` script case on Windows. Keep the
change localized around the `run_recursive` test setup where the `commitlint`
script is defined.
---
Nitpick comments:
In `@pacquet/crates/cli/tests/run_recursive.rs`:
- Around line 102-130: The recursive run test currently only covers the
script-execution path, not the local binary fallback path. Update or add a test
around run_recursive::top_level_fallback_enters_recursive_run so it omits the
commitlint script and instead provides a local binary/shim under
node_modules/.bin, then assert run_inner reaches exec_fallback and executes that
binary for each workspace project. Use the existing CommandTempCwd,
write_workspace, and pacquet CLI flow to keep the test aligned with the
recursive fallback behavior.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: bf4f35b9-dff1-4b90-8aa9-8ec56892529d
📒 Files selected for processing (3)
pacquet/crates/cli/src/cli_args/run.rspacquet/crates/cli/tests/run.rspacquet/crates/cli/tests/run_recursive.rs
🚧 Files skipped from review as they are similar to previous changes (2)
- pacquet/crates/cli/tests/run.rs
- pacquet/crates/cli/src/cli_args/run.rs
|
Code review by qodo was updated up to the latest commit 9215562 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #12810 +/- ##
==========================================
+ Coverage 85.07% 85.09% +0.01%
==========================================
Files 415 415
Lines 65544 65649 +105
==========================================
+ Hits 55761 55863 +102
- Misses 9783 9786 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Follow-up on the remaining Qodo items after 5650aaf:
The valid findings were handled in earlier commits: missing-manifest fallback in 9215562, and dotted Written by an agent (Codex, GPT-5). |
|
Code review by qodo was updated up to the latest commit 5650aaf |
1 similar comment
|
Code review by qodo was updated up to the latest commit 5650aaf |
There was a problem hiding this comment.
Actionable comments posted: 2
🧹 Nitpick comments (1)
pacquet/crates/cli/src/config_overrides.rs (1)
109-131: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚖️ Poor tradeoffDuplicated argv-boundary-scanning logic vs.
with_current.rs::command_index.Both
external_command_indexhere andcommand_indexinwith_current.rsimplement a very similar "scan argv, skip global options, find the first positional token" algorithm independently. Keeping two hand-rolled scanners increases the risk of behavioral drift betweenpacquet with <cmd>and top-level external-command fallback as global flags are added/changed in the future.Consider extracting a shared argv-scanning helper (parameterized by what counts as "known"/terminal) that both call sites can reuse.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@pacquet/crates/cli/src/config_overrides.rs` around lines 109 - 131, The argv scanning logic in external_command_index is duplicated with command_index in with_current.rs, so factor out a shared helper for walking argv and skipping global options/terminators. Reuse that helper from external_command_index and command_index, and parameterize it with the command-classification predicate (for example, the known-top-level check) so both paths stay behaviorally aligned as flags evolve.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pacquet/crates/cli/src/config_overrides.rs`:
- Around line 109-119: The argv scanning in external_command_index() is too
permissive because a non-UTF-8 token currently causes a full-scan reset in
ConfigOverrides::extract(), allowing later --config.* args to be stripped past
the command boundary. Update external_command_index() to treat the first
non-UTF-8 argv token as the boundary like with_current::command_index() does, so
only the pre-command segment is considered for config override removal.
In `@pacquet/crates/cli/tests/run_recursive.rs`:
- Around line 26-32: Add a Unix-only gate around the recursive run test helpers
in run_recursive.rs: write_executable uses
std::os::unix::fs::PermissionsExt::set_mode, so it must be behind #[cfg(unix)]
or split into a Unix-only helper. Also gate
top_level_fallback_does_not_exec_local_bin_recursively (and any other test using
that helper or a shebang script) with #[cfg(unix)] so Windows CI can compile and
run the test suite. Use the existing write_executable helper and
top_level_fallback_does_not_exec_local_bin_recursively test as the symbols to
update.
---
Nitpick comments:
In `@pacquet/crates/cli/src/config_overrides.rs`:
- Around line 109-131: The argv scanning logic in external_command_index is
duplicated with command_index in with_current.rs, so factor out a shared helper
for walking argv and skipping global options/terminators. Reuse that helper from
external_command_index and command_index, and parameterize it with the
command-classification predicate (for example, the known-top-level check) so
both paths stay behaviorally aligned as flags evolve.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: bede629d-bee3-41d2-bc01-84a5ce8d2d05
📒 Files selected for processing (4)
pacquet/crates/cli/src/config_overrides.rspacquet/crates/cli/src/config_overrides/tests.rspacquet/crates/cli/tests/run.rspacquet/crates/cli/tests/run_recursive.rs
|
Code review by qodo was updated up to the latest commit e7c9ba1 |
1 similar comment
|
Code review by qodo was updated up to the latest commit e7c9ba1 |
Integrated-Benchmark Report (Linux)Commit: Each scenario reports direct installs and pnpr installs. Bencher consumes pacquet@HEAD and pnpr@HEAD. Scenario: Isolated linker: fresh restore, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 3.9006237454,
"stddev": 0.14841840090943573,
"median": 3.9013469667000003,
"user": 3.6176457999999996,
"system": 3.46746932,
"min": 3.7176882937,
"max": 4.1272494657,
"times": [
4.1023240787,
4.1272494657,
3.9428309427,
3.8495703017,
4.0027592926999995,
3.7176882937,
3.7357488976999997,
3.9050316597,
3.8976622737,
3.7253722477
]
},
{
"command": "pacquet@main",
"mean": 3.8493529643000004,
"stddev": 0.16039064387482474,
"median": 3.7546645712,
"user": 3.6838657999999995,
"system": 3.4782754200000006,
"min": 3.6945811137,
"max": 4.1065474037,
"times": [
3.7292839147,
3.6945811137,
3.7382212067,
3.7549359007,
3.7543932417,
4.0860020237,
4.1065474037,
3.8779652117,
4.0145514577,
3.7370481687
]
},
{
"command": "pnpr@HEAD",
"mean": 2.1493567655999994,
"stddev": 0.12152103394102523,
"median": 2.0957152086999997,
"user": 2.6552935999999994,
"system": 3.0375901199999995,
"min": 2.0451891057,
"max": 2.4301881637,
"times": [
2.0451891057,
2.1684115397,
2.1023173797,
2.2912644227,
2.1422520617,
2.0655618297,
2.0891130377,
2.0847291887,
2.4301881637,
2.0745409267
]
},
{
"command": "pnpr@main",
"mean": 2.1265453295,
"stddev": 0.10640745248178575,
"median": 2.1016197001999997,
"user": 2.6692262999999996,
"system": 3.0482045199999996,
"min": 1.9758309977000001,
"max": 2.2804774047,
"times": [
2.2295737026999998,
2.2804774047,
2.0422767676999998,
2.2659992427,
2.0337381057,
1.9758309977000001,
2.1729985967,
2.0613190767,
2.0695146777,
2.1337247227
]
}
]
}Scenario: Isolated linker: fresh restore, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.6507384289800001,
"stddev": 0.012808731484233036,
"median": 0.65126074888,
"user": 0.3864006,
"system": 1.32800508,
"min": 0.6337831243800001,
"max": 0.67144372138,
"times": [
0.65256139238,
0.6338168803800001,
0.65186270638,
0.65687591238,
0.66827994238,
0.65065879138,
0.64821200038,
0.67144372138,
0.63988981838,
0.6337831243800001
]
},
{
"command": "pacquet@main",
"mean": 0.64700117558,
"stddev": 0.01384164832520626,
"median": 0.6484749118800001,
"user": 0.39376579999999994,
"system": 1.3211864799999997,
"min": 0.62930982938,
"max": 0.66907810038,
"times": [
0.65015912438,
0.65920278538,
0.62985833438,
0.66907810038,
0.6498250813800001,
0.62930982938,
0.66197100338,
0.6471247423800001,
0.64052326938,
0.63295948538
]
},
{
"command": "pnpr@HEAD",
"mean": 0.72459799668,
"stddev": 0.11037987557633727,
"median": 0.69180027588,
"user": 0.39666999999999997,
"system": 1.37055808,
"min": 0.6690585423800001,
"max": 1.03755872238,
"times": [
0.70253164238,
0.6900759173800001,
0.6690585423800001,
0.70008790338,
0.67932304738,
0.69094270238,
0.6916796053800001,
0.69192094638,
0.69280093738,
1.03755872238
]
},
{
"command": "pnpr@main",
"mean": 0.70021446258,
"stddev": 0.03113980724183004,
"median": 0.69491004888,
"user": 0.4098223,
"system": 1.3394852799999997,
"min": 0.67613862538,
"max": 0.78021712938,
"times": [
0.69190648938,
0.67837473638,
0.71303436738,
0.67773151938,
0.70494042838,
0.69791360838,
0.70382349938,
0.67806422238,
0.78021712938,
0.67613862538
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + cold store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 4.179737982659999,
"stddev": 0.06406314500490606,
"median": 4.179275412459999,
"user": 3.7147867000000003,
"system": 3.364688459999999,
"min": 4.1027925089599995,
"max": 4.30652776096,
"times": [
4.19983815896,
4.11657145296,
4.1587126659599996,
4.22156541696,
4.157293290959999,
4.1027925089599995,
4.20120532296,
4.10712205496,
4.30652776096,
4.22575119296
]
},
{
"command": "pacquet@main",
"mean": 4.23689980556,
"stddev": 0.061823303507167096,
"median": 4.23246839396,
"user": 3.7653965,
"system": 3.39008716,
"min": 4.138702556959999,
"max": 4.35067828696,
"times": [
4.2686141829599995,
4.191815903959999,
4.1860207869599995,
4.35067828696,
4.2042626489599995,
4.138702556959999,
4.23135478796,
4.304475689959999,
4.259491210959999,
4.233581999959999
]
},
{
"command": "pnpr@HEAD",
"mean": 2.18590661506,
"stddev": 0.10167288220342068,
"median": 2.18145909296,
"user": 2.531973,
"system": 2.9149765600000004,
"min": 2.06162241096,
"max": 2.35273194596,
"times": [
2.21509776496,
2.14782042096,
2.11263375896,
2.23780535796,
2.06162241096,
2.35273194596,
2.27502375896,
2.0873153919600003,
2.28873827796,
2.08027706196
]
},
{
"command": "pnpr@main",
"mean": 2.15727080256,
"stddev": 0.1236538608366579,
"median": 2.11395884646,
"user": 2.5537018,
"system": 2.9309331599999995,
"min": 2.0546062479600002,
"max": 2.44551798396,
"times": [
2.44551798396,
2.08106807496,
2.1646306979600003,
2.11170455296,
2.09848133296,
2.0547157779600003,
2.11621313996,
2.0546062479600002,
2.14614268296,
2.2996275339600003
]
}
]
}Scenario: Isolated linker: fresh install, hot cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 1.3426326628600003,
"stddev": 0.010049276032664372,
"median": 1.34143309876,
"user": 1.333536,
"system": 1.6845246799999998,
"min": 1.32997219776,
"max": 1.3620680337600002,
"times": [
1.3620680337600002,
1.33972217076,
1.34110697976,
1.33433014776,
1.3417592177600002,
1.3548133067600001,
1.34594708876,
1.32997219776,
1.34514276976,
1.3314647157600001
]
},
{
"command": "pacquet@main",
"mean": 1.3861132177600002,
"stddev": 0.0335761457244924,
"median": 1.38483032726,
"user": 1.3878534999999999,
"system": 1.7275461799999998,
"min": 1.34360758076,
"max": 1.45453237376,
"times": [
1.34803666376,
1.45453237376,
1.37800940876,
1.36894470076,
1.39979343176,
1.41750386776,
1.39623112876,
1.34360758076,
1.39165124576,
1.36282177576
]
},
{
"command": "pnpr@HEAD",
"mean": 0.6909659959600001,
"stddev": 0.0436528239797513,
"median": 0.6799186182600001,
"user": 0.36129870000000003,
"system": 1.2941384799999998,
"min": 0.65933997176,
"max": 0.81136620276,
"times": [
0.6693501527600001,
0.65933997176,
0.6656288317600001,
0.81136620276,
0.69003312376,
0.6881347667600001,
0.67859702176,
0.6812402147600001,
0.6740231587600001,
0.6919465147600001
]
},
{
"command": "pnpr@main",
"mean": 0.6772665450600002,
"stddev": 0.008780322218998682,
"median": 0.67527315326,
"user": 0.3618496,
"system": 1.3063817799999997,
"min": 0.6664727007600001,
"max": 0.69024646576,
"times": [
0.6864646567600001,
0.6901181257600001,
0.6689688797600001,
0.69024646576,
0.6757182667600001,
0.6731517157600001,
0.6692094057600001,
0.6664727007600001,
0.67482803976,
0.6774871937600001
]
}
]
}Scenario: Isolated linker: fresh install, cold cache + hot store
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 3.06062448572,
"stddev": 0.04043943562355924,
"median": 3.06070908312,
"user": 1.8262636399999999,
"system": 1.97861308,
"min": 2.9879009281199997,
"max": 3.12097041512,
"times": [
3.11186888512,
3.0472687981199997,
3.01950975712,
3.05897247912,
3.12097041512,
3.0375852171199997,
3.07702996112,
2.9879009281199997,
3.06244568712,
3.08269272912
]
},
{
"command": "pacquet@main",
"mean": 3.05868375642,
"stddev": 0.04522623669578289,
"median": 3.05317424262,
"user": 1.8391862399999996,
"system": 1.9849749799999998,
"min": 3.01482039312,
"max": 3.17501326612,
"times": [
3.06785450312,
3.03193536512,
3.01482039312,
3.01651814312,
3.05310801212,
3.05324047312,
3.05546851812,
3.04714215312,
3.17501326612,
3.0717367371199997
]
},
{
"command": "pnpr@HEAD",
"mean": 0.67334381712,
"stddev": 0.007968682239229478,
"median": 0.6733395211200002,
"user": 0.34401384,
"system": 1.31826238,
"min": 0.6609660471200001,
"max": 0.6879868431200001,
"times": [
0.66354699512,
0.6879868431200001,
0.6609660471200001,
0.6783441591200001,
0.6736536451200001,
0.6703969791200001,
0.6730253971200001,
0.6755995641200001,
0.66931562312,
0.6806029181200001
]
},
{
"command": "pnpr@main",
"mean": 0.66698845762,
"stddev": 0.009238035800936862,
"median": 0.6673449286200002,
"user": 0.35424153999999997,
"system": 1.2947209800000001,
"min": 0.65461177812,
"max": 0.6826669851200001,
"times": [
0.6676201531200001,
0.6670697041200001,
0.65461177812,
0.68054567612,
0.6576564161200001,
0.6583913641200001,
0.6631384141200001,
0.6694078951200001,
0.6826669851200001,
0.6687761901200001
]
}
]
}Scenario: Isolated linker: fresh resolve, hot cache, offline
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 0.6698901381400001,
"stddev": 0.01767945722012245,
"median": 0.6727480541399999,
"user": 0.6360186800000001,
"system": 0.15587231999999998,
"min": 0.64408478064,
"max": 0.6923175486400001,
"times": [
0.64408478064,
0.67771071064,
0.64437438264,
0.65173945664,
0.68792813164,
0.6923175486400001,
0.67353282264,
0.68598888464,
0.67196328564,
0.66926137764
]
},
{
"command": "pacquet@main",
"mean": 0.6632083269400001,
"stddev": 0.02047251865998611,
"median": 0.65686327564,
"user": 0.6332879799999999,
"system": 0.15301991999999998,
"min": 0.63938680564,
"max": 0.69658271764,
"times": [
0.69658271764,
0.69431156164,
0.64510858264,
0.65737950664,
0.66468698764,
0.63938680564,
0.6450878706400001,
0.65634704464,
0.65315649564,
0.68003569664
]
},
{
"command": "pnpr@HEAD",
"mean": 0.10765363607999999,
"stddev": 0.0011789528435668746,
"median": 0.10776525964,
"user": 0.027235579999999995,
"system": 0.0184382,
"min": 0.10322361164,
"max": 0.10936503964,
"times": [
0.10693381564,
0.10855713964,
0.10732235164,
0.10936503964,
0.10669828064,
0.10885479564,
0.10637540164,
0.10772549564,
0.10830872564,
0.10726725664,
0.10799476864,
0.10760366764,
0.10724257564,
0.10827108264,
0.10732160064,
0.10322361164,
0.10814004264,
0.10758679664,
0.10797364564,
0.10776525964,
0.10830615064,
0.10827425164,
0.10698485064,
0.10913088464,
0.10811341064
]
},
{
"command": "pnpr@main",
"mean": 0.10793235471999997,
"stddev": 0.0013732608192667706,
"median": 0.10784735664,
"user": 0.027799620000000004,
"system": 0.018992079999999995,
"min": 0.10576737964,
"max": 0.11335067364,
"times": [
0.10685521864,
0.10835145264,
0.10760742464,
0.10857522364,
0.10784735664,
0.10775292164,
0.10576737964,
0.10832383264,
0.10812917564,
0.10824598164,
0.10666294364,
0.10884359464,
0.10628546464,
0.10749182364,
0.10802852764,
0.11335067364,
0.10776397264,
0.10858020064,
0.10664832664,
0.10803493964,
0.10774162164,
0.10877743964,
0.10773375564,
0.10785465964,
0.10705495664
]
}
]
}Scenario: Isolated linker: fresh restore, cold cache + cold store + cold pnpr
BENCHMARK_REPORT.json{
"results": [
{
"command": "pacquet@HEAD",
"mean": 6.75806229136,
"stddev": 0.15036900681372684,
"median": 6.72091402546,
"user": 3.8783311000000005,
"system": 3.736618419999999,
"min": 6.52774599646,
"max": 7.03239603546,
"times": [
6.72434987546,
6.83901881946,
6.95284452646,
6.78806746746,
6.69043457246,
7.03239603546,
6.52774599646,
6.63360945646,
6.71747817546,
6.67467798846
]
},
{
"command": "pacquet@main",
"mean": 6.6586259949599995,
"stddev": 0.1077249999579519,
"median": 6.656706057959999,
"user": 3.8635736,
"system": 3.7108445199999993,
"min": 6.50877898546,
"max": 6.86550805146,
"times": [
6.53701604846,
6.66473463846,
6.59842968346,
6.72006837346,
6.67446488946,
6.77174229946,
6.64867747746,
6.86550805146,
6.59683950246,
6.50877898546
]
},
{
"command": "pnpr@HEAD",
"mean": 5.08116793866,
"stddev": 0.17234009741956324,
"median": 5.04604282546,
"user": 2.8173785,
"system": 3.30800122,
"min": 4.84816796946,
"max": 5.34563971946,
"times": [
5.28597256246,
5.04200022646,
4.89883710746,
4.84816796946,
5.28366576646,
4.95768885746,
5.10967318246,
5.34563971946,
5.05008542446,
4.98994857046
]
},
{
"command": "pnpr@main",
"mean": 5.04585372156,
"stddev": 0.08323648982017696,
"median": 5.02596376196,
"user": 2.8544291999999998,
"system": 3.3136441199999993,
"min": 4.88906127646,
"max": 5.15302135646,
"times": [
5.15302135646,
5.0210402824600004,
5.02114675946,
4.88906127646,
5.15120573346,
4.99667925046,
5.00638821046,
5.04458536346,
5.14462821846,
5.03078076446
]
}
]
} |
|
| Branch | pr/12810 |
| Testbed | pnpr |
⚠️ WARNING: No Threshold found!Without a Threshold, no Alerts will ever be generated.
Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the--ci-only-thresholdsflag.
Click to view all benchmark results
| Benchmark | Latency | milliseconds (ms) |
|---|---|---|
| isolated-linker.fresh-install.cold-cache.cold-store | 📈 view plot | 2,185.91 ms |
| isolated-linker.fresh-install.cold-cache.hot-store | 📈 view plot | 673.34 ms |
| isolated-linker.fresh-install.hot-cache.hot-store | 📈 view plot | 690.97 ms |
| isolated-linker.fresh-resolve.hot-cache.offline | 📈 view plot | 107.65 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store | 📈 view plot | 2,149.36 ms |
| isolated-linker.fresh-restore.cold-cache.cold-store.cold-pnpr | 📈 view plot | 5,081.17 ms |
| isolated-linker.fresh-restore.hot-cache.hot-store | 📈 view plot | 724.60 ms |
Summary
Pacquet now matches the TypeScript pnpm shorthand for unknown top-level commands.
pnpm <name>first tries a matching package script, and when no script exists it executes<name>fromnode_modules/.binthrough the existing exec path.This fixes hooks such as
pnpm commitlint --edit --config=commitlint.config.cjswhen the repository uses the Rust pnpm binary.Squash Commit Body
Checklist
pacquet/port, or the description notes what still needs porting.Written by an agent (Codex, GPT-5).
Summary by CodeRabbit
pacquet <name>now prefers a matchingpackage.jsonscript when present, otherwise falls back to executing the local binary.--config.*and other global options are no longer incorrectly consumed when an external command begins.