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:
1 parent
d0df6f16c4
commit
98ec4ee5e2
19 files changed
+324
-89
No files matched your search
+5
-4
@@ -75,10 +75,11 @@ A stdlib-only Python script that:
|
||||
headers, body) where practical. The loopback address exists only in the test;
|
||||
the body must read its endpoint from config.
|
||||
- For a messaging skill (a body that talks to a bridge service), stand up a
|
||||
loopback server implementing the bridge endpoints the body uses (`GET /inbox`,
|
||||
`GET /inbox/next?contact=`, `GET /address`, `POST /send`) and assert the body
|
||||
built the real requests. Never connect to a real `simplex-chat` daemon or a
|
||||
live bridge.
|
||||
loopback server implementing the bridge endpoints the body uses (the bridge
|
||||
catalog injected into this prompt lists them) and assert the body built the
|
||||
real requests. If the catalog names an auth header, set the fixture token in
|
||||
the fixture config and assert the body sent that header. Never connect to a
|
||||
real service daemon or a live bridge.
|
||||
- For non-HTTP transports (IMAP, SMTP, subprocess, ...), exercise config
|
||||
resolution, argument construction, and error paths (missing or misconfigured
|
||||
values) without performing the real I/O.
|
||||
|
||||
Reference in new issue
Block a user