feat(transport): inject CEP-15 schemaHash into tools/list results#38
feat(transport): inject CEP-15 schemaHash into tools/list results#38abhayguptas wants to merge 7 commits intoContextVM:masterfrom
Conversation
|
I think the overall implementation looks good. Reusing the existing transformer path through |
|
Thanks, this makes sense. I kept I also tightened the no-op path in |
ee59b0d to
683288f
Compare
683288f to
5279b7f
Compare
Summary
This PR is the next stacked CEP-15 step on top of #37.
It wires the common-schema helpers into the transport layer so opted-in tools receive
_meta["io.contextvm/common-schema"].schemaHashintools/listresults. The same enrichment is applied to both directtools/listresponses and the publickind:11317announcement content, so both paths stay consistent.Changes
withCommonToolSchemas()transport helpertools/listresult transformer seam inNostrServerTransportkind:11317announcement contentsrc/transport/index.tsTests
bun test src/transport/server-transport-common-schemas.test.ts src/transport/nostr-server-transport.test.tsbun run typecheckNotes
This PR intentionally stops at
_meta.schemaHashinjection and consistency between direct and announcedtools/listpayloads.It does not yet add CEP-15
i/kdiscovery tags to announcement events. That can stay as the next follow-up PR.