Skip to content

feat(v2): align extension methods with v1 and declare protocol hooks - #215

Merged
PsiACE merged 1 commit into
mainfrom
feat/v2-protocol-lifecycle-and-extension-hooks
Nov 29, 2026
Merged

PsiACE merged 1 commit into
mainfrom
feat/v2-protocol-lifecycle-and-extension-hooks

Conversation

@PsiACE

@PsiACE PsiACE commented Nov 28, 2026 •

Copy link
Copy Markdown
Member

Aligns ACP v2 extension methods with v1 naming and declares lifecycle/extension hooks on v2 protocols.

Summary

  • Rename v2 connection extension senders (send_extension_request / send_extension_notification) and router handlers (handle_extension_request / handle_extension_notification) to ext_method and ext_notification, matching v1.
  • Declare ext_method, ext_notification, and on_connect at the bottom of v2.Agent and v2.Client protocols; inherited stubs continue to return -32601 for requests and ignore notifications.
  • Update v2 runtime tests and docs/experimental-v2.md.

Verification

  • make gen-check
  • make check
  • make test (683 passed, 1 skipped, 0 warnings)
  • NO_MKDOCS_2_WARNING=true make docs-test

@PsiACE
PsiACE marked this pull request as draft November 28, 2026 17:11
@PsiACE
PsiACE force-pushed the feat/v2-protocol-lifecycle-and-extension-hooks branch from 486b814 to 2040be1 Compare November 29, 2026 03:19
@PsiACE
PsiACE force-pushed the feat/v2-protocol-lifecycle-and-extension-hooks branch from 2040be1 to 184130d Compare November 29, 2026 03:58
@PsiACE PsiACE changed the title feat(v2): declare on_connect and extension hooks on v2 protocols feat(v2): align extension methods with v1 and declare protocol hooks Nov 29, 2026
@PsiACE
PsiACE marked this pull request as ready for review November 29, 2026 03:58
@PsiACE
PsiACE merged commit 1b7d544 into main Nov 29, 2026
18 checks passed
@PsiACE
PsiACE deleted the feat/v2-protocol-lifecycle-and-extension-hooks branch November 29, 2026 04:17
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