docs(claude+readme): standardize CLAUDE.md, sync loader API method count 6 → 7
plugin-tests / test (push) Successful in 6s
upstream-drift / drift (push) Failing after 36s

- CLAUDE.md: drop Karpathy block, list all 7 loader methods incl
  register_audio_attachment_processor
- README: extend "Public extension API" to 7 methods

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Svrnty
2026-05-23 11:46:44 -04:00
parent adc4c98cf8
commit 33014fbea9
2 changed files with 41 additions and 87 deletions
+8 -7
View File
@@ -35,15 +35,16 @@ Without `HERMES_WEBUI_PYTHON_PLUGIN`, hermes-webui runs vanilla (no Svrnty mods)
## Public extension API
The plugin loader (one fork commit in hermes-webui) exposes exactly 6 methods:
The plugin loader (one fork commit in hermes-webui) exposes exactly 7 methods:
```python
api.register_route(path, method, handler) # add /api/<path>
api.register_static(prefix, directory) # serve files under /plugins/<prefix>/...
api.inject_script(url) # add <script> to index.html
api.inject_stylesheet(url) # add <link> to index.html
api.config_get(key, default) # safe upstream config read
api.logger(name) # namespaced logger
api.register_route(path, method, handler) # add /api/<path>
api.register_static(prefix, directory) # serve files under /plugins/<prefix>/...
api.inject_script(url) # add <script> to index.html
api.inject_stylesheet(url) # add <link> to index.html
api.config_get(key, default) # safe upstream config read
api.logger(name) # namespaced logger
api.register_audio_attachment_processor(fn) # hook STT/voice attachment pipeline
```
Touching anything else in hermes-webui = a Rule 2 violation per the protocol. Document the escape hatch in `CONNECTION-MAP.md` under "forced internal dependencies".