agent-messenger 1.3.4 → 1.3.6

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 (101) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/.env.template +17 -1
  3. package/bunfig.e2e.toml +3 -0
  4. package/bunfig.toml +2 -0
  5. package/dist/package.json +3 -3
  6. package/dist/src/cli.d.ts.map +1 -1
  7. package/dist/src/cli.js +4 -3
  8. package/dist/src/cli.js.map +1 -1
  9. package/dist/src/platforms/discord/cli.js +1 -1
  10. package/dist/src/platforms/discord/client.d.ts +1 -1
  11. package/dist/src/platforms/discord/client.js +1 -1
  12. package/dist/src/platforms/discord/commands/auth.js +5 -5
  13. package/dist/src/platforms/discord/commands/channel.js +4 -4
  14. package/dist/src/platforms/discord/commands/dm.js +4 -4
  15. package/dist/src/platforms/discord/commands/file.js +4 -4
  16. package/dist/src/platforms/discord/commands/friend.js +2 -2
  17. package/dist/src/platforms/discord/commands/index.d.ts +8 -8
  18. package/dist/src/platforms/discord/commands/index.js +8 -8
  19. package/dist/src/platforms/discord/commands/member.js +4 -4
  20. package/dist/src/platforms/discord/commands/mention.js +4 -4
  21. package/dist/src/platforms/discord/commands/message.js +4 -4
  22. package/dist/src/platforms/discord/commands/note.js +4 -4
  23. package/dist/src/platforms/discord/commands/profile.js +4 -4
  24. package/dist/src/platforms/discord/commands/reaction.js +4 -4
  25. package/dist/src/platforms/discord/commands/server.js +4 -4
  26. package/dist/src/platforms/discord/commands/snapshot.js +5 -5
  27. package/dist/src/platforms/discord/commands/thread.js +4 -4
  28. package/dist/src/platforms/discord/commands/user.js +4 -4
  29. package/dist/src/platforms/discord/token-extractor.d.ts +1 -1
  30. package/dist/src/platforms/discord/token-extractor.js +1 -1
  31. package/dist/src/platforms/slack/cli.js +1 -1
  32. package/dist/src/platforms/slack/client.d.ts +1 -1
  33. package/dist/src/platforms/slack/client.js +3 -3
  34. package/dist/src/platforms/slack/client.js.map +1 -1
  35. package/dist/src/platforms/slack/commands/activity.js +4 -4
  36. package/dist/src/platforms/slack/commands/auth.js +5 -5
  37. package/dist/src/platforms/slack/commands/channel.js +4 -4
  38. package/dist/src/platforms/slack/commands/drafts.js +4 -4
  39. package/dist/src/platforms/slack/commands/file.js +4 -4
  40. package/dist/src/platforms/slack/commands/index.d.ts +13 -13
  41. package/dist/src/platforms/slack/commands/index.js +13 -13
  42. package/dist/src/platforms/slack/commands/message.js +4 -4
  43. package/dist/src/platforms/slack/commands/reaction.js +4 -4
  44. package/dist/src/platforms/slack/commands/saved.js +4 -4
  45. package/dist/src/platforms/slack/commands/sections.js +4 -4
  46. package/dist/src/platforms/slack/commands/snapshot.js +5 -5
  47. package/dist/src/platforms/slack/commands/unread.js +4 -4
  48. package/dist/src/platforms/slack/commands/user.js +4 -4
  49. package/dist/src/platforms/slack/commands/workspace.js +3 -3
  50. package/dist/src/platforms/slack/credential-manager.d.ts +1 -1
  51. package/dist/src/platforms/slack/index.d.ts +2 -2
  52. package/dist/src/platforms/slack/index.js +2 -2
  53. package/dist/src/platforms/slack/token-extractor.d.ts +1 -1
  54. package/dist/src/platforms/slack/token-extractor.js +1 -1
  55. package/dist/src/platforms/slackbot/cli.js +2 -2
  56. package/dist/src/platforms/slackbot/client.d.ts +1 -1
  57. package/dist/src/platforms/slackbot/client.js +1 -1
  58. package/dist/src/platforms/slackbot/commands/auth.d.ts +1 -1
  59. package/dist/src/platforms/slackbot/commands/auth.js +3 -3
  60. package/dist/src/platforms/slackbot/commands/channel.js +3 -3
  61. package/dist/src/platforms/slackbot/commands/index.d.ts +5 -5
  62. package/dist/src/platforms/slackbot/commands/index.js +5 -5
  63. package/dist/src/platforms/slackbot/commands/message.js +3 -3
  64. package/dist/src/platforms/slackbot/commands/reaction.js +3 -3
  65. package/dist/src/platforms/slackbot/commands/shared.d.ts +2 -2
  66. package/dist/src/platforms/slackbot/commands/shared.js +3 -3
  67. package/dist/src/platforms/slackbot/commands/user.js +3 -3
  68. package/dist/src/platforms/slackbot/credential-manager.d.ts +1 -1
  69. package/dist/src/platforms/slackbot/index.d.ts +3 -3
  70. package/dist/src/platforms/slackbot/index.js +3 -3
  71. package/dist/src/platforms/teams/cli.js +2 -2
  72. package/dist/src/platforms/teams/client.d.ts +1 -1
  73. package/dist/src/platforms/teams/client.js +1 -1
  74. package/dist/src/platforms/teams/commands/auth.js +5 -5
  75. package/dist/src/platforms/teams/commands/channel.js +4 -4
  76. package/dist/src/platforms/teams/commands/file.js +4 -4
  77. package/dist/src/platforms/teams/commands/index.d.ts +8 -8
  78. package/dist/src/platforms/teams/commands/index.js +8 -8
  79. package/dist/src/platforms/teams/commands/message.js +4 -4
  80. package/dist/src/platforms/teams/commands/reaction.js +4 -4
  81. package/dist/src/platforms/teams/commands/snapshot.js +5 -5
  82. package/dist/src/platforms/teams/commands/team.js +4 -4
  83. package/dist/src/platforms/teams/commands/user.js +4 -4
  84. package/dist/src/platforms/teams/credential-manager.d.ts +1 -1
  85. package/dist/src/platforms/teams/token-extractor.d.ts +1 -1
  86. package/dist/src/platforms/teams/token-extractor.js +1 -1
  87. package/e2e/README.md +62 -12
  88. package/e2e/config.ts +38 -0
  89. package/e2e/discord.e2e.test.ts +49 -2
  90. package/e2e/helpers.ts +1 -0
  91. package/e2e/setup.ts +10 -0
  92. package/e2e/slack.e2e.test.ts +77 -0
  93. package/e2e/teams.e2e.test.ts +287 -0
  94. package/package.json +3 -3
  95. package/scripts/postbuild.ts +2 -0
  96. package/skills/agent-discord/SKILL.md +11 -5
  97. package/skills/agent-slack/SKILL.md +11 -5
  98. package/skills/agent-slackbot/SKILL.md +11 -5
  99. package/skills/agent-teams/SKILL.md +11 -5
  100. package/src/cli.ts +4 -3
  101. package/src/platforms/slack/client.ts +4 -4
@@ -1,14 +1,14 @@
1
- export { activityCommand } from './activity';
2
- export { authCommand } from './auth';
3
- export { channelCommand } from './channel';
4
- export { draftsCommand } from './drafts';
5
- export { fileCommand } from './file';
6
- export { messageCommand } from './message';
7
- export { reactionCommand } from './reaction';
8
- export { savedCommand } from './saved';
9
- export { sectionsCommand } from './sections';
10
- export { snapshotCommand } from './snapshot';
11
- export { unreadCommand } from './unread';
12
- export { userCommand } from './user';
13
- export { workspaceCommand } from './workspace';
1
+ export { activityCommand } from './activity.js';
2
+ export { authCommand } from './auth.js';
3
+ export { channelCommand } from './channel.js';
4
+ export { draftsCommand } from './drafts.js';
5
+ export { fileCommand } from './file.js';
6
+ export { messageCommand } from './message.js';
7
+ export { reactionCommand } from './reaction.js';
8
+ export { savedCommand } from './saved.js';
9
+ export { sectionsCommand } from './sections.js';
10
+ export { snapshotCommand } from './snapshot.js';
11
+ export { unreadCommand } from './unread.js';
12
+ export { userCommand } from './user.js';
13
+ export { workspaceCommand } from './workspace.js';
14
14
  //# sourceMappingURL=index.d.ts.map
@@ -1,14 +1,14 @@
1
- export { activityCommand } from './activity';
2
- export { authCommand } from './auth';
3
- export { channelCommand } from './channel';
4
- export { draftsCommand } from './drafts';
5
- export { fileCommand } from './file';
6
- export { messageCommand } from './message';
7
- export { reactionCommand } from './reaction';
8
- export { savedCommand } from './saved';
9
- export { sectionsCommand } from './sections';
10
- export { snapshotCommand } from './snapshot';
11
- export { unreadCommand } from './unread';
12
- export { userCommand } from './user';
13
- export { workspaceCommand } from './workspace';
1
+ export { activityCommand } from './activity.js';
2
+ export { authCommand } from './auth.js';
3
+ export { channelCommand } from './channel.js';
4
+ export { draftsCommand } from './drafts.js';
5
+ export { fileCommand } from './file.js';
6
+ export { messageCommand } from './message.js';
7
+ export { reactionCommand } from './reaction.js';
8
+ export { savedCommand } from './saved.js';
9
+ export { sectionsCommand } from './sections.js';
10
+ export { snapshotCommand } from './snapshot.js';
11
+ export { unreadCommand } from './unread.js';
12
+ export { userCommand } from './user.js';
13
+ export { workspaceCommand } from './workspace.js';
14
14
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,8 @@
1
1
  import { Command } from 'commander';
2
- import { handleError } from '../../../shared/utils/error-handler';
3
- import { formatOutput } from '../../../shared/utils/output';
4
- import { SlackClient } from '../client';
5
- import { CredentialManager } from '../credential-manager';
2
+ import { handleError } from '../../../shared/utils/error-handler.js';
3
+ import { formatOutput } from '../../../shared/utils/output.js';
4
+ import { SlackClient } from '../client.js';
5
+ import { CredentialManager } from '../credential-manager.js';
6
6
  async function sendAction(channel, text, options) {
7
7
  try {
8
8
  const credManager = new CredentialManager();
@@ -1,8 +1,8 @@
1
1
  import { Command } from 'commander';
2
- import { handleError } from '../../../shared/utils/error-handler';
3
- import { formatOutput } from '../../../shared/utils/output';
4
- import { SlackClient } from '../client';
5
- import { CredentialManager } from '../credential-manager';
2
+ import { handleError } from '../../../shared/utils/error-handler.js';
3
+ import { formatOutput } from '../../../shared/utils/output.js';
4
+ import { SlackClient } from '../client.js';
5
+ import { CredentialManager } from '../credential-manager.js';
6
6
  async function addAction(channel, ts, emoji, options) {
7
7
  try {
8
8
  const credManager = new CredentialManager();
@@ -1,8 +1,8 @@
1
1
  import { Command } from 'commander';
2
- import { handleError } from '../../../shared/utils/error-handler';
3
- import { formatOutput } from '../../../shared/utils/output';
4
- import { SlackClient } from '../client';
5
- import { CredentialManager } from '../credential-manager';
2
+ import { handleError } from '../../../shared/utils/error-handler.js';
3
+ import { formatOutput } from '../../../shared/utils/output.js';
4
+ import { SlackClient } from '../client.js';
5
+ import { CredentialManager } from '../credential-manager.js';
6
6
  async function listAction(options) {
7
7
  try {
8
8
  const credManager = new CredentialManager();
@@ -1,8 +1,8 @@
1
1
  import { Command } from 'commander';
2
- import { handleError } from '../../../shared/utils/error-handler';
3
- import { formatOutput } from '../../../shared/utils/output';
4
- import { SlackClient } from '../client';
5
- import { CredentialManager } from '../credential-manager';
2
+ import { handleError } from '../../../shared/utils/error-handler.js';
3
+ import { formatOutput } from '../../../shared/utils/output.js';
4
+ import { SlackClient } from '../client.js';
5
+ import { CredentialManager } from '../credential-manager.js';
6
6
  async function listAction(options) {
7
7
  try {
8
8
  const credManager = new CredentialManager();
@@ -1,9 +1,9 @@
1
1
  import { Command } from 'commander';
2
- import { parallelMap } from '../../../shared/utils/concurrency';
3
- import { handleError } from '../../../shared/utils/error-handler';
4
- import { formatOutput } from '../../../shared/utils/output';
5
- import { SlackClient } from '../client';
6
- import { CredentialManager } from '../credential-manager';
2
+ import { parallelMap } from '../../../shared/utils/concurrency.js';
3
+ import { handleError } from '../../../shared/utils/error-handler.js';
4
+ import { formatOutput } from '../../../shared/utils/output.js';
5
+ import { SlackClient } from '../client.js';
6
+ import { CredentialManager } from '../credential-manager.js';
7
7
  async function snapshotAction(options) {
8
8
  try {
9
9
  const credManager = new CredentialManager();
@@ -1,8 +1,8 @@
1
1
  import { Command } from 'commander';
2
- import { handleError } from '../../../shared/utils/error-handler';
3
- import { formatOutput } from '../../../shared/utils/output';
4
- import { SlackClient } from '../client';
5
- import { CredentialManager } from '../credential-manager';
2
+ import { handleError } from '../../../shared/utils/error-handler.js';
3
+ import { formatOutput } from '../../../shared/utils/output.js';
4
+ import { SlackClient } from '../client.js';
5
+ import { CredentialManager } from '../credential-manager.js';
6
6
  export async function countsAction(options) {
7
7
  try {
8
8
  const credManager = new CredentialManager();
@@ -1,8 +1,8 @@
1
1
  import { Command } from 'commander';
2
- import { handleError } from '../../../shared/utils/error-handler';
3
- import { formatOutput } from '../../../shared/utils/output';
4
- import { SlackClient } from '../client';
5
- import { CredentialManager } from '../credential-manager';
2
+ import { handleError } from '../../../shared/utils/error-handler.js';
3
+ import { formatOutput } from '../../../shared/utils/output.js';
4
+ import { SlackClient } from '../client.js';
5
+ import { CredentialManager } from '../credential-manager.js';
6
6
  async function getClient(pretty) {
7
7
  const credManager = new CredentialManager();
8
8
  const workspace = await credManager.getWorkspace();
@@ -1,7 +1,7 @@
1
1
  import { Command } from 'commander';
2
- import { handleError } from '../../../shared/utils/error-handler';
3
- import { formatOutput } from '../../../shared/utils/output';
4
- import { CredentialManager } from '../credential-manager';
2
+ import { handleError } from '../../../shared/utils/error-handler.js';
3
+ import { formatOutput } from '../../../shared/utils/output.js';
4
+ import { CredentialManager } from '../credential-manager.js';
5
5
  async function listAction(options) {
6
6
  try {
7
7
  const credManager = new CredentialManager();
@@ -1,4 +1,4 @@
1
- import type { Config, WorkspaceCredentials } from './types';
1
+ import type { Config, WorkspaceCredentials } from './types.js';
2
2
  export declare class CredentialManager {
3
3
  private configDir;
4
4
  private credentialsPath;
@@ -1,3 +1,3 @@
1
- export { SlackClient, SlackError } from './client';
2
- export { CredentialManager } from './credential-manager';
1
+ export { SlackClient, SlackError } from './client.js';
2
+ export { CredentialManager } from './credential-manager.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,3 +1,3 @@
1
- export { SlackClient, SlackError } from './client';
2
- export { CredentialManager } from './credential-manager';
1
+ export { SlackClient, SlackError } from './client.js';
2
+ export { CredentialManager } from './credential-manager.js';
3
3
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { DerivedKeyCache } from '../../shared/utils/derived-key-cache';
1
+ import { DerivedKeyCache } from '../../shared/utils/derived-key-cache.js';
2
2
  export interface ExtractedWorkspace {
3
3
  workspace_id: string;
4
4
  workspace_name: string;
@@ -5,7 +5,7 @@ import { createRequire } from 'node:module';
5
5
  import { homedir, tmpdir } from 'node:os';
6
6
  import { join } from 'node:path';
7
7
  import { ClassicLevel } from 'classic-level';
8
- import { DerivedKeyCache } from '../../shared/utils/derived-key-cache';
8
+ import { DerivedKeyCache } from '../../shared/utils/derived-key-cache.js';
9
9
  const require = createRequire(import.meta.url);
10
10
  export class TokenExtractor {
11
11
  platform;
@@ -1,7 +1,7 @@
1
- #!/usr/bin/env bun
1
+ #!/usr/bin/env node
2
2
  import { Command } from 'commander';
3
3
  import pkg from '../../../package.json' with { type: 'json' };
4
- import { authCommand, channelCommand, messageCommand, reactionCommand, userCommand } from './commands/index';
4
+ import { authCommand, channelCommand, messageCommand, reactionCommand, userCommand } from './commands/index.js';
5
5
  const program = new Command();
6
6
  program
7
7
  .name('agent-slackbot')
@@ -1,4 +1,4 @@
1
- import { type SlackChannel, type SlackMessage, type SlackUser } from './types';
1
+ import { type SlackChannel, type SlackMessage, type SlackUser } from './types.js';
2
2
  export declare class SlackBotClient {
3
3
  private client;
4
4
  constructor(token: string);
@@ -1,5 +1,5 @@
1
1
  import { WebClient } from '@slack/web-api';
2
- import { SlackBotError } from './types';
2
+ import { SlackBotError } from './types.js';
3
3
  const MAX_RETRIES = 3;
4
4
  const RATE_LIMIT_ERROR_CODE = 'slack_webapi_rate_limited_error';
5
5
  export class SlackBotClient {
@@ -1,5 +1,5 @@
1
1
  import { Command } from 'commander';
2
- import { SlackBotCredentialManager } from '../credential-manager';
2
+ import { SlackBotCredentialManager } from '../credential-manager.js';
3
3
  interface ActionOptions {
4
4
  pretty?: boolean;
5
5
  bot?: string;
@@ -1,7 +1,7 @@
1
1
  import { Command } from 'commander';
2
- import { formatOutput } from '../../../shared/utils/output';
3
- import { SlackBotClient } from '../client';
4
- import { SlackBotCredentialManager } from '../credential-manager';
2
+ import { formatOutput } from '../../../shared/utils/output.js';
3
+ import { SlackBotClient } from '../client.js';
4
+ import { SlackBotCredentialManager } from '../credential-manager.js';
5
5
  export async function setAction(token, options) {
6
6
  try {
7
7
  if (!token.startsWith('xoxb-')) {
@@ -1,7 +1,7 @@
1
1
  import { Command } from 'commander';
2
- import { handleError } from '../../../shared/utils/error-handler';
3
- import { formatOutput } from '../../../shared/utils/output';
4
- import { getClient } from './shared';
2
+ import { handleError } from '../../../shared/utils/error-handler.js';
3
+ import { formatOutput } from '../../../shared/utils/output.js';
4
+ import { getClient } from './shared.js';
5
5
  async function listAction(options) {
6
6
  try {
7
7
  const client = await getClient(options);
@@ -1,6 +1,6 @@
1
- export { authCommand } from './auth';
2
- export { channelCommand } from './channel';
3
- export { messageCommand } from './message';
4
- export { reactionCommand } from './reaction';
5
- export { userCommand } from './user';
1
+ export { authCommand } from './auth.js';
2
+ export { channelCommand } from './channel.js';
3
+ export { messageCommand } from './message.js';
4
+ export { reactionCommand } from './reaction.js';
5
+ export { userCommand } from './user.js';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1,6 +1,6 @@
1
- export { authCommand } from './auth';
2
- export { channelCommand } from './channel';
3
- export { messageCommand } from './message';
4
- export { reactionCommand } from './reaction';
5
- export { userCommand } from './user';
1
+ export { authCommand } from './auth.js';
2
+ export { channelCommand } from './channel.js';
3
+ export { messageCommand } from './message.js';
4
+ export { reactionCommand } from './reaction.js';
5
+ export { userCommand } from './user.js';
6
6
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  import { Command } from 'commander';
2
- import { handleError } from '../../../shared/utils/error-handler';
3
- import { formatOutput } from '../../../shared/utils/output';
4
- import { getClient } from './shared';
2
+ import { handleError } from '../../../shared/utils/error-handler.js';
3
+ import { formatOutput } from '../../../shared/utils/output.js';
4
+ import { getClient } from './shared.js';
5
5
  async function sendAction(channel, text, options) {
6
6
  try {
7
7
  const client = await getClient(options);
@@ -1,7 +1,7 @@
1
1
  import { Command } from 'commander';
2
- import { handleError } from '../../../shared/utils/error-handler';
3
- import { formatOutput } from '../../../shared/utils/output';
4
- import { getClient } from './shared';
2
+ import { handleError } from '../../../shared/utils/error-handler.js';
3
+ import { formatOutput } from '../../../shared/utils/output.js';
4
+ import { getClient } from './shared.js';
5
5
  async function addAction(channel, timestamp, emoji, options) {
6
6
  try {
7
7
  const client = await getClient(options);
@@ -1,5 +1,5 @@
1
- import { SlackBotClient } from '../client';
2
- import { SlackBotCredentialManager } from '../credential-manager';
1
+ import { SlackBotClient } from '../client.js';
2
+ import { SlackBotCredentialManager } from '../credential-manager.js';
3
3
  export interface BotOption {
4
4
  bot?: string;
5
5
  pretty?: boolean;
@@ -1,6 +1,6 @@
1
- import { formatOutput } from '../../../shared/utils/output';
2
- import { SlackBotClient } from '../client';
3
- import { SlackBotCredentialManager } from '../credential-manager';
1
+ import { formatOutput } from '../../../shared/utils/output.js';
2
+ import { SlackBotClient } from '../client.js';
3
+ import { SlackBotCredentialManager } from '../credential-manager.js';
4
4
  export async function getClient(options) {
5
5
  const credManager = options._credManager ?? new SlackBotCredentialManager();
6
6
  const creds = await credManager.getCredentials(options.bot);
@@ -1,7 +1,7 @@
1
1
  import { Command } from 'commander';
2
- import { handleError } from '../../../shared/utils/error-handler';
3
- import { formatOutput } from '../../../shared/utils/output';
4
- import { getClient } from './shared';
2
+ import { handleError } from '../../../shared/utils/error-handler.js';
3
+ import { formatOutput } from '../../../shared/utils/output.js';
4
+ import { getClient } from './shared.js';
5
5
  async function listAction(options) {
6
6
  try {
7
7
  const client = await getClient(options);
@@ -1,4 +1,4 @@
1
- import type { SlackBotConfig, SlackBotCredentials } from './types';
1
+ import type { SlackBotConfig, SlackBotCredentials } from './types.js';
2
2
  export declare class SlackBotCredentialManager {
3
3
  private configDir;
4
4
  private credentialsPath;
@@ -1,4 +1,4 @@
1
- export { SlackBotClient } from './client';
2
- export { SlackBotCredentialManager } from './credential-manager';
3
- export { SlackBotConfig, SlackBotConfigSchema, SlackBotCredentials, SlackBotCredentialsSchema, SlackBotError, SlackChannel, SlackChannelSchema, SlackFile, SlackFileSchema, SlackMessage, SlackMessageSchema, SlackReaction, SlackReactionSchema, SlackUser, SlackUserSchema, } from './types';
1
+ export { SlackBotClient } from './client.js';
2
+ export { SlackBotCredentialManager } from './credential-manager.js';
3
+ export { SlackBotConfig, SlackBotConfigSchema, SlackBotCredentials, SlackBotCredentialsSchema, SlackBotError, SlackChannel, SlackChannelSchema, SlackFile, SlackFileSchema, SlackMessage, SlackMessageSchema, SlackReaction, SlackReactionSchema, SlackUser, SlackUserSchema, } from './types.js';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- export { SlackBotClient } from './client';
2
- export { SlackBotCredentialManager } from './credential-manager';
3
- export { SlackBotConfigSchema, SlackBotCredentialsSchema, SlackBotError, SlackChannelSchema, SlackFileSchema, SlackMessageSchema, SlackReactionSchema, SlackUserSchema, } from './types';
1
+ export { SlackBotClient } from './client.js';
2
+ export { SlackBotCredentialManager } from './credential-manager.js';
3
+ export { SlackBotConfigSchema, SlackBotCredentialsSchema, SlackBotError, SlackChannelSchema, SlackFileSchema, SlackMessageSchema, SlackReactionSchema, SlackUserSchema, } from './types.js';
4
4
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
- #!/usr/bin/env bun
1
+ #!/usr/bin/env node
2
2
  import { Command } from 'commander';
3
3
  import pkg from '../../../package.json' with { type: 'json' };
4
- import { authCommand, channelCommand, fileCommand, messageCommand, reactionCommand, snapshotCommand, teamCommand, userCommand, } from './commands';
4
+ import { authCommand, channelCommand, fileCommand, messageCommand, reactionCommand, snapshotCommand, teamCommand, userCommand, } from './commands/index.js';
5
5
  const program = new Command();
6
6
  program
7
7
  .name('agent-teams')
@@ -1,4 +1,4 @@
1
- import type { TeamsChannel, TeamsFile, TeamsMessage, TeamsTeam, TeamsUser } from './types';
1
+ import type { TeamsChannel, TeamsFile, TeamsMessage, TeamsTeam, TeamsUser } from './types.js';
2
2
  export declare class TeamsClient {
3
3
  private token;
4
4
  private tokenExpiresAt?;
@@ -1,6 +1,6 @@
1
1
  import { readFile } from 'node:fs/promises';
2
2
  import { basename } from 'node:path';
3
- import { TeamsError } from './types';
3
+ import { TeamsError } from './types.js';
4
4
  const MSG_API_BASE = 'https://emea.ng.msg.teams.microsoft.com/v1';
5
5
  const CSA_API_BASE = 'https://teams.microsoft.com/api';
6
6
  const MAX_RETRIES = 3;
@@ -1,9 +1,9 @@
1
1
  import { Command } from 'commander';
2
- import { handleError } from '../../../shared/utils/error-handler';
3
- import { formatOutput } from '../../../shared/utils/output';
4
- import { TeamsClient } from '../client';
5
- import { TeamsCredentialManager } from '../credential-manager';
6
- import { TeamsTokenExtractor } from '../token-extractor';
2
+ import { handleError } from '../../../shared/utils/error-handler.js';
3
+ import { formatOutput } from '../../../shared/utils/output.js';
4
+ import { TeamsClient } from '../client.js';
5
+ import { TeamsCredentialManager } from '../credential-manager.js';
6
+ import { TeamsTokenExtractor } from '../token-extractor.js';
7
7
  export async function extractAction(options) {
8
8
  try {
9
9
  let token;
@@ -1,8 +1,8 @@
1
1
  import { Command } from 'commander';
2
- import { handleError } from '../../../shared/utils/error-handler';
3
- import { formatOutput } from '../../../shared/utils/output';
4
- import { TeamsClient } from '../client';
5
- import { TeamsCredentialManager } from '../credential-manager';
2
+ import { handleError } from '../../../shared/utils/error-handler.js';
3
+ import { formatOutput } from '../../../shared/utils/output.js';
4
+ import { TeamsClient } from '../client.js';
5
+ import { TeamsCredentialManager } from '../credential-manager.js';
6
6
  export async function listAction(teamId, options) {
7
7
  try {
8
8
  const credManager = new TeamsCredentialManager();
@@ -1,9 +1,9 @@
1
1
  import { resolve } from 'node:path';
2
2
  import { Command } from 'commander';
3
- import { handleError } from '../../../shared/utils/error-handler';
4
- import { formatOutput } from '../../../shared/utils/output';
5
- import { TeamsClient } from '../client';
6
- import { TeamsCredentialManager } from '../credential-manager';
3
+ import { handleError } from '../../../shared/utils/error-handler.js';
4
+ import { formatOutput } from '../../../shared/utils/output.js';
5
+ import { TeamsClient } from '../client.js';
6
+ import { TeamsCredentialManager } from '../credential-manager.js';
7
7
  export async function uploadAction(teamId, channelId, path, options) {
8
8
  try {
9
9
  const credManager = new TeamsCredentialManager();
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * Command registry for Teams CLI
3
3
  */
4
- export { authCommand } from './auth';
5
- export { channelCommand } from './channel';
6
- export { fileCommand } from './file';
7
- export { messageCommand } from './message';
8
- export { reactionCommand } from './reaction';
9
- export { snapshotAction, snapshotCommand } from './snapshot';
10
- export { teamCommand } from './team';
11
- export { userCommand } from './user';
4
+ export { authCommand } from './auth.js';
5
+ export { channelCommand } from './channel.js';
6
+ export { fileCommand } from './file.js';
7
+ export { messageCommand } from './message.js';
8
+ export { reactionCommand } from './reaction.js';
9
+ export { snapshotAction, snapshotCommand } from './snapshot.js';
10
+ export { teamCommand } from './team.js';
11
+ export { userCommand } from './user.js';
12
12
  //# sourceMappingURL=index.d.ts.map
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * Command registry for Teams CLI
3
3
  */
4
- export { authCommand } from './auth';
5
- export { channelCommand } from './channel';
6
- export { fileCommand } from './file';
7
- export { messageCommand } from './message';
8
- export { reactionCommand } from './reaction';
9
- export { snapshotAction, snapshotCommand } from './snapshot';
10
- export { teamCommand } from './team';
11
- export { userCommand } from './user';
4
+ export { authCommand } from './auth.js';
5
+ export { channelCommand } from './channel.js';
6
+ export { fileCommand } from './file.js';
7
+ export { messageCommand } from './message.js';
8
+ export { reactionCommand } from './reaction.js';
9
+ export { snapshotAction, snapshotCommand } from './snapshot.js';
10
+ export { teamCommand } from './team.js';
11
+ export { userCommand } from './user.js';
12
12
  //# sourceMappingURL=index.js.map
@@ -1,8 +1,8 @@
1
1
  import { Command } from 'commander';
2
- import { handleError } from '../../../shared/utils/error-handler';
3
- import { formatOutput } from '../../../shared/utils/output';
4
- import { TeamsClient } from '../client';
5
- import { TeamsCredentialManager } from '../credential-manager';
2
+ import { handleError } from '../../../shared/utils/error-handler.js';
3
+ import { formatOutput } from '../../../shared/utils/output.js';
4
+ import { TeamsClient } from '../client.js';
5
+ import { TeamsCredentialManager } from '../credential-manager.js';
6
6
  export async function sendAction(teamId, channelId, content, options) {
7
7
  try {
8
8
  const credManager = new TeamsCredentialManager();
@@ -1,8 +1,8 @@
1
1
  import { Command } from 'commander';
2
- import { handleError } from '../../../shared/utils/error-handler';
3
- import { formatOutput } from '../../../shared/utils/output';
4
- import { TeamsClient } from '../client';
5
- import { TeamsCredentialManager } from '../credential-manager';
2
+ import { handleError } from '../../../shared/utils/error-handler.js';
3
+ import { formatOutput } from '../../../shared/utils/output.js';
4
+ import { TeamsClient } from '../client.js';
5
+ import { TeamsCredentialManager } from '../credential-manager.js';
6
6
  export async function addAction(teamId, channelId, messageId, emoji, options) {
7
7
  try {
8
8
  const credManager = new TeamsCredentialManager();
@@ -1,9 +1,9 @@
1
1
  import { Command } from 'commander';
2
- import { parallelMap } from '../../../shared/utils/concurrency';
3
- import { handleError } from '../../../shared/utils/error-handler';
4
- import { formatOutput } from '../../../shared/utils/output';
5
- import { TeamsClient } from '../client';
6
- import { TeamsCredentialManager } from '../credential-manager';
2
+ import { parallelMap } from '../../../shared/utils/concurrency.js';
3
+ import { handleError } from '../../../shared/utils/error-handler.js';
4
+ import { formatOutput } from '../../../shared/utils/output.js';
5
+ import { TeamsClient } from '../client.js';
6
+ import { TeamsCredentialManager } from '../credential-manager.js';
7
7
  export async function snapshotAction(options) {
8
8
  try {
9
9
  const credManager = new TeamsCredentialManager();
@@ -1,8 +1,8 @@
1
1
  import { Command } from 'commander';
2
- import { handleError } from '../../../shared/utils/error-handler';
3
- import { formatOutput } from '../../../shared/utils/output';
4
- import { TeamsClient } from '../client';
5
- import { TeamsCredentialManager } from '../credential-manager';
2
+ import { handleError } from '../../../shared/utils/error-handler.js';
3
+ import { formatOutput } from '../../../shared/utils/output.js';
4
+ import { TeamsClient } from '../client.js';
5
+ import { TeamsCredentialManager } from '../credential-manager.js';
6
6
  export async function listAction(options) {
7
7
  try {
8
8
  const credManager = new TeamsCredentialManager();
@@ -1,8 +1,8 @@
1
1
  import { Command } from 'commander';
2
- import { handleError } from '../../../shared/utils/error-handler';
3
- import { formatOutput } from '../../../shared/utils/output';
4
- import { TeamsClient } from '../client';
5
- import { TeamsCredentialManager } from '../credential-manager';
2
+ import { handleError } from '../../../shared/utils/error-handler.js';
3
+ import { formatOutput } from '../../../shared/utils/output.js';
4
+ import { TeamsClient } from '../client.js';
5
+ import { TeamsCredentialManager } from '../credential-manager.js';
6
6
  async function listAction(teamId, options) {
7
7
  try {
8
8
  const credManager = new TeamsCredentialManager();
@@ -1,4 +1,4 @@
1
- import type { TeamsConfig } from './types';
1
+ import type { TeamsConfig } from './types.js';
2
2
  export declare class TeamsCredentialManager {
3
3
  private configDir;
4
4
  private credentialsPath;
@@ -1,4 +1,4 @@
1
- import { DerivedKeyCache } from '../../shared/utils/derived-key-cache';
1
+ import { DerivedKeyCache } from '../../shared/utils/derived-key-cache.js';
2
2
  export interface ExtractedTeamsToken {
3
3
  token: string;
4
4
  }
@@ -3,7 +3,7 @@ import { createDecipheriv, pbkdf2Sync } from 'node:crypto';
3
3
  import { copyFileSync, existsSync, readFileSync, unlinkSync } from 'node:fs';
4
4
  import { homedir, tmpdir } from 'node:os';
5
5
  import { join } from 'node:path';
6
- import { DerivedKeyCache } from '../../shared/utils/derived-key-cache';
6
+ import { DerivedKeyCache } from '../../shared/utils/derived-key-cache.js';
7
7
  const TEAMS_PROCESS_NAMES = {
8
8
  darwin: 'Microsoft Teams',
9
9
  win32: 'Teams.exe',