Repository navigation
refactor!: remove dead code and flags that never did anything - #8
Open
AjayBThorat-20 wants to merge 1 commit into
Open
AjayBThorat-20 wants to merge 1 commit into
AjayBThorat-20 wants to merge 1 commit into
Conversation
- analyze --ai / --ai-provider only ever printed a fixed template sentence; no model was called. Use `devcompass ai recommend`. analyze --json no longer carries the always-null metadata.aiInsight field. - fix --batch / --batch-mode / --only / --skip only ever printed "Batch mode features are not yet available". - Delete the unreachable npm-audit/outdated collectors, recommendation service and batch-fix services (plus the two data files only they read). The supply-chain fixer would have "fixed" a typosquat by installing the look-alike it matched against. - Drop the local-install warning, which also fired for global installs and npx and discouraged the recommended devDependency setup. BREAKING CHANGE: the removed CLI flags now fail with "unknown option". README, llms.txt, CHANGELOG and MIGRATION updated.
2 of 3 tasks
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.
What and why
Removes flags and code that never did what they claimed:
analyze --ai/--ai-provideronly ever printed a fixed template sentence; no model was called. Usedevcompass ai recommendinstead.analyze --jsonno longer carries the always-nullmetadata.aiInsight.fix --batch,--batch-mode,--only,--skiponly printed "Batch mode features are not yet available".npx, and discouraged the recommended devDependency setup.Breaking: the removed flags now fail with "unknown option". README, llms.txt, CHANGELOG and MIGRATION are updated.
Stacked on #5.
Merging the stack: use Create a merge commit, not squash (squashing makes every later PR show these commits again). After merging the PR below this one, click Delete branch on it; GitHub then retargets this PR to
mainand CI runs.How I tested it
npm run test:coverageon Node 24.21.0, cleannpm ci, network disabled: 88/88 pass, 63.94% linesnpm audit --audit-level=highcurrently fails on GHSA-mrwp-f3q8-3g9p (follow-redirects, published after this branch was made); the lockfile fix is in feat: rank vulnerabilities by exploit risk (CISA KEV + FIRST EPSS) #14🤖 Generated with Claude Code