Skip to content

feat(cli): background auto-update with package manager detection#2

Merged
hexxt-git merged 2 commits into
masterfrom
feat/cli-auto-update
Jul 15, 2026
Merged

feat(cli): background auto-update with package manager detection#2
hexxt-git merged 2 commits into
masterfrom
feat/cli-auto-update

Conversation

@hexxt-git

Copy link
Copy Markdown
Owner

Summary

  • Detect how ccpool was installed (npm / pnpm / yarn / bun) from the binary path
  • Check the registry and auto-upgrade in the background while the CLI is running
  • Show update failures on the TUI error line

Test plan

  • pnpm vitest run apps/cli
  • pnpm --filter ccpool type-check
  • pnpm --filter ccpool lint

Detect npm/pnpm/yarn/bun installs, pull newer versions without blocking the
TUI, and surface install failures on the error line.
@vercel

vercel Bot commented Jul 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
ccpool Skipped Skipped Jul 15, 2026 8:38pm

…s only

- Only trigger the background auto-update for long-lived processes (the
  interactive TUI and the foreground daemon). One-shot commands exit via
  process.exitCode, so triggering there blocked them on the registry
  round-trip or the ~2-minute install.
- Require global-specific path markers in detectPackageManager so a local
  node_modules/ccpool dependency (or a project pnpm/yarn store) is no longer
  misread as a global install and rewritten with a -g upgrade.
@hexxt-git hexxt-git merged commit 9f0e9d0 into master Jul 15, 2026
4 checks passed
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.

1 participant