agent-messenger 2.3.0 → 2.5.0

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 (438) hide show
  1. package/.claude-plugin/README.md +16 -16
  2. package/.claude-plugin/marketplace.json +29 -29
  3. package/.claude-plugin/plugin.json +5 -5
  4. package/.github/workflows/release.yml +0 -12
  5. package/CONTRIBUTING.md +1 -1
  6. package/README.md +11 -8
  7. package/bun.lock +70 -110
  8. package/bunfig.toml +3 -0
  9. package/dist/package.json +11 -3
  10. package/dist/src/platforms/channeltalk/cli.d.ts.map +1 -1
  11. package/dist/src/platforms/channeltalk/cli.js +2 -1
  12. package/dist/src/platforms/channeltalk/cli.js.map +1 -1
  13. package/dist/src/platforms/channeltalk/commands/index.d.ts +1 -0
  14. package/dist/src/platforms/channeltalk/commands/index.d.ts.map +1 -1
  15. package/dist/src/platforms/channeltalk/commands/index.js +1 -0
  16. package/dist/src/platforms/channeltalk/commands/index.js.map +1 -1
  17. package/dist/src/platforms/channeltalk/commands/whoami.d.ts +22 -0
  18. package/dist/src/platforms/channeltalk/commands/whoami.d.ts.map +1 -0
  19. package/dist/src/platforms/channeltalk/commands/whoami.js +40 -0
  20. package/dist/src/platforms/channeltalk/commands/whoami.js.map +1 -0
  21. package/dist/src/platforms/channeltalkbot/cli.d.ts.map +1 -1
  22. package/dist/src/platforms/channeltalkbot/cli.js +2 -1
  23. package/dist/src/platforms/channeltalkbot/cli.js.map +1 -1
  24. package/dist/src/platforms/channeltalkbot/commands/index.d.ts +1 -0
  25. package/dist/src/platforms/channeltalkbot/commands/index.d.ts.map +1 -1
  26. package/dist/src/platforms/channeltalkbot/commands/index.js +1 -0
  27. package/dist/src/platforms/channeltalkbot/commands/index.js.map +1 -1
  28. package/dist/src/platforms/channeltalkbot/commands/whoami.d.ts +13 -0
  29. package/dist/src/platforms/channeltalkbot/commands/whoami.d.ts.map +1 -0
  30. package/dist/src/platforms/channeltalkbot/commands/whoami.js +31 -0
  31. package/dist/src/platforms/channeltalkbot/commands/whoami.js.map +1 -0
  32. package/dist/src/platforms/discord/cli.d.ts.map +1 -1
  33. package/dist/src/platforms/discord/cli.js +2 -1
  34. package/dist/src/platforms/discord/cli.js.map +1 -1
  35. package/dist/src/platforms/discord/commands/index.d.ts +1 -0
  36. package/dist/src/platforms/discord/commands/index.d.ts.map +1 -1
  37. package/dist/src/platforms/discord/commands/index.js +1 -0
  38. package/dist/src/platforms/discord/commands/index.js.map +1 -1
  39. package/dist/src/platforms/discord/commands/whoami.d.ts +6 -0
  40. package/dist/src/platforms/discord/commands/whoami.d.ts.map +1 -0
  41. package/dist/src/platforms/discord/commands/whoami.js +33 -0
  42. package/dist/src/platforms/discord/commands/whoami.js.map +1 -0
  43. package/dist/src/platforms/discordbot/cli.d.ts.map +1 -1
  44. package/dist/src/platforms/discordbot/cli.js +2 -1
  45. package/dist/src/platforms/discordbot/cli.js.map +1 -1
  46. package/dist/src/platforms/discordbot/client.js +2 -2
  47. package/dist/src/platforms/discordbot/client.js.map +1 -1
  48. package/dist/src/platforms/discordbot/commands/index.d.ts +1 -0
  49. package/dist/src/platforms/discordbot/commands/index.d.ts.map +1 -1
  50. package/dist/src/platforms/discordbot/commands/index.js +1 -0
  51. package/dist/src/platforms/discordbot/commands/index.js.map +1 -1
  52. package/dist/src/platforms/discordbot/commands/whoami.d.ts +14 -0
  53. package/dist/src/platforms/discordbot/commands/whoami.d.ts.map +1 -0
  54. package/dist/src/platforms/discordbot/commands/whoami.js +32 -0
  55. package/dist/src/platforms/discordbot/commands/whoami.js.map +1 -0
  56. package/dist/src/platforms/instagram/cli.d.ts.map +1 -1
  57. package/dist/src/platforms/instagram/cli.js +2 -1
  58. package/dist/src/platforms/instagram/cli.js.map +1 -1
  59. package/dist/src/platforms/instagram/client.d.ts +6 -0
  60. package/dist/src/platforms/instagram/client.d.ts.map +1 -1
  61. package/dist/src/platforms/instagram/client.js +12 -0
  62. package/dist/src/platforms/instagram/client.js.map +1 -1
  63. package/dist/src/platforms/instagram/commands/index.d.ts +1 -0
  64. package/dist/src/platforms/instagram/commands/index.d.ts.map +1 -1
  65. package/dist/src/platforms/instagram/commands/index.js +1 -0
  66. package/dist/src/platforms/instagram/commands/index.js.map +1 -1
  67. package/dist/src/platforms/instagram/commands/whoami.d.ts +7 -0
  68. package/dist/src/platforms/instagram/commands/whoami.d.ts.map +1 -0
  69. package/dist/src/platforms/instagram/commands/whoami.js +19 -0
  70. package/dist/src/platforms/instagram/commands/whoami.js.map +1 -0
  71. package/dist/src/platforms/kakaotalk/cli.d.ts.map +1 -1
  72. package/dist/src/platforms/kakaotalk/cli.js +2 -1
  73. package/dist/src/platforms/kakaotalk/cli.js.map +1 -1
  74. package/dist/src/platforms/kakaotalk/client.d.ts +2 -1
  75. package/dist/src/platforms/kakaotalk/client.d.ts.map +1 -1
  76. package/dist/src/platforms/kakaotalk/client.js +225 -23
  77. package/dist/src/platforms/kakaotalk/client.js.map +1 -1
  78. package/dist/src/platforms/kakaotalk/commands/index.d.ts +1 -0
  79. package/dist/src/platforms/kakaotalk/commands/index.d.ts.map +1 -1
  80. package/dist/src/platforms/kakaotalk/commands/index.js +1 -0
  81. package/dist/src/platforms/kakaotalk/commands/index.js.map +1 -1
  82. package/dist/src/platforms/kakaotalk/commands/whoami.d.ts +3 -0
  83. package/dist/src/platforms/kakaotalk/commands/whoami.d.ts.map +1 -0
  84. package/dist/src/platforms/kakaotalk/commands/whoami.js +19 -0
  85. package/dist/src/platforms/kakaotalk/commands/whoami.js.map +1 -0
  86. package/dist/src/platforms/kakaotalk/index.d.ts +2 -2
  87. package/dist/src/platforms/kakaotalk/index.d.ts.map +1 -1
  88. package/dist/src/platforms/kakaotalk/index.js +1 -1
  89. package/dist/src/platforms/kakaotalk/index.js.map +1 -1
  90. package/dist/src/platforms/kakaotalk/protocol/session.d.ts +4 -2
  91. package/dist/src/platforms/kakaotalk/protocol/session.d.ts.map +1 -1
  92. package/dist/src/platforms/kakaotalk/protocol/session.js +27 -7
  93. package/dist/src/platforms/kakaotalk/protocol/session.js.map +1 -1
  94. package/dist/src/platforms/kakaotalk/protocol/types.d.ts +17 -0
  95. package/dist/src/platforms/kakaotalk/protocol/types.d.ts.map +1 -1
  96. package/dist/src/platforms/kakaotalk/protocol/types.js.map +1 -1
  97. package/dist/src/platforms/kakaotalk/types.d.ts +28 -0
  98. package/dist/src/platforms/kakaotalk/types.d.ts.map +1 -1
  99. package/dist/src/platforms/kakaotalk/types.js +14 -0
  100. package/dist/src/platforms/kakaotalk/types.js.map +1 -1
  101. package/dist/src/platforms/line/cli.js +2 -2
  102. package/dist/src/platforms/line/cli.js.map +1 -1
  103. package/dist/src/platforms/line/client.d.ts.map +1 -1
  104. package/dist/src/platforms/line/client.js +9 -36
  105. package/dist/src/platforms/line/client.js.map +1 -1
  106. package/dist/src/platforms/line/commands/auth.d.ts.map +1 -1
  107. package/dist/src/platforms/line/commands/auth.js +9 -47
  108. package/dist/src/platforms/line/commands/auth.js.map +1 -1
  109. package/dist/src/platforms/line/commands/index.d.ts +1 -1
  110. package/dist/src/platforms/line/commands/index.d.ts.map +1 -1
  111. package/dist/src/platforms/line/commands/index.js +1 -1
  112. package/dist/src/platforms/line/commands/index.js.map +1 -1
  113. package/dist/src/platforms/line/commands/whoami.d.ts +3 -0
  114. package/dist/src/platforms/line/commands/whoami.d.ts.map +1 -0
  115. package/dist/src/platforms/line/commands/{profile.js → whoami.js} +5 -5
  116. package/dist/src/platforms/line/commands/whoami.js.map +1 -0
  117. package/dist/src/platforms/slack/cli.d.ts.map +1 -1
  118. package/dist/src/platforms/slack/cli.js +2 -1
  119. package/dist/src/platforms/slack/cli.js.map +1 -1
  120. package/dist/src/platforms/slack/commands/index.d.ts +1 -0
  121. package/dist/src/platforms/slack/commands/index.d.ts.map +1 -1
  122. package/dist/src/platforms/slack/commands/index.js +1 -0
  123. package/dist/src/platforms/slack/commands/index.js.map +1 -1
  124. package/dist/src/platforms/slack/commands/whoami.d.ts +6 -0
  125. package/dist/src/platforms/slack/commands/whoami.d.ts.map +1 -0
  126. package/dist/src/platforms/slack/commands/whoami.js +39 -0
  127. package/dist/src/platforms/slack/commands/whoami.js.map +1 -0
  128. package/dist/src/platforms/slackbot/cli.d.ts.map +1 -1
  129. package/dist/src/platforms/slackbot/cli.js +2 -1
  130. package/dist/src/platforms/slackbot/cli.js.map +1 -1
  131. package/dist/src/platforms/slackbot/commands/index.d.ts +1 -0
  132. package/dist/src/platforms/slackbot/commands/index.d.ts.map +1 -1
  133. package/dist/src/platforms/slackbot/commands/index.js +1 -0
  134. package/dist/src/platforms/slackbot/commands/index.js.map +1 -1
  135. package/dist/src/platforms/slackbot/commands/whoami.d.ts +14 -0
  136. package/dist/src/platforms/slackbot/commands/whoami.d.ts.map +1 -0
  137. package/dist/src/platforms/slackbot/commands/whoami.js +32 -0
  138. package/dist/src/platforms/slackbot/commands/whoami.js.map +1 -0
  139. package/dist/src/platforms/teams/cli.d.ts.map +1 -1
  140. package/dist/src/platforms/teams/cli.js +2 -1
  141. package/dist/src/platforms/teams/cli.js.map +1 -1
  142. package/dist/src/platforms/teams/commands/index.d.ts +1 -0
  143. package/dist/src/platforms/teams/commands/index.d.ts.map +1 -1
  144. package/dist/src/platforms/teams/commands/index.js +1 -0
  145. package/dist/src/platforms/teams/commands/index.js.map +1 -1
  146. package/dist/src/platforms/teams/commands/reaction.d.ts.map +1 -1
  147. package/dist/src/platforms/teams/commands/reaction.js +2 -0
  148. package/dist/src/platforms/teams/commands/reaction.js.map +1 -1
  149. package/dist/src/platforms/teams/commands/whoami.d.ts +6 -0
  150. package/dist/src/platforms/teams/commands/whoami.d.ts.map +1 -0
  151. package/dist/src/platforms/teams/commands/whoami.js +30 -0
  152. package/dist/src/platforms/teams/commands/whoami.js.map +1 -0
  153. package/dist/src/platforms/telegram/cli.d.ts.map +1 -1
  154. package/dist/src/platforms/telegram/cli.js +2 -1
  155. package/dist/src/platforms/telegram/cli.js.map +1 -1
  156. package/dist/src/platforms/telegram/commands/index.d.ts +1 -0
  157. package/dist/src/platforms/telegram/commands/index.d.ts.map +1 -1
  158. package/dist/src/platforms/telegram/commands/index.js +1 -0
  159. package/dist/src/platforms/telegram/commands/index.js.map +1 -1
  160. package/dist/src/platforms/telegram/commands/whoami.d.ts +7 -0
  161. package/dist/src/platforms/telegram/commands/whoami.d.ts.map +1 -0
  162. package/dist/src/platforms/telegram/commands/whoami.js +27 -0
  163. package/dist/src/platforms/telegram/commands/whoami.js.map +1 -0
  164. package/dist/src/platforms/webex/cli.d.ts.map +1 -1
  165. package/dist/src/platforms/webex/cli.js +2 -1
  166. package/dist/src/platforms/webex/cli.js.map +1 -1
  167. package/dist/src/platforms/webex/commands/index.d.ts +1 -0
  168. package/dist/src/platforms/webex/commands/index.d.ts.map +1 -1
  169. package/dist/src/platforms/webex/commands/index.js +1 -0
  170. package/dist/src/platforms/webex/commands/index.js.map +1 -1
  171. package/dist/src/platforms/webex/commands/message.js +1 -1
  172. package/dist/src/platforms/webex/commands/message.js.map +1 -1
  173. package/dist/src/platforms/webex/commands/whoami.d.ts +6 -0
  174. package/dist/src/platforms/webex/commands/whoami.d.ts.map +1 -0
  175. package/dist/src/platforms/webex/commands/whoami.js +30 -0
  176. package/dist/src/platforms/webex/commands/whoami.js.map +1 -0
  177. package/dist/src/platforms/wechatbot/cli.d.ts +5 -0
  178. package/dist/src/platforms/wechatbot/cli.d.ts.map +1 -0
  179. package/dist/src/platforms/wechatbot/cli.js +19 -0
  180. package/dist/src/platforms/wechatbot/cli.js.map +1 -0
  181. package/dist/src/platforms/wechatbot/client.d.ts +36 -0
  182. package/dist/src/platforms/wechatbot/client.d.ts.map +1 -0
  183. package/dist/src/platforms/wechatbot/client.js +208 -0
  184. package/dist/src/platforms/wechatbot/client.js.map +1 -0
  185. package/dist/src/platforms/wechatbot/commands/auth.d.ts +28 -0
  186. package/dist/src/platforms/wechatbot/commands/auth.d.ts.map +1 -0
  187. package/dist/src/platforms/wechatbot/commands/auth.js +164 -0
  188. package/dist/src/platforms/wechatbot/commands/auth.js.map +1 -0
  189. package/dist/src/platforms/wechatbot/commands/index.d.ts +6 -0
  190. package/dist/src/platforms/wechatbot/commands/index.d.ts.map +1 -0
  191. package/dist/src/platforms/wechatbot/commands/index.js +6 -0
  192. package/dist/src/platforms/wechatbot/commands/index.js.map +1 -0
  193. package/dist/src/platforms/wechatbot/commands/message.d.ts +18 -0
  194. package/dist/src/platforms/wechatbot/commands/message.d.ts.map +1 -0
  195. package/dist/src/platforms/wechatbot/commands/message.js +80 -0
  196. package/dist/src/platforms/wechatbot/commands/message.js.map +1 -0
  197. package/dist/src/platforms/wechatbot/commands/shared.d.ts +9 -0
  198. package/dist/src/platforms/wechatbot/commands/shared.d.ts.map +1 -0
  199. package/dist/src/platforms/wechatbot/commands/shared.js +13 -0
  200. package/dist/src/platforms/wechatbot/commands/shared.js.map +1 -0
  201. package/dist/src/platforms/wechatbot/commands/template.d.ts +19 -0
  202. package/dist/src/platforms/wechatbot/commands/template.d.ts.map +1 -0
  203. package/dist/src/platforms/wechatbot/commands/template.js +76 -0
  204. package/dist/src/platforms/wechatbot/commands/template.js.map +1 -0
  205. package/dist/src/platforms/wechatbot/commands/user.d.ts +20 -0
  206. package/dist/src/platforms/wechatbot/commands/user.d.ts.map +1 -0
  207. package/dist/src/platforms/wechatbot/commands/user.js +53 -0
  208. package/dist/src/platforms/wechatbot/commands/user.js.map +1 -0
  209. package/dist/src/platforms/wechatbot/commands/whoami.d.ts +12 -0
  210. package/dist/src/platforms/wechatbot/commands/whoami.d.ts.map +1 -0
  211. package/dist/src/platforms/wechatbot/commands/whoami.js +33 -0
  212. package/dist/src/platforms/wechatbot/commands/whoami.js.map +1 -0
  213. package/dist/src/platforms/wechatbot/credential-manager.d.ts +17 -0
  214. package/dist/src/platforms/wechatbot/credential-manager.d.ts.map +1 -0
  215. package/dist/src/platforms/wechatbot/credential-manager.js +121 -0
  216. package/dist/src/platforms/wechatbot/credential-manager.js.map +1 -0
  217. package/dist/src/platforms/wechatbot/index.d.ts +5 -0
  218. package/dist/src/platforms/wechatbot/index.d.ts.map +1 -0
  219. package/dist/src/platforms/wechatbot/index.js +4 -0
  220. package/dist/src/platforms/wechatbot/index.js.map +1 -0
  221. package/dist/src/platforms/wechatbot/types.d.ts +94 -0
  222. package/dist/src/platforms/wechatbot/types.d.ts.map +1 -0
  223. package/dist/src/platforms/wechatbot/types.js +54 -0
  224. package/dist/src/platforms/wechatbot/types.js.map +1 -0
  225. package/dist/src/platforms/whatsapp/cli.d.ts.map +1 -1
  226. package/dist/src/platforms/whatsapp/cli.js +2 -1
  227. package/dist/src/platforms/whatsapp/cli.js.map +1 -1
  228. package/dist/src/platforms/whatsapp/client.d.ts +9 -0
  229. package/dist/src/platforms/whatsapp/client.d.ts.map +1 -1
  230. package/dist/src/platforms/whatsapp/client.js +143 -21
  231. package/dist/src/platforms/whatsapp/client.js.map +1 -1
  232. package/dist/src/platforms/whatsapp/commands/auth.d.ts.map +1 -1
  233. package/dist/src/platforms/whatsapp/commands/auth.js +133 -60
  234. package/dist/src/platforms/whatsapp/commands/auth.js.map +1 -1
  235. package/dist/src/platforms/whatsapp/commands/index.d.ts +1 -0
  236. package/dist/src/platforms/whatsapp/commands/index.d.ts.map +1 -1
  237. package/dist/src/platforms/whatsapp/commands/index.js +1 -0
  238. package/dist/src/platforms/whatsapp/commands/index.js.map +1 -1
  239. package/dist/src/platforms/whatsapp/commands/shared.js +2 -2
  240. package/dist/src/platforms/whatsapp/commands/shared.js.map +1 -1
  241. package/dist/src/platforms/whatsapp/commands/whoami.d.ts +7 -0
  242. package/dist/src/platforms/whatsapp/commands/whoami.d.ts.map +1 -0
  243. package/dist/src/platforms/whatsapp/commands/whoami.js +19 -0
  244. package/dist/src/platforms/whatsapp/commands/whoami.js.map +1 -0
  245. package/dist/src/platforms/whatsapp/credential-manager.d.ts.map +1 -1
  246. package/dist/src/platforms/whatsapp/credential-manager.js +14 -8
  247. package/dist/src/platforms/whatsapp/credential-manager.js.map +1 -1
  248. package/dist/src/platforms/whatsapp/ensure-auth.js +2 -2
  249. package/dist/src/platforms/whatsapp/ensure-auth.js.map +1 -1
  250. package/dist/src/platforms/whatsappbot/cli.d.ts.map +1 -1
  251. package/dist/src/platforms/whatsappbot/cli.js +2 -1
  252. package/dist/src/platforms/whatsappbot/cli.js.map +1 -1
  253. package/dist/src/platforms/whatsappbot/commands/index.d.ts +1 -0
  254. package/dist/src/platforms/whatsappbot/commands/index.d.ts.map +1 -1
  255. package/dist/src/platforms/whatsappbot/commands/index.js +1 -0
  256. package/dist/src/platforms/whatsappbot/commands/index.js.map +1 -1
  257. package/dist/src/platforms/whatsappbot/commands/whoami.d.ts +17 -0
  258. package/dist/src/platforms/whatsappbot/commands/whoami.d.ts.map +1 -0
  259. package/dist/src/platforms/whatsappbot/commands/whoami.js +39 -0
  260. package/dist/src/platforms/whatsappbot/commands/whoami.js.map +1 -0
  261. package/dist/src/shared/utils/qr.d.ts +15 -0
  262. package/dist/src/shared/utils/qr.d.ts.map +1 -0
  263. package/dist/src/shared/utils/qr.js +74 -0
  264. package/dist/src/shared/utils/qr.js.map +1 -0
  265. package/dist/src/tui/adapters/whatsapp-adapter.d.ts.map +1 -1
  266. package/dist/src/tui/adapters/whatsapp-adapter.js +20 -15
  267. package/dist/src/tui/adapters/whatsapp-adapter.js.map +1 -1
  268. package/docs/content/docs/agent-skills.mdx +4 -4
  269. package/docs/content/docs/cli/channeltalk.mdx +12 -1
  270. package/docs/content/docs/cli/channeltalkbot.mdx +10 -1
  271. package/docs/content/docs/cli/discord.mdx +11 -1
  272. package/docs/content/docs/cli/discordbot.mdx +10 -1
  273. package/docs/content/docs/cli/instagram.mdx +12 -1
  274. package/docs/content/docs/cli/kakaotalk.mdx +25 -1
  275. package/docs/content/docs/cli/line.mdx +5 -5
  276. package/docs/content/docs/cli/meta.json +1 -0
  277. package/docs/content/docs/cli/slack.mdx +11 -1
  278. package/docs/content/docs/cli/slackbot.mdx +10 -1
  279. package/docs/content/docs/cli/teams.mdx +11 -1
  280. package/docs/content/docs/cli/telegram.mdx +11 -0
  281. package/docs/content/docs/cli/webex.mdx +11 -1
  282. package/docs/content/docs/cli/wechatbot.mdx +188 -0
  283. package/docs/content/docs/cli/whatsapp.mdx +37 -8
  284. package/docs/content/docs/cli/whatsappbot.mdx +10 -1
  285. package/docs/content/docs/sdk/meta.json +1 -1
  286. package/docs/content/docs/sdk/wechatbot.mdx +282 -0
  287. package/docs/content/docs/tui.mdx +1 -1
  288. package/docs/src/app/page.tsx +5 -5
  289. package/package.json +11 -3
  290. package/skills/agent-channeltalk/SKILL.md +12 -1
  291. package/skills/agent-channeltalkbot/SKILL.md +10 -1
  292. package/skills/agent-discord/SKILL.md +11 -1
  293. package/skills/agent-discordbot/SKILL.md +10 -1
  294. package/skills/agent-instagram/SKILL.md +12 -1
  295. package/skills/agent-kakaotalk/SKILL.md +30 -1
  296. package/skills/agent-kakaotalk/references/common-patterns.md +1 -1
  297. package/skills/agent-line/SKILL.md +11 -15
  298. package/skills/agent-line/references/authentication.md +13 -4
  299. package/skills/agent-slack/SKILL.md +11 -1
  300. package/skills/agent-slackbot/SKILL.md +10 -1
  301. package/skills/agent-teams/SKILL.md +11 -1
  302. package/skills/agent-telegram/SKILL.md +6 -1
  303. package/skills/agent-webex/SKILL.md +11 -1
  304. package/skills/agent-wechatbot/SKILL.md +394 -0
  305. package/skills/agent-whatsapp/SKILL.md +63 -15
  306. package/skills/agent-whatsapp/references/authentication.md +36 -6
  307. package/skills/agent-whatsappbot/SKILL.md +10 -1
  308. package/src/platforms/channeltalk/cli.ts +2 -0
  309. package/src/platforms/channeltalk/commands/index.ts +1 -0
  310. package/src/platforms/channeltalk/commands/whoami.test.ts +64 -0
  311. package/src/platforms/channeltalk/commands/whoami.ts +62 -0
  312. package/src/platforms/channeltalkbot/cli.ts +2 -0
  313. package/src/platforms/channeltalkbot/commands/index.ts +1 -0
  314. package/src/platforms/channeltalkbot/commands/whoami.test.ts +104 -0
  315. package/src/platforms/channeltalkbot/commands/whoami.ts +42 -0
  316. package/src/platforms/discord/cli.ts +2 -0
  317. package/src/platforms/discord/commands/index.ts +1 -0
  318. package/src/platforms/discord/commands/whoami.test.ts +91 -0
  319. package/src/platforms/discord/commands/whoami.ts +36 -0
  320. package/src/platforms/discord/credential-manager.test.ts +18 -1
  321. package/src/platforms/discordbot/cli.ts +2 -0
  322. package/src/platforms/discordbot/client.ts +2 -2
  323. package/src/platforms/discordbot/commands/index.ts +1 -0
  324. package/src/platforms/discordbot/commands/whoami.test.ts +96 -0
  325. package/src/platforms/discordbot/commands/whoami.ts +44 -0
  326. package/src/platforms/instagram/cli.ts +2 -1
  327. package/src/platforms/instagram/client.ts +13 -0
  328. package/src/platforms/instagram/commands/auth.test.ts +216 -0
  329. package/src/platforms/instagram/commands/chat.test.ts +123 -0
  330. package/src/platforms/instagram/commands/index.ts +1 -0
  331. package/src/platforms/instagram/commands/message.test.ts +174 -0
  332. package/src/platforms/instagram/commands/whoami.test.ts +60 -0
  333. package/src/platforms/instagram/commands/whoami.ts +21 -0
  334. package/src/platforms/kakaotalk/cli.ts +2 -1
  335. package/src/platforms/kakaotalk/client.test.ts +182 -14
  336. package/src/platforms/kakaotalk/client.ts +261 -27
  337. package/src/platforms/kakaotalk/commands/auth.test.ts +299 -0
  338. package/src/platforms/kakaotalk/commands/chat.test.ts +97 -0
  339. package/src/platforms/kakaotalk/commands/index.ts +1 -0
  340. package/src/platforms/kakaotalk/commands/message.test.ts +113 -0
  341. package/src/platforms/kakaotalk/commands/whoami.test.ts +116 -0
  342. package/src/platforms/kakaotalk/commands/whoami.ts +21 -0
  343. package/src/platforms/kakaotalk/index.test.ts +5 -0
  344. package/src/platforms/kakaotalk/index.ts +2 -0
  345. package/src/platforms/kakaotalk/protocol/session.ts +29 -7
  346. package/src/platforms/kakaotalk/protocol/types.ts +9 -0
  347. package/src/platforms/kakaotalk/types.ts +30 -0
  348. package/src/platforms/line/cli.ts +2 -2
  349. package/src/platforms/line/client.ts +14 -39
  350. package/src/platforms/line/commands/auth.test.ts +141 -0
  351. package/src/platforms/line/commands/auth.ts +37 -61
  352. package/src/platforms/line/commands/chat.test.ts +110 -0
  353. package/src/platforms/line/commands/friend.test.ts +98 -0
  354. package/src/platforms/line/commands/index.ts +1 -1
  355. package/src/platforms/line/commands/message.test.ts +119 -0
  356. package/src/platforms/line/commands/whoami.test.ts +85 -0
  357. package/src/platforms/line/commands/{profile.ts → whoami.ts} +4 -4
  358. package/src/platforms/slack/cli.ts +2 -0
  359. package/src/platforms/slack/commands/index.ts +1 -0
  360. package/src/platforms/slack/commands/whoami.test.ts +126 -0
  361. package/src/platforms/slack/commands/whoami.ts +40 -0
  362. package/src/platforms/slackbot/cli.ts +2 -1
  363. package/src/platforms/slackbot/commands/channel.test.ts +139 -0
  364. package/src/platforms/slackbot/commands/index.ts +1 -0
  365. package/src/platforms/slackbot/commands/message.test.ts +226 -0
  366. package/src/platforms/slackbot/commands/reaction.test.ts +90 -0
  367. package/src/platforms/slackbot/commands/user.test.ts +143 -0
  368. package/src/platforms/slackbot/commands/whoami.test.ts +102 -0
  369. package/src/platforms/slackbot/commands/whoami.ts +44 -0
  370. package/src/platforms/teams/cli.ts +2 -0
  371. package/src/platforms/teams/commands/index.ts +1 -0
  372. package/src/platforms/teams/commands/reaction.test.ts +45 -61
  373. package/src/platforms/teams/commands/reaction.ts +2 -0
  374. package/src/platforms/teams/commands/whoami.test.ts +83 -0
  375. package/src/platforms/teams/commands/whoami.ts +33 -0
  376. package/src/platforms/telegram/cli.ts +2 -1
  377. package/src/platforms/telegram/commands/chat.test.ts +125 -0
  378. package/src/platforms/telegram/commands/index.ts +1 -0
  379. package/src/platforms/telegram/commands/message.test.ts +92 -0
  380. package/src/platforms/telegram/commands/whoami.test.ts +75 -0
  381. package/src/platforms/telegram/commands/whoami.ts +29 -0
  382. package/src/platforms/webex/cli.ts +2 -1
  383. package/src/platforms/webex/commands/auth.test.ts +58 -46
  384. package/src/platforms/webex/commands/index.ts +1 -0
  385. package/src/platforms/webex/commands/member.test.ts +60 -57
  386. package/src/platforms/webex/commands/message.test.ts +74 -121
  387. package/src/platforms/webex/commands/message.ts +1 -1
  388. package/src/platforms/webex/commands/snapshot.test.ts +54 -45
  389. package/src/platforms/webex/commands/space.test.ts +46 -49
  390. package/src/platforms/webex/commands/whoami.test.ts +113 -0
  391. package/src/platforms/webex/commands/whoami.ts +31 -0
  392. package/src/platforms/webex/credential-manager.test.ts +0 -1
  393. package/src/platforms/wechatbot/cli.ts +25 -0
  394. package/src/platforms/wechatbot/client.test.ts +497 -0
  395. package/src/platforms/wechatbot/client.ts +268 -0
  396. package/src/platforms/wechatbot/commands/auth.test.ts +211 -0
  397. package/src/platforms/wechatbot/commands/auth.ts +203 -0
  398. package/src/platforms/wechatbot/commands/index.ts +5 -0
  399. package/src/platforms/wechatbot/commands/message.test.ts +155 -0
  400. package/src/platforms/wechatbot/commands/message.ts +104 -0
  401. package/src/platforms/wechatbot/commands/shared.ts +22 -0
  402. package/src/platforms/wechatbot/commands/template.test.ts +199 -0
  403. package/src/platforms/wechatbot/commands/template.ts +102 -0
  404. package/src/platforms/wechatbot/commands/user.test.ts +165 -0
  405. package/src/platforms/wechatbot/commands/user.ts +75 -0
  406. package/src/platforms/wechatbot/commands/whoami.test.ts +109 -0
  407. package/src/platforms/wechatbot/commands/whoami.ts +43 -0
  408. package/src/platforms/wechatbot/credential-manager.test.ts +255 -0
  409. package/src/platforms/wechatbot/credential-manager.ts +148 -0
  410. package/src/platforms/wechatbot/index.test.ts +49 -0
  411. package/src/platforms/wechatbot/index.ts +19 -0
  412. package/src/platforms/wechatbot/types.test.ts +223 -0
  413. package/src/platforms/wechatbot/types.ts +107 -0
  414. package/src/platforms/whatsapp/cli.ts +2 -1
  415. package/src/platforms/whatsapp/client.ts +180 -37
  416. package/src/platforms/whatsapp/commands/auth.test.ts +311 -0
  417. package/src/platforms/whatsapp/commands/auth.ts +194 -84
  418. package/src/platforms/whatsapp/commands/chat.test.ts +198 -0
  419. package/src/platforms/whatsapp/commands/index.ts +1 -0
  420. package/src/platforms/whatsapp/commands/message.test.ts +231 -0
  421. package/src/platforms/whatsapp/commands/shared.ts +2 -2
  422. package/src/platforms/whatsapp/commands/whoami.test.ts +59 -0
  423. package/src/platforms/whatsapp/commands/whoami.ts +21 -0
  424. package/src/platforms/whatsapp/credential-manager.test.ts +20 -0
  425. package/src/platforms/whatsapp/credential-manager.ts +17 -8
  426. package/src/platforms/whatsapp/ensure-auth.ts +2 -2
  427. package/src/platforms/whatsappbot/cli.ts +2 -1
  428. package/src/platforms/whatsappbot/commands/auth.test.ts +217 -0
  429. package/src/platforms/whatsappbot/commands/index.ts +1 -0
  430. package/src/platforms/whatsappbot/commands/message.test.ts +198 -0
  431. package/src/platforms/whatsappbot/commands/template.test.ts +112 -0
  432. package/src/platforms/whatsappbot/commands/whoami.test.ts +100 -0
  433. package/src/platforms/whatsappbot/commands/whoami.ts +57 -0
  434. package/src/shared/utils/qr.ts +92 -0
  435. package/src/tui/adapters/whatsapp-adapter.ts +19 -16
  436. package/dist/src/platforms/line/commands/profile.d.ts +0 -3
  437. package/dist/src/platforms/line/commands/profile.d.ts.map +0 -1
  438. package/dist/src/platforms/line/commands/profile.js.map +0 -1
@@ -0,0 +1,74 @@
1
+ import { execSync } from 'node:child_process';
2
+ import { writeFileSync, unlinkSync } from 'node:fs';
3
+ import { tmpdir } from 'node:os';
4
+ import { join } from 'node:path';
5
+ import QRCode from 'qrcode';
6
+ import { info } from './stderr.js';
7
+ export async function createQRHtmlFile(url, options) {
8
+ try {
9
+ const svgString = await QRCode.toString(url, { type: 'svg', margin: 2 });
10
+ const html = `<!DOCTYPE html>
11
+ <html><head><meta charset="utf-8"><title>${options.platform} QR Login</title>
12
+ <style>body{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;margin:0;font-family:-apple-system,system-ui,sans-serif;background:${options.brandColor}}
13
+ .card{background:#fff;border-radius:16px;padding:40px;text-align:center;box-shadow:0 4px 24px rgba(0,0,0,.15)}
14
+ h1{margin:0 0 8px;font-size:22px;color:#111}p{margin:0 0 24px;color:#666;font-size:14px}
15
+ svg{width:280px;height:280px}</style></head>
16
+ <body><div class="card"><h1>${options.platform} Login</h1><p>${options.scanInstruction}</p>${svgString}</div></body></html>`;
17
+ const htmlPath = join(tmpdir(), `${options.platform.toLowerCase()}-qr-${Date.now()}.html`);
18
+ writeFileSync(htmlPath, html);
19
+ setTimeout(() => {
20
+ try {
21
+ unlinkSync(htmlPath);
22
+ }
23
+ catch { }
24
+ }, 300_000).unref();
25
+ return htmlPath;
26
+ }
27
+ catch {
28
+ return null;
29
+ }
30
+ }
31
+ export function openInBrowser(filePath) {
32
+ try {
33
+ if (process.platform === 'darwin') {
34
+ execSync(`open "${filePath}"`, { stdio: 'ignore' });
35
+ }
36
+ else if (process.platform === 'win32') {
37
+ execSync(`start "" "${filePath}"`, { stdio: 'ignore' });
38
+ }
39
+ else {
40
+ execSync(`xdg-open "${filePath}"`, { stdio: 'ignore' });
41
+ }
42
+ }
43
+ catch { }
44
+ }
45
+ export async function renderTerminalQR(data) {
46
+ return QRCode.toString(data, { type: 'terminal', small: true });
47
+ }
48
+ export async function displayQR(data, options) {
49
+ const shouldOpenBrowser = options.openBrowser ?? options.interactive;
50
+ const htmlPath = await createQRHtmlFile(data, options);
51
+ if (htmlPath && shouldOpenBrowser)
52
+ openInBrowser(htmlPath);
53
+ if (options.interactive) {
54
+ try {
55
+ const qrAscii = await renderTerminalQR(data);
56
+ info(`\n${options.scanInstruction}:\n`);
57
+ info(qrAscii);
58
+ }
59
+ catch {
60
+ info(`\nOpen the QR code in the browser window, or scan this URL:\n${data}\n`);
61
+ }
62
+ }
63
+ else {
64
+ console.log(options.formatOutput({
65
+ next_action: 'scan_qr',
66
+ qr_url: data,
67
+ qr_html_path: htmlPath,
68
+ message: htmlPath
69
+ ? `QR code opened in browser. ${options.scanInstruction}`
70
+ : `QR code generated. Open qr_url to scan.`,
71
+ }, options.p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AmB,IAAI,SAAS,GAAG,IAAI;IAIvC,WAAW,IAAI,QAAQ;IAOjB,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA4C7C,OAAO,CAAC,YAAY;CAMrB"}
1
+ {"version":3,"file":"whatsapp-adapter.d.ts","sourceRoot":"","sources":["../../../../src/tui/adapters/whatsapp-adapter.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,eAAe,EAAE,cAAc,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAE3G,qBAAa,eAAgB,YAAW,eAAe;IACrD,QAAQ,CAAC,IAAI,cAAa;IAE1B,OAAO,CAAC,MAAM,CAA8B;IAC5C,OAAO,CAAC,WAAW,CAAkC;IACrD,OAAO,CAAC,cAAc,CAAyB;IAEzC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAatB,WAAW,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC;IASxC,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,SAAK,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC;IAYrE,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAK3D,aAAa,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC;IAQrC,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAiBvD,mBAAmB,IAAI,SAAS,GAAG,IAAI;IAIvC,WAAW,IAAI,QAAQ;IAOjB,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IA8C7C,OAAO,CAAC,YAAY;CAMrB"}
@@ -1,5 +1,6 @@
1
1
  import { WhatsAppClient } from '../../platforms/whatsapp/client.js';
2
2
  import { WhatsAppCredentialManager } from '../../platforms/whatsapp/credential-manager.js';
3
+ import { renderTerminalQR } from '../../shared/utils/qr.js';
3
4
  export class WhatsAppAdapter {
4
5
  name = 'WhatsApp';
5
6
  client = null;
@@ -66,32 +67,37 @@ export class WhatsAppAdapter {
66
67
  }
67
68
  getAuthHint() {
68
69
  return {
69
- command: 'agent-whatsapp auth login',
70
- description: 'Run the command below and link your WhatsApp account using the pairing code.',
70
+ command: 'agent-whatsapp auth login --qr',
71
+ description: 'Run the command below and scan the QR code with WhatsApp on your phone.',
71
72
  };
72
73
  }
73
74
  async authenticate(io) {
74
- const { createAccountId } = await import('../../platforms/whatsapp/types.js');
75
- const phone = await io.prompt('Phone number (e.g. +12025551234)');
76
- if (!phone)
77
- throw new Error('Phone number is required');
78
- io.print('Connecting...');
79
- const accountId = createAccountId(phone);
75
+ io.print('Generating QR code...');
76
+ const accountId = 'qr-default';
77
+ const existingPaths = this.credManager.getAccountPaths(accountId);
78
+ const { rm } = await import('node:fs/promises');
79
+ await rm(existingPaths.auth_dir, { recursive: true, force: true });
80
80
  const paths = await this.credManager.ensureAccountPaths(accountId);
81
81
  const client = await new WhatsAppClient().login({ authDir: paths.auth_dir });
82
82
  let waitForAuth;
83
83
  try {
84
- const result = await client.connectForPairing(phone);
84
+ const result = await client.connectForQR(async (qr) => {
85
+ io.print('Scan this QR code with WhatsApp on your phone:');
86
+ try {
87
+ const rendered = await renderTerminalQR(qr);
88
+ io.print(rendered);
89
+ }
90
+ catch {
91
+ io.print(qr);
92
+ }
93
+ });
85
94
  waitForAuth = result.waitForAuth;
86
- const formatted = result.code.length === 8 ? `${result.code.slice(0, 4)}-${result.code.slice(4)}` : result.code;
87
- io.print(`Pairing code: ${formatted}`);
88
- io.print('Enter this code in WhatsApp > Linked Devices > Link with phone number');
89
95
  }
90
96
  catch (err) {
91
97
  await client.close();
92
98
  throw err;
93
99
  }
94
- io.print('Waiting for confirmation...');
100
+ io.print('Waiting for QR code scan...');
95
101
  try {
96
102
  await waitForAuth();
97
103
  }
@@ -102,13 +108,12 @@ export class WhatsAppAdapter {
102
108
  const now = new Date().toISOString();
103
109
  await this.credManager.setAccount({
104
110
  account_id: accountId,
105
- phone_number: phone,
106
111
  created_at: now,
107
112
  updated_at: now,
108
113
  });
109
114
  await this.credManager.setCurrent(accountId);
110
115
  this.client = client;
111
- this.currentAccount = { id: accountId, name: phone };
116
+ this.currentAccount = { id: accountId, name: accountId };
112
117
  }
113
118
  ensureClient() {
114
119
  if (!this.client) {
@@ -1 +1 @@
1
- {"version":3,"file":"whatsapp-adapter.js","sourceRoot":"","sources":["../../../../src/tui/adapters/whatsapp-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAC5D,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAA;AAInF,MAAM,OAAO,eAAe;IACjB,IAAI,GAAG,UAAU,CAAA;IAElB,MAAM,GAA0B,IAAI,CAAA;IACpC,WAAW,GAAG,IAAI,yBAAyB,EAAE,CAAA;IAC7C,cAAc,GAAqB,IAAI,CAAA;IAE/C,KAAK,CAAC,KAAK;QACT,MAAM,MAAM,GAAG,IAAI,cAAc,EAAE,CAAA;QACnC,MAAM,MAAM,CAAC,KAAK,EAAE,CAAA;QACpB,MAAM,MAAM,CAAC,OAAO,EAAE,CAAA;QACtB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;QAEpB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,UAAU,EAAE,CAAA;QAClD,IAAI,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;YACtD,MAAM,IAAI,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;YAC5C,IAAI,CAAC,cAAc,GAAG,EAAE,EAAE,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,EAAE,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,UAAU,EAAE,CAAA;QAC3F,CAAC;IACH,CAAC;IA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C;YACjB,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAA;QACvD,CAAC;QACD,OAAO,IAAI,CAAC,MAAM,CAAA;IACpB,CAAC;CACF"}
@@ -24,7 +24,7 @@ Agent Skills provide this knowledge in a structured format that AI agents can un
24
24
  The fastest way to add Agent Messenger skills to your project:
25
25
 
26
26
  ```bash
27
- npx skills add devxoul/agent-messenger
27
+ npx skills add agent-messenger/agent-messenger
28
28
  ```
29
29
 
30
30
  This adds the skill files to your project's `.skills/` directory. See [skills.sh](https://skills.sh/) for more details.
@@ -35,14 +35,14 @@ Add Agent Messenger skills to Claude Code:
35
35
 
36
36
  ```bash
37
37
  # From terminal
38
- claude plugin marketplace add devxoul/agent-messenger
38
+ claude plugin marketplace add agent-messenger/agent-messenger
39
39
  claude plugin install agent-messenger
40
40
  ```
41
41
 
42
42
  Or from within Claude Code:
43
43
 
44
44
  ```
45
- /plugin marketplace add devxoul/agent-messenger
45
+ /plugin marketplace add agent-messenger/agent-messenger
46
46
  /plugin install agent-messenger
47
47
  ```
48
48
 
@@ -95,4 +95,4 @@ Each platform skill includes:
95
95
 
96
96
  - [Agent Skills Documentation](https://agentskills.io/)
97
97
  - [Skills CLI](https://skills.sh/)
98
- - [GitHub Repository](https://github.com/devxoul/agent-messenger)
98
+ - [GitHub Repository](https://github.com/agent-messenger/agent-messenger)
@@ -97,6 +97,17 @@ agent-channeltalk auth remove <workspace-id>
97
97
 
98
98
  ## Commands
99
99
 
100
+ ### Whoami Command
101
+
102
+ ```bash
103
+ # Show current authenticated user
104
+ agent-channeltalk whoami
105
+ agent-channeltalk whoami --pretty
106
+ agent-channeltalk whoami --workspace <workspace-id>
107
+ ```
108
+
109
+ Output includes the authenticated user's identity information.
110
+
100
111
  ### Message Commands
101
112
 
102
113
  ```bash
@@ -258,7 +269,7 @@ npx -y agent-messenger channeltalk snapshot --pretty
258
269
 
259
270
  ## AI Agent Integration
260
271
 
261
- See [`skills/agent-channeltalk/`](https://github.com/devxoul/agent-messenger/tree/main/skills/agent-channeltalk) for:
272
+ See [`skills/agent-channeltalk/`](https://github.com/agent-messenger/agent-messenger/tree/main/skills/agent-channeltalk) for:
262
273
 
263
274
  - Complete skill documentation
264
275
  - Common patterns for AI agent workflows
@@ -108,6 +108,15 @@ agent-channeltalkbot auth bot <name>
108
108
 
109
109
  ## Commands
110
110
 
111
+ ### Whoami Command
112
+
113
+ ```bash
114
+ # Show current authenticated bot
115
+ agent-channeltalkbot whoami
116
+ agent-channeltalkbot whoami --pretty
117
+ agent-channeltalkbot whoami --workspace <workspace-id>
118
+ ```
119
+
111
120
  ### Message Commands
112
121
 
113
122
  ```bash
@@ -255,7 +264,7 @@ Channel Talk enforces rate limits on API calls. The CLI automatically retries on
255
264
 
256
265
  ## AI Agent Integration
257
266
 
258
- See [`skills/agent-channeltalkbot/`](https://github.com/devxoul/agent-messenger/tree/main/skills/agent-channeltalkbot) for:
267
+ See [`skills/agent-channeltalkbot/`](https://github.com/agent-messenger/agent-messenger/tree/main/skills/agent-channeltalkbot) for:
259
268
 
260
269
  - Complete skill documentation
261
270
  - Common patterns for AI agent workflows
@@ -69,6 +69,16 @@ agent-discord server info <server-id>
69
69
 
70
70
  ## Commands
71
71
 
72
+ ### Whoami Command
73
+
74
+ ```bash
75
+ # Show current authenticated user
76
+ agent-discord whoami
77
+ agent-discord whoami --pretty
78
+ ```
79
+
80
+ Output includes the authenticated user's identity information.
81
+
72
82
  ### Message Commands
73
83
 
74
84
  ```bash
@@ -268,7 +278,7 @@ All commands support these options:
268
278
 
269
279
  ## AI Agent Integration
270
280
 
271
- See [`skills/agent-discord/`](https://github.com/devxoul/agent-messenger/tree/main/skills/agent-discord) for:
281
+ See [`skills/agent-discord/`](https://github.com/agent-messenger/agent-messenger/tree/main/skills/agent-discord) for:
272
282
 
273
283
  - Complete skill documentation
274
284
  - Runnable templates
@@ -124,6 +124,15 @@ export E2E_DISCORDBOT_SERVER_NAME="My Server"
124
124
 
125
125
  ## Commands
126
126
 
127
+ ### Whoami Command
128
+
129
+ ```bash
130
+ # Show current authenticated bot
131
+ agent-discordbot whoami
132
+ agent-discordbot whoami --pretty
133
+ agent-discordbot whoami --bot <bot-id>
134
+ ```
135
+
127
136
  ### Server Commands
128
137
 
129
138
  ```bash
@@ -261,7 +270,7 @@ All commands support these options:
261
270
 
262
271
  ## AI Agent Integration
263
272
 
264
- See [`skills/agent-discordbot/`](https://github.com/devxoul/agent-messenger/tree/main/skills/agent-discordbot) for:
273
+ See [`skills/agent-discordbot/`](https://github.com/agent-messenger/agent-messenger/tree/main/skills/agent-discordbot) for:
265
274
 
266
275
  - Complete skill documentation
267
276
  - Runnable templates
@@ -113,6 +113,17 @@ agent-instagram auth logout --account <id>
113
113
 
114
114
  ## Commands
115
115
 
116
+ ### Whoami Command
117
+
118
+ ```bash
119
+ # Show current authenticated user
120
+ agent-instagram whoami
121
+ agent-instagram whoami --pretty
122
+ agent-instagram whoami --account <account-id>
123
+ ```
124
+
125
+ Output includes the authenticated user's identity information.
126
+
116
127
  ### Chat Commands
117
128
 
118
129
  ```bash
@@ -227,7 +238,7 @@ agent-instagram auth login
227
238
 
228
239
  ## AI Agent Integration
229
240
 
230
- See [`skills/agent-instagram/`](https://github.com/devxoul/agent-messenger/tree/main/skills/agent-instagram) for:
241
+ See [`skills/agent-instagram/`](https://github.com/agent-messenger/agent-messenger/tree/main/skills/agent-instagram) for:
231
242
 
232
243
  - Complete skill documentation
233
244
  - Common patterns for AI agent workflows
@@ -192,6 +192,30 @@ agent-kakaotalk message list 9876543210 -n 200
192
192
  agent-kakaotalk message list 9876543210 --from 123456789
193
193
  ```
194
194
 
195
+ ### Whoami Command
196
+
197
+ ```bash
198
+ # Show current authenticated user
199
+ agent-kakaotalk whoami
200
+ agent-kakaotalk whoami --pretty
201
+ agent-kakaotalk whoami --account <account-id>
202
+ ```
203
+
204
+ Output includes:
205
+
206
+ - `user_id` — your KakaoTalk user ID
207
+ - `nickname` — your display name
208
+ - `profile_image_url` — profile image thumbnail URL
209
+ - `original_profile_image_url` — original profile image URL
210
+ - `status_message` — your status message
211
+ - `account_display_id` — your KakaoTalk ID (may be null if not set)
212
+ - `background_image_url` — background image URL
213
+ - `original_background_image_url` — original background image URL
214
+ - `fullname` — real name (may be null)
215
+ - `account_email` — account email (may be null)
216
+ - `pstn_number` — phone number (may be null)
217
+ - `email_verified` — whether email is verified (may be null)
218
+
195
219
  ## Global Options
196
220
 
197
221
  | Option | Description |
@@ -280,7 +304,7 @@ If this file doesn't exist:
280
304
 
281
305
  ## AI Agent Integration
282
306
 
283
- See [`skills/agent-kakaotalk/`](https://github.com/devxoul/agent-messenger/tree/main/skills/agent-kakaotalk) for:
307
+ See [`skills/agent-kakaotalk/`](https://github.com/agent-messenger/agent-messenger/tree/main/skills/agent-kakaotalk) for:
284
308
 
285
309
  - Complete skill documentation
286
310
  - Common patterns for AI agent workflows
@@ -126,12 +126,12 @@ agent-line auth logout <account-id>
126
126
 
127
127
  ## Commands
128
128
 
129
- ### Profile Command
129
+ ### Whoami Command
130
130
 
131
131
  ```bash
132
- # Get your LINE profile
133
- agent-line profile
134
- agent-line profile --pretty
132
+ # Show current authenticated user
133
+ agent-line whoami
134
+ agent-line whoami --pretty
135
135
  ```
136
136
 
137
137
  Output includes:
@@ -300,7 +300,7 @@ try {
300
300
 
301
301
  ## AI Agent Integration
302
302
 
303
- See [`skills/agent-line/`](https://github.com/devxoul/agent-messenger/tree/main/skills/agent-line) for:
303
+ See [`skills/agent-line/`](https://github.com/agent-messenger/agent-messenger/tree/main/skills/agent-line) for:
304
304
 
305
305
  - Complete skill documentation
306
306
  - Common patterns for AI agent workflows
@@ -11,6 +11,7 @@
11
11
  "whatsapp",
12
12
  "whatsappbot",
13
13
  "line",
14
+ "wechatbot",
14
15
  "instagram",
15
16
  "kakaotalk",
16
17
  "channeltalk",
@@ -65,6 +65,16 @@ agent-slack auth logout <workspace-id>
65
65
 
66
66
  ## Commands
67
67
 
68
+ ### Whoami Command
69
+
70
+ ```bash
71
+ # Show current authenticated user
72
+ agent-slack whoami
73
+ agent-slack whoami --pretty
74
+ ```
75
+
76
+ Output includes the authenticated user's identity information.
77
+
68
78
  ### Message Commands
69
79
 
70
80
  ```bash
@@ -389,7 +399,7 @@ agent-slack emoji list
389
399
 
390
400
  ## AI Agent Integration
391
401
 
392
- See [`skills/agent-slack/`](https://github.com/devxoul/agent-messenger/tree/main/skills/agent-slack) for:
402
+ See [`skills/agent-slack/`](https://github.com/agent-messenger/agent-messenger/tree/main/skills/agent-slack) for:
393
403
 
394
404
  - Complete skill documentation
395
405
  - Runnable templates
@@ -131,6 +131,15 @@ export E2E_SLACKBOT_WORKSPACE_NAME="My Workspace"
131
131
 
132
132
  ## Commands
133
133
 
134
+ ### Whoami Command
135
+
136
+ ```bash
137
+ # Show current authenticated bot
138
+ agent-slackbot whoami
139
+ agent-slackbot whoami --pretty
140
+ agent-slackbot whoami --bot <bot-id>
141
+ ```
142
+
134
143
  ### Message Commands
135
144
 
136
145
  ```bash
@@ -208,7 +217,7 @@ agent-slackbot reaction remove <channel> <ts> <emoji>
208
217
 
209
218
  ## AI Agent Integration
210
219
 
211
- See [`skills/agent-slackbot/`](https://github.com/devxoul/agent-messenger/tree/main/skills/agent-slackbot) for:
220
+ See [`skills/agent-slackbot/`](https://github.com/agent-messenger/agent-messenger/tree/main/skills/agent-slackbot) for:
212
221
 
213
222
  - Complete skill documentation
214
223
  - Runnable templates
@@ -118,6 +118,16 @@ agent-teams team remove <team-id>
118
118
 
119
119
  ## Commands
120
120
 
121
+ ### Whoami Command
122
+
123
+ ```bash
124
+ # Show current authenticated user
125
+ agent-teams whoami
126
+ agent-teams whoami --pretty
127
+ ```
128
+
129
+ Output includes the authenticated user's identity information.
130
+
121
131
  ### Message Commands
122
132
 
123
133
  ```bash
@@ -294,7 +304,7 @@ Some operations require specific Microsoft 365 permissions. Check with your IT a
294
304
 
295
305
  ## AI Agent Integration
296
306
 
297
- See [`skills/agent-teams/`](https://github.com/devxoul/agent-messenger/tree/main/skills/agent-teams) for:
307
+ See [`skills/agent-teams/`](https://github.com/agent-messenger/agent-messenger/tree/main/skills/agent-teams) for:
298
308
 
299
309
  - Complete skill documentation
300
310
  - Runnable templates
@@ -70,6 +70,17 @@ agent-telegram auth remove <account-id>
70
70
 
71
71
  ## Commands
72
72
 
73
+ ### Whoami Command
74
+
75
+ ```bash
76
+ # Show current authenticated user
77
+ agent-telegram whoami
78
+ agent-telegram whoami --pretty
79
+ agent-telegram whoami --account <account-id>
80
+ ```
81
+
82
+ Output includes the authenticated user's identity information.
83
+
73
84
  ### Chat Commands
74
85
 
75
86
  ```bash
@@ -110,6 +110,16 @@ Both must be set together. When set, `auth login` (without `--token`) uses these
110
110
 
111
111
  ## Commands
112
112
 
113
+ ### Whoami Command
114
+
115
+ ```bash
116
+ # Show current authenticated user
117
+ agent-webex whoami
118
+ agent-webex whoami --pretty
119
+ ```
120
+
121
+ Output includes the authenticated user's identity information.
122
+
113
123
  ### Space Commands
114
124
 
115
125
  Webex organizes conversations into "spaces" (group spaces and direct messages).
@@ -268,7 +278,7 @@ npm install -g agent-messenger
268
278
 
269
279
  ## AI Agent Integration
270
280
 
271
- See [`skills/agent-webex/`](https://github.com/devxoul/agent-messenger/tree/main/skills/agent-webex) for:
281
+ See [`skills/agent-webex/`](https://github.com/agent-messenger/agent-messenger/tree/main/skills/agent-webex) for:
272
282
 
273
283
  - Complete skill documentation
274
284
  - Common patterns and runnable templates