agent-messenger 1.3.4 → 1.3.5
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/dist/package.json +2 -2
- 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/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 +1 -1
- 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 +1 -1
- 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/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-messenger",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.5",
|
|
4
4
|
"description": "Messaging platform interaction skills for AI agents. Interact with Slack, Discord, and Microsoft Teams - send messages, read channels, manage reactions, upload files, and more through simple CLI interfaces.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "devxoul",
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-messenger",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.5",
|
|
4
4
|
"description": "Multi-platform messaging CLI for AI agents (Slack, Discord, Teams)",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"agent-slackbot": "./src/platforms/slackbot/cli.ts"
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
21
|
-
"build": "tsc && tsc-alias",
|
|
21
|
+
"build": "tsc && tsc-alias --resolve-full-paths",
|
|
22
22
|
"postbuild": "bun scripts/postbuild.ts",
|
|
23
23
|
"test": "bun test src/",
|
|
24
24
|
"test:e2e": "bun test e2e/",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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, serverCommand, snapshotCommand, userCommand, } from './commands';
|
|
4
|
+
import { authCommand, channelCommand, fileCommand, messageCommand, reactionCommand, serverCommand, snapshotCommand, userCommand, } from './commands/index.js';
|
|
5
5
|
const program = new Command();
|
|
6
6
|
program
|
|
7
7
|
.name('agent-discord')
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DiscordChannel, DiscordDMChannel, DiscordFile, DiscordGuild, DiscordGuildMember, DiscordMention, DiscordMessage, DiscordRelationship, DiscordSearchOptions, DiscordSearchResult, DiscordUser, DiscordUserNote, DiscordUserProfile } from './types';
|
|
1
|
+
import type { DiscordChannel, DiscordDMChannel, DiscordFile, DiscordGuild, DiscordGuildMember, DiscordMention, DiscordMessage, DiscordRelationship, DiscordSearchOptions, DiscordSearchResult, DiscordUser, DiscordUserNote, DiscordUserProfile } from './types.js';
|
|
2
2
|
export declare class DiscordError extends Error {
|
|
3
3
|
code: string;
|
|
4
4
|
constructor(message: string, code: string);
|
|
@@ -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 { DiscordClient } from '../client';
|
|
5
|
-
import { DiscordCredentialManager } from '../credential-manager';
|
|
6
|
-
import { DiscordTokenExtractor } from '../token-extractor';
|
|
2
|
+
import { handleError } from '../../../shared/utils/error-handler.js';
|
|
3
|
+
import { formatOutput } from '../../../shared/utils/output.js';
|
|
4
|
+
import { DiscordClient } from '../client.js';
|
|
5
|
+
import { DiscordCredentialManager } from '../credential-manager.js';
|
|
6
|
+
import { DiscordTokenExtractor } from '../token-extractor.js';
|
|
7
7
|
export async function extractAction(options) {
|
|
8
8
|
try {
|
|
9
9
|
const extractor = new DiscordTokenExtractor();
|
|
@@ -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 { DiscordClient } from '../client';
|
|
5
|
-
import { DiscordCredentialManager } from '../credential-manager';
|
|
2
|
+
import { handleError } from '../../../shared/utils/error-handler.js';
|
|
3
|
+
import { formatOutput } from '../../../shared/utils/output.js';
|
|
4
|
+
import { DiscordClient } from '../client.js';
|
|
5
|
+
import { DiscordCredentialManager } from '../credential-manager.js';
|
|
6
6
|
export async function listAction(options) {
|
|
7
7
|
try {
|
|
8
8
|
const credManager = new DiscordCredentialManager();
|
|
@@ -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 { DiscordClient } from '../client';
|
|
5
|
-
import { DiscordCredentialManager } from '../credential-manager';
|
|
2
|
+
import { handleError } from '../../../shared/utils/error-handler.js';
|
|
3
|
+
import { formatOutput } from '../../../shared/utils/output.js';
|
|
4
|
+
import { DiscordClient } from '../client.js';
|
|
5
|
+
import { DiscordCredentialManager } from '../credential-manager.js';
|
|
6
6
|
export async function listAction(options) {
|
|
7
7
|
try {
|
|
8
8
|
const credManager = new DiscordCredentialManager();
|
|
@@ -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 { DiscordClient } from '../client';
|
|
6
|
-
import { DiscordCredentialManager } from '../credential-manager';
|
|
3
|
+
import { handleError } from '../../../shared/utils/error-handler.js';
|
|
4
|
+
import { formatOutput } from '../../../shared/utils/output.js';
|
|
5
|
+
import { DiscordClient } from '../client.js';
|
|
6
|
+
import { DiscordCredentialManager } from '../credential-manager.js';
|
|
7
7
|
export async function uploadAction(channelId, path, options) {
|
|
8
8
|
try {
|
|
9
9
|
const credManager = new DiscordCredentialManager();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Command } from 'commander';
|
|
2
|
-
import { DiscordClient } from '../client';
|
|
3
|
-
import { DiscordCredentialManager } from '../credential-manager';
|
|
2
|
+
import { DiscordClient } from '../client.js';
|
|
3
|
+
import { DiscordCredentialManager } from '../credential-manager.js';
|
|
4
4
|
export const friendCommand = new Command('friend').description('Manage Discord relationships (friends)').addCommand(new Command('list')
|
|
5
5
|
.description('List all relationships')
|
|
6
6
|
.option('--pretty', 'Pretty print output')
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { authCommand } from './auth';
|
|
2
|
-
export { channelCommand } from './channel';
|
|
3
|
-
export { fileCommand } from './file';
|
|
4
|
-
export { messageCommand } from './message';
|
|
5
|
-
export { reactionCommand } from './reaction';
|
|
6
|
-
export { serverCommand } from './server';
|
|
7
|
-
export { snapshotCommand } from './snapshot';
|
|
8
|
-
export { userCommand } from './user';
|
|
1
|
+
export { authCommand } from './auth.js';
|
|
2
|
+
export { channelCommand } from './channel.js';
|
|
3
|
+
export { fileCommand } from './file.js';
|
|
4
|
+
export { messageCommand } from './message.js';
|
|
5
|
+
export { reactionCommand } from './reaction.js';
|
|
6
|
+
export { serverCommand } from './server.js';
|
|
7
|
+
export { snapshotCommand } from './snapshot.js';
|
|
8
|
+
export { userCommand } from './user.js';
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { authCommand } from './auth';
|
|
2
|
-
export { channelCommand } from './channel';
|
|
3
|
-
export { fileCommand } from './file';
|
|
4
|
-
export { messageCommand } from './message';
|
|
5
|
-
export { reactionCommand } from './reaction';
|
|
6
|
-
export { serverCommand } from './server';
|
|
7
|
-
export { snapshotCommand } from './snapshot';
|
|
8
|
-
export { userCommand } from './user';
|
|
1
|
+
export { authCommand } from './auth.js';
|
|
2
|
+
export { channelCommand } from './channel.js';
|
|
3
|
+
export { fileCommand } from './file.js';
|
|
4
|
+
export { messageCommand } from './message.js';
|
|
5
|
+
export { reactionCommand } from './reaction.js';
|
|
6
|
+
export { serverCommand } from './server.js';
|
|
7
|
+
export { snapshotCommand } from './snapshot.js';
|
|
8
|
+
export { userCommand } from './user.js';
|
|
9
9
|
//# 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 { DiscordClient } from '../client';
|
|
5
|
-
import { DiscordCredentialManager } from '../credential-manager';
|
|
2
|
+
import { handleError } from '../../../shared/utils/error-handler.js';
|
|
3
|
+
import { formatOutput } from '../../../shared/utils/output.js';
|
|
4
|
+
import { DiscordClient } from '../client.js';
|
|
5
|
+
import { DiscordCredentialManager } from '../credential-manager.js';
|
|
6
6
|
async function searchAction(guildId, query, options) {
|
|
7
7
|
try {
|
|
8
8
|
const credManager = new DiscordCredentialManager();
|
|
@@ -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 { DiscordClient } from '../client';
|
|
5
|
-
import { DiscordCredentialManager } from '../credential-manager';
|
|
2
|
+
import { handleError } from '../../../shared/utils/error-handler.js';
|
|
3
|
+
import { formatOutput } from '../../../shared/utils/output.js';
|
|
4
|
+
import { DiscordClient } from '../client.js';
|
|
5
|
+
import { DiscordCredentialManager } from '../credential-manager.js';
|
|
6
6
|
export async function listAction(options) {
|
|
7
7
|
try {
|
|
8
8
|
const credManager = new DiscordCredentialManager();
|
|
@@ -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 { DiscordClient } from '../client';
|
|
5
|
-
import { DiscordCredentialManager } from '../credential-manager';
|
|
2
|
+
import { handleError } from '../../../shared/utils/error-handler.js';
|
|
3
|
+
import { formatOutput } from '../../../shared/utils/output.js';
|
|
4
|
+
import { DiscordClient } from '../client.js';
|
|
5
|
+
import { DiscordCredentialManager } from '../credential-manager.js';
|
|
6
6
|
export async function sendAction(channelId, content, options) {
|
|
7
7
|
try {
|
|
8
8
|
const credManager = new DiscordCredentialManager();
|
|
@@ -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 { DiscordClient } from '../client';
|
|
5
|
-
import { DiscordCredentialManager } from '../credential-manager';
|
|
2
|
+
import { handleError } from '../../../shared/utils/error-handler.js';
|
|
3
|
+
import { formatOutput } from '../../../shared/utils/output.js';
|
|
4
|
+
import { DiscordClient } from '../client.js';
|
|
5
|
+
import { DiscordCredentialManager } from '../credential-manager.js';
|
|
6
6
|
async function getAction(userId, options) {
|
|
7
7
|
try {
|
|
8
8
|
const credManager = new DiscordCredentialManager();
|
|
@@ -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 { DiscordClient } from '../client';
|
|
5
|
-
import { DiscordCredentialManager } from '../credential-manager';
|
|
2
|
+
import { handleError } from '../../../shared/utils/error-handler.js';
|
|
3
|
+
import { formatOutput } from '../../../shared/utils/output.js';
|
|
4
|
+
import { DiscordClient } from '../client.js';
|
|
5
|
+
import { DiscordCredentialManager } from '../credential-manager.js';
|
|
6
6
|
async function getAction(userId, options) {
|
|
7
7
|
try {
|
|
8
8
|
const credManager = new DiscordCredentialManager();
|
|
@@ -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 { DiscordClient } from '../client';
|
|
5
|
-
import { DiscordCredentialManager } from '../credential-manager';
|
|
2
|
+
import { handleError } from '../../../shared/utils/error-handler.js';
|
|
3
|
+
import { formatOutput } from '../../../shared/utils/output.js';
|
|
4
|
+
import { DiscordClient } from '../client.js';
|
|
5
|
+
import { DiscordCredentialManager } from '../credential-manager.js';
|
|
6
6
|
export async function addAction(channelId, messageId, emoji, options) {
|
|
7
7
|
try {
|
|
8
8
|
const credManager = new DiscordCredentialManager();
|
|
@@ -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 { DiscordClient } from '../client';
|
|
5
|
-
import { DiscordCredentialManager } from '../credential-manager';
|
|
2
|
+
import { handleError } from '../../../shared/utils/error-handler.js';
|
|
3
|
+
import { formatOutput } from '../../../shared/utils/output.js';
|
|
4
|
+
import { DiscordClient } from '../client.js';
|
|
5
|
+
import { DiscordCredentialManager } from '../credential-manager.js';
|
|
6
6
|
export async function listAction(options) {
|
|
7
7
|
try {
|
|
8
8
|
const credManager = new DiscordCredentialManager();
|
|
@@ -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 { DiscordClient } from '../client';
|
|
6
|
-
import { DiscordCredentialManager } 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 { DiscordClient } from '../client.js';
|
|
6
|
+
import { DiscordCredentialManager } from '../credential-manager.js';
|
|
7
7
|
export async function snapshotAction(options) {
|
|
8
8
|
try {
|
|
9
9
|
const credManager = new DiscordCredentialManager();
|
|
@@ -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 { DiscordClient } from '../client';
|
|
5
|
-
import { DiscordCredentialManager } from '../credential-manager';
|
|
2
|
+
import { handleError } from '../../../shared/utils/error-handler.js';
|
|
3
|
+
import { formatOutput } from '../../../shared/utils/output.js';
|
|
4
|
+
import { DiscordClient } from '../client.js';
|
|
5
|
+
import { DiscordCredentialManager } from '../credential-manager.js';
|
|
6
6
|
export async function createAction(channelId, name, options) {
|
|
7
7
|
try {
|
|
8
8
|
const credManager = new DiscordCredentialManager();
|
|
@@ -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 { DiscordClient } from '../client';
|
|
5
|
-
import { DiscordCredentialManager } from '../credential-manager';
|
|
2
|
+
import { handleError } from '../../../shared/utils/error-handler.js';
|
|
3
|
+
import { formatOutput } from '../../../shared/utils/output.js';
|
|
4
|
+
import { DiscordClient } from '../client.js';
|
|
5
|
+
import { DiscordCredentialManager } from '../credential-manager.js';
|
|
6
6
|
async function listAction(options) {
|
|
7
7
|
try {
|
|
8
8
|
const credManager = new DiscordCredentialManager();
|
|
@@ -3,7 +3,7 @@ import { createDecipheriv, pbkdf2Sync } from 'node:crypto';
|
|
|
3
3
|
import { existsSync, readdirSync, readFileSync } from 'node:fs';
|
|
4
4
|
import { homedir } 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 TOKEN_REGEX = /[\w-]{24}\.[\w-]{6}\.[\w-]{25,110}/;
|
|
8
8
|
const MFA_TOKEN_REGEX = /mfa\.[\w-]{84}/;
|
|
9
9
|
const ENCRYPTED_PREFIX = 'dQw4w9WgXcQ:';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { Command } from 'commander';
|
|
3
3
|
import pkg from '../../../package.json' with { type: 'json' };
|
|
4
|
-
import { activityCommand, authCommand, channelCommand, draftsCommand, fileCommand, messageCommand, reactionCommand, savedCommand, sectionsCommand, snapshotCommand, unreadCommand, userCommand, workspaceCommand, } from './commands/index';
|
|
4
|
+
import { activityCommand, authCommand, channelCommand, draftsCommand, fileCommand, messageCommand, reactionCommand, savedCommand, sectionsCommand, snapshotCommand, unreadCommand, userCommand, workspaceCommand, } from './commands/index.js';
|
|
5
5
|
const program = new Command();
|
|
6
6
|
program
|
|
7
7
|
.name('agent-slack')
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SlackActivityItem, SlackChannel, SlackChannelSection, SlackDraft, SlackFile, SlackMessage, SlackSavedItem, SlackSearchResult, SlackThreadView, SlackUnreadCounts, SlackUser } from './types';
|
|
1
|
+
import type { SlackActivityItem, SlackChannel, SlackChannelSection, SlackDraft, SlackFile, SlackMessage, SlackSavedItem, SlackSearchResult, SlackThreadView, SlackUnreadCounts, SlackUser } from './types.js';
|
|
2
2
|
export declare class SlackError extends Error {
|
|
3
3
|
code: string;
|
|
4
4
|
constructor(message: string, code: string);
|
|
@@ -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 { handleError } from '../../../shared/utils/error-handler';
|
|
3
|
-
import { formatOutput } from '../../../shared/utils/output';
|
|
4
|
-
import { SlackClient } from '../client';
|
|
5
|
-
import { CredentialManager } from '../credential-manager';
|
|
6
|
-
import { TokenExtractor } from '../token-extractor';
|
|
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
|
+
import { TokenExtractor } from '../token-extractor.js';
|
|
7
7
|
async function extractAction(options) {
|
|
8
8
|
try {
|
|
9
9
|
const extractor = new TokenExtractor();
|
|
@@ -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,10 +1,10 @@
|
|
|
1
1
|
import { readFileSync } from 'node:fs';
|
|
2
2
|
import { resolve } from 'node:path';
|
|
3
3
|
import { Command } from 'commander';
|
|
4
|
-
import { handleError } from '../../../shared/utils/error-handler';
|
|
5
|
-
import { formatOutput } from '../../../shared/utils/output';
|
|
6
|
-
import { SlackClient } from '../client';
|
|
7
|
-
import { CredentialManager } from '../credential-manager';
|
|
4
|
+
import { handleError } from '../../../shared/utils/error-handler.js';
|
|
5
|
+
import { formatOutput } from '../../../shared/utils/output.js';
|
|
6
|
+
import { SlackClient } from '../client.js';
|
|
7
|
+
import { CredentialManager } from '../credential-manager.js';
|
|
8
8
|
async function uploadAction(channel, path, options) {
|
|
9
9
|
try {
|
|
10
10
|
const credManager = new CredentialManager();
|
|
@@ -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
1
|
#!/usr/bin/env bun
|
|
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
1
|
#!/usr/bin/env bun
|
|
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',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-messenger",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.5",
|
|
4
4
|
"description": "Multi-platform messaging CLI for AI agents (Slack, Discord, Teams)",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"agent-slackbot": "dist/src/platforms/slackbot/cli.js"
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
21
|
-
"build": "tsc && tsc-alias",
|
|
21
|
+
"build": "tsc && tsc-alias --resolve-full-paths",
|
|
22
22
|
"postbuild": "bun scripts/postbuild.ts",
|
|
23
23
|
"test": "bun test src/",
|
|
24
24
|
"test:e2e": "bun test e2e/",
|