agent-messenger 2.23.1 → 2.23.3

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 (130) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/dist/package.json +1 -1
  3. package/dist/src/platforms/webex/client.d.ts +18 -0
  4. package/dist/src/platforms/webex/client.d.ts.map +1 -1
  5. package/dist/src/platforms/webex/client.js +202 -49
  6. package/dist/src/platforms/webex/client.js.map +1 -1
  7. package/dist/src/platforms/webex/commands/auth.d.ts.map +1 -1
  8. package/dist/src/platforms/webex/commands/auth.js +9 -6
  9. package/dist/src/platforms/webex/commands/auth.js.map +1 -1
  10. package/dist/src/platforms/webex/commands/member.d.ts.map +1 -1
  11. package/dist/src/platforms/webex/commands/member.js +2 -0
  12. package/dist/src/platforms/webex/commands/member.js.map +1 -1
  13. package/dist/src/platforms/webex/commands/message.d.ts.map +1 -1
  14. package/dist/src/platforms/webex/commands/message.js +2 -0
  15. package/dist/src/platforms/webex/commands/message.js.map +1 -1
  16. package/dist/src/platforms/webex/commands/snapshot.d.ts.map +1 -1
  17. package/dist/src/platforms/webex/commands/snapshot.js +3 -1
  18. package/dist/src/platforms/webex/commands/snapshot.js.map +1 -1
  19. package/dist/src/platforms/webex/commands/space.d.ts.map +1 -1
  20. package/dist/src/platforms/webex/commands/space.js +5 -0
  21. package/dist/src/platforms/webex/commands/space.js.map +1 -1
  22. package/dist/src/platforms/webex/commands/whoami.d.ts.map +1 -1
  23. package/dist/src/platforms/webex/commands/whoami.js +2 -0
  24. package/dist/src/platforms/webex/commands/whoami.js.map +1 -1
  25. package/dist/src/platforms/webex/id-normalizer.d.ts +11 -0
  26. package/dist/src/platforms/webex/id-normalizer.d.ts.map +1 -1
  27. package/dist/src/platforms/webex/id-normalizer.js +102 -20
  28. package/dist/src/platforms/webex/id-normalizer.js.map +1 -1
  29. package/dist/src/platforms/webex/index.d.ts +2 -2
  30. package/dist/src/platforms/webex/index.d.ts.map +1 -1
  31. package/dist/src/platforms/webex/index.js +1 -1
  32. package/dist/src/platforms/webex/index.js.map +1 -1
  33. package/dist/src/platforms/webex/types.d.ts +20 -0
  34. package/dist/src/platforms/webex/types.d.ts.map +1 -1
  35. package/dist/src/platforms/webex/types.js +10 -0
  36. package/dist/src/platforms/webex/types.js.map +1 -1
  37. package/dist/src/platforms/webexbot/client.d.ts +0 -4
  38. package/dist/src/platforms/webexbot/client.d.ts.map +1 -1
  39. package/dist/src/platforms/webexbot/client.js +8 -65
  40. package/dist/src/platforms/webexbot/client.js.map +1 -1
  41. package/dist/src/platforms/webexbot/commands/file.d.ts +2 -0
  42. package/dist/src/platforms/webexbot/commands/file.d.ts.map +1 -1
  43. package/dist/src/platforms/webexbot/commands/file.js +2 -0
  44. package/dist/src/platforms/webexbot/commands/file.js.map +1 -1
  45. package/dist/src/platforms/webexbot/commands/member.d.ts +2 -0
  46. package/dist/src/platforms/webexbot/commands/member.d.ts.map +1 -1
  47. package/dist/src/platforms/webexbot/commands/member.js +2 -0
  48. package/dist/src/platforms/webexbot/commands/member.js.map +1 -1
  49. package/dist/src/platforms/webexbot/commands/message.d.ts +4 -0
  50. package/dist/src/platforms/webexbot/commands/message.d.ts.map +1 -1
  51. package/dist/src/platforms/webexbot/commands/message.js +6 -0
  52. package/dist/src/platforms/webexbot/commands/message.js.map +1 -1
  53. package/dist/src/platforms/webexbot/commands/snapshot.d.ts +2 -0
  54. package/dist/src/platforms/webexbot/commands/snapshot.d.ts.map +1 -1
  55. package/dist/src/platforms/webexbot/commands/snapshot.js +10 -2
  56. package/dist/src/platforms/webexbot/commands/snapshot.js.map +1 -1
  57. package/dist/src/platforms/webexbot/commands/space.d.ts +4 -0
  58. package/dist/src/platforms/webexbot/commands/space.d.ts.map +1 -1
  59. package/dist/src/platforms/webexbot/commands/space.js +5 -0
  60. package/dist/src/platforms/webexbot/commands/space.js.map +1 -1
  61. package/dist/src/platforms/webexbot/commands/user.d.ts +3 -0
  62. package/dist/src/platforms/webexbot/commands/user.d.ts.map +1 -1
  63. package/dist/src/platforms/webexbot/commands/user.js +3 -0
  64. package/dist/src/platforms/webexbot/commands/user.js.map +1 -1
  65. package/dist/src/platforms/webexbot/commands/whoami.d.ts +2 -0
  66. package/dist/src/platforms/webexbot/commands/whoami.d.ts.map +1 -1
  67. package/dist/src/platforms/webexbot/commands/whoami.js +2 -0
  68. package/dist/src/platforms/webexbot/commands/whoami.js.map +1 -1
  69. package/dist/src/platforms/webexbot/index.d.ts +2 -2
  70. package/dist/src/platforms/webexbot/index.d.ts.map +1 -1
  71. package/dist/src/platforms/webexbot/index.js +1 -1
  72. package/dist/src/platforms/webexbot/index.js.map +1 -1
  73. package/dist/src/tui/adapters/types.d.ts +3 -0
  74. package/dist/src/tui/adapters/types.d.ts.map +1 -1
  75. package/dist/src/tui/adapters/webex-adapter.d.ts.map +1 -1
  76. package/dist/src/tui/adapters/webex-adapter.js +4 -0
  77. package/dist/src/tui/adapters/webex-adapter.js.map +1 -1
  78. package/docs/content/docs/cli/webex.mdx +2 -2
  79. package/package.json +1 -1
  80. package/skills/agent-channeltalk/SKILL.md +1 -1
  81. package/skills/agent-channeltalkbot/SKILL.md +1 -1
  82. package/skills/agent-discord/SKILL.md +1 -1
  83. package/skills/agent-discordbot/SKILL.md +1 -1
  84. package/skills/agent-instagram/SKILL.md +1 -1
  85. package/skills/agent-kakaotalk/SKILL.md +1 -1
  86. package/skills/agent-line/SKILL.md +1 -1
  87. package/skills/agent-slack/SKILL.md +1 -1
  88. package/skills/agent-slackbot/SKILL.md +1 -1
  89. package/skills/agent-teams/SKILL.md +1 -1
  90. package/skills/agent-telegram/SKILL.md +1 -1
  91. package/skills/agent-telegrambot/SKILL.md +1 -1
  92. package/skills/agent-webex/SKILL.md +3 -3
  93. package/skills/agent-webexbot/SKILL.md +2 -2
  94. package/skills/agent-webexbot/references/common-patterns.md +1 -1
  95. package/skills/agent-wechatbot/SKILL.md +1 -1
  96. package/skills/agent-whatsapp/SKILL.md +1 -1
  97. package/skills/agent-whatsappbot/SKILL.md +1 -1
  98. package/src/platforms/webex/client.test.ts +94 -6
  99. package/src/platforms/webex/client.ts +226 -44
  100. package/src/platforms/webex/commands/auth.test.ts +3 -1
  101. package/src/platforms/webex/commands/auth.ts +12 -7
  102. package/src/platforms/webex/commands/member.test.ts +24 -8
  103. package/src/platforms/webex/commands/member.ts +2 -0
  104. package/src/platforms/webex/commands/message.test.ts +37 -23
  105. package/src/platforms/webex/commands/message.ts +2 -0
  106. package/src/platforms/webex/commands/snapshot.test.ts +18 -10
  107. package/src/platforms/webex/commands/snapshot.ts +3 -1
  108. package/src/platforms/webex/commands/space.test.ts +36 -17
  109. package/src/platforms/webex/commands/space.ts +5 -0
  110. package/src/platforms/webex/commands/whoami.test.ts +16 -6
  111. package/src/platforms/webex/commands/whoami.ts +2 -0
  112. package/src/platforms/webex/id-normalizer.test.ts +282 -2
  113. package/src/platforms/webex/id-normalizer.ts +112 -20
  114. package/src/platforms/webex/index.ts +2 -2
  115. package/src/platforms/webex/listener.test.ts +3 -0
  116. package/src/platforms/webex/types.test.ts +20 -0
  117. package/src/platforms/webex/types.ts +20 -0
  118. package/src/platforms/webex/typings/webex-message-handler.d.ts +40 -2
  119. package/src/platforms/webexbot/client.ts +8 -74
  120. package/src/platforms/webexbot/commands/file.ts +4 -0
  121. package/src/platforms/webexbot/commands/member.ts +4 -0
  122. package/src/platforms/webexbot/commands/message.ts +10 -0
  123. package/src/platforms/webexbot/commands/snapshot.ts +12 -2
  124. package/src/platforms/webexbot/commands/space.ts +9 -0
  125. package/src/platforms/webexbot/commands/user.test.ts +15 -5
  126. package/src/platforms/webexbot/commands/user.ts +6 -0
  127. package/src/platforms/webexbot/commands/whoami.ts +4 -0
  128. package/src/platforms/webexbot/index.ts +2 -2
  129. package/src/tui/adapters/types.ts +3 -0
  130. package/src/tui/adapters/webex-adapter.ts +4 -0
@@ -3,6 +3,7 @@ import { exec } from 'node:child_process'
3
3
  import { getWebexAppCredentials } from '@/platforms/webex/app-config'
4
4
  import { WebexClient } from '@/platforms/webex/client'
5
5
  import { WebexCredentialManager } from '@/platforms/webex/credential-manager'
6
+ import { toRef } from '@/platforms/webex/id-normalizer'
6
7
 
7
8
  import type { AuthHint, AuthIO, PlatformAdapter, UnifiedChannel, UnifiedMessage } from './types'
8
9
 
@@ -25,6 +26,7 @@ export class WebexAdapter implements PlatformAdapter {
25
26
  const spaces = await this.client!.listSpaces()
26
27
  return spaces.map((space) => ({
27
28
  id: space.id,
29
+ ref: toRef(space.id),
28
30
  name: space.title,
29
31
  }))
30
32
  }
@@ -35,7 +37,9 @@ export class WebexAdapter implements PlatformAdapter {
35
37
  return messages
36
38
  .map((msg) => ({
37
39
  id: msg.id,
40
+ ref: msg.ref,
38
41
  channelId: msg.roomId,
42
+ channelRef: msg.roomRef,
39
43
  author: msg.personEmail,
40
44
  content: msg.text ?? '',
41
45
  timestamp: msg.created,