mercury-agent 0.23.1 → 0.23.2

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.
Files changed (2) hide show
  1. package/package.json +8 -8
  2. package/src/chat-shim.ts +12 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mercury-agent",
3
- "version": "0.23.1",
3
+ "version": "0.23.2",
4
4
  "description": "Personal AI assistant for chat platforms (WhatsApp, Slack, Discord, Telegram)",
5
5
  "license": "MIT",
6
6
  "author": "Avishai Tsabari",
@@ -102,16 +102,16 @@
102
102
  "smoke:image": "bun run scripts/smoke-image.ts"
103
103
  },
104
104
  "dependencies": {
105
- "@chat-adapter/discord": "^4.14.0",
106
- "@chat-adapter/slack": "^4.14.0",
107
- "@chat-adapter/teams": "^4.17.0",
108
- "@chat-adapter/telegram": "^4.26.0",
105
+ "@chat-adapter/discord": "^4.40.0",
106
+ "@chat-adapter/slack": "^4.40.0",
107
+ "@chat-adapter/teams": "^4.40.0",
108
+ "@chat-adapter/telegram": "^4.40.0",
109
109
  "@earendil-works/pi-agent-core": "~0.85.1",
110
110
  "@earendil-works/pi-ai": "~0.85.1",
111
111
  "@earendil-works/pi-coding-agent": "~0.85.1",
112
112
  "@whiskeysockets/baileys": "^7.0.0-rc.9",
113
113
  "axios": "^1.15.1",
114
- "chat": "^4.14.0",
114
+ "chat": "^4.40.0",
115
115
  "commander": "^15.0.0",
116
116
  "cron-parser": "^5.5.0",
117
117
  "discord.js": "^14.26.3",
@@ -121,10 +121,10 @@
121
121
  "zod": "^4.3.6"
122
122
  },
123
123
  "devDependencies": {
124
- "@biomejs/biome": "2.5.12",
124
+ "@biomejs/biome": "2.5.13",
125
125
  "@types/nodemailer": "^8.0.1",
126
126
  "@types/node": "^26.1.2",
127
- "imapflow": "^1.0.171",
127
+ "imapflow": "^2.0.2",
128
128
  "nodemailer": "^10.0.0",
129
129
  "@types/qrcode-terminal": "^0.12.2",
130
130
  "bun-types": "^1.3.5",
package/src/chat-shim.ts CHANGED
@@ -260,6 +260,18 @@ export function createChatShim(onMessage: MessageCallback): ChatInstance {
260
260
  processReaction(_event, _options?): void {},
261
261
  processMemberJoinedChannel(_event, _options?): void {},
262
262
  processSlashCommand(_event, _options?): void {},
263
+ // Added in chat 4.40 — Mercury has no agent sessions, app contexts, or
264
+ // edit/delete tracking; adapters may call these, so they must exist.
265
+ async abortTurn(_threadId: string): Promise<void> {},
266
+ processAgentSessionStopped(_event, _options?): void {},
267
+ processAgentSessionTitleChanged(_event, _options?): void {},
268
+ processAppContextChanged(_event, _options?): void {},
269
+ async processMessageDeleted(_event, _options?): Promise<void> {},
270
+ async processMessageUpdated(_event, _options?): Promise<void> {},
271
+
272
+ get history(): never {
273
+ throw new Error("History not configured in Mercury chat shim");
274
+ },
263
275
 
264
276
  get transcripts(): never {
265
277
  throw new Error("Transcripts not configured in Mercury chat shim");