Skip to content

Commit 24fcb02

Browse files
authored
Update agent-sdk versions (#1530)
* Update agent-sdk versions * Update agent SDK versions * Refactor codecs, enhance logs
1 parent 189cb19 commit 24fcb02

File tree

4 files changed

+65
-67
lines changed

4 files changed

+65
-67
lines changed

agents/bots/key-check/index.ts

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -296,16 +296,7 @@ const agent = await Agent.createFromEnv({
296296
dbPath: (inboxId) =>
297297
(process.env.RAILWAY_VOLUME_MOUNT_PATH ?? ".") +
298298
`/${process.env.XMTP_ENV}-${inboxId.slice(0, 8)}.db3`,
299-
codecs: [
300-
new MarkdownCodec(),
301-
new ReactionCodec(),
302-
new ReplyCodec(),
303-
new RemoteAttachmentCodec(),
304-
new AttachmentCodec(),
305-
new WalletSendCallsCodec(),
306-
new ActionsCodec(),
307-
new IntentCodec(),
308-
],
299+
codecs: [new ActionsCodec(), new IntentCodec()],
309300
});
310301

311302
// Add inline actions middleware
@@ -356,7 +347,9 @@ agent.on("text", async (ctx) => {
356347
content.trim().startsWith("/kc") ||
357348
content.trim().startsWith("@key-check.eth");
358349
if (isTagged) {
359-
console.log(`Showing main menu for: ${content}`);
350+
console.log(
351+
`Showing main menu for: ${content} to ${await ctx.getSenderAddress()}`,
352+
);
360353
await showMenu(ctx, appConfig, "main-menu");
361354
return;
362355
}

agents/versions/agent-sdk.ts

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import {
2-
Agent as Agent100,
3-
MessageContext as MessageContext100,
4-
} from "@xmtp/agent-sdk-1.0.0";
2+
Agent as Agent12,
3+
MessageContext as MessageContext12,
4+
} from "@xmtp/agent-sdk-1.1.2";
55
import {
6-
Agent as Agent101,
7-
MessageContext as MessageContext101,
8-
} from "@xmtp/agent-sdk-1.0.1";
6+
Agent as Agent17, // 1.1.7
7+
MessageContext as MessageContext17,
8+
} from "@xmtp/agent-sdk-1.1.7";
99
import {
10-
Agent as Agent115,
11-
MessageContext as MessageContext115,
12-
} from "@xmtp/agent-sdk-1.1.9";
10+
Agent as Agent110, // 1.1.10 (latest)
11+
MessageContext as MessageContext110,
12+
} from "@xmtp/agent-sdk-1.1.10";
1313

1414
// Export the latest version as default
1515
export {
@@ -19,31 +19,31 @@ export {
1919
type Group,
2020
type IdentifierKind,
2121
type PermissionLevel,
22-
} from "@xmtp/agent-sdk-1.1.9";
22+
} from "@xmtp/agent-sdk-1.1.10";
2323

24-
export { getTestUrl } from "@xmtp/agent-sdk-1.1.9/debug";
24+
export { getTestUrl } from "@xmtp/agent-sdk-1.1.10/debug";
2525

2626
export const AgentVersionList = [
2727
{
28-
Agent: Agent115,
29-
MessageContext: MessageContext115,
30-
agentSDK: "1.1.9",
31-
nodeSDK: "4.2.3",
32-
nodeBindings: "1.5.4",
28+
Agent: Agent110,
29+
MessageContext: MessageContext110,
30+
agentSDK: "1.1.10",
31+
nodeSDK: "4.3.0",
32+
nodeBindings: "1.6.0-rc2",
3333
auto: true,
3434
},
3535
{
36-
Agent: Agent101,
37-
MessageContext: MessageContext101,
38-
agentSDK: "1.0.1",
36+
Agent: Agent17,
37+
MessageContext: MessageContext17,
38+
agentSDK: "1.1.7",
3939
nodeSDK: "4.1.0",
4040
nodeBindings: "1.4.0",
4141
auto: true,
4242
},
4343
{
44-
Agent: Agent100,
45-
MessageContext: MessageContext100,
46-
agentSDK: "1.0.0",
44+
Agent: Agent12,
45+
MessageContext: MessageContext12,
46+
agentSDK: "1.1.2",
4747
nodeSDK: "4.1.0",
4848
nodeBindings: "1.4.0",
4949
auto: true,

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@
2929
},
3030
"dependencies": {
3131
"@anthropic-ai/sdk": "^0.54.0",
32-
"@xmtp/agent-sdk-1.0.0": "npm:@xmtp/[email protected]",
33-
"@xmtp/agent-sdk-1.0.1": "npm:@xmtp/[email protected]",
32+
"@xmtp/agent-sdk-1.1.10": "npm:@xmtp/[email protected]",
3433
"@xmtp/agent-sdk-1.1.2": "npm:@xmtp/[email protected]",
35-
"@xmtp/agent-sdk-1.1.9": "npm:@xmtp/[email protected].9",
34+
"@xmtp/agent-sdk-1.1.7": "npm:@xmtp/[email protected].7",
3635
"@xmtp/content-type-markdown": "^1.0.0",
3736
"@xmtp/content-type-reaction": "^2.0.2",
3837
"@xmtp/content-type-reply": "^2.0.2",

yarn.lock

Lines changed: 37 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1379,33 +1379,21 @@ __metadata:
13791379
languageName: node
13801380
linkType: hard
13811381

1382-
"@xmtp/agent-sdk-1.0.0@npm:@xmtp/[email protected]":
1383-
version: 1.0.0
1384-
resolution: "@xmtp/agent-sdk@npm:1.0.0"
1385-
dependencies:
1386-
"@xmtp/content-type-reaction": "npm:^2.0.2"
1387-
"@xmtp/content-type-remote-attachment": "npm:^2.0.2"
1388-
"@xmtp/content-type-reply": "npm:^2.0.2"
1389-
"@xmtp/content-type-text": "npm:^2.0.2"
1390-
"@xmtp/node-sdk": "npm:^4.1.2"
1391-
uint8arrays: "npm:^5.1.0"
1392-
viem: "npm:^2.37.6"
1393-
checksum: 10/534d839d1ce4b4a7cefa7a64558bd6bac7b3373c2a30ab43e0b3f00caa52265dc47ece27e23dbcb64fe217702b0709a9a30bda6504f2109fb60d582fd51342a4
1394-
languageName: node
1395-
linkType: hard
1396-
1397-
"@xmtp/agent-sdk-1.0.1@npm:@xmtp/[email protected]":
1398-
version: 1.0.1
1399-
resolution: "@xmtp/agent-sdk@npm:1.0.1"
1382+
"@xmtp/agent-sdk-1.1.10@npm:@xmtp/[email protected]":
1383+
version: 1.1.10
1384+
resolution: "@xmtp/agent-sdk@npm:1.1.10"
14001385
dependencies:
1386+
"@xmtp/content-type-markdown": "npm:^1.0.0"
14011387
"@xmtp/content-type-reaction": "npm:^2.0.2"
1388+
"@xmtp/content-type-read-receipt": "npm:^2.0.2"
14021389
"@xmtp/content-type-remote-attachment": "npm:^2.0.2"
14031390
"@xmtp/content-type-reply": "npm:^2.0.2"
14041391
"@xmtp/content-type-text": "npm:^2.0.2"
1405-
"@xmtp/node-sdk": "npm:^4.1.2"
1406-
uint8arrays: "npm:^5.1.0"
1392+
"@xmtp/content-type-transaction-reference": "npm:^2.0.2"
1393+
"@xmtp/content-type-wallet-send-calls": "npm:^2.0.0"
1394+
"@xmtp/node-sdk": "npm:^4.2.4"
14071395
viem: "npm:^2.37.6"
1408-
checksum: 10/4509502c78d763de1d1a231b82b149887d699e306aed6c4f5e22ef1bb1dc49132a2c9bdc5b1a2c68a45eaada93b1675c52a4ef4d0fb9e9dcf3f713178c1f0f32
1396+
checksum: 10/db80da1f4d2bc05dc9a1797aae6775427618bc8f16ce47e24b6fe36249620b241354aac86183cb50736165b28b02cf1633122806aa279d085a9299a667795678
14091397
languageName: node
14101398
linkType: hard
14111399

@@ -1424,17 +1412,18 @@ __metadata:
14241412
languageName: node
14251413
linkType: hard
14261414

1427-
"@xmtp/agent-sdk-1.1.9@npm:@xmtp/[email protected].9":
1428-
version: 1.1.9
1429-
resolution: "@xmtp/agent-sdk@npm:1.1.9"
1415+
"@xmtp/agent-sdk-1.1.7@npm:@xmtp/[email protected].7":
1416+
version: 1.1.7
1417+
resolution: "@xmtp/agent-sdk@npm:1.1.7"
14301418
dependencies:
14311419
"@xmtp/content-type-reaction": "npm:^2.0.2"
14321420
"@xmtp/content-type-remote-attachment": "npm:^2.0.2"
14331421
"@xmtp/content-type-reply": "npm:^2.0.2"
14341422
"@xmtp/content-type-text": "npm:^2.0.2"
1435-
"@xmtp/node-sdk": "npm:^4.2.4"
1423+
"@xmtp/node-sdk": "npm:^4.2.3"
1424+
uint8arrays: "npm:^5.1.0"
14361425
viem: "npm:^2.37.6"
1437-
checksum: 10/457b6bb94f387a0f6d2b61f16a172f13bae35ce2b0ad78dbf162a1777b19cf4504b872d5c8070ad9ccba995cd11ac5168ca8697aee1d58b4807dd4e16797f715
1426+
checksum: 10/f8d76265a4cbcb32282ba75404d50779bef0f7bb9bd16298a825348b03a15f0fa290966d4eb15a71bcd3a621be279379b632ea6e448e715bdefe782e9ac99a34
14381427
languageName: node
14391428
linkType: hard
14401429

@@ -1475,6 +1464,15 @@ __metadata:
14751464
languageName: node
14761465
linkType: hard
14771466

1467+
"@xmtp/content-type-read-receipt@npm:^2.0.2":
1468+
version: 2.0.2
1469+
resolution: "@xmtp/content-type-read-receipt@npm:2.0.2"
1470+
dependencies:
1471+
"@xmtp/content-type-primitives": "npm:^2.0.2"
1472+
checksum: 10/65b93f35bd0c37753f020d533ec659b2dad23b29bbbfdb5935117eab24e698d272fb774c4bede9c888c3af68cfcc6b861977e535c0af0f6a3319dbdc25d9d85f
1473+
languageName: node
1474+
linkType: hard
1475+
14781476
"@xmtp/content-type-remote-attachment@npm:^2.0.2":
14791477
version: 2.0.2
14801478
resolution: "@xmtp/content-type-remote-attachment@npm:2.0.2"
@@ -1505,6 +1503,15 @@ __metadata:
15051503
languageName: node
15061504
linkType: hard
15071505

1506+
"@xmtp/content-type-transaction-reference@npm:^2.0.2":
1507+
version: 2.0.2
1508+
resolution: "@xmtp/content-type-transaction-reference@npm:2.0.2"
1509+
dependencies:
1510+
"@xmtp/content-type-primitives": "npm:^2.0.2"
1511+
checksum: 10/37437069fe47812647f856f871d83d95e62a35dd297f30578a3857dc90575284dad56ad3d734eeb1fe3599aa43512c2ae9e492b41404c492bdd70f9e7d03f734
1512+
languageName: node
1513+
linkType: hard
1514+
15081515
"@xmtp/content-type-wallet-send-calls@npm:^2.0.0":
15091516
version: 2.0.0
15101517
resolution: "@xmtp/content-type-wallet-send-calls@npm:2.0.0"
@@ -1623,7 +1630,7 @@ __metadata:
16231630
languageName: node
16241631
linkType: hard
16251632

1626-
"@xmtp/node-sdk-4.2.3@npm:@xmtp/[email protected], @xmtp/node-sdk@npm:^4.1.2, @xmtp/node-sdk@npm:^4.2.1":
1633+
"@xmtp/node-sdk-4.2.3@npm:@xmtp/[email protected], @xmtp/node-sdk@npm:^4.2.1":
16271634
version: 4.2.3
16281635
resolution: "@xmtp/node-sdk@npm:4.2.3"
16291636
dependencies:
@@ -1635,7 +1642,7 @@ __metadata:
16351642
languageName: node
16361643
linkType: hard
16371644

1638-
"@xmtp/node-sdk-4.3.0@npm:@xmtp/[email protected], @xmtp/node-sdk@npm:^4.2.4":
1645+
"@xmtp/node-sdk-4.3.0@npm:@xmtp/[email protected], @xmtp/node-sdk@npm:^4.2.3, @xmtp/node-sdk@npm:^4.2.4":
16391646
version: 4.3.0
16401647
resolution: "@xmtp/node-sdk@npm:4.3.0"
16411648
dependencies:
@@ -4639,10 +4646,9 @@ __metadata:
46394646
"@ianvs/prettier-plugin-sort-imports": "npm:^4.4.1"
46404647
"@types/eslint__js": "npm:^8.42.3"
46414648
"@types/node": "npm:^20.0.0"
4642-
"@xmtp/agent-sdk-1.0.0": "npm:@xmtp/[email protected]"
4643-
"@xmtp/agent-sdk-1.0.1": "npm:@xmtp/[email protected]"
4649+
"@xmtp/agent-sdk-1.1.10": "npm:@xmtp/[email protected]"
46444650
"@xmtp/agent-sdk-1.1.2": "npm:@xmtp/[email protected]"
4645-
"@xmtp/agent-sdk-1.1.9": "npm:@xmtp/[email protected].9"
4651+
"@xmtp/agent-sdk-1.1.7": "npm:@xmtp/[email protected].7"
46464652
"@xmtp/content-type-markdown": "npm:^1.0.0"
46474653
"@xmtp/content-type-reaction": "npm:^2.0.2"
46484654
"@xmtp/content-type-reply": "npm:^2.0.2"

0 commit comments

Comments
 (0)