agent-messenger 1.9.1 → 1.9.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-messenger",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
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/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-messenger",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "Multi-platform messaging CLI for AI agents (Slack, Discord, Teams)",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1 +1 @@
1
- {"version":3,"file":"ensure-auth.d.ts","sourceRoot":"","sources":["../../../../src/platforms/slack/ensure-auth.ts"],"names":[],"mappings":"AAIA,wBAAsB,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC,CA8BrD"}
1
+ {"version":3,"file":"ensure-auth.d.ts","sourceRoot":"","sources":["../../../../src/platforms/slack/ensure-auth.ts"],"names":[],"mappings":"AAIA,wBAAsB,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC,CAgCrD"}
@@ -26,7 +26,9 @@ export async function ensureSlackAuth() {
26
26
  }
27
27
  }
28
28
  catch (error) {
29
- if (error.code === 'EBUSY' || error.message.includes('locking the cookie')) {
29
+ const code = typeof error === 'object' && error !== null ? error.code : undefined;
30
+ const message = error instanceof Error ? error.message : String(error);
31
+ if (code === 'EBUSY' || message.includes('locking the cookie')) {
30
32
  throw error;
31
33
  }
32
34
  // Silently ignore other extraction errors (e.g. Slack not installed)
@@ -1 +1 @@
1
- {"version":3,"file":"ensure-auth.js","sourceRoot":"","sources":["../../../../src/platforms/slack/ensure-auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAA;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W,CAAC,IAAI,EAAE,CAAA;QACvC,IAAI,CAAC,MAAM,CAAC,iBAAiB,IAAI,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC5D,MAAM,WAAW,CAAC,mBAAmB,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAA;QACxE,CAAC;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,GAAG,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC,CAAC,CAAE,KAA+B,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAA;QAC5G,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;QACtE,IAAI,IAAI,KAAK,OAAO,IAAI,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,CAAC;YAC/D,MAAM,KAAK,CAAA;QACb,CAAC;QACD,qEAAqE;IACvE,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-messenger",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "Multi-platform messaging CLI for AI agents (Slack, Discord, Teams)",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: agent-discord
3
3
  description: Interact with Discord servers - send messages, read channels, manage reactions
4
- version: 1.9.1
4
+ version: 1.9.2
5
5
  allowed-tools: Bash(agent-discord:*)
6
6
  metadata:
7
7
  openclaw:
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: agent-discordbot
3
3
  description: Interact with Discord servers using bot tokens - send messages, read channels, manage reactions
4
- version: 1.9.1
4
+ version: 1.9.2
5
5
  allowed-tools: Bash(agent-discordbot:*)
6
6
  metadata:
7
7
  openclaw:
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: agent-slack
3
3
  description: Interact with Slack workspaces - send messages, read channels, manage reactions
4
- version: 1.9.1
4
+ version: 1.9.2
5
5
  allowed-tools: Bash(agent-slack:*)
6
6
  metadata:
7
7
  openclaw:
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: agent-slackbot
3
3
  description: Interact with Slack workspaces using bot tokens - send messages, read channels, manage reactions
4
- version: 1.9.1
4
+ version: 1.9.2
5
5
  allowed-tools: Bash(agent-slackbot:*)
6
6
  metadata:
7
7
  openclaw:
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: agent-teams
3
3
  description: Interact with Microsoft Teams - send messages, read channels, manage reactions
4
- version: 1.9.1
4
+ version: 1.9.2
5
5
  allowed-tools: Bash(agent-teams:*)
6
6
  metadata:
7
7
  openclaw:
@@ -27,7 +27,9 @@ export async function ensureSlackAuth(): Promise<void> {
27
27
  await credManager.setCurrentWorkspace(validWorkspaces[0].workspace_id)
28
28
  }
29
29
  } catch (error) {
30
- if ((error as NodeJS.ErrnoException).code === 'EBUSY' || (error as Error).message.includes('locking the cookie')) {
30
+ const code = typeof error === 'object' && error !== null ? (error as NodeJS.ErrnoException).code : undefined
31
+ const message = error instanceof Error ? error.message : String(error)
32
+ if (code === 'EBUSY' || message.includes('locking the cookie')) {
31
33
  throw error
32
34
  }
33
35
  // Silently ignore other extraction errors (e.g. Slack not installed)
@@ -153,10 +153,12 @@ describe('TokenExtractor Windows DPAPI', () => {
153
153
  })
154
154
 
155
155
  // when — then
156
- const extractor = new TokenExtractor('darwin', slackDir)
157
- await expect(extractor.extract()).rejects.toThrow('Quit the Slack app completely and try again')
158
-
159
- copyFileSyncSpy.mockRestore()
156
+ try {
157
+ const extractor = new TokenExtractor('darwin', slackDir)
158
+ await expect(extractor.extract()).rejects.toThrow('Quit the Slack app completely and try again')
159
+ } finally {
160
+ copyFileSyncSpy.mockRestore()
161
+ }
160
162
  })
161
163
 
162
164
  test('extract decrypts Windows v10 cookies end-to-end with mocked DPAPI', async () => {