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
@@ -34,6 +34,13 @@ class BridgeInfo:
|
||||
endpoints: tuple[str, ...] = ()
|
||||
#: Other `ctx.config` keys a body built on this bridge may read.
|
||||
config_vars: tuple[str, ...] = field(default=())
|
||||
#: One-line semantic description per config var: `(name, description)`.
|
||||
#: Every entry in `config_vars` must be documented here.
|
||||
config_var_docs: tuple[tuple[str, str], ...] = ()
|
||||
#: Optional shared-secret header the bridge enforces when its token is set
|
||||
#: (e.g. `X-Semif-Token`), and the top-level `ctx.config` var holding it.
|
||||
auth_header: str = ""
|
||||
auth_config_var: str = ""
|
||||
|
||||
|
||||
class BridgeService(ABC):
|
||||
|
||||
Reference in new issue
Block a user