mercury-agent 0.24.0 → 0.24.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mercury-agent",
3
- "version": "0.24.0",
3
+ "version": "0.24.1",
4
4
  "description": "Personal AI assistant for chat platforms (WhatsApp, Slack, Discord, Telegram)",
5
5
  "license": "MIT",
6
6
  "author": "Avishai Tsabari",
@@ -106,16 +106,16 @@
106
106
  "smoke:image": "bun run scripts/smoke-image.ts"
107
107
  },
108
108
  "dependencies": {
109
- "@chat-adapter/discord": "^4.40.0",
110
- "@chat-adapter/slack": "^4.40.0",
111
- "@chat-adapter/teams": "^4.40.0",
112
- "@chat-adapter/telegram": "^4.40.0",
109
+ "@chat-adapter/discord": "^4.41.0",
110
+ "@chat-adapter/slack": "^4.41.0",
111
+ "@chat-adapter/teams": "^4.41.0",
112
+ "@chat-adapter/telegram": "^4.41.0",
113
113
  "@earendil-works/pi-agent-core": "~0.87.1",
114
114
  "@earendil-works/pi-ai": "~0.87.1",
115
115
  "@earendil-works/pi-coding-agent": "~0.87.1",
116
116
  "@whiskeysockets/baileys": "^7.0.0-rc.9",
117
117
  "axios": "^1.15.1",
118
- "chat": "^4.40.0",
118
+ "chat": "^4.41.0",
119
119
  "commander": "^15.0.0",
120
120
  "cron-parser": "^5.5.0",
121
121
  "discord.js": "^14.26.3",
@@ -125,7 +125,7 @@
125
125
  "zod": "^4.3.6"
126
126
  },
127
127
  "devDependencies": {
128
- "@biomejs/biome": "2.5.13",
128
+ "@biomejs/biome": "2.5.14",
129
129
  "@types/nodemailer": "^8.0.1",
130
130
  "@types/node": "^26.1.2",
131
131
  "imapflow": "^2.0.2",
package/src/storage/db.ts CHANGED
@@ -378,7 +378,14 @@ export class Db {
378
378
  this.db.close();
379
379
  throw toIntegrityError(err, dbPath);
380
380
  }
381
- this.migrate();
381
+ // A migration that throws (a failed task_runs rebuild, say) refuses the
382
+ // open the same way, and must release the file the same way.
383
+ try {
384
+ this.migrate();
385
+ } catch (err) {
386
+ this.db.close();
387
+ throw err;
388
+ }
382
389
  }
383
390
 
384
391
  /**