TypeScript SDK reference.
The @cosmonapse/sdk surface - the idiomatic TypeScript port of the same protocol. Verified against packages/ts-sdk.
Parity with the Python SDK
As of 0.1.5 the port covers the full Python surface: the envelope and signal builders, all four Synapse adapters with the URL factory, all three registry backends, Neuron source factories, Axon (with recognisers and Engram bindings), Dendrite (Pathway dispatch, offers and bidding, interactive cognition, Engram hosting), and the lifecycle hooks. The 92-test suite mirrors the Python one. Remaining differences are idiomatic, not functional:
| Python | TypeScript |
|---|---|
| Decorators (@dendrite.on_agent_output) | Method calls (dendrite.onAgentOutput(fn, filter?)). |
| Keyword args (deadline_ms=, trace_id=) | Options objects with camelCase keys (deadlineMs, traceId). Wire fields stay snake_case. |
| async with dendrite | Use start() / stop() explicitly. |
| Neuron memory helpers injected as keyword args (recall=, imprint=) | Helpers ride a context object as the NeuronFn’s optional third argument. |
| asyncio.TimeoutError on Pathway.wait timeout | A plain Error with a timeout message. |
Have a feature in mind?
The protocol, SDKs, and CLI are still pre-1.0. If something here is missing, ambiguous, or wrong - open an issue and propose a change. Every breaking change is debated in DECISIONS.md first.