codegen: move bridge specifics into the catalog

Bridge specifics (service, base-URL config var, auth header/token var,
config-var docs, endpoints with error shapes) now live in BridgeInfo and
render through describe_bridges(), which is injected into body, retry,
regen, elicitation, and testgen prompts. SKILL.md/TESTGEN.md carry only
the generic pattern.

- regen prompt regains the catalog (was a dangling reference)
- elicitation integration hint rides body/retry/regen as an advisory
- top-level simplex_bridge_token config var; bootstrap syncs it
- simplex seeds read the token and send X-Semif-Token when set
This commit is contained in:
Denton Social committed 2026-09-28 23:30:44 -05:00
1 parent d0df6f16c4
commit 98ec4ee5e2
19 files changed
+324 -89

No files matched your search

+3 -1
View File
@@ -286,12 +286,14 @@ simplex["home_channel"] = home_channel
# The standalone SimpleX forwarding bridge owns its own daemon/profile
# (simplex_chat.forward_port), separate from the command gateway, and serves the
# invite-link / read / send HTTP API skills use. Expose its URL as the top-level
# `simplex_bridge_url` so the data-contract config search auto-populates it.
# `simplex_bridge_url` so the data-contract config search auto-populates it, and
# mirror its optional shared secret as `simplex_bridge_token` for the auth header.
bridge = cfg.setdefault("bridges", {}).setdefault("simplex", {})
bridge_port = int(bridge.get("port", 5227))
bridge["enabled"] = True
bridge["ws_url"] = f"ws://127.0.0.1:{cfg['simplex_chat'].get('forward_port', 5228)}"
cfg["simplex_bridge_url"] = f"http://127.0.0.1:{bridge_port}"
cfg["simplex_bridge_token"] = bridge.get("token", "") or ""
simplex.pop("bridge", None) # legacy key; forwarding is a separate service now
json.dump(cfg, open(out, "w"), indent=2)
PY