docs(claude+readme): standardize CLAUDE.md, sync loader API method count 6 → 7
- 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:
@@ -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".
|
||||
|
||||
Reference in New Issue
Block a user