Skip to content

Commit 009a31e

Browse files
committed
docs: update AGENTS.md with multi-version runtime documentation
- Add --versions command to quick reference table - Add multi-version runtimes section with usage examples - Document endoflife.date integration in cli_audit module overview - Update catalog count to 78 entries
1 parent 8c7e42c commit 009a31e

2 files changed

Lines changed: 25 additions & 3 deletions

File tree

AGENTS.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ uv run python audit.py --help # Verify CLI works
6363
| `make upgrade-managed` | Upgrade all package managers |
6464
| `make upgrade-dry-run` | Preview upgrades without changes |
6565
| `./scripts/set_auto_update.sh <tool>` | Enable auto-update for a tool |
66+
| `uv run python audit.py --versions` | Show multi-version runtime status |
67+
| `uv run python audit.py --versions php` | Show specific runtime versions |
6668

6769
## Data files
6870

@@ -82,6 +84,20 @@ uv run python audit.py --help # Verify CLI works
8284
- **Phase 2:** Installation & upgrade management (complete)
8385
- **Entry point:** `audit.py``cli_audit` package
8486

87+
## Multi-version runtimes
88+
89+
Runtimes supporting multiple concurrent versions (PHP, Python, Node.js, Ruby, Go) use dynamic detection from [endoflife.date](https://endoflife.date/) API.
90+
91+
```bash
92+
# Show all runtime versions
93+
uv run python audit.py --versions
94+
95+
# JSON output for scripting
96+
CLI_AUDIT_JSON=1 uv run python audit.py --versions
97+
```
98+
99+
**Catalog config:** Tools with `multi_version.enabled: true` in their JSON catalog define detection strategies (binary patterns or version manager directories).
100+
85101
## When instructions conflict
86102

87103
Nearest AGENTS.md wins. User prompts override all files.

cli_audit/AGENTS.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ The `cli_audit` package provides the core functionality for AI CLI Preparation:
1010

1111
**Phase 1: Detection & Auditing (6 modules)**
1212
- `tools.py` — Tool definitions and metadata
13-
- `catalog.py` — JSON catalog management (76 entries)
14-
- `detection.py` — Installation detection, version extraction
15-
- `collectors.py` — Upstream version collection (GitHub, PyPI, npm, crates)
13+
- `catalog.py` — JSON catalog management (78 entries)
14+
- `detection.py` — Installation detection, version extraction, multi-version detection
15+
- `collectors.py` — Upstream version collection (GitHub, PyPI, npm, crates, endoflife.date)
1616
- `snapshot.py` — Snapshot-based caching
1717
- `render.py` — Output formatting and table rendering
1818

@@ -56,6 +56,12 @@ local_state.json # Gitignored - machine-specific installation state
5656
- Categories: python, node, go, rust, ruby, php, shell, git, devops, platform, ai, general
5757
- User preferences (auto_update) stored in user config, not catalog
5858

59+
**Multi-version runtimes** (PHP, Python, Node.js, Ruby, Go):
60+
- Catalog entries with `multi_version.enabled: true` support concurrent versions
61+
- Version lifecycle data from [endoflife.date](https://endoflife.date/) API
62+
- Detection via binary patterns (`php8.4`) or version manager dirs (`~/.nvm/versions/node/`)
63+
- See: `collect_endoflife()`, `detect_multi_versions()`
64+
5965
## Setup & environment
6066

6167
**Requirements:**

0 commit comments

Comments
 (0)