agent-messenger 2.37.0 → 2.37.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.
- package/.claude-plugin/plugin.json +1 -1
- package/dist/package.json +1 -1
- package/dist/src/platforms/kakaotalk/chat-classifier.d.ts +4 -4
- package/dist/src/platforms/kakaotalk/chat-classifier.d.ts.map +1 -1
- package/dist/src/platforms/kakaotalk/chat-classifier.js +7 -3
- package/dist/src/platforms/kakaotalk/chat-classifier.js.map +1 -1
- package/dist/src/platforms/kakaotalk/client.d.ts +12 -0
- package/dist/src/platforms/kakaotalk/client.d.ts.map +1 -1
- package/dist/src/platforms/kakaotalk/client.js +122 -14
- package/dist/src/platforms/kakaotalk/client.js.map +1 -1
- package/dist/src/platforms/kakaotalk/index.d.ts +1 -0
- package/dist/src/platforms/kakaotalk/index.d.ts.map +1 -1
- package/dist/src/platforms/kakaotalk/index.js.map +1 -1
- package/dist/src/platforms/kakaotalk/protocol/connection.d.ts.map +1 -1
- package/dist/src/platforms/kakaotalk/protocol/connection.js +13 -2
- package/dist/src/platforms/kakaotalk/protocol/connection.js.map +1 -1
- package/dist/src/platforms/kakaotalk/protocol/login-response.d.ts +1 -0
- package/dist/src/platforms/kakaotalk/protocol/login-response.d.ts.map +1 -1
- package/dist/src/platforms/kakaotalk/protocol/login-response.js +1 -1
- package/dist/src/platforms/kakaotalk/protocol/login-response.js.map +1 -1
- package/dist/src/platforms/kakaotalk/types.d.ts +4 -2
- package/dist/src/platforms/kakaotalk/types.d.ts.map +1 -1
- package/dist/src/platforms/kakaotalk/types.js +6 -1
- package/dist/src/platforms/kakaotalk/types.js.map +1 -1
- package/package.json +1 -1
- package/skills/agent-channeltalk/SKILL.md +1 -1
- package/skills/agent-channeltalkbot/SKILL.md +1 -1
- package/skills/agent-discord/SKILL.md +1 -1
- package/skills/agent-discordbot/SKILL.md +1 -1
- package/skills/agent-imessage/SKILL.md +1 -1
- package/skills/agent-instagram/SKILL.md +1 -1
- package/skills/agent-kakaotalk/SKILL.md +1 -1
- package/skills/agent-line/SKILL.md +1 -1
- package/skills/agent-slack/SKILL.md +1 -1
- package/skills/agent-slackbot/SKILL.md +1 -1
- package/skills/agent-teams/SKILL.md +1 -1
- package/skills/agent-telegram/SKILL.md +1 -1
- package/skills/agent-telegrambot/SKILL.md +1 -1
- package/skills/agent-webex/SKILL.md +1 -1
- package/skills/agent-webexbot/SKILL.md +1 -1
- package/skills/agent-wechatbot/SKILL.md +1 -1
- package/skills/agent-whatsapp/SKILL.md +1 -1
- package/skills/agent-whatsappbot/SKILL.md +1 -1
- package/src/platforms/kakaotalk/chat-classifier.test.ts +22 -0
- package/src/platforms/kakaotalk/chat-classifier.ts +7 -4
- package/src/platforms/kakaotalk/client.test.ts +638 -4
- package/src/platforms/kakaotalk/client.ts +156 -15
- package/src/platforms/kakaotalk/index.test.ts +27 -0
- package/src/platforms/kakaotalk/index.ts +5 -0
- package/src/platforms/kakaotalk/protocol/connection.test.ts +87 -0
- package/src/platforms/kakaotalk/protocol/connection.ts +15 -2
- package/src/platforms/kakaotalk/protocol/login-response.test.ts +13 -2
- package/src/platforms/kakaotalk/protocol/login-response.ts +1 -1
- package/src/platforms/kakaotalk/types.ts +10 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: agent-webexbot
|
|
3
3
|
description: Interact with Cisco Webex using bot tokens - send messages, reply in threads, upload and download files, look up people, read spaces, manage memberships, stream real-time events
|
|
4
|
-
version: 2.37.
|
|
4
|
+
version: 2.37.2
|
|
5
5
|
allowed-tools: Bash(agent-webexbot:*)
|
|
6
6
|
metadata:
|
|
7
7
|
openclaw:
|
|
@@ -30,4 +30,26 @@ describe('classifyKakaoChat', () => {
|
|
|
30
30
|
it('classifies a 1-member chat (lone room) as dm', () => {
|
|
31
31
|
expect(classifyKakaoChat({ type: 11, active_members: 1 })).toBe('dm')
|
|
32
32
|
})
|
|
33
|
+
|
|
34
|
+
for (const type of ['DirectChat', 'MultiChat', 'PlusChat', 'MemoChat'] as const) {
|
|
35
|
+
it(`keeps member-count classification for known normal type ${type}`, () => {
|
|
36
|
+
expect(classifyKakaoChat({ type, active_members: 2 })).toBe('dm')
|
|
37
|
+
expect(classifyKakaoChat({ type, active_members: 3 })).toBe('group')
|
|
38
|
+
})
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
it('classifies an unknown string type as unknown regardless of member count', () => {
|
|
42
|
+
expect(
|
|
43
|
+
classifyKakaoChat({
|
|
44
|
+
type: 'UnknownChat',
|
|
45
|
+
active_members: 2,
|
|
46
|
+
}),
|
|
47
|
+
).toBe('unknown')
|
|
48
|
+
expect(
|
|
49
|
+
classifyKakaoChat({
|
|
50
|
+
type: 'UnknownChat',
|
|
51
|
+
active_members: 3,
|
|
52
|
+
}),
|
|
53
|
+
).toBe('unknown')
|
|
54
|
+
})
|
|
33
55
|
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { isKnownKakaoChatStringType, type KakaoChat, type KakaoOpenChatType } from './types'
|
|
2
2
|
|
|
3
3
|
export type KakaoChatKind = 'dm' | 'group' | 'open' | 'unknown'
|
|
4
4
|
|
|
@@ -21,12 +21,15 @@ export function isOpenKakaoChatType(type: unknown): type is KakaoOpenChatType {
|
|
|
21
21
|
* NOT "simplify" this back to a pure type-code mapping without verifying
|
|
22
22
|
* against a real KakaoTalk session.
|
|
23
23
|
*
|
|
24
|
-
* `'unknown'` is reserved for future protocol drift
|
|
25
|
-
*
|
|
26
|
-
*
|
|
24
|
+
* `'unknown'` is reserved for future string protocol drift so consumers fail
|
|
25
|
+
* closed instead of silently classifying an unrecognized server value by
|
|
26
|
+
* member count.
|
|
27
27
|
*/
|
|
28
28
|
export function classifyKakaoChat(chat: Pick<KakaoChat, 'type' | 'active_members'>): KakaoChatKind {
|
|
29
29
|
if (isOpenKakaoChatType(chat.type)) return 'open'
|
|
30
|
+
if (typeof chat.type === 'string' && !isKnownKakaoChatStringType(chat.type)) {
|
|
31
|
+
return 'unknown'
|
|
32
|
+
}
|
|
30
33
|
// active_members counts the logged-in user, so a 1:1 DM is exactly 2
|
|
31
34
|
// (self + one other) and a "lone" room with only self is 1.
|
|
32
35
|
if (chat.active_members <= 2) return 'dm'
|