svrnty-hermes-webui-plugin/CONNECTION-MAP.md
Svrnty c6d94462c4
Some checks failed
plugin-tests / test (push) Failing after 2s
feat(bte_proxy): Path A adapter — translate panel recipe-shape to BTE canonical
Panel's BTE Command Center posts {brandId(slug), recipeSlug, items[],
variantsPerScenario} which the current BTE backend doesn't accept (PRD §5.8
recipe-driven fan-out not shipped). Adapter intercepts POST
/api/command/requestPhotoshoot, resolves brand slug -> Guid via /api/query/brandDtos
(cached in-process), expands items × variants into per-shot entries, inlines the
StopgapFluxWorkflow FLUX.2 graph as workflowJson (LocalFluxImageProvider
rejects empty), parses mode from recipeLabel for rubricMode (polished|ugc;
photoreal/artistic fall back to polished per BTE validator). All other proxied
paths pass through unchanged. Stdlib-only.

Verified: real POST through adapter -> BTE returns 200 with saga-start envelope
(per-shot DB failure is BTE-internal, out of scope — adapter cleared schema).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-24 13:34:39 -04:00

3.5 KiB

CONNECTION MAP — svrnty-hermes-webui-plugin → nesquena/hermes-webui

Upstream version: v0.51.118
Plugin version: 0.5.0
Total dependencies: 30 (24 public API · 0 forced internal · 6 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:39 api.inject_script api.inject_script(f"/plugins/{STATIC_PREFIX}/svrnty_nav.js")
plugin.py:42 api.inject_stylesheet api.inject_stylesheet(f"/plugins/{STATIC_PREFIX}/adwright.css")
plugin.py:43 api.inject_script api.inject_script(f"/plugins/{STATIC_PREFIX}/adwright.js")
plugin.py:45 api.inject_stylesheet api.inject_stylesheet(f"/plugins/{STATIC_PREFIX}/bte.css")
plugin.py:46 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:89 api.logger log = api.logger("svrnty.routes.bte_proxy")
routes/bte_proxy.py:90 api.register_route api.register_route("/api/bte/proxy", "GET", _handle_proxy)
routes/bte_proxy.py:91 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/umbrella.py:30 api.logger log = api.logger("svrnty.routes.umbrella")
routes/umbrella.py:31 api.register_route api.register_route("/umbrella", "GET", _handle_panel_html)
routes/umbrella.py:32 api.register_route api.register_route("/api/umbrella", "GET", _handle_graph_json)
routes/umbrella.py:33 api.register_route api.register_route("/api/umbrella/doc", "GET", _handle_doc_body)
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 329 /api/command/requestPhotoshoot
static/bte.js 368 /api/query/assetGrid
static/bte.js 482 /api/command/rateAsset
static/adwright.js 484 /api/adwright/provision-creds
static/umbrella.js 41 /api/umbrella
static/app.js 165 /api/vault/status