refactor: move shims from templates/ to scripts/ and drop legacy shims
- Remove 4 legacy shim files; only the unified coinhunter_shim.py remains - Move the remaining shim from templates/ to scripts/ per skill best practices - Update all docs (README, CLAUDE, shim-templates) to reference scripts/
This commit is contained in:
@@ -2,14 +2,14 @@
|
||||
|
||||
These files are tiny compatibility shims for cron-based platforms (Hermes, OpenClaw, etc.) that expect scripts under a scripts directory such as `~/.hermes/scripts/` or `~/.openclaw/scripts/`.
|
||||
|
||||
## Unified shim (recommended)
|
||||
## Unified shim
|
||||
|
||||
`templates/coinhunter_shim.py` is the cross-platform wrapper. It takes the subcommand as its first argument and delegates to the installed `coinhunter` CLI:
|
||||
`scripts/coinhunter_shim.py` is the cross-platform wrapper. It takes the subcommand as its first argument and delegates to the installed `coinhunter` CLI:
|
||||
|
||||
```bash
|
||||
cp templates/coinhunter_shim.py ~/.hermes/scripts/coinhunter_shim.py
|
||||
cp scripts/coinhunter_shim.py ~/.hermes/scripts/coinhunter_shim.py
|
||||
# or
|
||||
cp templates/coinhunter_shim.py ~/.openclaw/scripts/coinhunter_shim.py
|
||||
cp scripts/coinhunter_shim.py ~/.openclaw/scripts/coinhunter_shim.py
|
||||
```
|
||||
|
||||
Usage examples:
|
||||
@@ -18,16 +18,7 @@ Usage examples:
|
||||
- `coinhunter_shim.py review`
|
||||
- `coinhunter_shim.py rotate-log`
|
||||
|
||||
## Legacy shims (backward compatibility)
|
||||
|
||||
The original individual shims are still provided for existing Hermes users who already have them deployed. Their behavior is unchanged:
|
||||
|
||||
- `templates/coinhunter_precheck_shim.py` -> `~/.hermes/scripts/coinhunter_precheck.py`
|
||||
- `templates/coinhunter_external_gate_shim.py` -> `~/.hermes/scripts/coinhunter_external_gate.py`
|
||||
- `templates/coinhunter_review_context_shim.py` -> `~/.hermes/scripts/coinhunter_review_context.py`
|
||||
- `templates/rotate_external_gate_log_shim.py` -> `~/.hermes/scripts/rotate_external_gate_log.py`
|
||||
|
||||
The real business logic lives in the external `coinhunter` CLI package (installed from PyPI). These shims only delegate to it.
|
||||
The real business logic lives in the external `coinhunter` CLI package (installed from PyPI). This shim only delegates to it.
|
||||
|
||||
The user runtime data stays under:
|
||||
- `~/.coinhunter/`
|
||||
|
||||
Reference in New Issue
Block a user