Skip to content

feat(#81): Add version freshness checks to guard against stale installations - #84

Closed
admarble wants to merge 1 commit into
mainfrom
feature/81-feat-add-version-freshness-checks-to-guard-agai
Closed

admarble wants to merge 1 commit into
mainfrom
feature/81-feat-add-version-freshness-checks-to-guard-agai

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • Add src/lib/version-check.ts module with npm registry fetch, semver comparison, and global caching
  • Integrate thorough version check into sequant doctor command
  • Integrate cached (24h) version check into sequant run command
  • Add --quiet flag to suppress version warnings in run command
  • Add comprehensive tests for version-check module (31 tests)

Acceptance Criteria

  • sequant doctor shows version comparison against npm registry
  • sequant doctor provides clear remediation steps when outdated
  • sequant run shows warning when outdated (cached, max 1x per 24h)
  • sequant run --quiet suppresses version warning
  • Version check has 3-second timeout
  • Version check failures are silent (graceful degradation)
  • Cache stored globally in ~/.cache/sequant/version-check.json
  • Works without .sequant-manifest.json (pure npx usage)

Test plan

  • All 363 tests pass including 31 new tests for version-check module
  • Build succeeds
  • Linting passes on implementation files
  • Manual testing: Run sequant doctor to see version check
  • Manual testing: Run sequant run with outdated version to see warning
  • Manual testing: Run sequant run --quiet to verify warning is suppressed

Fixes #81

🤖 Generated with Claude Code

…lations

- Add src/lib/version-check.ts with npm registry fetch, semver comparison, and caching
- Integrate thorough version check into `sequant doctor` command
- Integrate cached (24h) version check into `sequant run` command
- Add --quiet flag to suppress version warnings
- Cache stored globally in ~/.cache/sequant/version-check.json
- 3-second timeout with graceful degradation on network failures
- Works without .sequant-manifest.json for pure npx usage
- Add comprehensive tests for version-check module (31 tests)

Fixes #81

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@admarble

Copy link
Copy Markdown
Contributor Author

Closing as the changes from this issue were already merged to main via commit 54ab93b. The feature is now released in v1.5.4+.

@admarble admarble closed this Jan 14, 2026
@admarble
admarble deleted the feature/81-feat-add-version-freshness-checks-to-guard-agai branch January 14, 2026 05:58
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: Add version freshness checks to guard against stale installations

1 participant