Skip to content

feat(#87): warn when running from local node_modules - #113

Merged
admarble merged 1 commit into
mainfrom
feature/87-feat-warn-when-running-from-local-node-modules
Jan 18, 2026
Merged

admarble merged 1 commit into
mainfrom
feature/87-feat-warn-when-running-from-local-node-modules

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • Adds a startup warning when CLI runs from a project's local node_modules (not npx cache or global install)
  • Warning is yellow/non-blocking - doesn't prevent execution
  • Includes remediation steps: npx sequant@latest and npm uninstall sequant
  • Respects --quiet flag for users who intentionally pin local versions

AC Coverage

  • AC-1: Warning shown when running from */node_modules/sequant/*
  • AC-2: Warning includes remediation steps (npx @latest, npm uninstall)
  • AC-3: Warning is yellow/non-blocking (doesn't prevent execution)
  • AC-4: Warning does NOT show when running from npx cache (~/.npm/_npx/)
  • AC-5: Warning does NOT show when running from global install

Test plan

  • All 378 tests pass
  • Build succeeds
  • Detection logic already tested in version-check.test.ts

Closes #87

🤖 Generated with Claude Code

Shows a yellow, non-blocking warning when CLI runs from a project's
local node_modules (not npx cache or global install). This helps users
who accidentally have stale local installs understand why they might
not be running the latest version.

Warning includes remediation steps:
- npx sequant@latest (for latest)
- npm uninstall sequant (to remove local)

Respects --quiet flag to suppress the warning for users who
intentionally pin a local version.

Closes #87

Co-Authored-By: Claude Opus 4.5 <[email protected]>
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.

feat: Warn when running from local node_modules

1 participant