Skip to content

refactor(codegen): reuse named schema union aliases in generated signatures - #214

Merged
PsiACE merged 1 commit into
mainfrom
refactor/gen-signature-reuse-named-unions
Nov 28, 2026
Merged

PsiACE merged 1 commit into
mainfrom
refactor/gen-signature-reuse-named-unions

Conversation

@PsiACE

@PsiACE PsiACE commented Nov 28, 2026

Copy link
Copy Markdown
Member

Extend scripts/gen_signature.py to match field union annotations against exported named union aliases in the schema module (mirroring Literal alias reuse), and regenerate v2 signatures.

Replaces verbose inline unions such as 31-variant SessionUpdate and 7-variant ContentBlock in src/acp/experimental/v2/{interfaces,agent,client}.py with schema.SessionUpdate and schema.ContentBlock.

Verification

  • make gen-check
  • make check
  • make test

@PsiACE
PsiACE merged commit f0f546e into main Nov 28, 2026
9 checks passed
@PsiACE
PsiACE deleted the refactor/gen-signature-reuse-named-unions branch November 28, 2026 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant