agent-messenger 1.3.2 → 1.3.4

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-messenger",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "Messaging platform interaction skills for AI agents. Interact with Slack, Discord, and Microsoft Teams - send messages, read channels, manage reactions, upload files, and more through simple CLI interfaces.",
5
5
  "author": {
6
6
  "name": "devxoul",
package/AGENTS.md CHANGED
@@ -18,10 +18,11 @@ Bun runs TypeScript directly — no compilation step needed.
18
18
  `bun run build` compiles to `dist/` for npm consumers who don't have Bun.
19
19
 
20
20
  1. `tsc` compiles `src/` → `dist/src/` (JS + declarations + source maps)
21
- 2. `scripts/postbuild.ts` replaces `#!/usr/bin/env bun` `#!/usr/bin/env node` in CLI files
22
- 3. `module` and `main` in `package.json` point to `dist/cli.js`
21
+ 2. `tsc-alias` resolves `@/*` path aliases in the compiled output
22
+ 3. `scripts/postbuild.ts` replaces `#!/usr/bin/env bun` `#!/usr/bin/env node` in CLI files
23
+ 4. `module` and `main` in `package.json` point to `dist/cli.js`
23
24
 
24
- npm consumers run compiled JS via Node.js. The `prepublishOnly` script ensures build runs before `npm publish`.
25
+ npm consumers run compiled JS via Node.js. The `prepublishOnly` script runs the build, then `scripts/prepublish.ts` rewrites `bin` paths from `./src/*.ts` to `dist/src/*.js`. After publish, `postpublish` restores `package.json` via `git checkout`.
25
26
 
26
27
  ### Key Distinction
27
28
 
@@ -37,10 +38,12 @@ npm consumers run compiled JS via Node.js. The `prepublishOnly` script ensures b
37
38
  ```bash
38
39
  bun install # Install dependencies
39
40
  bun link # Link CLI globally for local testing
40
- bun test # Run tests
41
- bun run build # Build dist/ for production
41
+ bun test # Run unit tests
42
+ bun test:e2e # Run e2e tests
42
43
  bun typecheck # Type check without emitting
43
44
  bun lint # Lint with Biome
45
+ bun lint:fix # Lint with Biome
46
+ bun format # Format with Biome
44
47
  ```
45
48
 
46
49
  ## Release
package/bun.lock CHANGED
@@ -6,7 +6,7 @@
6
6
  "name": "agent-slack",
7
7
  "dependencies": {
8
8
  "@slack/web-api": "^6.9.0",
9
- "better-sqlite3": "^9.2.2",
9
+ "better-sqlite3": "^12.0.0",
10
10
  "classic-level": "^1.3.0",
11
11
  "commander": "^11.1.0",
12
12
  "zod": "^3.22.4",
@@ -127,7 +127,7 @@
127
127
 
128
128
  "base64-js": ["base64-js@1.5.1", "", {}, "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA=="],
129
129
 
130
- "better-sqlite3": ["better-sqlite3@9.6.0", "", { "dependencies": { "bindings": "^1.5.0", "prebuild-install": "^7.1.1" } }, "sha512-yR5HATnqeYNVnkaUTf4bOP2dJSnyhP4puJN/QPRyx4YkBEEUxib422n2XzPqDEHjQQqazoYoADdAm5vE15+dAQ=="],
130
+ "better-sqlite3": ["better-sqlite3@12.6.2", "", { "dependencies": { "bindings": "^1.5.0", "prebuild-install": "^7.1.1" } }, "sha512-8VYKM3MjCa9WcaSAI3hzwhmyHVlH8tiGFwf0RlTsZPWJ1I5MkzjiudCo4KC4DxOaL/53A5B1sI/IbldNFDbsKA=="],
131
131
 
132
132
  "binary-extensions": ["binary-extensions@2.3.0", "", {}, "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw=="],
133
133
 
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-messenger",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "Multi-platform messaging CLI for AI agents (Slack, Discord, Teams)",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,7 +35,7 @@
35
35
  "commander": "^11.1.0",
36
36
  "zod": "^3.22.4",
37
37
  "classic-level": "^1.3.0",
38
- "better-sqlite3": "^9.2.2"
38
+ "better-sqlite3": "^12.0.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@biomejs/biome": "^2.3.13",
package/dist/src/cli.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import { dirname, join } from 'node:path';
3
3
  import { fileURLToPath } from 'node:url';
4
4
  import { Command } from 'commander';
5
- import pkg from '../package.json';
5
+ import pkg from '../package.json' with { type: 'json' };
6
6
  const __filename = fileURLToPath(import.meta.url);
7
7
  const __dirname = dirname(__filename);
8
8
  const program = new Command();
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,GAAG,MAAM,iBAAiB,CAAA;AAEjC,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AACjD,MAAM,SAAS,GAAG,OAAO,CAAC,UAAU,CAAC,CAAA;AAErC,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAA;AAE7B,OAAO,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,WAAW,CAAC,4CAA4C,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;AAE9G,0CAA0C;AAC1C,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,gCAAgC,EAAE;IACzD,cAAc,EAAE,IAAI,CAAC,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,CAAC;CAChE,CAAC,CAAA;AAEF,OAAO,CAAC,OAAO,CAAC,SAAS,EAAE,8BAA8B,EAAE;IACzD,cAAc,EAAE,IAAI,CAAC,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,C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AE,+BAA+B,EAAE;IACxD,cAAc,EAAE,IAAI,CAAC,SAAS,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,CAAC;CAChE,CAAC,CAAA;AAEF,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;AAE3B,eAAe,OAAO,CAAA"}
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { Command } from 'commander';
3
- import pkg from '../../../package.json';
3
+ import pkg from '../../../package.json' with { type: 'json' };
4
4
  import { authCommand, channelCommand, fileCommand, messageCommand, reactionCommand, serverCommand, snapshotCommand, userCommand, } from './commands';
5
5
  const program = new Command();
6
6
  program
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../../src/platforms/discord/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,GAAG,MAAM,uBAAuB,CAAA;AACvC,OAAO,EACL,WAAW,EACX,cAAc,EACd,WAAW,EACX,cAAc,EACd,eAAe,EACf,aAAa,EACb,eAAe,EACf,WAAW,GACZ,MAAM,YAAY,CAAA;AAEnB,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAA;AAE7B,OAAO;KACJ,IAAI,CAAC,eAAe,CAAC;KACrB,WAAW,CAAC,oCAAoC,CAAC;KACjD,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC;KACpB,MAAM,CAAC,UAAU,EAAE,0BAA0B,CAAC;KAC9C,MAAM,CAAC,eAAe,EAAE,qBAAqB,CAAC,CAAA;AAEjD,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAA;AAC/B,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,CAAA;AACjC,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,CAAA;AAClC,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAA;AAC/B,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,CAAA;AAClC,OAA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AO,CAAC,IAAI,CAAC,CAAA;AAE3B,eAAe,OAAO,CAAA"}
@@ -174,16 +174,16 @@ export declare const DiscordChannelSchema: z.ZodObject<{
174
174
  topic: z.ZodOptional<z.ZodString>;
175
175
  position: z.ZodOptional<z.ZodNumber>;
176
176
  }, "strip", z.ZodTypeAny, {
177
+ type: number;
177
178
  id: string;
178
179
  name: string;
179
- type: number;
180
180
  guild_id: string;
181
181
  topic?: string | undefined;
182
182
  position?: number | undefined;
183
183
  }, {
184
+ type: number;
184
185
  id: string;
185
186
  name: string;
186
- type: number;
187
187
  guild_id: string;
188
188
  topic?: string | undefined;
189
189
  position?: number | undefined;
@@ -272,8 +272,8 @@ export declare const DiscordDMChannelSchema: z.ZodObject<{
272
272
  }>, "many">;
273
273
  name: z.ZodOptional<z.ZodString>;
274
274
  }, "strip", z.ZodTypeAny, {
275
- id: string;
276
275
  type: number;
276
+ id: string;
277
277
  recipients: {
278
278
  id: string;
279
279
  username: string;
@@ -284,8 +284,8 @@ export declare const DiscordDMChannelSchema: z.ZodObject<{
284
284
  name?: string | undefined;
285
285
  last_message_id?: string | undefined;
286
286
  }, {
287
- id: string;
288
287
  type: number;
288
+ id: string;
289
289
  recipients: {
290
290
  id: string;
291
291
  username: string;
@@ -443,8 +443,8 @@ export declare const DiscordRelationshipSchema: z.ZodObject<{
443
443
  }>;
444
444
  nickname: z.ZodOptional<z.ZodString>;
445
445
  }, "strip", z.ZodTypeAny, {
446
- id: string;
447
446
  type: number;
447
+ id: string;
448
448
  user: {
449
449
  id: string;
450
450
  username: string;
@@ -454,8 +454,8 @@ export declare const DiscordRelationshipSchema: z.ZodObject<{
454
454
  };
455
455
  nickname?: string | undefined;
456
456
  }, {
457
- id: string;
458
457
  type: number;
458
+ id: string;
459
459
  user: {
460
460
  id: string;
461
461
  username: string;
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { Command } from 'commander';
3
- import pkg from '../../../package.json';
3
+ import pkg from '../../../package.json' with { type: 'json' };
4
4
  import { activityCommand, authCommand, channelCommand, draftsCommand, fileCommand, messageCommand, reactionCommand, savedCommand, sectionsCommand, snapshotCommand, unreadCommand, userCommand, workspaceCommand, } from './commands/index';
5
5
  const program = new Command();
6
6
  program
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../../src/platforms/slack/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,GAAG,MAAM,uBAAuB,CAAA;AACvC,OAAO,EACL,eAAe,EACf,WAAW,EACX,cAAc,EACd,aAAa,EACb,WAAW,EACX,cAAc,EACd,eAAe,EACf,YAAY,EACZ,eAAe,EACf,eAAe,EACf,aAAa,EACb,WAAW,EACX,gBAAgB,GACjB,MAAM,kBAAkB,CAAA;AAEzB,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAA;AAE7B,OAAO;KACJ,IAAI,CAAC,aAAa,CAAC;KACnB,WAAW,CAAC,+EAA+E,CAAC;KAC5F,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC;KACpB,MAAM,CAAC,UAAU,EAAE,0BAA0B,CAAC;KAC9C,MAAM,CAAC,kBAAkB,EAAE,wBAAwB,CAAC,CAAA;AAEvD,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAA;AAC/B,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAA;AACpC,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,CAAA;AAClC,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,CAAA;AAClC,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAA;AAC/B,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC,CAAA;AACnC,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAA;AAC/B,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC,CAAA;AACnC,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC,CAAA;AACnC,OAAO,CAAC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,CAAC,WAAW,CAAC,CAAA;AAC/B,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC,CAAA;AACnC,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC,CAAA;AACnC,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,CAAA;AACjC,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,CAAA;AAChC,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC,CAAA;AACnC,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,CAAA;AAEjC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;AAE3B,eAAe,OAAO,CAAA"}
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bun
2
2
  import { Command } from 'commander';
3
- import pkg from '../../../package.json';
3
+ import pkg from '../../../package.json' with { type: 'json' };
4
4
  import { authCommand, channelCommand, messageCommand, reactionCommand, userCommand } from './commands/index';
5
5
  const program = new Command();
6
6
  program
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../../src/platforms/slackbot/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,GAAG,MAAM,uBAAuB,CAAA;AACvC,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE5G,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAA;AAE7B,OAAO;KACJ,IAAI,CAAC,gBAAgB,CAAC;KACtB,WAAW,CAAC,6DAA6D,CAAC;KAC1E,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC;KACpB,MAAM,CAAC,UAAU,EAAE,0BAA0B,CAAC;KAC9C,MAAM,CAAC,YAAY,EAAE,qCAAqC,CAAC,CAAA;AAE9D,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAA;AAC/B,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,CAAA;AAClC,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,CAAA;AAClC,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAA;AAC/B,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC,CAAA;AAEnC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;AAE3B,eAAe,OAAO,CAAA"}
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../../src/platforms/slackbot/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,GAAG,MAAM,uBAAuB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAC7D,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAE5G,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAA;AAE7B,OAAO;KACJ,IAAI,CAAC,gBAAgB,CAAC;KACtB,WAAW,CAAC,6DAA6D,CAAC;KAC1E,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC;KACpB,MAAM,CAAC,UAAU,EAAE,0BAA0B,CAAC;KAC9C,MAAM,CAAC,YAAY,EAAE,qCAAqC,CAAC,CAAA;AAE9D,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAA;AAC/B,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,CAAA;AAClC,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,CAAA;AAClC,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAA;AAC/B,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC,CAAA;AAEnC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;AAE3B,eAAe,OAAO,CAAA"}
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env bun
2
2
  import { Command } from 'commander';
3
- import pkg from '../../../package.json';
3
+ import pkg from '../../../package.json' with { type: 'json' };
4
4
  import { authCommand, channelCommand, fileCommand, messageCommand, reactionCommand, snapshotCommand, teamCommand, userCommand, } from './commands';
5
5
  const program = new Command();
6
6
  program
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../../src/platforms/teams/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,GAAG,MAAM,uBAAuB,CAAA;AACvC,OAAO,EACL,WAAW,EACX,cAAc,EACd,WAAW,EACX,cAAc,EACd,eAAe,EACf,eAAe,EACf,WAAW,EACX,WAAW,GACZ,MAAM,YAAY,CAAA;AAEnB,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAA;AAE7B,OAAO;KACJ,IAAI,CAAC,aAAa,CAAC;KACnB,WAAW,CAAC,4CAA4C,CAAC;KACzD,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC;KACpB,MAAM,CAAC,UAAU,EAAE,0BAA0B,CAAC;KAC9C,MAAM,CAAC,aAAa,EAAE,mBAAmB,CAAC,CAAA;AAE7C,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAA;AAC/B,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAA;AAC/B,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,CAAA;AAClC,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAA;AAC/B,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,CAAA;AAClC,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC,CAAA;AACnC,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC,CAAA;AACnC,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAA;AAE/B,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;AAE3B,eAAe,OAAO,CAAA"}
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../../src/platforms/teams/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,GAAG,MAAM,uBAAuB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAA;AAC7D,OAAO,EACL,WAAW,EACX,cAAc,EACd,WAAW,EACX,cAAc,EACd,eAAe,EACf,eAAe,EACf,WAAW,EACX,WAAW,GACZ,MAAM,YAAY,CAAA;AAEnB,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAA;AAE7B,OAAO;KACJ,IAAI,CAAC,aAAa,CAAC;KACnB,WAAW,CAAC,4CAA4C,CAAC;KACzD,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC;KACpB,MAAM,CAAC,UAAU,EAAE,0BAA0B,CAAC;KAC9C,MAAM,CAAC,aAAa,EAAE,mBAAmB,CAAC,CAAA;AAE7C,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAA;AAC/B,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAA;AAC/B,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,CAAA;AAClC,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAA;AAC/B,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC,CAAA;AAClC,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC,CAAA;AACnC,OAAO,CAAC,UAAU,CAAC,eAAe,CAAC,CAAA;AACnC,OAAO,CAAC,UAAU,CAAC,WAAW,CAAC,CAAA;AAE/B,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;AAE3B,eAAe,OAAO,CAAA"}
@@ -72,14 +72,14 @@ export declare const TeamsChannelSchema: z.ZodObject<{
72
72
  name: z.ZodString;
73
73
  type: z.ZodString;
74
74
  }, "strip", z.ZodTypeAny, {
75
+ type: string;
75
76
  id: string;
76
77
  name: string;
77
- type: string;
78
78
  team_id: string;
79
79
  }, {
80
+ type: string;
80
81
  id: string;
81
82
  name: string;
82
- type: string;
83
83
  team_id: string;
84
84
  }>;
85
85
  export declare const TeamsMessageSchema: z.ZodObject<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-messenger",
3
- "version": "1.3.2",
3
+ "version": "1.3.4",
4
4
  "description": "Multi-platform messaging CLI for AI agents (Slack, Discord, Teams)",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,7 +35,7 @@
35
35
  "commander": "^11.1.0",
36
36
  "zod": "^3.22.4",
37
37
  "classic-level": "^1.3.0",
38
- "better-sqlite3": "^9.2.2"
38
+ "better-sqlite3": "^12.0.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@biomejs/biome": "^2.3.13",
package/src/cli.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  import { dirname, join } from 'node:path'
4
4
  import { fileURLToPath } from 'node:url'
5
5
  import { Command } from 'commander'
6
- import pkg from '../package.json'
6
+ import pkg from '../package.json' with { type: 'json' }
7
7
 
8
8
  const __filename = fileURLToPath(import.meta.url)
9
9
  const __dirname = dirname(__filename)
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env bun
2
2
 
3
3
  import { Command } from 'commander'
4
- import pkg from '../../../package.json'
4
+ import pkg from '../../../package.json' with { type: 'json' }
5
5
  import {
6
6
  authCommand,
7
7
  channelCommand,
@@ -2,7 +2,7 @@ import { describe, expect, test } from 'bun:test'
2
2
  import { spawn } from 'bun'
3
3
  import { handleError } from '@/shared/utils/error-handler'
4
4
  import { formatOutput } from '@/shared/utils/output'
5
- import pkg from '../../../package.json'
5
+ import pkg from '../../../package.json' with { type: 'json' }
6
6
 
7
7
  describe('CLI Framework', () => {
8
8
  describe('formatOutput utility', () => {
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env bun
2
2
 
3
3
  import { Command } from 'commander'
4
- import pkg from '../../../package.json'
4
+ import pkg from '../../../package.json' with { type: 'json' }
5
5
  import {
6
6
  activityCommand,
7
7
  authCommand,
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env bun
2
2
 
3
3
  import { Command } from 'commander'
4
- import pkg from '../../../package.json'
4
+ import pkg from '../../../package.json' with { type: 'json' }
5
5
  import { authCommand, channelCommand, messageCommand, reactionCommand, userCommand } from './commands/index'
6
6
 
7
7
  const program = new Command()
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env bun
2
2
 
3
3
  import { Command } from 'commander'
4
- import pkg from '../../../package.json'
4
+ import pkg from '../../../package.json' with { type: 'json' }
5
5
  import {
6
6
  authCommand,
7
7
  channelCommand,