Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/validate-regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ jobs:
run: corepack prepare yarn@4.6.0 --activate
shell: bash

- name: Install dependencies
run: yarn install

- name: Run regression tests
run: yarn regression

Expand Down
15 changes: 4 additions & 11 deletions agents/bots/key-check/index.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { APP_VERSION, createSigner } from "@helpers/client";

Check warning on line 1 in agents/bots/key-check/index.ts

View workflow job for this annotation

GitHub Actions / validate

'createSigner' is defined but never used
import {
ContentTypeMarkdown,
MarkdownCodec,

Check warning on line 4 in agents/bots/key-check/index.ts

View workflow job for this annotation

GitHub Actions / validate

'MarkdownCodec' is defined but never used
} from "@xmtp/content-type-markdown";
import { ReactionCodec } from "@xmtp/content-type-reaction";

Check warning on line 6 in agents/bots/key-check/index.ts

View workflow job for this annotation

GitHub Actions / validate

'ReactionCodec' is defined but never used
import {
AttachmentCodec,

Check warning on line 8 in agents/bots/key-check/index.ts

View workflow job for this annotation

GitHub Actions / validate

'AttachmentCodec' is defined but never used
RemoteAttachmentCodec,

Check warning on line 9 in agents/bots/key-check/index.ts

View workflow job for this annotation

GitHub Actions / validate

'RemoteAttachmentCodec' is defined but never used
} from "@xmtp/content-type-remote-attachment";
import { ReplyCodec } from "@xmtp/content-type-reply";

Check warning on line 11 in agents/bots/key-check/index.ts

View workflow job for this annotation

GitHub Actions / validate

'ReplyCodec' is defined but never used
import { WalletSendCallsCodec } from "@xmtp/content-type-wallet-send-calls";

Check warning on line 12 in agents/bots/key-check/index.ts

View workflow job for this annotation

GitHub Actions / validate

'WalletSendCallsCodec' is defined but never used
import {
ActionBuilder,
getRegisteredActions,
Expand Down Expand Up @@ -296,16 +296,7 @@
dbPath: (inboxId) =>
(process.env.RAILWAY_VOLUME_MOUNT_PATH ?? ".") +
`/${process.env.XMTP_ENV}-${inboxId.slice(0, 8)}.db3`,
codecs: [
new MarkdownCodec(),
new ReactionCodec(),
new ReplyCodec(),
new RemoteAttachmentCodec(),
new AttachmentCodec(),
new WalletSendCallsCodec(),
new ActionsCodec(),
new IntentCodec(),
],
codecs: [new ActionsCodec(), new IntentCodec()],
});

// Add inline actions middleware
Expand Down Expand Up @@ -356,7 +347,9 @@
content.trim().startsWith("/kc") ||
content.trim().startsWith("@key-check.eth");
if (isTagged) {
console.log(`Showing main menu for: ${content}`);
console.log(
`Showing main menu for: ${content} to ${await ctx.getSenderAddress()}`,
);
await showMenu(ctx, appConfig, "main-menu");
return;
}
Expand Down
44 changes: 22 additions & 22 deletions agents/versions/agent-sdk.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import {
Agent as Agent100,
MessageContext as MessageContext100,
} from "@xmtp/agent-sdk-1.0.0";
Agent as Agent12,
MessageContext as MessageContext12,
} from "@xmtp/agent-sdk-1.1.2";
import {
Agent as Agent101,
MessageContext as MessageContext101,
} from "@xmtp/agent-sdk-1.0.1";
Agent as Agent17, // 1.1.7
MessageContext as MessageContext17,
} from "@xmtp/agent-sdk-1.1.7";
import {
Agent as Agent115,
MessageContext as MessageContext115,
} from "@xmtp/agent-sdk-1.1.9";
Agent as Agent110, // 1.1.10 (latest)
MessageContext as MessageContext110,
} from "@xmtp/agent-sdk-1.1.10";

// Export the latest version as default
export {
Expand All @@ -19,31 +19,31 @@ export {
type Group,
type IdentifierKind,
type PermissionLevel,
} from "@xmtp/agent-sdk-1.1.9";
} from "@xmtp/agent-sdk-1.1.10";

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

export const AgentVersionList = [
{
Agent: Agent115,
MessageContext: MessageContext115,
agentSDK: "1.1.9",
nodeSDK: "4.2.3",
nodeBindings: "1.5.4",
Agent: Agent110,
MessageContext: MessageContext110,
agentSDK: "1.1.10",
nodeSDK: "4.3.0",
nodeBindings: "1.6.0-rc2",
auto: true,
},
{
Agent: Agent101,
MessageContext: MessageContext101,
agentSDK: "1.0.1",
Agent: Agent17,
MessageContext: MessageContext17,
agentSDK: "1.1.7",
nodeSDK: "4.1.0",
nodeBindings: "1.4.0",
auto: true,
},
{
Agent: Agent100,
MessageContext: MessageContext100,
agentSDK: "1.0.0",
Agent: Agent12,
MessageContext: MessageContext12,
agentSDK: "1.1.2",
nodeSDK: "4.1.0",
nodeBindings: "1.4.0",
auto: true,
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,9 @@
},
"dependencies": {
"@anthropic-ai/sdk": "^0.54.0",
"@xmtp/agent-sdk-1.0.0": "npm:@xmtp/agent-sdk@1.0.0",
"@xmtp/agent-sdk-1.0.1": "npm:@xmtp/agent-sdk@1.0.1",
"@xmtp/agent-sdk-1.1.10": "npm:@xmtp/agent-sdk@1.1.10",
"@xmtp/agent-sdk-1.1.2": "npm:@xmtp/agent-sdk@1.1.2",
"@xmtp/agent-sdk-1.1.9": "npm:@xmtp/agent-sdk@1.1.9",
"@xmtp/agent-sdk-1.1.7": "npm:@xmtp/agent-sdk@1.1.7",
"@xmtp/content-type-markdown": "^1.0.0",
"@xmtp/content-type-reaction": "^2.0.2",
"@xmtp/content-type-reply": "^2.0.2",
Expand Down
68 changes: 37 additions & 31 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1379,33 +1379,21 @@ __metadata:
languageName: node
linkType: hard

"@xmtp/agent-sdk-1.0.0@npm:@xmtp/agent-sdk@1.0.0":
version: 1.0.0
resolution: "@xmtp/agent-sdk@npm:1.0.0"
dependencies:
"@xmtp/content-type-reaction": "npm:^2.0.2"
"@xmtp/content-type-remote-attachment": "npm:^2.0.2"
"@xmtp/content-type-reply": "npm:^2.0.2"
"@xmtp/content-type-text": "npm:^2.0.2"
"@xmtp/node-sdk": "npm:^4.1.2"
uint8arrays: "npm:^5.1.0"
viem: "npm:^2.37.6"
checksum: 10/534d839d1ce4b4a7cefa7a64558bd6bac7b3373c2a30ab43e0b3f00caa52265dc47ece27e23dbcb64fe217702b0709a9a30bda6504f2109fb60d582fd51342a4
languageName: node
linkType: hard

"@xmtp/agent-sdk-1.0.1@npm:@xmtp/agent-sdk@1.0.1":
version: 1.0.1
resolution: "@xmtp/agent-sdk@npm:1.0.1"
"@xmtp/agent-sdk-1.1.10@npm:@xmtp/agent-sdk@1.1.10":
version: 1.1.10
resolution: "@xmtp/agent-sdk@npm:1.1.10"
dependencies:
"@xmtp/content-type-markdown": "npm:^1.0.0"
"@xmtp/content-type-reaction": "npm:^2.0.2"
"@xmtp/content-type-read-receipt": "npm:^2.0.2"
"@xmtp/content-type-remote-attachment": "npm:^2.0.2"
"@xmtp/content-type-reply": "npm:^2.0.2"
"@xmtp/content-type-text": "npm:^2.0.2"
"@xmtp/node-sdk": "npm:^4.1.2"
uint8arrays: "npm:^5.1.0"
"@xmtp/content-type-transaction-reference": "npm:^2.0.2"
"@xmtp/content-type-wallet-send-calls": "npm:^2.0.0"
"@xmtp/node-sdk": "npm:^4.2.4"
viem: "npm:^2.37.6"
checksum: 10/4509502c78d763de1d1a231b82b149887d699e306aed6c4f5e22ef1bb1dc49132a2c9bdc5b1a2c68a45eaada93b1675c52a4ef4d0fb9e9dcf3f713178c1f0f32
checksum: 10/db80da1f4d2bc05dc9a1797aae6775427618bc8f16ce47e24b6fe36249620b241354aac86183cb50736165b28b02cf1633122806aa279d085a9299a667795678
languageName: node
linkType: hard

Expand All @@ -1424,17 +1412,18 @@ __metadata:
languageName: node
linkType: hard

"@xmtp/agent-sdk-1.1.9@npm:@xmtp/agent-sdk@1.1.9":
version: 1.1.9
resolution: "@xmtp/agent-sdk@npm:1.1.9"
"@xmtp/agent-sdk-1.1.7@npm:@xmtp/agent-sdk@1.1.7":
version: 1.1.7
resolution: "@xmtp/agent-sdk@npm:1.1.7"
dependencies:
"@xmtp/content-type-reaction": "npm:^2.0.2"
"@xmtp/content-type-remote-attachment": "npm:^2.0.2"
"@xmtp/content-type-reply": "npm:^2.0.2"
"@xmtp/content-type-text": "npm:^2.0.2"
"@xmtp/node-sdk": "npm:^4.2.4"
"@xmtp/node-sdk": "npm:^4.2.3"
uint8arrays: "npm:^5.1.0"
viem: "npm:^2.37.6"
checksum: 10/457b6bb94f387a0f6d2b61f16a172f13bae35ce2b0ad78dbf162a1777b19cf4504b872d5c8070ad9ccba995cd11ac5168ca8697aee1d58b4807dd4e16797f715
checksum: 10/f8d76265a4cbcb32282ba75404d50779bef0f7bb9bd16298a825348b03a15f0fa290966d4eb15a71bcd3a621be279379b632ea6e448e715bdefe782e9ac99a34
languageName: node
linkType: hard

Expand Down Expand Up @@ -1475,6 +1464,15 @@ __metadata:
languageName: node
linkType: hard

"@xmtp/content-type-read-receipt@npm:^2.0.2":
version: 2.0.2
resolution: "@xmtp/content-type-read-receipt@npm:2.0.2"
dependencies:
"@xmtp/content-type-primitives": "npm:^2.0.2"
checksum: 10/65b93f35bd0c37753f020d533ec659b2dad23b29bbbfdb5935117eab24e698d272fb774c4bede9c888c3af68cfcc6b861977e535c0af0f6a3319dbdc25d9d85f
languageName: node
linkType: hard

"@xmtp/content-type-remote-attachment@npm:^2.0.2":
version: 2.0.2
resolution: "@xmtp/content-type-remote-attachment@npm:2.0.2"
Expand Down Expand Up @@ -1505,6 +1503,15 @@ __metadata:
languageName: node
linkType: hard

"@xmtp/content-type-transaction-reference@npm:^2.0.2":
version: 2.0.2
resolution: "@xmtp/content-type-transaction-reference@npm:2.0.2"
dependencies:
"@xmtp/content-type-primitives": "npm:^2.0.2"
checksum: 10/37437069fe47812647f856f871d83d95e62a35dd297f30578a3857dc90575284dad56ad3d734eeb1fe3599aa43512c2ae9e492b41404c492bdd70f9e7d03f734
languageName: node
linkType: hard

"@xmtp/content-type-wallet-send-calls@npm:^2.0.0":
version: 2.0.0
resolution: "@xmtp/content-type-wallet-send-calls@npm:2.0.0"
Expand Down Expand Up @@ -1623,7 +1630,7 @@ __metadata:
languageName: node
linkType: hard

"@xmtp/node-sdk-4.2.3@npm:@xmtp/node-sdk@4.2.3, @xmtp/node-sdk@npm:^4.1.2, @xmtp/node-sdk@npm:^4.2.1":
"@xmtp/node-sdk-4.2.3@npm:@xmtp/node-sdk@4.2.3, @xmtp/node-sdk@npm:^4.2.1":
version: 4.2.3
resolution: "@xmtp/node-sdk@npm:4.2.3"
dependencies:
Expand All @@ -1635,7 +1642,7 @@ __metadata:
languageName: node
linkType: hard

"@xmtp/node-sdk-4.3.0@npm:@xmtp/node-sdk@4.3.0, @xmtp/node-sdk@npm:^4.2.4":
"@xmtp/node-sdk-4.3.0@npm:@xmtp/node-sdk@4.3.0, @xmtp/node-sdk@npm:^4.2.3, @xmtp/node-sdk@npm:^4.2.4":
version: 4.3.0
resolution: "@xmtp/node-sdk@npm:4.3.0"
dependencies:
Expand Down Expand Up @@ -4639,10 +4646,9 @@ __metadata:
"@ianvs/prettier-plugin-sort-imports": "npm:^4.4.1"
"@types/eslint__js": "npm:^8.42.3"
"@types/node": "npm:^20.0.0"
"@xmtp/agent-sdk-1.0.0": "npm:@xmtp/agent-sdk@1.0.0"
"@xmtp/agent-sdk-1.0.1": "npm:@xmtp/agent-sdk@1.0.1"
"@xmtp/agent-sdk-1.1.10": "npm:@xmtp/agent-sdk@1.1.10"
"@xmtp/agent-sdk-1.1.2": "npm:@xmtp/agent-sdk@1.1.2"
"@xmtp/agent-sdk-1.1.9": "npm:@xmtp/agent-sdk@1.1.9"
"@xmtp/agent-sdk-1.1.7": "npm:@xmtp/agent-sdk@1.1.7"
"@xmtp/content-type-markdown": "npm:^1.0.0"
"@xmtp/content-type-reaction": "npm:^2.0.2"
"@xmtp/content-type-reply": "npm:^2.0.2"
Expand Down