bridges: derive skill config vars from the bridge block
Bridge listener addresses were hand-maintained duplicates of bridges.<name>.host/port at the top level (simplex_bridge_url, llm_bridge_url, nextcloud_bridge_url, plus their _token). A host provisioned before a bridge was added never gained the key, so a skill for that bridge could not resolve its URL: the contract config search fell back to 'ask' and a front end captured an unrelated reply as the value (a voice task request was recorded as nextcloud_bridge_url). Add bridges.registry.derived_config_vars(config): for every catalog bridge, derive <name>_bridge_url/<name>_bridge_token from its own bridges.<name> host/port/token. build_scheduler injects these into the config the scheduler and ctx.config expose, so the contract config search finds them and skills read them with no top-level duplicate. A block with no port contributes no URL, leaving an unconfigured bridge as an unresolved variable the operator is asked for. Bind-all hosts normalize to 127.0.0.1. Remove the six redundant top-level keys from config.example.json and update README/AGENTS/bootstrap notes. Tests cover derivation, bind-all normalization, and the unconfigured-bridge skip.
This commit is contained in:
1 parent
d9cc7e4fed
commit
228886f7cd
8 files changed
+113
-36
No files matched your search
@@ -616,21 +616,21 @@ SimpleX forwarding bridge (messaging UX for skills):
|
||||
and 'semif-bridge' (the standalone bridge API). Its contact address is printed
|
||||
above; re-print with:
|
||||
"$PYTHON" scripts/simplex-address.py --ws-url ws://127.0.0.1:$SIMPLEX_FORWARD_PORT
|
||||
- Skills reach it over HTTP via the top-level simplex_bridge_url
|
||||
(default http://127.0.0.1:5227); simplex.connect_link shows its address and
|
||||
simplex.next_message reads messages sent to it.
|
||||
- Skills reach it over HTTP at the address derived from bridges.simplex
|
||||
(host/port, default http://127.0.0.1:5227); simplex.connect_link shows its
|
||||
address and simplex.next_message reads messages sent to it.
|
||||
|
||||
LLM bridge (generation for skills):
|
||||
- Runs inside the same 'semif-bridge' process. It reuses the top-level `llm`
|
||||
model (configured once) and serves a generic POST /chat; skills call it via
|
||||
the top-level llm_bridge_url (default http://127.0.0.1:5229).
|
||||
model (configured once) and serves a generic POST /chat; skills call it at
|
||||
the address derived from bridges.llm (default http://127.0.0.1:5229).
|
||||
|
||||
Nextcloud bridge (files/calendar/tasks/contacts/notes for skills):
|
||||
- Runs inside the same 'semif-bridge' process (Nextcloud is plain HTTPS, so
|
||||
there is no separate daemon). Configure the account once in config.json under
|
||||
bridges.nextcloud (url/username/app_password) — or reuse the top-level
|
||||
nextcloud_* values the calendar seeds collect. Skills call it via the
|
||||
top-level nextcloud_bridge_url (default http://127.0.0.1:5230).
|
||||
nextcloud_* values the calendar seeds collect. Skills call it at the address
|
||||
derived from bridges.nextcloud (default http://127.0.0.1:5230).
|
||||
EOF
|
||||
|
||||
if [[ "$VOICE" = 1 ]]; then
|
||||
|
||||
Reference in new issue
Block a user