|
1 | 1 | # AI CLI Preparation - Project Context (AI Agent Reference) |
2 | 2 |
|
3 | | -**Last Updated:** 2025-10-13 |
| 3 | +**Last Updated:** 2025-10-18 |
| 4 | +**Version:** 2.0.0-alpha.6 |
4 | 5 | **For:** AI Coding Agents (Claude Code, etc.) |
5 | 6 |
|
6 | 7 | ## Quick Reference |
7 | 8 |
|
8 | | -**Purpose:** Environment audit tool ensuring AI coding agents have all necessary CLI tools installed and current |
| 9 | +**Purpose:** Environment audit and tool management system ensuring AI coding agents have all necessary CLI tools installed, current, and properly configured |
9 | 10 |
|
10 | 11 | **Repository:** github.com/netresearch/coding_agent_cli_toolset |
11 | 12 | **Primary Language:** Python 3.9+ (dev: 3.14.0rc2) |
12 | | -**Architecture:** Offline-first, parallel, resilient tool version auditing |
13 | | -**Tool Coverage:** 64 tools across 10 categories (50+ production, rest in development) |
| 13 | +**Architecture:** Offline-first, parallel, resilient tool version auditing with comprehensive upgrade orchestration |
| 14 | +**Tool Coverage:** 64 tools across 10 categories |
| 15 | +**Phase Status:** Phase 1 (Audit) Complete | Phase 2 (Install/Upgrade) Alpha |
14 | 16 |
|
15 | 17 | ## Core Capabilities |
16 | 18 |
|
@@ -121,10 +123,39 @@ make update |
121 | 123 | # Interactive upgrade guide |
122 | 124 | make upgrade |
123 | 125 |
|
| 126 | +# Complete system upgrade (5 stages) |
| 127 | +make upgrade-all |
| 128 | + |
| 129 | +# Preview system upgrade (dry-run) |
| 130 | +make upgrade-all-dry-run |
| 131 | + |
124 | 132 | # Offline audit with hints |
125 | 133 | make audit-offline |
126 | 134 | ``` |
127 | 135 |
|
| 136 | +### System-Wide Upgrade (New in alpha.6) |
| 137 | +```bash |
| 138 | +# 5-Stage orchestrated upgrade workflow |
| 139 | +make upgrade-all |
| 140 | +# Stage 1: Refresh version data |
| 141 | +# Stage 2: Upgrade package managers (apt, brew, snap, flatpak) |
| 142 | +# Stage 3: Upgrade runtimes (Python, Node.js, Go, Ruby, Rust) |
| 143 | +# Stage 4: Upgrade user package managers (uv, pipx, npm, pnpm, yarn, cargo, etc.) |
| 144 | +# Stage 5: Upgrade all CLI tools |
| 145 | + |
| 146 | +# Features: |
| 147 | +# - UV migration (auto-migrates pip/pipx to uv tools) |
| 148 | +# - System package detection (skips apt/brew managed) |
| 149 | +# - Comprehensive logging (logs/upgrade-YYYYMMDD-HHMMSS.log) |
| 150 | +# - Dry-run mode available |
| 151 | + |
| 152 | +# Preview without making changes |
| 153 | +make upgrade-all-dry-run |
| 154 | + |
| 155 | +# Check PATH configuration |
| 156 | +make check-path |
| 157 | +``` |
| 158 | + |
128 | 159 | ### Role-Based Audits |
129 | 160 | ```bash |
130 | 161 | make audit-offline-agent-core # AI agent essentials |
@@ -213,20 +244,25 @@ CLI_AUDIT_TRACE=1 python3 cli_audit.py |
213 | 244 |
|
214 | 245 | ## Current Git State |
215 | 246 |
|
216 | | -**Branch:** main (12 commits ahead of origin/main) |
217 | | -**Working Tree:** Clean |
218 | | -**Modified:** .env (GITHUB_TOKEN + CLI_AUDIT_MAX_WORKERS=40), tools_snapshot.json |
| 247 | +**Branch:** main |
| 248 | +**Working Tree:** Modified (documentation updates in progress) |
| 249 | +**Modified:** latest_versions.json, package.json, package-lock.json, tools_snapshot.json, docs/ |
219 | 250 | **Untracked:** node_modules/ |
220 | 251 | **Remote:** git@github.com:netresearch/coding_agent_cli_toolset.git |
221 | 252 |
|
222 | | -**Recent commits (2025-10-13):** |
| 253 | +**Recent commits (2025-10-18 - upgrade-all feature):** |
| 254 | +- 9b784ed - chore: update version snapshots |
| 255 | +- 22c1603 - feat(upgrade-all): add UV migration for pip/pipx packages |
| 256 | +- 1b71b71 - feat(upgrade-all): skip pip/pipx when uv is managing Python packages |
| 257 | +- cceed18 - fix(upgrade-all): detect pipx packages with missing metadata and provide fix |
| 258 | +- 7d691cb - feat(upgrade-all): add comprehensive version and location info to all upgrade stages |
| 259 | + |
| 260 | +**Recent commits (2025-10-13 - environment fixes):** |
223 | 261 | - 34fa37f - chore(snapshot): update tool audit cache with improved detection |
224 | 262 | - 80abd30 - fix(guide): clarify Docker CLI vs Docker Engine terminology |
225 | 263 | - aa57210 - fix(cli_audit): resolve three critical issues in environment and detection |
226 | | -- d092236 - feat(docker): detect client version explicitly, not server |
227 | | -- 2237226 - fix(cli_audit): resolve three issues in make update |
228 | 264 |
|
229 | | -**Recent commits (2025-10-09):** |
| 265 | +**Recent commits (2025-10-09 - documentation):** |
230 | 266 | - 0c7ade3 - Snapshot-based collect/render modes |
231 | 267 | - 3dd5082 - Lock ordering fixes (thread safety) |
232 | 268 | - c160361 - Classification improvements (shebang detection) |
|
0 commit comments