You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use detected package manager in CLI messages and docs #487
All CLI user-facing messages and documentation hardcode npm commands for installing/updating/removing sequant. Users with pnpm, yarn, or bun projects get confusing errors (e.g., npm update sequant in a pnpm project gives Cannot read properties of null (reading 'matches')).
Sequant already detects the project's package manager from lockfiles via detectPackageManager() — but the detection isn't used in CLI output messages or docs.
Changes needed
CLI code
Add addPkg, removePkg, updatePkg fields to PackageManagerConfig / PM_CONFIG in src/lib/stacks.ts
Add sync detectPackageManagerSync() for use in synchronous startup code
src/lib/version-check.ts:225 — npm update sequant → use detected PM
bin/cli.ts:80 — npm uninstall sequant → use detected PM
bin/cli.ts:307 — npm install @modelcontextprotocol/sdk → use detected PM
Discovered when running npm update sequant in a pnpm monorepo — npm crashes trying to parse pnpm's lockfile. This is a user-side mistake but our docs and CLI messages push users toward it.
Activity
admarble commentedon Apr 5, 2026
Documentation Generated
File:
docs/features/package-manager-detection.md(updated existing doc)Changes:
Also updated in this issue:
README.md— install section shows all PMsdocs/getting-started/installation.md— global + local install sections show all PMsdocs/reference/cheat-sheet.md— install section shows all PMsdocs/concepts/what-is-sequant.md— simplified to npx-only quick startdocs/troubleshooting.md— install/update suggestions show all PMsNext Steps:
Ready to merge!
feat(#487): use detected package manager in CLI messages and docs
admarble commentedon Apr 6, 2026
Completed in f76e116 (merged to main).
fix(#870): resolve worktree package manager from lockfile when manife…
fix(#870): resolve worktree package manager from lockfile when manife…