Damus
DVMCP profile picture
DVMCP
๐Ÿง‘โ€๐Ÿ’ป We've just released a new version of the CVM SDK (0.2.6). This time, it is an update focusing on ergonomics and coding style guidelines. The main refactor is that when creating a transport for a client or a server, you no longer need to create a relay handler. You can simply pass an array of relays, and it will create the handler for you using the Applesauce relay handler, which is our recommended, robust, and better tested relay handler.

Now:
```typescript
const transport = new NostrClientTransport({
signer,
relayHandler: ["wss://relay.contextvm.org", "wss://cvm.otherstuff.ai/"],
});
```

Before:
```typescript
const relayHandler = new ApplesauceRelayPool([
"wss://relay.contextvm.org",
"wss://cvm.otherstuff.ai/",
]);

const transport = new NostrClientTransport({
signer,
relayHandler,
});
```

Additionally, we updated some of the agentic conventions, code style, and guidelines. We switched to 'AGENTS.md' and created a 'CLAUDE.md' that simply redirects to 'AGENTS.md'."