CLI: add a 'castle tool' lens + sweep for model alignment
The tools lens coding assistants need. 'castle tool list [--json]' lists tools (programs with a manager:path deployment) surfacing each tool's actual EXECUTABLE — resolved from pyproject [project.scripts], which can differ from the program name (litellm-intent-router → intent-router) — plus description and install state. 'castle tool info <name> [--json]' details one; 'castle tool install|uninstall'. --json is a clean machine-readable catalog for building context. Sweep: main.py descriptions/help mention the tool lens; 'frontend'→'static' in install help; add.py._detect drops the dead behavior return (add adopts source only); stale comments/help fixed. Docs (CLAUDE.md/README/registry) document 'castle tool'. Tests: cli/tests/test_tool.py (list/info/json). Suites: core 124, cli 29, castle-api 58.
This commit is contained in:
@@ -75,7 +75,8 @@ castle services start|stop Start/stop everything
|
||||
```
|
||||
|
||||
Tools are deployments with `manager: path` (derived **kind: tool**) — list them
|
||||
with `castle list --kind tool`.
|
||||
with `castle tool list` (add `--json` for the machine-readable catalog with each
|
||||
tool's executable, description, and install state).
|
||||
|
||||
## Registry
|
||||
|
||||
|
||||
Reference in New Issue
Block a user