refactor: decouple Coin Hunter from Hermes for cross-platform usage
- Add unified coinhunter_shim.py that accepts subcommands (pre/gate/review/rotate-log) - Update SKILL.md gate pseudocode to read optional ~/.coinhunter/platform.json - Split cron/setup examples into Hermes and OpenClaw variants across docs - Introduce platform.json schema in user-data-layout.md - Remove stale auto_trader.py/run_trader.sh references from auto-trading-guide.md - Keep legacy shims as backward-compatible wrappers
This commit is contained in:
@@ -17,6 +17,7 @@ This keeps personal accounts, positions, and watchlists out of packaged skill ar
|
||||
```text
|
||||
~/.coinhunter/
|
||||
├── config.json
|
||||
├── platform.json
|
||||
├── accounts.json
|
||||
├── positions.json
|
||||
├── watchlist.json
|
||||
@@ -46,6 +47,28 @@ Example:
|
||||
}
|
||||
```
|
||||
|
||||
### platform.json
|
||||
Optional cross-platform runtime configuration. When absent, the framework defaults to Hermes behavior.
|
||||
|
||||
Suggested fields:
|
||||
- `platform` — runtime name (`"hermes"` or `"openclaw"`)
|
||||
- `scripts_dir` — where platform shims are deployed
|
||||
- `env_file` — path to the environment file for secrets
|
||||
- `cron_command` — command array used by the external gate to trigger a job
|
||||
- `delivery` — default delivery channel (`"telegram"`, `"webhook"`, etc.)
|
||||
|
||||
Example:
|
||||
|
||||
```json
|
||||
{
|
||||
"platform": "openclaw",
|
||||
"scripts_dir": "~/.openclaw/scripts",
|
||||
"env_file": "~/.openclaw/.env",
|
||||
"cron_command": ["openclaw", "trigger"],
|
||||
"delivery": "webhook"
|
||||
}
|
||||
```
|
||||
|
||||
### accounts.json
|
||||
Store exchange accounts and balances.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user