Skip to content

Commit 29e12c0

Browse files
fabrizio guespefabrizio guespe
authored andcommitted
Switch package manager from yarn to npm for consistency
1 parent aa07e97 commit 29e12c0

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

docs/wallet-app/guides/chat-agents.mdx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,15 @@ cd xmtp-agent-examples
5555
Install all required packages:
5656

5757
```bash
58-
yarn
58+
npm
5959
```
6060

6161
**STEP 3: GENERATE KEYS FOR YOUR AGENT**
6262

6363
Run the key generation script to create your agent's wallet:
6464

6565
```bash
66-
yarn gen:keys
66+
npm gen:keys
6767
```
6868

6969
This creates a .env file with:
@@ -107,7 +107,7 @@ for await (const message of stream) {
107107
Then run your agent:
108108
109109
```bash
110-
yarn dev
110+
npm dev
111111
```
112112
113113
### Getting the address of a user
@@ -138,7 +138,7 @@ You can also explore example implementations in the `/examples` folder, includin
138138
1\. Start your agent:
139139
140140
```javascript
141-
yarn dev
141+
npm dev
142142
```
143143
144144
2\. Test on [xmtp.chat:](https://xmtp.chat/conversations)
@@ -216,14 +216,13 @@ const address = inboxState.identifiers[0].identifier;
216216
const inboxId = client.inboxId;
217217
const installationId = client.installationId;
218218
const conversations = await client.conversations.list();
219-
const installations = await client.preferences.inboxState();
220219

221220
console.log(`
222221
✓ XMTP Client:
223222
• InboxId: ${inboxId}
224223
• Address: ${address}
225224
• Conversations: ${conversations.length}
226-
• Installations: ${installations.installations.length}
225+
• Installations: ${inboxState.installations.length}
227226
• InstallationId: ${installationId}
228227
• Network: ${process.env.XMTP_ENV}`);
229228
```

0 commit comments

Comments
 (0)