Skip to content

cli: flip --full to default, replace with --dependencies opt-in#40

Merged
exo-nikita merged 1 commit into
mainfrom
claude/gracious-dijkstra-VAsQF
Jun 8, 2026
Merged

cli: flip --full to default, replace with --dependencies opt-in#40
exo-nikita merged 1 commit into
mainfrom
claude/gracious-dijkstra-VAsQF

Conversation

@exo-nikita

Copy link
Copy Markdown
Collaborator

Summary

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 the env var to one of the two values) and the lib's notion of an unset scope.

Test plan

  • node --test — 341 / 341 passing
  • oxlint clean
  • Manual smoke: default invocation now logs scope: 'full'; --dependencies logs scope: 'node_modules'
  • cli-run-nm / cli-run-nm-cjs / popular-npm-modules fixtures (whose stasis.config.json declares scope: node_modules) updated to pass --dependencies explicitly

https://claude.ai/code/session_01JzKgR6Lf276GEf6mnFPo19


Generated by Claude Code

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
@exo-nikita exo-nikita force-pushed the claude/gracious-dijkstra-VAsQF branch from cb40cbb to 440e733 Compare June 8, 2026 08:26
@exo-nikita exo-nikita merged commit ed41d6f into main Jun 8, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants