ADHOC-2026-09-22-T01: statehub register renders {CREDENTIAL_ROUTING} into AGENTS.md
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Assistant: claude-code Assistant-Model: opus Assistant-Process: 7184@bnt-lap001 Assistant-Session: 4b436ae2-b17c-4b40-8754-200b161b26e4
This commit is contained in:
parent
fafaced426
commit
19450d7618
3 changed files with 54 additions and 1 deletions
|
|
@ -451,7 +451,12 @@ def write_registration_files(
|
|||
agents_path = project_path / "AGENTS.md"
|
||||
if force or not agents_path.exists():
|
||||
agents_template = (RULES_TEMPLATES_DIR / "agents-codex.template").read_text()
|
||||
agents = _replace_many(agents_template, values)
|
||||
credential_routing = _replace_many(
|
||||
(RULES_TEMPLATES_DIR / "credential-routing.template").read_text(), values
|
||||
)
|
||||
agents = _replace_many(
|
||||
agents_template, {**values, "{CREDENTIAL_ROUTING}": credential_routing}
|
||||
)
|
||||
agents_path.write_text(_ensure_trailing_newline(agents))
|
||||
written.append(agents_path)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue