feat: Refactor tool management and update documentation for clarity

This commit is contained in:
2026-02-21 00:29:48 -08:00
parent 08c6f3fa83
commit 54ba2ccc62
17 changed files with 160 additions and 154 deletions

View File

@@ -132,8 +132,6 @@ Creates a shim so the tool is available system-wide after
```yaml
tool:
tool_type: python_standalone # or "script"
category: document # Grouping for display
source: tools/document/ # Source directory
version: "1.0.0"
system_dependencies: [pandoc, poppler-utils]
@@ -143,6 +141,11 @@ This block provides metadata for `castle tool list` and the dashboard.
It's separate from `install` (which handles PATH registration) and `run`
(which handles execution).
The install method (uv tool install vs symlink) is inferred from the source
directory: if `pyproject.toml` exists, it's a Python package; if the source
is a file, it's symlinked. Grouping for `castle tool list` and the dashboard
is derived from the source directory name (e.g., `tools/document/` → "document").
### `build` — How to build it
```yaml
@@ -223,8 +226,6 @@ components:
my-tool:
description: Does something useful
tool:
tool_type: python_standalone
category: utilities
source: my-tool/
install:
path: