cli: flip --full to default, replace with --dependencies opt-in#40
Merged
Conversation
The CLI used to default to scope=node_modules and required --full to
opt into full-scope tracking. Flip the polarity: full is now the
implicit default and --dependencies opts back into node_modules-only.
This matches Config's existing default ('full') and removes the
mismatch between bin/stasis.js (which always set env to one of the two
values) and the lib's notion of an unset scope.
https://claude.ai/code/session_01JzKgR6Lf276GEf6mnFPo19
cb40cbb to
440e733
Compare
3 tasks
exo-nikita
added a commit
that referenced
this pull request
Jun 8, 2026
PR #41 was rebased on commit 39d7dd5 and squash-merged after ed41d6f (the --full→--dependencies flip) landed. My tests came in using --full and no-flag patterns that no longer match the CLI: --full was renamed to the implicit default, --dependencies is the node_modules opt-in, and the nm-scoped popular-npm-modules fixture needs --dependencies to avoid env-vs-file scope conflict. Fixes the 26 test failures introduced by the merge race; 400 of 410 pass after this. The remaining 10 are the pre-existing lock×bundle×mock byte-equality failures from PR #40. https://claude.ai/code/session_01DqXmS7gzzwuY4AF4wnViob
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The CLI used to default to
scope=node_modulesand required--fullto opt into full-scope tracking. Flip the polarity:fullis now the implicit default, and--dependenciesopts back intonode_modules-only.This matches
Config's existing default ('full') and removes the mismatch betweenbin/stasis.js(which always set the env var to one of the two values) and the lib's notion of an unset scope.Test plan
node --test— 341 / 341 passingoxlintcleanscope: 'full';--dependencieslogsscope: 'node_modules'cli-run-nm/cli-run-nm-cjs/popular-npm-modulesfixtures (whosestasis.config.jsondeclaresscope: node_modules) updated to pass--dependenciesexplicitlyhttps://claude.ai/code/session_01JzKgR6Lf276GEf6mnFPo19
Generated by Claude Code