Some checks failed
plugin-tests / test (push) Failing after 6s
routes/adwright.py now lazy-imports adwright_core from adwright-mcp/ and calls the 6 v1 tool functions directly. Real payloads flow through last-panel-update; mock data remains as fallback if adwright_core import fails (proto version mismatch, missing adwright-mcp dir, etc). Verified in webui's hermes-agent venv (Python 3.11 + protobuf 6.x): - get_connections_status → real Plan B sandbox act_967504505966162 - list_cycles / list_segments / list_recipes → real (empty) data - refresh_cycles → real timestamp + cycle re-fetch Workspace-internal dependency on adwright-mcp/ documented in CONNECTION-MAP (regen). Karpathy 4 rules: smallest possible change to lift mock→real (single function add + handler tweak), no abstraction layer introduced, fallback preserves uptime if adwright-mcp evolves incompatibly. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
57 lines
3.0 KiB
Markdown
57 lines
3.0 KiB
Markdown
# CONNECTION MAP — svrnty-hermes-webui-plugin → nesquena/hermes-webui
|
|
|
|
**Upstream version:** v0.51.118
|
|
**Plugin version:** 0.4.0
|
|
**Total dependencies:** 24 (19 public API · 0 forced internal · 5 frontend)
|
|
|
|
> **Auto-generated by `scripts/ast-connection-map.py`. Do not hand-edit.**
|
|
> To change a justification, edit the `# CONNECTION:` comment above the
|
|
> relevant import and re-run the script.
|
|
|
|
---
|
|
|
|
## Public API dependencies (via loader-provided `api`)
|
|
|
|
| Plugin location | Upstream symbol | Snippet |
|
|
|---|---|---|
|
|
| `plugin.py:29` | `api.logger` | `log = api.logger("svrnty.plugin")` |
|
|
| `plugin.py:34` | `api.register_static` | `api.register_static(STATIC_PREFIX, str(STATIC_DIR))` |
|
|
| `plugin.py:35` | `api.inject_stylesheet` | `api.inject_stylesheet(f"/plugins/{STATIC_PREFIX}/app.css")` |
|
|
| `plugin.py:36` | `api.inject_script` | `api.inject_script(f"/plugins/{STATIC_PREFIX}/app.js")` |
|
|
| `plugin.py:40` | `api.inject_stylesheet` | `api.inject_stylesheet(f"/plugins/{STATIC_PREFIX}/adwright.css")` |
|
|
| `plugin.py:41` | `api.inject_script` | `api.inject_script(f"/plugins/{STATIC_PREFIX}/adwright.js")` |
|
|
| `plugin.py:46` | `api.inject_stylesheet` | `api.inject_stylesheet(f"/plugins/{STATIC_PREFIX}/bte.css")` |
|
|
| `plugin.py:47` | `api.inject_script` | `api.inject_script(f"/plugins/{STATIC_PREFIX}/bte.js")` |
|
|
| `routes/adwright.py:68` | `api.logger` | `log = api.logger("svrnty.routes.adwright")` |
|
|
| `routes/adwright.py:69` | `api.register_route` | `api.register_route(` |
|
|
| `routes/adwright.py:71` | `api.register_route` | `api.register_route(` |
|
|
| `routes/bte_proxy.py:40` | `api.logger` | `log = api.logger("svrnty.routes.bte_proxy")` |
|
|
| `routes/bte_proxy.py:41` | `api.register_route` | `api.register_route("/api/bte/proxy", "GET", _handle_proxy)` |
|
|
| `routes/bte_proxy.py:42` | `api.register_route` | `api.register_route("/api/bte/proxy", "POST", _handle_proxy)` |
|
|
| `routes/transcribe.py:37` | `api.logger` | `log = api.logger("svrnty.routes.transcribe")` |
|
|
| `routes/transcribe.py:38` | `api.register_route` | `api.register_route("/api/transcribe", "POST", _handle_transcribe)` |
|
|
| `routes/transcribe.py:39` | `api.register_audio_attachment_processor` | `api.register_audio_attachment_processor(_transcribe_audio_attachments)` |
|
|
| `routes/vault_status.py:19` | `api.logger` | `log = api.logger("svrnty.routes.vault_status")` |
|
|
| `routes/vault_status.py:20` | `api.register_route` | `api.register_route("/api/vault/status", "GET", _handle_vault_status)` |
|
|
|
|
---
|
|
|
|
## Forced internal dependencies (Rule 2 escape hatch)
|
|
|
|
Each row requires a `# CONNECTION: <reason>` comment in source.
|
|
|
|
_None. Plugin uses only the public API._ ✓
|
|
|
|
---
|
|
|
|
## Frontend dependencies (static/*.js → /api/* URLs)
|
|
|
|
| File | Line | URL |
|
|
|---|---|---|
|
|
| `static/bte.js` | 330 | `/api/command/requestPhotoshoot` |
|
|
| `static/bte.js` | 369 | `/api/query/assetGrid` |
|
|
| `static/bte.js` | 483 | `/api/command/rateAsset` |
|
|
| `static/adwright.js` | 478 | `/api/adwright/provision-creds` |
|
|
| `static/app.js` | 165 | `/api/vault/status` |
|
|
|