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.
- package/.claude-plugin/plugin.json +1 -1
- package/.env.template +17 -1
- package/bunfig.e2e.toml +3 -0
- package/bunfig.toml +2 -0
- package/dist/package.json +3 -3
- package/dist/src/cli.d.ts.map +1 -1
- package/dist/src/cli.js +4 -3
- package/dist/src/cli.js.map +1 -1
- package/dist/src/platforms/discord/cli.js +1 -1
- package/dist/src/platforms/discord/client.d.ts +1 -1
- package/dist/src/platforms/discord/client.js +1 -1
- package/dist/src/platforms/discord/commands/auth.js +5 -5
- package/dist/src/platforms/discord/commands/channel.js +4 -4
- package/dist/src/platforms/discord/commands/dm.js +4 -4
- package/dist/src/platforms/discord/commands/file.js +4 -4
- package/dist/src/platforms/discord/commands/friend.js +2 -2
- package/dist/src/platforms/discord/commands/index.d.ts +8 -8
- package/dist/src/platforms/discord/commands/index.js +8 -8
- package/dist/src/platforms/discord/commands/member.js +4 -4
- package/dist/src/platforms/discord/commands/mention.js +4 -4
- package/dist/src/platforms/discord/commands/message.js +4 -4
- package/dist/src/platforms/discord/commands/note.js +4 -4
- package/dist/src/platforms/discord/commands/profile.js +4 -4
- package/dist/src/platforms/discord/commands/reaction.js +4 -4
- package/dist/src/platforms/discord/commands/server.js +4 -4
- package/dist/src/platforms/discord/commands/snapshot.js +5 -5
- package/dist/src/platforms/discord/commands/thread.js +4 -4
- package/dist/src/platforms/discord/commands/user.js +4 -4
- package/dist/src/platforms/discord/token-extractor.d.ts +1 -1
- package/dist/src/platforms/discord/token-extractor.js +1 -1
- package/dist/src/platforms/slack/cli.js +1 -1
- package/dist/src/platforms/slack/client.d.ts +1 -1
- package/dist/src/platforms/slack/client.js +3 -3
- package/dist/src/platforms/slack/client.js.map +1 -1
- package/dist/src/platforms/slack/commands/activity.js +4 -4
- package/dist/src/platforms/slack/commands/auth.js +5 -5
- package/dist/src/platforms/slack/commands/channel.js +4 -4
- package/dist/src/platforms/slack/commands/drafts.js +4 -4
- package/dist/src/platforms/slack/commands/file.js +4 -4
- package/dist/src/platforms/slack/commands/index.d.ts +13 -13
- package/dist/src/platforms/slack/commands/index.js +13 -13
- package/dist/src/platforms/slack/commands/message.js +4 -4
- package/dist/src/platforms/slack/commands/reaction.js +4 -4
- package/dist/src/platforms/slack/commands/saved.js +4 -4
- package/dist/src/platforms/slack/commands/sections.js +4 -4
- package/dist/src/platforms/slack/commands/snapshot.js +5 -5
- package/dist/src/platforms/slack/commands/unread.js +4 -4
- package/dist/src/platforms/slack/commands/user.js +4 -4
- package/dist/src/platforms/slack/commands/workspace.js +3 -3
- package/dist/src/platforms/slack/credential-manager.d.ts +1 -1
- package/dist/src/platforms/slack/index.d.ts +2 -2
- package/dist/src/platforms/slack/index.js +2 -2
- package/dist/src/platforms/slack/token-extractor.d.ts +1 -1
- package/dist/src/platforms/slack/token-extractor.js +1 -1
- package/dist/src/platforms/slackbot/cli.js +2 -2
- package/dist/src/platforms/slackbot/client.d.ts +1 -1
- package/dist/src/platforms/slackbot/client.js +1 -1
- package/dist/src/platforms/slackbot/commands/auth.d.ts +1 -1
- package/dist/src/platforms/slackbot/commands/auth.js +3 -3
- package/dist/src/platforms/slackbot/commands/channel.js +3 -3
- package/dist/src/platforms/slackbot/commands/index.d.ts +5 -5
- package/dist/src/platforms/slackbot/commands/index.js +5 -5
- package/dist/src/platforms/slackbot/commands/message.js +3 -3
- package/dist/src/platforms/slackbot/commands/reaction.js +3 -3
- package/dist/src/platforms/slackbot/commands/shared.d.ts +2 -2
- package/dist/src/platforms/slackbot/commands/shared.js +3 -3
- package/dist/src/platforms/slackbot/commands/user.js +3 -3
- package/dist/src/platforms/slackbot/credential-manager.d.ts +1 -1
- package/dist/src/platforms/slackbot/index.d.ts +3 -3
- package/dist/src/platforms/slackbot/index.js +3 -3
- package/dist/src/platforms/teams/cli.js +2 -2
- package/dist/src/platforms/teams/client.d.ts +1 -1
- package/dist/src/platforms/teams/client.js +1 -1
- package/dist/src/platforms/teams/commands/auth.js +5 -5
- package/dist/src/platforms/teams/commands/channel.js +4 -4
- package/dist/src/platforms/teams/commands/file.js +4 -4
- package/dist/src/platforms/teams/commands/index.d.ts +8 -8
- package/dist/src/platforms/teams/commands/index.js +8 -8
- package/dist/src/platforms/teams/commands/message.js +4 -4
- package/dist/src/platforms/teams/commands/reaction.js +4 -4
- package/dist/src/platforms/teams/commands/snapshot.js +5 -5
- package/dist/src/platforms/teams/commands/team.js +4 -4
- package/dist/src/platforms/teams/commands/user.js +4 -4
- package/dist/src/platforms/teams/credential-manager.d.ts +1 -1
- package/dist/src/platforms/teams/token-extractor.d.ts +1 -1
- package/dist/src/platforms/teams/token-extractor.js +1 -1
- package/e2e/README.md +62 -12
- package/e2e/config.ts +38 -0
- package/e2e/discord.e2e.test.ts +49 -2
- package/e2e/helpers.ts +1 -0
- package/e2e/setup.ts +10 -0
- package/e2e/slack.e2e.test.ts +77 -0
- package/e2e/teams.e2e.test.ts +287 -0
- package/package.json +3 -3
- package/scripts/postbuild.ts +2 -0
- package/skills/agent-discord/SKILL.md +11 -5
- package/skills/agent-slack/SKILL.md +11 -5
- package/skills/agent-slackbot/SKILL.md +11 -5
- package/skills/agent-teams/SKILL.md +11 -5
- package/src/cli.ts +4 -3
- 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,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
|
|
@@ -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
|
|
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,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
|
-
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
|
|
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,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();
|
|
@@ -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',
|