agent-messenger 2.7.0 → 2.9.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.
- package/.claude-plugin/plugin.json +1 -1
- package/.github/workflows/ci.yml +6 -0
- package/.oxfmtrc.json +13 -1
- package/.oxlintrc.json +10 -1
- package/README.md +1 -12
- package/dist/package.json +59 -58
- package/dist/src/platforms/channeltalk/client.d.ts.map +1 -1
- package/dist/src/platforms/channeltalk/client.js +2 -2
- package/dist/src/platforms/channeltalk/client.js.map +1 -1
- package/dist/src/platforms/channeltalk/commands/auth.d.ts.map +1 -1
- package/dist/src/platforms/channeltalk/commands/auth.js.map +1 -1
- package/dist/src/platforms/channeltalk/commands/message.d.ts.map +1 -1
- package/dist/src/platforms/channeltalk/commands/message.js.map +1 -1
- package/dist/src/platforms/channeltalk/commands/snapshot.d.ts +4 -2
- package/dist/src/platforms/channeltalk/commands/snapshot.d.ts.map +1 -1
- package/dist/src/platforms/channeltalk/commands/snapshot.js +86 -31
- package/dist/src/platforms/channeltalk/commands/snapshot.js.map +1 -1
- package/dist/src/platforms/channeltalk/ensure-auth.d.ts.map +1 -1
- package/dist/src/platforms/channeltalk/ensure-auth.js.map +1 -1
- package/dist/src/platforms/channeltalk/token-extractor.d.ts +9 -23
- package/dist/src/platforms/channeltalk/token-extractor.d.ts.map +1 -1
- package/dist/src/platforms/channeltalk/token-extractor.js +109 -341
- package/dist/src/platforms/channeltalk/token-extractor.js.map +1 -1
- package/dist/src/platforms/channeltalkbot/client.d.ts +1 -1
- package/dist/src/platforms/channeltalkbot/client.d.ts.map +1 -1
- package/dist/src/platforms/channeltalkbot/client.js +4 -4
- package/dist/src/platforms/channeltalkbot/client.js.map +1 -1
- package/dist/src/platforms/channeltalkbot/commands/auth.d.ts.map +1 -1
- package/dist/src/platforms/channeltalkbot/commands/auth.js +4 -1
- package/dist/src/platforms/channeltalkbot/commands/auth.js.map +1 -1
- package/dist/src/platforms/channeltalkbot/commands/shared.d.ts.map +1 -1
- package/dist/src/platforms/channeltalkbot/commands/shared.js.map +1 -1
- package/dist/src/platforms/channeltalkbot/commands/snapshot.d.ts +3 -1
- package/dist/src/platforms/channeltalkbot/commands/snapshot.d.ts.map +1 -1
- package/dist/src/platforms/channeltalkbot/commands/snapshot.js +110 -60
- package/dist/src/platforms/channeltalkbot/commands/snapshot.js.map +1 -1
- package/dist/src/platforms/discord/commands/auth.js.map +1 -1
- package/dist/src/platforms/discord/commands/snapshot.d.ts +1 -0
- package/dist/src/platforms/discord/commands/snapshot.d.ts.map +1 -1
- package/dist/src/platforms/discord/commands/snapshot.js +48 -34
- package/dist/src/platforms/discord/commands/snapshot.js.map +1 -1
- package/dist/src/platforms/discord/commands/whoami.d.ts.map +1 -1
- package/dist/src/platforms/discord/commands/whoami.js.map +1 -1
- package/dist/src/platforms/discord/token-extractor.d.ts +2 -10
- package/dist/src/platforms/discord/token-extractor.d.ts.map +1 -1
- package/dist/src/platforms/discord/token-extractor.js +38 -172
- package/dist/src/platforms/discord/token-extractor.js.map +1 -1
- package/dist/src/platforms/discordbot/client.d.ts.map +1 -1
- package/dist/src/platforms/discordbot/client.js.map +1 -1
- package/dist/src/platforms/discordbot/commands/snapshot.d.ts +2 -0
- package/dist/src/platforms/discordbot/commands/snapshot.d.ts.map +1 -1
- package/dist/src/platforms/discordbot/commands/snapshot.js +46 -34
- package/dist/src/platforms/discordbot/commands/snapshot.js.map +1 -1
- package/dist/src/platforms/instagram/cli.d.ts.map +1 -1
- package/dist/src/platforms/instagram/cli.js +1 -4
- package/dist/src/platforms/instagram/cli.js.map +1 -1
- package/dist/src/platforms/instagram/client.d.ts.map +1 -1
- package/dist/src/platforms/instagram/client.js +8 -7
- package/dist/src/platforms/instagram/client.js.map +1 -1
- package/dist/src/platforms/instagram/commands/auth.d.ts.map +1 -1
- package/dist/src/platforms/instagram/commands/auth.js.map +1 -1
- package/dist/src/platforms/instagram/commands/chat.d.ts.map +1 -1
- package/dist/src/platforms/instagram/commands/chat.js.map +1 -1
- package/dist/src/platforms/instagram/commands/message.d.ts.map +1 -1
- package/dist/src/platforms/instagram/commands/message.js.map +1 -1
- package/dist/src/platforms/instagram/commands/shared.d.ts.map +1 -1
- package/dist/src/platforms/instagram/commands/shared.js.map +1 -1
- package/dist/src/platforms/instagram/credential-manager.d.ts.map +1 -1
- package/dist/src/platforms/instagram/credential-manager.js +1 -1
- package/dist/src/platforms/instagram/credential-manager.js.map +1 -1
- package/dist/src/platforms/instagram/ensure-auth.d.ts.map +1 -1
- package/dist/src/platforms/instagram/ensure-auth.js.map +1 -1
- package/dist/src/platforms/instagram/token-extractor.d.ts +7 -19
- package/dist/src/platforms/instagram/token-extractor.d.ts.map +1 -1
- package/dist/src/platforms/instagram/token-extractor.js +44 -270
- package/dist/src/platforms/instagram/token-extractor.js.map +1 -1
- package/dist/src/platforms/instagram/types.d.ts.map +1 -1
- package/dist/src/platforms/instagram/types.js +4 -2
- package/dist/src/platforms/instagram/types.js.map +1 -1
- package/dist/src/platforms/kakaotalk/auth/kakao-login.d.ts.map +1 -1
- package/dist/src/platforms/kakaotalk/auth/kakao-login.js +18 -4
- package/dist/src/platforms/kakaotalk/auth/kakao-login.js.map +1 -1
- package/dist/src/platforms/kakaotalk/client.d.ts.map +1 -1
- package/dist/src/platforms/kakaotalk/client.js +3 -3
- package/dist/src/platforms/kakaotalk/client.js.map +1 -1
- package/dist/src/platforms/kakaotalk/commands/auth.d.ts.map +1 -1
- package/dist/src/platforms/kakaotalk/commands/auth.js +15 -9
- package/dist/src/platforms/kakaotalk/commands/auth.js.map +1 -1
- package/dist/src/platforms/kakaotalk/commands/shared.d.ts.map +1 -1
- package/dist/src/platforms/kakaotalk/commands/shared.js.map +1 -1
- package/dist/src/platforms/kakaotalk/protocol/connection.d.ts.map +1 -1
- package/dist/src/platforms/kakaotalk/protocol/connection.js.map +1 -1
- package/dist/src/platforms/kakaotalk/protocol/crypto.js +1 -1
- package/dist/src/platforms/kakaotalk/protocol/crypto.js.map +1 -1
- package/dist/src/platforms/kakaotalk/protocol/session.d.ts.map +1 -1
- package/dist/src/platforms/kakaotalk/protocol/session.js +1 -3
- package/dist/src/platforms/kakaotalk/protocol/session.js.map +1 -1
- package/dist/src/platforms/kakaotalk/token-extractor.js +5 -2
- package/dist/src/platforms/kakaotalk/token-extractor.js.map +1 -1
- package/dist/src/platforms/kakaotalk/types.d.ts.map +1 -1
- package/dist/src/platforms/kakaotalk/types.js +4 -2
- package/dist/src/platforms/kakaotalk/types.js.map +1 -1
- package/dist/src/platforms/line/cli.d.ts.map +1 -1
- package/dist/src/platforms/line/cli.js +1 -4
- package/dist/src/platforms/line/cli.js.map +1 -1
- package/dist/src/platforms/line/client.d.ts.map +1 -1
- package/dist/src/platforms/line/client.js +5 -13
- package/dist/src/platforms/line/client.js.map +1 -1
- package/dist/src/platforms/line/commands/chat.d.ts.map +1 -1
- package/dist/src/platforms/line/commands/chat.js.map +1 -1
- package/dist/src/platforms/line/commands/message.d.ts.map +1 -1
- package/dist/src/platforms/line/commands/message.js.map +1 -1
- package/dist/src/platforms/line/listener.js +1 -1
- package/dist/src/platforms/line/listener.js.map +1 -1
- package/dist/src/platforms/slack/cli.d.ts.map +1 -1
- package/dist/src/platforms/slack/cli.js.map +1 -1
- package/dist/src/platforms/slack/client-mappers.d.ts +14 -0
- package/dist/src/platforms/slack/client-mappers.d.ts.map +1 -0
- package/dist/src/platforms/slack/client-mappers.js +245 -0
- package/dist/src/platforms/slack/client-mappers.js.map +1 -0
- package/dist/src/platforms/slack/client.d.ts +0 -1
- package/dist/src/platforms/slack/client.d.ts.map +1 -1
- package/dist/src/platforms/slack/client.js +41 -455
- package/dist/src/platforms/slack/client.js.map +1 -1
- package/dist/src/platforms/slack/commands/channel.d.ts.map +1 -1
- package/dist/src/platforms/slack/commands/channel.js.map +1 -1
- package/dist/src/platforms/slack/commands/emoji.d.ts.map +1 -1
- package/dist/src/platforms/slack/commands/emoji.js +1 -3
- package/dist/src/platforms/slack/commands/emoji.js.map +1 -1
- package/dist/src/platforms/slack/commands/message.d.ts.map +1 -1
- package/dist/src/platforms/slack/commands/message.js.map +1 -1
- package/dist/src/platforms/slack/commands/reminder.d.ts.map +1 -1
- package/dist/src/platforms/slack/commands/reminder.js.map +1 -1
- package/dist/src/platforms/slack/commands/snapshot.d.ts.map +1 -1
- package/dist/src/platforms/slack/commands/snapshot.js +75 -55
- package/dist/src/platforms/slack/commands/snapshot.js.map +1 -1
- package/dist/src/platforms/slack/commands/user.d.ts.map +1 -1
- package/dist/src/platforms/slack/commands/user.js.map +1 -1
- package/dist/src/platforms/slack/commands/usergroup.d.ts.map +1 -1
- package/dist/src/platforms/slack/commands/usergroup.js.map +1 -1
- package/dist/src/platforms/slack/commands/whoami.d.ts.map +1 -1
- package/dist/src/platforms/slack/commands/whoami.js.map +1 -1
- package/dist/src/platforms/slack/token-extractor.d.ts +2 -6
- package/dist/src/platforms/slack/token-extractor.d.ts.map +1 -1
- package/dist/src/platforms/slack/token-extractor.js +35 -229
- package/dist/src/platforms/slack/token-extractor.js.map +1 -1
- package/dist/src/platforms/slackbot/cli.d.ts.map +1 -1
- package/dist/src/platforms/slackbot/cli.js +1 -1
- package/dist/src/platforms/slackbot/cli.js.map +1 -1
- package/dist/src/platforms/teams/client.d.ts.map +1 -1
- package/dist/src/platforms/teams/client.js +1 -1
- package/dist/src/platforms/teams/client.js.map +1 -1
- package/dist/src/platforms/teams/commands/auth.d.ts.map +1 -1
- package/dist/src/platforms/teams/commands/auth.js +4 -1
- package/dist/src/platforms/teams/commands/auth.js.map +1 -1
- package/dist/src/platforms/teams/commands/snapshot.d.ts +1 -0
- package/dist/src/platforms/teams/commands/snapshot.d.ts.map +1 -1
- package/dist/src/platforms/teams/commands/snapshot.js +44 -31
- package/dist/src/platforms/teams/commands/snapshot.js.map +1 -1
- package/dist/src/platforms/teams/commands/whoami.d.ts.map +1 -1
- package/dist/src/platforms/teams/commands/whoami.js.map +1 -1
- package/dist/src/platforms/teams/token-extractor.d.ts +6 -18
- package/dist/src/platforms/teams/token-extractor.d.ts.map +1 -1
- package/dist/src/platforms/teams/token-extractor.js +71 -324
- package/dist/src/platforms/teams/token-extractor.js.map +1 -1
- package/dist/src/platforms/telegram/cli.d.ts.map +1 -1
- package/dist/src/platforms/telegram/cli.js +1 -4
- package/dist/src/platforms/telegram/cli.js.map +1 -1
- package/dist/src/platforms/telegram/client.d.ts.map +1 -1
- package/dist/src/platforms/telegram/client.js.map +1 -1
- package/dist/src/platforms/telegram/commands/auth.d.ts.map +1 -1
- package/dist/src/platforms/telegram/commands/auth.js +1 -1
- package/dist/src/platforms/telegram/commands/auth.js.map +1 -1
- package/dist/src/platforms/telegram/commands/chat.d.ts.map +1 -1
- package/dist/src/platforms/telegram/commands/chat.js.map +1 -1
- package/dist/src/platforms/telegram/commands/message.d.ts.map +1 -1
- package/dist/src/platforms/telegram/commands/message.js.map +1 -1
- package/dist/src/platforms/telegram/commands/whoami.js +1 -1
- package/dist/src/platforms/telegram/commands/whoami.js.map +1 -1
- package/dist/src/platforms/telegram/credential-manager.d.ts.map +1 -1
- package/dist/src/platforms/telegram/credential-manager.js +6 -2
- package/dist/src/platforms/telegram/credential-manager.js.map +1 -1
- package/dist/src/platforms/telegram/my-telegram-org.js.map +1 -1
- package/dist/src/platforms/webex/cli.d.ts.map +1 -1
- package/dist/src/platforms/webex/cli.js +1 -4
- package/dist/src/platforms/webex/cli.js.map +1 -1
- package/dist/src/platforms/webex/client.d.ts.map +1 -1
- package/dist/src/platforms/webex/client.js +3 -7
- package/dist/src/platforms/webex/client.js.map +1 -1
- package/dist/src/platforms/webex/commands/auth.d.ts.map +1 -1
- package/dist/src/platforms/webex/commands/auth.js +1 -3
- package/dist/src/platforms/webex/commands/auth.js.map +1 -1
- package/dist/src/platforms/webex/commands/member.d.ts.map +1 -1
- package/dist/src/platforms/webex/commands/member.js +1 -3
- package/dist/src/platforms/webex/commands/member.js.map +1 -1
- package/dist/src/platforms/webex/commands/message.d.ts.map +1 -1
- package/dist/src/platforms/webex/commands/message.js.map +1 -1
- package/dist/src/platforms/webex/commands/snapshot.d.ts +1 -0
- package/dist/src/platforms/webex/commands/snapshot.d.ts.map +1 -1
- package/dist/src/platforms/webex/commands/snapshot.js +14 -7
- package/dist/src/platforms/webex/commands/snapshot.js.map +1 -1
- package/dist/src/platforms/webex/commands/space.d.ts.map +1 -1
- package/dist/src/platforms/webex/commands/space.js.map +1 -1
- package/dist/src/platforms/webex/commands/whoami.d.ts.map +1 -1
- package/dist/src/platforms/webex/commands/whoami.js.map +1 -1
- package/dist/src/platforms/webex/credential-manager.d.ts.map +1 -1
- package/dist/src/platforms/webex/credential-manager.js.map +1 -1
- package/dist/src/platforms/webex/ensure-auth.d.ts.map +1 -1
- package/dist/src/platforms/webex/ensure-auth.js +1 -3
- package/dist/src/platforms/webex/ensure-auth.js.map +1 -1
- package/dist/src/platforms/webex/index.d.ts +1 -1
- package/dist/src/platforms/webex/index.d.ts.map +1 -1
- package/dist/src/platforms/webex/index.js.map +1 -1
- package/dist/src/platforms/webex/markdown-to-html.js.map +1 -1
- package/dist/src/platforms/webex/token-extractor.d.ts.map +1 -1
- package/dist/src/platforms/webex/token-extractor.js +5 -14
- package/dist/src/platforms/webex/token-extractor.js.map +1 -1
- package/dist/src/platforms/wechatbot/client.d.ts.map +1 -1
- package/dist/src/platforms/wechatbot/client.js.map +1 -1
- package/dist/src/platforms/wechatbot/commands/message.d.ts.map +1 -1
- package/dist/src/platforms/wechatbot/commands/message.js.map +1 -1
- package/dist/src/platforms/whatsapp/cli.d.ts.map +1 -1
- package/dist/src/platforms/whatsapp/cli.js +1 -4
- package/dist/src/platforms/whatsapp/cli.js.map +1 -1
- package/dist/src/platforms/whatsapp/commands/chat.d.ts.map +1 -1
- package/dist/src/platforms/whatsapp/commands/chat.js.map +1 -1
- package/dist/src/platforms/whatsapp/commands/message.d.ts.map +1 -1
- package/dist/src/platforms/whatsapp/commands/message.js.map +1 -1
- package/dist/src/platforms/whatsapp/commands/shared.d.ts.map +1 -1
- package/dist/src/platforms/whatsapp/commands/shared.js.map +1 -1
- package/dist/src/platforms/whatsapp/credential-manager.d.ts.map +1 -1
- package/dist/src/platforms/whatsapp/credential-manager.js +1 -1
- package/dist/src/platforms/whatsapp/credential-manager.js.map +1 -1
- package/dist/src/platforms/whatsapp/ensure-auth.d.ts.map +1 -1
- package/dist/src/platforms/whatsapp/ensure-auth.js.map +1 -1
- package/dist/src/platforms/whatsappbot/client.d.ts.map +1 -1
- package/dist/src/platforms/whatsappbot/client.js +2 -2
- package/dist/src/platforms/whatsappbot/client.js.map +1 -1
- package/dist/src/platforms/whatsappbot/commands/auth.d.ts.map +1 -1
- package/dist/src/platforms/whatsappbot/commands/auth.js +4 -1
- package/dist/src/platforms/whatsappbot/commands/auth.js.map +1 -1
- package/dist/src/platforms/whatsappbot/commands/message.d.ts.map +1 -1
- package/dist/src/platforms/whatsappbot/commands/message.js.map +1 -1
- package/dist/src/platforms/whatsappbot/commands/shared.d.ts.map +1 -1
- package/dist/src/platforms/whatsappbot/commands/shared.js.map +1 -1
- package/dist/src/shared/chromium/browsers.d.ts +7 -0
- package/dist/src/shared/chromium/browsers.d.ts.map +1 -0
- package/dist/src/shared/chromium/browsers.js +89 -0
- package/dist/src/shared/chromium/browsers.js.map +1 -0
- package/dist/src/shared/chromium/cookie-reader.d.ts +20 -0
- package/dist/src/shared/chromium/cookie-reader.d.ts.map +1 -0
- package/dist/src/shared/chromium/cookie-reader.js +99 -0
- package/dist/src/shared/chromium/cookie-reader.js.map +1 -0
- package/dist/src/shared/chromium/decryptor.d.ts +42 -0
- package/dist/src/shared/chromium/decryptor.d.ts.map +1 -0
- package/dist/src/shared/chromium/decryptor.js +205 -0
- package/dist/src/shared/chromium/decryptor.js.map +1 -0
- package/dist/src/shared/chromium/index.d.ts +6 -0
- package/dist/src/shared/chromium/index.d.ts.map +1 -0
- package/dist/src/shared/chromium/index.js +4 -0
- package/dist/src/shared/chromium/index.js.map +1 -0
- package/dist/src/shared/chromium/types.d.ts +11 -0
- package/dist/src/shared/chromium/types.d.ts.map +1 -0
- package/dist/src/shared/chromium/types.js +2 -0
- package/dist/src/shared/chromium/types.js.map +1 -0
- package/dist/src/shared/utils/derived-key-cache.d.ts +1 -1
- package/dist/src/shared/utils/derived-key-cache.d.ts.map +1 -1
- package/dist/src/shared/utils/linux-keyring.js +4 -1
- package/dist/src/shared/utils/linux-keyring.js.map +1 -1
- package/dist/src/tui/adapters/kakaotalk-adapter.d.ts.map +1 -1
- package/dist/src/tui/adapters/kakaotalk-adapter.js +6 -1
- package/dist/src/tui/adapters/kakaotalk-adapter.js.map +1 -1
- package/dist/src/tui/adapters/telegram-adapter.js +1 -1
- package/dist/src/tui/adapters/telegram-adapter.js.map +1 -1
- package/dist/src/tui/adapters/webex-adapter.js +1 -1
- package/dist/src/tui/adapters/webex-adapter.js.map +1 -1
- package/dist/src/tui/app.d.ts.map +1 -1
- package/dist/src/tui/app.js +112 -23
- package/dist/src/tui/app.js.map +1 -1
- package/dist/src/tui/utils.d.ts.map +1 -1
- package/dist/src/tui/utils.js +11 -13
- package/dist/src/tui/utils.js.map +1 -1
- package/dist/src/tui/views/channel-picker.d.ts.map +1 -1
- package/dist/src/tui/views/channel-picker.js.map +1 -1
- package/dist/src/tui/views/workspace-picker.d.ts.map +1 -1
- package/dist/src/tui/views/workspace-picker.js.map +1 -1
- package/docs/content/docs/agent-skills.mdx +0 -10
- package/docs/content/docs/cli/channeltalk.mdx +42 -30
- package/docs/content/docs/cli/channeltalkbot.mdx +23 -13
- package/docs/content/docs/cli/discord.mdx +23 -7
- package/docs/content/docs/cli/discordbot.mdx +23 -7
- package/docs/content/docs/cli/instagram.mdx +4 -4
- package/docs/content/docs/cli/kakaotalk.mdx +9 -8
- package/docs/content/docs/cli/line.mdx +14 -14
- package/docs/content/docs/cli/slack.mdx +24 -7
- package/docs/content/docs/cli/teams.mdx +24 -8
- package/docs/content/docs/cli/webex.mdx +34 -21
- package/docs/content/docs/cli/wechatbot.mdx +12 -11
- package/docs/content/docs/cli/whatsapp.mdx +5 -4
- package/docs/content/docs/cli/whatsappbot.mdx +11 -11
- package/docs/content/docs/index.mdx +7 -7
- package/docs/content/docs/meta.json +1 -9
- package/docs/content/docs/sdk/channeltalk.mdx +5 -6
- package/docs/content/docs/sdk/channeltalkbot.mdx +6 -12
- package/docs/content/docs/sdk/discord.mdx +36 -43
- package/docs/content/docs/sdk/instagram.mdx +18 -18
- package/docs/content/docs/sdk/kakaotalk.mdx +27 -18
- package/docs/content/docs/sdk/line.mdx +8 -13
- package/docs/content/docs/sdk/meta.json +14 -1
- package/docs/content/docs/sdk/slack.mdx +36 -42
- package/docs/content/docs/sdk/teams.mdx +2 -8
- package/docs/content/docs/sdk/webex.mdx +2 -12
- package/docs/content/docs/sdk/wechatbot.mdx +1 -5
- package/docs/content/docs/sdk/whatsapp.mdx +10 -19
- package/docs/content/docs/sdk/whatsappbot.mdx +2 -10
- package/docs/content/docs/tui.mdx +23 -23
- package/docs/src/app/page.tsx +353 -108
- package/e2e/channeltalkbot.e2e.test.ts +1 -5
- package/e2e/config.ts +6 -2
- package/package.json +59 -58
- package/scripts/prepublish.ts +1 -3
- package/skills/agent-channeltalk/SKILL.md +19 -9
- package/skills/agent-channeltalk/references/common-patterns.md +10 -9
- package/skills/agent-channeltalkbot/SKILL.md +19 -9
- package/skills/agent-channeltalkbot/references/common-patterns.md +10 -9
- package/skills/agent-discord/SKILL.md +18 -9
- package/skills/agent-discord/references/common-patterns.md +8 -7
- package/skills/agent-discordbot/SKILL.md +18 -9
- 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 +19 -10
- package/skills/agent-slack/references/common-patterns.md +4 -7
- package/skills/agent-slackbot/SKILL.md +1 -1
- package/skills/agent-teams/SKILL.md +18 -9
- package/skills/agent-teams/references/common-patterns.md +9 -7
- package/skills/agent-telegram/SKILL.md +1 -1
- package/skills/agent-webex/SKILL.md +13 -4
- package/skills/agent-webex/references/common-patterns.md +8 -2
- 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/channeltalk/client.test.ts +116 -29
- package/src/platforms/channeltalk/client.ts +26 -6
- package/src/platforms/channeltalk/commands/auth.test.ts +5 -5
- package/src/platforms/channeltalk/commands/auth.ts +19 -5
- package/src/platforms/channeltalk/commands/message.test.ts +2 -6
- package/src/platforms/channeltalk/commands/message.ts +5 -1
- package/src/platforms/channeltalk/commands/snapshot.test.ts +77 -30
- package/src/platforms/channeltalk/commands/snapshot.ts +112 -34
- package/src/platforms/channeltalk/ensure-auth.test.ts +20 -17
- package/src/platforms/channeltalk/ensure-auth.ts +6 -7
- package/src/platforms/channeltalk/index.ts +0 -1
- package/src/platforms/channeltalk/token-extractor.test.ts +33 -25
- package/src/platforms/channeltalk/token-extractor.ts +120 -372
- package/src/platforms/channeltalkbot/client.test.ts +1 -3
- package/src/platforms/channeltalkbot/client.ts +39 -13
- package/src/platforms/channeltalkbot/commands/auth.test.ts +3 -1
- package/src/platforms/channeltalkbot/commands/auth.ts +4 -1
- package/src/platforms/channeltalkbot/commands/bot.test.ts +13 -5
- package/src/platforms/channeltalkbot/commands/message.test.ts +12 -6
- package/src/platforms/channeltalkbot/commands/shared.ts +6 -2
- package/src/platforms/channeltalkbot/commands/snapshot.test.ts +43 -13
- package/src/platforms/channeltalkbot/commands/snapshot.ts +131 -64
- package/src/platforms/channeltalkbot/credential-manager.test.ts +1 -1
- package/src/platforms/channeltalkbot/index.test.ts +0 -2
- package/src/platforms/channeltalkbot/index.ts +0 -1
- package/src/platforms/discord/commands/auth.test.ts +6 -4
- package/src/platforms/discord/commands/auth.ts +14 -14
- package/src/platforms/discord/commands/snapshot.test.ts +1 -1
- package/src/platforms/discord/commands/snapshot.ts +58 -42
- package/src/platforms/discord/commands/whoami.test.ts +2 -4
- package/src/platforms/discord/commands/whoami.ts +2 -0
- package/src/platforms/discord/ensure-auth.test.ts +5 -3
- package/src/platforms/discord/index.ts +0 -1
- package/src/platforms/discord/listener.test.ts +7 -1
- package/src/platforms/discord/token-extractor.test.ts +18 -12
- package/src/platforms/discord/token-extractor.ts +46 -190
- package/src/platforms/discordbot/client.ts +1 -4
- package/src/platforms/discordbot/commands/auth.test.ts +3 -1
- package/src/platforms/discordbot/commands/channel.test.ts +3 -1
- package/src/platforms/discordbot/commands/message.test.ts +3 -1
- package/src/platforms/discordbot/commands/server.test.ts +3 -1
- package/src/platforms/discordbot/commands/snapshot.test.ts +43 -19
- package/src/platforms/discordbot/commands/snapshot.ts +54 -37
- package/src/platforms/discordbot/commands/thread.test.ts +3 -1
- package/src/platforms/discordbot/commands/user.test.ts +3 -1
- package/src/platforms/instagram/cli.ts +1 -4
- package/src/platforms/instagram/client.test.ts +3 -8
- package/src/platforms/instagram/client.ts +39 -34
- package/src/platforms/instagram/commands/auth.test.ts +13 -12
- package/src/platforms/instagram/commands/auth.ts +136 -71
- package/src/platforms/instagram/commands/chat.test.ts +21 -24
- package/src/platforms/instagram/commands/chat.ts +2 -0
- package/src/platforms/instagram/commands/message.test.ts +29 -24
- package/src/platforms/instagram/commands/message.ts +3 -4
- package/src/platforms/instagram/commands/shared.ts +2 -5
- package/src/platforms/instagram/commands/whoami.test.ts +4 -6
- package/src/platforms/instagram/credential-manager.ts +2 -6
- package/src/platforms/instagram/ensure-auth.test.ts +1 -4
- package/src/platforms/instagram/ensure-auth.ts +6 -3
- package/src/platforms/instagram/listener.test.ts +7 -3
- package/src/platforms/instagram/token-extractor.test.ts +4 -16
- package/src/platforms/instagram/token-extractor.ts +55 -309
- package/src/platforms/instagram/types.test.ts +2 -6
- package/src/platforms/instagram/types.ts +4 -2
- package/src/platforms/kakaotalk/auth/kakao-login.ts +30 -8
- package/src/platforms/kakaotalk/client.test.ts +37 -25
- package/src/platforms/kakaotalk/client.ts +23 -12
- package/src/platforms/kakaotalk/commands/auth.test.ts +6 -18
- package/src/platforms/kakaotalk/commands/auth.ts +101 -47
- package/src/platforms/kakaotalk/commands/chat.test.ts +8 -11
- package/src/platforms/kakaotalk/commands/message.test.ts +15 -24
- package/src/platforms/kakaotalk/commands/shared.ts +1 -0
- package/src/platforms/kakaotalk/commands/whoami.test.ts +6 -10
- package/src/platforms/kakaotalk/credential-manager.test.ts +1 -4
- package/src/platforms/kakaotalk/index.test.ts +1 -0
- package/src/platforms/kakaotalk/index.ts +0 -2
- package/src/platforms/kakaotalk/listener.test.ts +7 -1
- package/src/platforms/kakaotalk/protocol/connection.ts +4 -1
- package/src/platforms/kakaotalk/protocol/crypto.ts +1 -1
- package/src/platforms/kakaotalk/protocol/session.ts +12 -6
- package/src/platforms/kakaotalk/token-extractor.ts +5 -5
- package/src/platforms/kakaotalk/types.ts +8 -7
- package/src/platforms/line/cli.ts +1 -4
- package/src/platforms/line/client.ts +12 -20
- package/src/platforms/line/commands/auth.test.ts +2 -1
- package/src/platforms/line/commands/chat.test.ts +2 -1
- package/src/platforms/line/commands/chat.ts +1 -4
- package/src/platforms/line/commands/friend.test.ts +2 -1
- package/src/platforms/line/commands/message.test.ts +2 -1
- package/src/platforms/line/commands/message.ts +2 -9
- package/src/platforms/line/commands/whoami.test.ts +2 -1
- package/src/platforms/line/credential-manager.test.ts +1 -2
- package/src/platforms/line/index.test.ts +1 -0
- package/src/platforms/line/listener.ts +1 -1
- package/src/platforms/line/types.test.ts +1 -0
- package/src/platforms/slack/cli.ts +3 -1
- package/src/platforms/slack/client-mappers.ts +297 -0
- package/src/platforms/slack/client.test.ts +532 -17
- package/src/platforms/slack/client.ts +69 -458
- package/src/platforms/slack/commands/channel.ts +1 -4
- package/src/platforms/slack/commands/emoji.test.ts +6 -4
- package/src/platforms/slack/commands/emoji.ts +20 -22
- package/src/platforms/slack/commands/message.ts +6 -1
- package/src/platforms/slack/commands/pin.test.ts +14 -12
- package/src/platforms/slack/commands/reminder.ts +7 -6
- package/src/platforms/slack/commands/snapshot.test.ts +63 -8
- package/src/platforms/slack/commands/snapshot.ts +98 -66
- package/src/platforms/slack/commands/user.ts +6 -1
- package/src/platforms/slack/commands/usergroup.test.ts +3 -3
- package/src/platforms/slack/commands/usergroup.ts +10 -7
- package/src/platforms/slack/commands/whoami.test.ts +1 -1
- package/src/platforms/slack/commands/whoami.ts +2 -0
- package/src/platforms/slack/index.ts +0 -2
- package/src/platforms/slack/listener.test.ts +1 -0
- package/src/platforms/slack/token-extractor.test.ts +7 -12
- package/src/platforms/slack/token-extractor.ts +47 -255
- package/src/platforms/slackbot/cli.ts +8 -1
- package/src/platforms/slackbot/commands/auth.test.ts +3 -1
- package/src/platforms/teams/client.ts +1 -1
- package/src/platforms/teams/commands/auth.test.ts +1 -1
- package/src/platforms/teams/commands/auth.ts +4 -1
- package/src/platforms/teams/commands/snapshot.test.ts +1 -1
- package/src/platforms/teams/commands/snapshot.ts +53 -38
- package/src/platforms/teams/commands/whoami.test.ts +2 -4
- package/src/platforms/teams/commands/whoami.ts +2 -0
- package/src/platforms/teams/index.ts +0 -1
- package/src/platforms/teams/token-extractor.ts +82 -350
- package/src/platforms/telegram/app-config.test.ts +1 -0
- package/src/platforms/telegram/chat-utils.test.ts +5 -1
- package/src/platforms/telegram/cli.ts +2 -4
- package/src/platforms/telegram/client.test.ts +16 -3
- package/src/platforms/telegram/client.ts +14 -4
- package/src/platforms/telegram/commands/auth.test.ts +1 -0
- package/src/platforms/telegram/commands/auth.ts +3 -4
- package/src/platforms/telegram/commands/chat.test.ts +2 -5
- package/src/platforms/telegram/commands/chat.ts +1 -0
- package/src/platforms/telegram/commands/message.test.ts +2 -5
- package/src/platforms/telegram/commands/message.ts +1 -0
- package/src/platforms/telegram/commands/shared.test.ts +1 -0
- package/src/platforms/telegram/commands/whoami.test.ts +5 -7
- package/src/platforms/telegram/commands/whoami.ts +1 -1
- package/src/platforms/telegram/credential-manager.test.ts +1 -0
- package/src/platforms/telegram/credential-manager.ts +11 -2
- package/src/platforms/telegram/my-telegram-org.ts +6 -2
- package/src/platforms/telegram/types.test.ts +1 -0
- package/src/platforms/webex/app-config.test.ts +1 -0
- package/src/platforms/webex/cli.ts +1 -4
- package/src/platforms/webex/client.test.ts +4 -12
- package/src/platforms/webex/client.ts +14 -52
- package/src/platforms/webex/commands/auth.test.ts +7 -1
- package/src/platforms/webex/commands/auth.ts +12 -15
- package/src/platforms/webex/commands/member.test.ts +1 -3
- package/src/platforms/webex/commands/member.ts +14 -19
- package/src/platforms/webex/commands/message.ts +4 -15
- package/src/platforms/webex/commands/snapshot.test.ts +42 -4
- package/src/platforms/webex/commands/snapshot.ts +19 -11
- package/src/platforms/webex/commands/space.test.ts +3 -3
- package/src/platforms/webex/commands/space.ts +2 -9
- package/src/platforms/webex/commands/whoami.test.ts +12 -5
- package/src/platforms/webex/commands/whoami.ts +2 -0
- package/src/platforms/webex/credential-manager.ts +11 -2
- package/src/platforms/webex/ensure-auth.ts +1 -3
- package/src/platforms/webex/index.ts +1 -7
- package/src/platforms/webex/markdown-to-html.test.ts +6 -18
- package/src/platforms/webex/markdown-to-html.ts +8 -8
- package/src/platforms/webex/token-extractor.ts +6 -29
- package/src/platforms/wechatbot/client.test.ts +6 -2
- package/src/platforms/wechatbot/client.ts +6 -1
- package/src/platforms/wechatbot/commands/auth.test.ts +3 -7
- package/src/platforms/wechatbot/commands/message.test.ts +1 -4
- package/src/platforms/wechatbot/commands/message.ts +5 -1
- package/src/platforms/wechatbot/commands/template.test.ts +1 -4
- package/src/platforms/wechatbot/commands/user.test.ts +2 -7
- package/src/platforms/whatsapp/cli.ts +1 -4
- package/src/platforms/whatsapp/commands/auth.test.ts +19 -22
- package/src/platforms/whatsapp/commands/chat.test.ts +21 -24
- package/src/platforms/whatsapp/commands/chat.ts +2 -0
- package/src/platforms/whatsapp/commands/message.test.ts +22 -24
- package/src/platforms/whatsapp/commands/message.ts +3 -5
- package/src/platforms/whatsapp/commands/shared.ts +2 -5
- package/src/platforms/whatsapp/commands/whoami.test.ts +2 -2
- package/src/platforms/whatsapp/credential-manager.ts +2 -6
- package/src/platforms/whatsapp/ensure-auth.test.ts +1 -4
- package/src/platforms/whatsapp/ensure-auth.ts +14 -6
- package/src/platforms/whatsapp/index.ts +0 -2
- package/src/platforms/whatsappbot/client.test.ts +13 -7
- package/src/platforms/whatsappbot/client.ts +18 -4
- package/src/platforms/whatsappbot/commands/auth.ts +4 -1
- package/src/platforms/whatsappbot/commands/message.test.ts +12 -2
- package/src/platforms/whatsappbot/commands/message.ts +16 -3
- package/src/platforms/whatsappbot/commands/shared.ts +3 -1
- package/src/platforms/whatsappbot/commands/whoami.test.ts +1 -3
- package/src/platforms/whatsappbot/index.ts +0 -2
- package/src/shared/chromium/browsers.test.ts +274 -0
- package/src/shared/chromium/browsers.ts +86 -0
- package/src/shared/chromium/cookie-reader.test.ts +274 -0
- package/src/shared/chromium/cookie-reader.ts +111 -0
- package/src/shared/chromium/decryptor.test.ts +449 -0
- package/src/shared/chromium/decryptor.ts +227 -0
- package/src/shared/chromium/index.ts +11 -0
- package/src/shared/chromium/types.ts +11 -0
- package/src/shared/utils/derived-key-cache.ts +1 -1
- package/src/shared/utils/linux-keyring.ts +4 -4
- package/src/tui/adapters/kakaotalk-adapter.ts +6 -1
- package/src/tui/adapters/telegram-adapter.ts +1 -1
- package/src/tui/adapters/webex-adapter.ts +1 -1
- package/src/tui/app.ts +149 -59
- package/src/tui/utils.test.ts +144 -145
- package/src/tui/utils.ts +27 -29
- package/src/tui/views/channel-picker.ts +1 -1
- package/src/tui/views/workspace-picker.ts +1 -1
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { afterEach, beforeAll, describe, expect, test } from 'bun:test'
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
CHANNELBOT_TEST_WORKSPACE_ID,
|
|
5
|
-
CHANNELBOT_TEST_WORKSPACE_NAME,
|
|
6
|
-
validateChannelBotEnvironment,
|
|
7
|
-
} from './config'
|
|
3
|
+
import { CHANNELBOT_TEST_WORKSPACE_ID, CHANNELBOT_TEST_WORKSPACE_NAME, validateChannelBotEnvironment } from './config'
|
|
8
4
|
import { generateTestId, parseJSON, runCLI, waitForRateLimit } from './helpers'
|
|
9
5
|
|
|
10
6
|
let channelbotAvailable = false
|
package/e2e/config.ts
CHANGED
|
@@ -116,7 +116,9 @@ export const TEAMS_TEST_CHANNEL = 'e2e-test'
|
|
|
116
116
|
|
|
117
117
|
export async function validateTeamsEnvironment(): Promise<boolean> {
|
|
118
118
|
if (!TEAMS_TEST_TEAM_ID || !TEAMS_TEST_CHANNEL_ID) {
|
|
119
|
-
console.warn(
|
|
119
|
+
console.warn(
|
|
120
|
+
'Skipping Teams E2E: set E2E_TEAMS_TEAM_ID and E2E_TEAMS_CHANNEL_ID to run against a dedicated test team.',
|
|
121
|
+
)
|
|
120
122
|
return false
|
|
121
123
|
}
|
|
122
124
|
|
|
@@ -264,7 +266,9 @@ export const WHATSAPPBOT_TEST_PHONE_NUMBER = process.env.E2E_WHATSAPPBOT_PHONE_N
|
|
|
264
266
|
|
|
265
267
|
export async function validateWhatsAppBotEnvironment(): Promise<boolean> {
|
|
266
268
|
if (!WHATSAPPBOT_TEST_PHONE_NUMBER) {
|
|
267
|
-
console.warn(
|
|
269
|
+
console.warn(
|
|
270
|
+
'Skipping WhatsApp Bot E2E: set E2E_WHATSAPPBOT_PHONE_NUMBER to run against a dedicated test phone number.',
|
|
271
|
+
)
|
|
268
272
|
return false
|
|
269
273
|
}
|
|
270
274
|
|
package/package.json
CHANGED
|
@@ -1,29 +1,72 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-messenger",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0",
|
|
4
4
|
"description": "Multi-platform messaging CLI for AI agents (Slack, Discord, Teams, Webex, Telegram, WhatsApp, LINE, Instagram, KakaoTalk, Channel Talk)",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/agent-messenger/agent-messenger"
|
|
8
8
|
},
|
|
9
9
|
"bin": {
|
|
10
|
+
"agent-channeltalk": "dist/src/platforms/channeltalk/cli.js",
|
|
11
|
+
"agent-channeltalkbot": "dist/src/platforms/channeltalkbot/cli.js",
|
|
12
|
+
"agent-discord": "dist/src/platforms/discord/cli.js",
|
|
13
|
+
"agent-discordbot": "dist/src/platforms/discordbot/cli.js",
|
|
14
|
+
"agent-instagram": "dist/src/platforms/instagram/cli.js",
|
|
15
|
+
"agent-kakaotalk": "dist/src/platforms/kakaotalk/cli.js",
|
|
16
|
+
"agent-line": "dist/src/platforms/line/cli.js",
|
|
10
17
|
"agent-messenger": "dist/src/cli.js",
|
|
11
|
-
"amsg": "dist/src/cli.js",
|
|
12
18
|
"agent-slack": "dist/src/platforms/slack/cli.js",
|
|
13
19
|
"agent-slackbot": "dist/src/platforms/slackbot/cli.js",
|
|
14
|
-
"agent-discord": "dist/src/platforms/discord/cli.js",
|
|
15
|
-
"agent-discordbot": "dist/src/platforms/discordbot/cli.js",
|
|
16
20
|
"agent-teams": "dist/src/platforms/teams/cli.js",
|
|
17
|
-
"agent-webex": "dist/src/platforms/webex/cli.js",
|
|
18
21
|
"agent-telegram": "dist/src/platforms/telegram/cli.js",
|
|
22
|
+
"agent-webex": "dist/src/platforms/webex/cli.js",
|
|
23
|
+
"agent-wechatbot": "dist/src/platforms/wechatbot/cli.js",
|
|
19
24
|
"agent-whatsapp": "dist/src/platforms/whatsapp/cli.js",
|
|
20
25
|
"agent-whatsappbot": "dist/src/platforms/whatsappbot/cli.js",
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
"amsg": "dist/src/cli.js"
|
|
27
|
+
},
|
|
28
|
+
"type": "module",
|
|
29
|
+
"main": "dist/cli.js",
|
|
30
|
+
"module": "dist/cli.js",
|
|
31
|
+
"typesVersions": {
|
|
32
|
+
"*": {
|
|
33
|
+
"slack": [
|
|
34
|
+
"./dist/src/platforms/slack/index.d.ts"
|
|
35
|
+
],
|
|
36
|
+
"discord": [
|
|
37
|
+
"./dist/src/platforms/discord/index.d.ts"
|
|
38
|
+
],
|
|
39
|
+
"teams": [
|
|
40
|
+
"./dist/src/platforms/teams/index.d.ts"
|
|
41
|
+
],
|
|
42
|
+
"webex": [
|
|
43
|
+
"./dist/src/platforms/webex/index.d.ts"
|
|
44
|
+
],
|
|
45
|
+
"whatsapp": [
|
|
46
|
+
"./dist/src/platforms/whatsapp/index.d.ts"
|
|
47
|
+
],
|
|
48
|
+
"whatsappbot": [
|
|
49
|
+
"./dist/src/platforms/whatsappbot/index.d.ts"
|
|
50
|
+
],
|
|
51
|
+
"line": [
|
|
52
|
+
"./dist/src/platforms/line/index.d.ts"
|
|
53
|
+
],
|
|
54
|
+
"wechatbot": [
|
|
55
|
+
"./dist/src/platforms/wechatbot/index.d.ts"
|
|
56
|
+
],
|
|
57
|
+
"instagram": [
|
|
58
|
+
"./dist/src/platforms/instagram/index.d.ts"
|
|
59
|
+
],
|
|
60
|
+
"kakaotalk": [
|
|
61
|
+
"./dist/src/platforms/kakaotalk/index.d.ts"
|
|
62
|
+
],
|
|
63
|
+
"channeltalk": [
|
|
64
|
+
"./dist/src/platforms/channeltalk/index.d.ts"
|
|
65
|
+
],
|
|
66
|
+
"channeltalkbot": [
|
|
67
|
+
"./dist/src/platforms/channeltalkbot/index.d.ts"
|
|
68
|
+
]
|
|
69
|
+
}
|
|
27
70
|
},
|
|
28
71
|
"exports": {
|
|
29
72
|
"./package.json": "./package.json",
|
|
@@ -80,49 +123,6 @@
|
|
|
80
123
|
"default": "./dist/src/platforms/channeltalkbot/index.js"
|
|
81
124
|
}
|
|
82
125
|
},
|
|
83
|
-
"type": "module",
|
|
84
|
-
"main": "dist/cli.js",
|
|
85
|
-
"module": "dist/cli.js",
|
|
86
|
-
"typesVersions": {
|
|
87
|
-
"*": {
|
|
88
|
-
"slack": [
|
|
89
|
-
"./dist/src/platforms/slack/index.d.ts"
|
|
90
|
-
],
|
|
91
|
-
"discord": [
|
|
92
|
-
"./dist/src/platforms/discord/index.d.ts"
|
|
93
|
-
],
|
|
94
|
-
"teams": [
|
|
95
|
-
"./dist/src/platforms/teams/index.d.ts"
|
|
96
|
-
],
|
|
97
|
-
"webex": [
|
|
98
|
-
"./dist/src/platforms/webex/index.d.ts"
|
|
99
|
-
],
|
|
100
|
-
"whatsapp": [
|
|
101
|
-
"./dist/src/platforms/whatsapp/index.d.ts"
|
|
102
|
-
],
|
|
103
|
-
"whatsappbot": [
|
|
104
|
-
"./dist/src/platforms/whatsappbot/index.d.ts"
|
|
105
|
-
],
|
|
106
|
-
"line": [
|
|
107
|
-
"./dist/src/platforms/line/index.d.ts"
|
|
108
|
-
],
|
|
109
|
-
"wechatbot": [
|
|
110
|
-
"./dist/src/platforms/wechatbot/index.d.ts"
|
|
111
|
-
],
|
|
112
|
-
"instagram": [
|
|
113
|
-
"./dist/src/platforms/instagram/index.d.ts"
|
|
114
|
-
],
|
|
115
|
-
"kakaotalk": [
|
|
116
|
-
"./dist/src/platforms/kakaotalk/index.d.ts"
|
|
117
|
-
],
|
|
118
|
-
"channeltalk": [
|
|
119
|
-
"./dist/src/platforms/channeltalk/index.d.ts"
|
|
120
|
-
],
|
|
121
|
-
"channeltalkbot": [
|
|
122
|
-
"./dist/src/platforms/channeltalkbot/index.d.ts"
|
|
123
|
-
]
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
126
|
"scripts": {
|
|
127
127
|
"build": "tsc && tsc-alias --resolve-full-paths",
|
|
128
128
|
"postbuild": "bun scripts/postbuild.ts",
|
|
@@ -132,6 +132,7 @@
|
|
|
132
132
|
"lint": "oxlint",
|
|
133
133
|
"lint:fix": "oxlint --fix",
|
|
134
134
|
"format": "oxfmt --write .",
|
|
135
|
+
"format:check": "oxfmt --check .",
|
|
135
136
|
"dev": "bun --hot ./dist/cli.js",
|
|
136
137
|
"prepublishOnly": "bun run build && bun scripts/prepublish.ts",
|
|
137
138
|
"postpublish": "git checkout package.json"
|
|
@@ -151,10 +152,6 @@
|
|
|
151
152
|
"ws": "^8.19.0",
|
|
152
153
|
"zod": "^4.3.6"
|
|
153
154
|
},
|
|
154
|
-
"optionalDependencies": {
|
|
155
|
-
"koffi": "^2.15.2",
|
|
156
|
-
"prebuilt-tdlib": "0.1008062.2"
|
|
157
|
-
},
|
|
158
155
|
"devDependencies": {
|
|
159
156
|
"@types/better-sqlite3": "^7.6.8",
|
|
160
157
|
"@types/blessed": "^0.1.27",
|
|
@@ -170,6 +167,10 @@
|
|
|
170
167
|
"tsx": "^4.21.0",
|
|
171
168
|
"typescript": "^5.9.3"
|
|
172
169
|
},
|
|
170
|
+
"optionalDependencies": {
|
|
171
|
+
"koffi": "^2.15.2",
|
|
172
|
+
"prebuilt-tdlib": "0.1008062.2"
|
|
173
|
+
},
|
|
173
174
|
"trustedDependencies": [
|
|
174
175
|
"@whiskeysockets/baileys",
|
|
175
176
|
"better-sqlite3",
|
package/scripts/prepublish.ts
CHANGED
|
@@ -21,9 +21,7 @@ for (const [key, value] of Object.entries(pkg.exports as Record<string, unknown>
|
|
|
21
21
|
|
|
22
22
|
for (const conditionObj of Object.values(pkg.typesVersions as Record<string, Record<string, string[]>>)) {
|
|
23
23
|
for (const [entryName, paths] of Object.entries(conditionObj)) {
|
|
24
|
-
conditionObj[entryName] = paths.map((p) =>
|
|
25
|
-
p.replace(/^\.\/src\//, './dist/src/').replace(/\.ts$/, '.d.ts'),
|
|
26
|
-
)
|
|
24
|
+
conditionObj[entryName] = paths.map((p) => p.replace(/^\.\/src\//, './dist/src/').replace(/\.ts$/, '.d.ts'))
|
|
27
25
|
}
|
|
28
26
|
}
|
|
29
27
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: agent-channeltalk
|
|
3
3
|
description: Interact with Channel Talk using extracted desktop app or browser credentials - read chats, send messages, search messages, manage groups
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.9.0
|
|
5
5
|
allowed-tools: Bash(agent-channeltalk:*)
|
|
6
6
|
metadata:
|
|
7
7
|
openclaw:
|
|
@@ -267,21 +267,31 @@ agent-channeltalk bot list --limit 50
|
|
|
267
267
|
|
|
268
268
|
### Snapshot Command
|
|
269
269
|
|
|
270
|
-
Get
|
|
270
|
+
Get workspace overview for AI agents (brief by default):
|
|
271
271
|
|
|
272
272
|
```bash
|
|
273
|
-
#
|
|
273
|
+
# Brief snapshot (default) — fast, minimal API calls
|
|
274
274
|
agent-channeltalk snapshot
|
|
275
275
|
|
|
276
|
-
#
|
|
277
|
-
agent-channeltalk snapshot --
|
|
278
|
-
agent-channeltalk snapshot --chats-only
|
|
276
|
+
# Full snapshot — includes messages, managers, bots (slow, large output)
|
|
277
|
+
agent-channeltalk snapshot --full
|
|
279
278
|
|
|
280
|
-
#
|
|
281
|
-
agent-channeltalk snapshot --
|
|
279
|
+
# Filtered full snapshots
|
|
280
|
+
agent-channeltalk snapshot --full --groups-only
|
|
281
|
+
agent-channeltalk snapshot --full --chats-only
|
|
282
|
+
|
|
283
|
+
# Limit messages per group/chat (only with --full)
|
|
284
|
+
agent-channeltalk snapshot --full --limit 10
|
|
282
285
|
```
|
|
283
286
|
|
|
284
|
-
|
|
287
|
+
Default returns brief JSON with:
|
|
288
|
+
|
|
289
|
+
- Workspace metadata (id, name)
|
|
290
|
+
- Groups (id, name)
|
|
291
|
+
- UserChat summary (total count, by state)
|
|
292
|
+
- Hint for next commands
|
|
293
|
+
|
|
294
|
+
With `--full`, returns comprehensive JSON with:
|
|
285
295
|
|
|
286
296
|
- Workspace metadata (id, name)
|
|
287
297
|
- Groups with recent messages (id, name, messages)
|
|
@@ -92,28 +92,29 @@ done
|
|
|
92
92
|
```bash
|
|
93
93
|
#!/bin/bash
|
|
94
94
|
|
|
95
|
-
#
|
|
95
|
+
# Get brief snapshot (default — fast, minimal output)
|
|
96
96
|
SNAPSHOT=$(agent-channeltalk snapshot)
|
|
97
97
|
|
|
98
98
|
# Extract key info
|
|
99
99
|
WORKSPACE=$(echo "$SNAPSHOT" | jq -r '.workspace.name')
|
|
100
100
|
GROUP_COUNT=$(echo "$SNAPSHOT" | jq '.groups | length')
|
|
101
101
|
OPEN_CHATS=$(echo "$SNAPSHOT" | jq '.user_chats.by_state.opened')
|
|
102
|
-
MANAGER_COUNT=$(echo "$SNAPSHOT" | jq '.managers | length')
|
|
103
|
-
BOT_COUNT=$(echo "$SNAPSHOT" | jq '.bots | length')
|
|
104
102
|
|
|
105
103
|
echo "Workspace: $WORKSPACE"
|
|
106
104
|
echo "Groups: $GROUP_COUNT"
|
|
107
105
|
echo "Open chats: $OPEN_CHATS"
|
|
108
|
-
echo "Managers: $MANAGER_COUNT"
|
|
109
|
-
echo "Bots: $BOT_COUNT"
|
|
110
106
|
|
|
111
|
-
#
|
|
112
|
-
|
|
113
|
-
|
|
107
|
+
# List all groups
|
|
108
|
+
echo -e "\nGroups:"
|
|
109
|
+
echo "$SNAPSHOT" | jq -r '.groups[] | " \(.name) (\(.id))"'
|
|
110
|
+
|
|
111
|
+
# Then drill into specific resources for details
|
|
112
|
+
agent-channeltalk chat list --state opened --limit 10
|
|
113
|
+
agent-channeltalk manager list --limit 20
|
|
114
|
+
agent-channeltalk bot list --limit 20
|
|
114
115
|
```
|
|
115
116
|
|
|
116
|
-
**When to use**: Start of every AI agent session, periodic context refresh, workspace audits.
|
|
117
|
+
**When to use**: Start of every AI agent session, periodic context refresh, workspace audits. Start with brief snapshot, then use targeted list commands for messages, managers, or bots.
|
|
117
118
|
|
|
118
119
|
## Pattern 5: Find Group by Name
|
|
119
120
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: agent-channeltalkbot
|
|
3
3
|
description: Interact with Channel Talk workspaces using API credentials - send messages, read chats, manage groups and bots
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.9.0
|
|
5
5
|
allowed-tools: Bash(agent-channeltalkbot:*)
|
|
6
6
|
metadata:
|
|
7
7
|
openclaw:
|
|
@@ -274,21 +274,31 @@ agent-channeltalkbot bot delete <bot-id> --force
|
|
|
274
274
|
|
|
275
275
|
### Snapshot Command
|
|
276
276
|
|
|
277
|
-
Get
|
|
277
|
+
Get workspace overview for AI agents (brief by default):
|
|
278
278
|
|
|
279
279
|
```bash
|
|
280
|
-
#
|
|
280
|
+
# Brief snapshot (default) — fast, minimal API calls
|
|
281
281
|
agent-channeltalkbot snapshot
|
|
282
282
|
|
|
283
|
-
#
|
|
284
|
-
agent-channeltalkbot snapshot --
|
|
285
|
-
agent-channeltalkbot snapshot --chats-only
|
|
283
|
+
# Full snapshot — includes messages, managers, bots (slow, large output)
|
|
284
|
+
agent-channeltalkbot snapshot --full
|
|
286
285
|
|
|
287
|
-
#
|
|
288
|
-
agent-channeltalkbot snapshot --
|
|
286
|
+
# Filtered full snapshots
|
|
287
|
+
agent-channeltalkbot snapshot --full --groups-only
|
|
288
|
+
agent-channeltalkbot snapshot --full --chats-only
|
|
289
|
+
|
|
290
|
+
# Limit messages per group/chat (only with --full)
|
|
291
|
+
agent-channeltalkbot snapshot --full --limit 10
|
|
289
292
|
```
|
|
290
293
|
|
|
291
|
-
|
|
294
|
+
Default returns brief JSON with:
|
|
295
|
+
|
|
296
|
+
- Workspace metadata (id, name, homepage_url, description)
|
|
297
|
+
- Groups (id, name)
|
|
298
|
+
- UserChat summary (opened/snoozed/closed counts)
|
|
299
|
+
- Hint for next commands
|
|
300
|
+
|
|
301
|
+
With `--full`, returns comprehensive JSON with:
|
|
292
302
|
|
|
293
303
|
- Workspace metadata (id, name, homepage_url, description)
|
|
294
304
|
- Groups with recent messages (id, name, messages)
|
|
@@ -112,28 +112,29 @@ fi
|
|
|
112
112
|
```bash
|
|
113
113
|
#!/bin/bash
|
|
114
114
|
|
|
115
|
-
#
|
|
115
|
+
# Get brief snapshot (default — fast, minimal output)
|
|
116
116
|
SNAPSHOT=$(agent-channeltalkbot snapshot)
|
|
117
117
|
|
|
118
118
|
# Extract key info
|
|
119
119
|
WORKSPACE=$(echo "$SNAPSHOT" | jq -r '.workspace.name')
|
|
120
120
|
GROUP_COUNT=$(echo "$SNAPSHOT" | jq '.groups | length')
|
|
121
121
|
OPEN_CHATS=$(echo "$SNAPSHOT" | jq '.user_chats.opened_count')
|
|
122
|
-
MANAGER_COUNT=$(echo "$SNAPSHOT" | jq '.managers | length')
|
|
123
|
-
BOT_COUNT=$(echo "$SNAPSHOT" | jq '.bots | length')
|
|
124
122
|
|
|
125
123
|
echo "Workspace: $WORKSPACE"
|
|
126
124
|
echo "Groups: $GROUP_COUNT"
|
|
127
125
|
echo "Open chats: $OPEN_CHATS"
|
|
128
|
-
echo "Managers: $MANAGER_COUNT"
|
|
129
|
-
echo "Bots: $BOT_COUNT"
|
|
130
126
|
|
|
131
|
-
#
|
|
132
|
-
|
|
133
|
-
|
|
127
|
+
# List all groups
|
|
128
|
+
echo -e "\nGroups:"
|
|
129
|
+
echo "$SNAPSHOT" | jq -r '.groups[] | " \(.name) (\(.id))"'
|
|
130
|
+
|
|
131
|
+
# Then drill into specific resources for details
|
|
132
|
+
agent-channeltalkbot chat list --state opened --limit 10
|
|
133
|
+
agent-channeltalkbot manager list
|
|
134
|
+
agent-channeltalkbot bot list
|
|
134
135
|
```
|
|
135
136
|
|
|
136
|
-
**When to use**: Start of every AI agent session, periodic context refresh, workspace audits.
|
|
137
|
+
**When to use**: Start of every AI agent session, periodic context refresh, workspace audits. Start with brief snapshot, then use targeted list commands for chats, managers, or bots.
|
|
137
138
|
|
|
138
139
|
## Pattern 6: Search Messages Across Chats
|
|
139
140
|
|
|
@@ -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: 2.
|
|
4
|
+
version: 2.9.0
|
|
5
5
|
allowed-tools: Bash(agent-discord:*)
|
|
6
6
|
metadata:
|
|
7
7
|
openclaw:
|
|
@@ -318,21 +318,30 @@ agent-discord file info <channel-id> <file-id>
|
|
|
318
318
|
|
|
319
319
|
### Snapshot Command
|
|
320
320
|
|
|
321
|
-
Get
|
|
321
|
+
Get server overview for AI agents (brief by default):
|
|
322
322
|
|
|
323
323
|
```bash
|
|
324
|
-
#
|
|
324
|
+
# Brief snapshot (default) — fast, minimal API calls
|
|
325
325
|
agent-discord snapshot
|
|
326
326
|
|
|
327
|
-
#
|
|
328
|
-
agent-discord snapshot --
|
|
329
|
-
agent-discord snapshot --users-only
|
|
327
|
+
# Full snapshot — includes messages and members (slow, large output)
|
|
328
|
+
agent-discord snapshot --full
|
|
330
329
|
|
|
331
|
-
#
|
|
332
|
-
agent-discord snapshot --
|
|
330
|
+
# Filtered full snapshots
|
|
331
|
+
agent-discord snapshot --full --channels-only
|
|
332
|
+
agent-discord snapshot --full --users-only
|
|
333
|
+
|
|
334
|
+
# Limit messages per channel (only with --full)
|
|
335
|
+
agent-discord snapshot --full --limit 10
|
|
333
336
|
```
|
|
334
337
|
|
|
335
|
-
|
|
338
|
+
Default returns brief JSON with:
|
|
339
|
+
|
|
340
|
+
- Server metadata (id, name)
|
|
341
|
+
- Channels (id, name) — text channels only
|
|
342
|
+
- Hint for next commands
|
|
343
|
+
|
|
344
|
+
With `--full`, returns comprehensive JSON with:
|
|
336
345
|
|
|
337
346
|
- Server metadata (id, name)
|
|
338
347
|
- Channels (id, name, type, topic)
|
|
@@ -77,28 +77,29 @@ done
|
|
|
77
77
|
```bash
|
|
78
78
|
#!/bin/bash
|
|
79
79
|
|
|
80
|
-
# Get
|
|
80
|
+
# Get brief snapshot (default — fast, minimal output)
|
|
81
81
|
SNAPSHOT=$(agent-discord snapshot)
|
|
82
82
|
|
|
83
83
|
# Extract key information
|
|
84
84
|
SERVER_NAME=$(echo "$SNAPSHOT" | jq -r '.server.name')
|
|
85
85
|
CHANNEL_COUNT=$(echo "$SNAPSHOT" | jq -r '.channels | length')
|
|
86
|
-
MEMBER_COUNT=$(echo "$SNAPSHOT" | jq -r '.members | length')
|
|
87
86
|
|
|
88
87
|
echo "Server: $SERVER_NAME"
|
|
89
88
|
echo "Channels: $CHANNEL_COUNT"
|
|
90
|
-
echo "Members: $MEMBER_COUNT"
|
|
91
89
|
|
|
92
90
|
# List all text channels
|
|
93
91
|
echo -e "\nChannels:"
|
|
94
92
|
echo "$SNAPSHOT" | jq -r '.channels[] | " #\(.name) (\(.id))"'
|
|
95
93
|
|
|
96
|
-
#
|
|
97
|
-
echo -
|
|
98
|
-
|
|
94
|
+
# Then drill into a specific channel for recent activity
|
|
95
|
+
CHANNEL_ID=$(echo "$SNAPSHOT" | jq -r '.channels[0].id // empty')
|
|
96
|
+
if [ -n "$CHANNEL_ID" ]; then
|
|
97
|
+
echo -e "\nRecent messages:"
|
|
98
|
+
agent-discord message list "$CHANNEL_ID" --limit 10
|
|
99
|
+
fi
|
|
99
100
|
```
|
|
100
101
|
|
|
101
|
-
**When to use**: Initial context gathering, status reports, server summaries.
|
|
102
|
+
**When to use**: Initial context gathering, status reports, server summaries. Start with brief snapshot, then use `message list <channel-id>` or `user list` for details.
|
|
102
103
|
|
|
103
104
|
## Pattern 4: Find Channel by Name
|
|
104
105
|
|
|
@@ -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: 2.
|
|
4
|
+
version: 2.9.0
|
|
5
5
|
allowed-tools: Bash(agent-discordbot:*)
|
|
6
6
|
metadata:
|
|
7
7
|
openclaw:
|
|
@@ -265,21 +265,30 @@ agent-discordbot thread archive <thread-id>
|
|
|
265
265
|
|
|
266
266
|
### Snapshot Command
|
|
267
267
|
|
|
268
|
-
Get
|
|
268
|
+
Get server overview for AI agents (brief by default):
|
|
269
269
|
|
|
270
270
|
```bash
|
|
271
|
-
#
|
|
271
|
+
# Brief snapshot (default) — fast, minimal API calls
|
|
272
272
|
agent-discordbot snapshot
|
|
273
273
|
|
|
274
|
-
#
|
|
275
|
-
agent-discordbot snapshot --
|
|
276
|
-
agent-discordbot snapshot --users-only
|
|
274
|
+
# Full snapshot — includes messages and members (slow, large output)
|
|
275
|
+
agent-discordbot snapshot --full
|
|
277
276
|
|
|
278
|
-
#
|
|
279
|
-
agent-discordbot snapshot --
|
|
277
|
+
# Filtered full snapshots
|
|
278
|
+
agent-discordbot snapshot --full --channels-only
|
|
279
|
+
agent-discordbot snapshot --full --users-only
|
|
280
|
+
|
|
281
|
+
# Limit messages per channel (only with --full)
|
|
282
|
+
agent-discordbot snapshot --full --limit 10
|
|
280
283
|
```
|
|
281
284
|
|
|
282
|
-
|
|
285
|
+
Default returns brief JSON with:
|
|
286
|
+
|
|
287
|
+
- Server ID
|
|
288
|
+
- Channels (id, name) — text channels only
|
|
289
|
+
- Hint for next commands
|
|
290
|
+
|
|
291
|
+
With `--full`, returns comprehensive JSON with:
|
|
283
292
|
|
|
284
293
|
- Server metadata (id, name)
|
|
285
294
|
- Channels (id, name, type, topic)
|
|
@@ -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: 2.
|
|
4
|
+
version: 2.9.0
|
|
5
5
|
allowed-tools: Bash(agent-slack:*)
|
|
6
6
|
metadata:
|
|
7
7
|
openclaw:
|
|
@@ -473,24 +473,33 @@ agent-slack emoji list --pretty
|
|
|
473
473
|
|
|
474
474
|
### Snapshot Command
|
|
475
475
|
|
|
476
|
-
Get
|
|
476
|
+
Get workspace overview for AI agents (brief by default):
|
|
477
477
|
|
|
478
478
|
```bash
|
|
479
|
-
#
|
|
479
|
+
# Brief snapshot (default) — fast, minimal API calls
|
|
480
480
|
agent-slack snapshot
|
|
481
481
|
|
|
482
|
-
#
|
|
483
|
-
agent-slack snapshot --
|
|
484
|
-
agent-slack snapshot --users-only
|
|
482
|
+
# Full snapshot — includes messages, users, user groups (slow, large output)
|
|
483
|
+
agent-slack snapshot --full
|
|
485
484
|
|
|
486
|
-
#
|
|
487
|
-
agent-slack snapshot --
|
|
485
|
+
# Filtered full snapshots
|
|
486
|
+
agent-slack snapshot --full --channels-only
|
|
487
|
+
agent-slack snapshot --full --users-only
|
|
488
|
+
|
|
489
|
+
# Limit messages per channel (only with --full)
|
|
490
|
+
agent-slack snapshot --full --limit 10
|
|
488
491
|
```
|
|
489
492
|
|
|
490
|
-
|
|
493
|
+
Default returns brief JSON with:
|
|
494
|
+
|
|
495
|
+
- Workspace metadata
|
|
496
|
+
- Channels (id, name) — non-archived only
|
|
497
|
+
- Hint for next commands
|
|
498
|
+
|
|
499
|
+
With `--full`, returns comprehensive JSON with:
|
|
491
500
|
|
|
492
501
|
- Workspace metadata
|
|
493
|
-
- Channels (id, name, topic, purpose)
|
|
502
|
+
- Channels (id, name, topic, purpose, is_private, is_archived)
|
|
494
503
|
- Recent messages (ts, text, user, channel)
|
|
495
504
|
- Users (id, name, profile)
|
|
496
505
|
- User groups (id, name, handle, description, user_count, users)
|
|
@@ -71,28 +71,25 @@ done
|
|
|
71
71
|
```bash
|
|
72
72
|
#!/bin/bash
|
|
73
73
|
|
|
74
|
-
# Get
|
|
74
|
+
# Get brief snapshot (default — fast, minimal output)
|
|
75
75
|
SNAPSHOT=$(agent-slack snapshot)
|
|
76
76
|
|
|
77
77
|
# Extract key information
|
|
78
78
|
WORKSPACE_NAME=$(echo "$SNAPSHOT" | jq -r '.workspace.name')
|
|
79
79
|
CHANNEL_COUNT=$(echo "$SNAPSHOT" | jq -r '.channels | length')
|
|
80
|
-
USER_COUNT=$(echo "$SNAPSHOT" | jq -r '.users | length')
|
|
81
80
|
|
|
82
81
|
echo "Workspace: $WORKSPACE_NAME"
|
|
83
82
|
echo "Channels: $CHANNEL_COUNT"
|
|
84
|
-
echo "Users: $USER_COUNT"
|
|
85
83
|
|
|
86
84
|
# List all channels
|
|
87
85
|
echo -e "\nChannels:"
|
|
88
86
|
echo "$SNAPSHOT" | jq -r '.channels[] | " \(.name) (\(.id))"'
|
|
89
87
|
|
|
90
|
-
#
|
|
91
|
-
|
|
92
|
-
echo "$SNAPSHOT" | jq -r '.recent_messages[] | " \(.channel_name): \(.text[0:50])"'
|
|
88
|
+
# Then drill into specific channels for messages
|
|
89
|
+
agent-slack message list general --limit 10
|
|
93
90
|
```
|
|
94
91
|
|
|
95
|
-
**When to use**: Initial context gathering, status reports, workspace summaries.
|
|
92
|
+
**When to use**: Initial context gathering, status reports, workspace summaries. Start with brief snapshot, then use targeted commands for details.
|
|
96
93
|
|
|
97
94
|
## Pattern 4: Thread Conversation
|
|
98
95
|
|