@xmtp/agent-sdk 1.2.5-rc1 → 1.2.5-rc3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import * as _xmtp_node_sdk from '@xmtp/node-sdk';
2
2
  import { Client, EncryptedAttachment as EncryptedAttachment$1, Conversation, Dm, Group, DecodedMessage, GroupUpdated, Reaction, ReadReceipt, RemoteAttachment, Reply, TransactionReference, WalletSendCalls, StreamOptions, ClientOptions, HexString, CreateDmOptions, CreateGroupOptions } from '@xmtp/node-sdk';
3
3
  export * from '@xmtp/node-sdk';
4
- export { ConsentEntityType, ConsentState, ConversationType, DeliveryStatus, GroupMember, GroupMembershipState, GroupMessageKind, GroupMetadata, GroupPermissions, GroupPermissionsOptions, IdentifierKind, LogLevel, MetadataField, PermissionLevel, PermissionPolicy, PermissionUpdateType, SignatureRequestHandle, SortDirection, isHexString, validHex } from '@xmtp/node-sdk';
5
4
  import EventEmitter from 'node:events';
6
5
  import { ContentCodec } from '@xmtp/content-type-primitives';
7
6
 
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Dm, Group, contentTypeGroupUpdated, contentTypeReaction, contentTypeReply, contentTypeRemoteAttachment, contentTypeMarkdown, contentTypeReadReceipt, contentTypeText, contentTypeTransactionReference, contentTypeWalletSendCalls, Client, encryptAttachment as encryptAttachment$1, encodeMarkdown, encodeText, isHexString, ApiUrls, DecodedMessage } from '@xmtp/node-sdk';
2
- export { ConsentEntityType, ConsentState, ConversationType, DeliveryStatus, GroupMember, GroupMembershipState, GroupMessageKind, GroupMetadata, GroupPermissions, GroupPermissionsOptions, IdentifierKind, LogLevel, MetadataField, PermissionLevel, PermissionPolicy, PermissionUpdateType, SignatureRequestHandle, SortDirection, isHexString, validHex } from '@xmtp/node-sdk';
2
+ export * from '@xmtp/node-sdk';
3
3
  import EventEmitter from 'node:events';
4
4
  import fs from 'node:fs';
5
5
  import path from 'node:path';
@@ -69,13 +69,13 @@ type AgentMiddleware<ContentTypes = unknown> = (ctx: MessageContext<unknown, Con
69
69
 
70
70
  /** Content type supported by the "CommandRouter" */
71
71
  type SupportedType = string;
72
- declare class CommandRouter {
72
+ declare class CommandRouter<ContentTypes = unknown> {
73
73
  #private;
74
74
  get commandList(): string[];
75
75
  command(command: string, handler: AgentMessageHandler<SupportedType>): this;
76
76
  default(handler: AgentMessageHandler<SupportedType>): this;
77
77
  handle(ctx: MessageContext<SupportedType>): Promise<boolean>;
78
- middleware(): AgentMiddleware;
78
+ middleware(): AgentMiddleware<ContentTypes>;
79
79
  }
80
80
 
81
81
  export { CommandRouter };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xmtp/agent-sdk",
3
- "version": "1.2.5-rc1",
3
+ "version": "1.2.5-rc3",
4
4
  "description": "XMTP Agent SDK for interacting with XMTP networks",
5
5
  "keywords": [
6
6
  "agents",
@@ -58,7 +58,7 @@
58
58
  "dev": "tsx watch src/demo.ts",
59
59
  "fix": "npx prettier --log-level error -w . && npx eslint . --fix",
60
60
  "gen:keys": "tsx src/bin/generateKeys.ts",
61
- "start": "yarn demo",
61
+ "start": "yarn dev",
62
62
  "test": "yarn typecheck && vitest run --typecheck",
63
63
  "test:cov": "vitest run --coverage",
64
64
  "typecheck": "tsc --noEmit"
@@ -86,7 +86,8 @@
86
86
  },
87
87
  "publishConfig": {
88
88
  "access": "public",
89
- "provenance": false,
89
+ "provenance": true,
90
90
  "registry": "https://registry.npmjs.org/"
91
- }
91
+ },
92
+ "stableVersion": "1.2.4"
92
93
  }