agent-messenger 2.8.0 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +0 -11
- package/dist/package.json +1 -1
- package/dist/src/platforms/channeltalk/commands/snapshot.d.ts +4 -2
- package/dist/src/platforms/channeltalk/commands/snapshot.d.ts.map +1 -1
- package/dist/src/platforms/channeltalk/commands/snapshot.js +86 -31
- package/dist/src/platforms/channeltalk/commands/snapshot.js.map +1 -1
- package/dist/src/platforms/channeltalkbot/commands/snapshot.d.ts +3 -1
- package/dist/src/platforms/channeltalkbot/commands/snapshot.d.ts.map +1 -1
- package/dist/src/platforms/channeltalkbot/commands/snapshot.js +110 -60
- package/dist/src/platforms/channeltalkbot/commands/snapshot.js.map +1 -1
- package/dist/src/platforms/discord/commands/snapshot.d.ts +1 -0
- package/dist/src/platforms/discord/commands/snapshot.d.ts.map +1 -1
- package/dist/src/platforms/discord/commands/snapshot.js +48 -34
- package/dist/src/platforms/discord/commands/snapshot.js.map +1 -1
- package/dist/src/platforms/discordbot/commands/snapshot.d.ts +2 -0
- package/dist/src/platforms/discordbot/commands/snapshot.d.ts.map +1 -1
- package/dist/src/platforms/discordbot/commands/snapshot.js +46 -34
- package/dist/src/platforms/discordbot/commands/snapshot.js.map +1 -1
- package/dist/src/platforms/slack/commands/snapshot.d.ts.map +1 -1
- package/dist/src/platforms/slack/commands/snapshot.js +75 -55
- package/dist/src/platforms/slack/commands/snapshot.js.map +1 -1
- package/dist/src/platforms/teams/client.d.ts +9 -1
- package/dist/src/platforms/teams/client.d.ts.map +1 -1
- package/dist/src/platforms/teams/client.js +69 -18
- package/dist/src/platforms/teams/client.js.map +1 -1
- package/dist/src/platforms/teams/commands/auth.d.ts.map +1 -1
- package/dist/src/platforms/teams/commands/auth.js +7 -2
- package/dist/src/platforms/teams/commands/auth.js.map +1 -1
- package/dist/src/platforms/teams/commands/channel.d.ts.map +1 -1
- package/dist/src/platforms/teams/commands/channel.js +18 -3
- package/dist/src/platforms/teams/commands/channel.js.map +1 -1
- package/dist/src/platforms/teams/commands/file.d.ts.map +1 -1
- package/dist/src/platforms/teams/commands/file.js +18 -3
- package/dist/src/platforms/teams/commands/file.js.map +1 -1
- package/dist/src/platforms/teams/commands/message.d.ts.map +1 -1
- package/dist/src/platforms/teams/commands/message.js +24 -4
- package/dist/src/platforms/teams/commands/message.js.map +1 -1
- package/dist/src/platforms/teams/commands/reaction.d.ts.map +1 -1
- package/dist/src/platforms/teams/commands/reaction.js +12 -2
- package/dist/src/platforms/teams/commands/reaction.js.map +1 -1
- package/dist/src/platforms/teams/commands/snapshot.d.ts +1 -0
- package/dist/src/platforms/teams/commands/snapshot.d.ts.map +1 -1
- package/dist/src/platforms/teams/commands/snapshot.js +50 -32
- package/dist/src/platforms/teams/commands/snapshot.js.map +1 -1
- package/dist/src/platforms/teams/commands/team.d.ts.map +1 -1
- package/dist/src/platforms/teams/commands/team.js +6 -1
- package/dist/src/platforms/teams/commands/team.js.map +1 -1
- package/dist/src/platforms/teams/commands/user.d.ts.map +1 -1
- package/dist/src/platforms/teams/commands/user.js +18 -3
- package/dist/src/platforms/teams/commands/user.js.map +1 -1
- package/dist/src/platforms/teams/commands/whoami.d.ts.map +1 -1
- package/dist/src/platforms/teams/commands/whoami.js +6 -1
- package/dist/src/platforms/teams/commands/whoami.js.map +1 -1
- package/dist/src/platforms/teams/credential-manager.d.ts +3 -1
- package/dist/src/platforms/teams/credential-manager.d.ts.map +1 -1
- package/dist/src/platforms/teams/credential-manager.js +6 -1
- package/dist/src/platforms/teams/credential-manager.js.map +1 -1
- package/dist/src/platforms/teams/ensure-auth.d.ts.map +1 -1
- package/dist/src/platforms/teams/ensure-auth.js +7 -2
- package/dist/src/platforms/teams/ensure-auth.js.map +1 -1
- package/dist/src/platforms/teams/token-extractor.d.ts +3 -1
- package/dist/src/platforms/teams/token-extractor.d.ts.map +1 -1
- package/dist/src/platforms/teams/token-extractor.js +67 -10
- package/dist/src/platforms/teams/token-extractor.js.map +1 -1
- package/dist/src/platforms/teams/types.d.ts +17 -0
- package/dist/src/platforms/teams/types.d.ts.map +1 -1
- package/dist/src/platforms/teams/types.js +2 -0
- package/dist/src/platforms/teams/types.js.map +1 -1
- package/dist/src/platforms/webex/client.d.ts +3 -0
- package/dist/src/platforms/webex/client.d.ts.map +1 -1
- package/dist/src/platforms/webex/client.js +58 -13
- package/dist/src/platforms/webex/client.js.map +1 -1
- package/dist/src/platforms/webex/commands/auth.d.ts.map +1 -1
- package/dist/src/platforms/webex/commands/auth.js +61 -10
- package/dist/src/platforms/webex/commands/auth.js.map +1 -1
- package/dist/src/platforms/webex/commands/snapshot.d.ts +1 -0
- package/dist/src/platforms/webex/commands/snapshot.d.ts.map +1 -1
- package/dist/src/platforms/webex/commands/snapshot.js +14 -7
- package/dist/src/platforms/webex/commands/snapshot.js.map +1 -1
- package/dist/src/platforms/webex/credential-manager.d.ts.map +1 -1
- package/dist/src/platforms/webex/credential-manager.js +18 -6
- package/dist/src/platforms/webex/credential-manager.js.map +1 -1
- package/dist/src/platforms/webex/encryption.d.ts.map +1 -1
- package/dist/src/platforms/webex/encryption.js +3 -1
- package/dist/src/platforms/webex/encryption.js.map +1 -1
- package/dist/src/platforms/webex/ensure-auth.d.ts.map +1 -1
- package/dist/src/platforms/webex/ensure-auth.js +10 -2
- package/dist/src/platforms/webex/ensure-auth.js.map +1 -1
- package/dist/src/platforms/webex/token-extractor.d.ts +1 -0
- package/dist/src/platforms/webex/token-extractor.d.ts.map +1 -1
- package/dist/src/platforms/webex/token-extractor.js +21 -4
- package/dist/src/platforms/webex/token-extractor.js.map +1 -1
- package/docs/content/docs/agent-skills.mdx +0 -10
- package/docs/content/docs/cli/channeltalk.mdx +18 -8
- package/docs/content/docs/cli/channeltalkbot.mdx +16 -6
- package/docs/content/docs/cli/discord.mdx +23 -7
- package/docs/content/docs/cli/discordbot.mdx +23 -7
- package/docs/content/docs/cli/slack.mdx +24 -7
- package/docs/content/docs/cli/teams.mdx +24 -8
- package/docs/content/docs/cli/webex.mdx +15 -2
- package/e2e/webex.e2e.test.ts +57 -0
- package/package.json +1 -1
- package/skills/agent-channeltalk/SKILL.md +19 -9
- package/skills/agent-channeltalk/references/common-patterns.md +10 -9
- package/skills/agent-channeltalkbot/SKILL.md +19 -9
- package/skills/agent-channeltalkbot/references/common-patterns.md +10 -9
- package/skills/agent-discord/SKILL.md +18 -9
- package/skills/agent-discord/references/common-patterns.md +8 -7
- package/skills/agent-discordbot/SKILL.md +18 -9
- package/skills/agent-instagram/SKILL.md +1 -1
- package/skills/agent-kakaotalk/SKILL.md +1 -1
- package/skills/agent-line/SKILL.md +1 -1
- package/skills/agent-slack/SKILL.md +19 -10
- package/skills/agent-slack/references/common-patterns.md +4 -7
- package/skills/agent-slackbot/SKILL.md +1 -1
- package/skills/agent-teams/SKILL.md +18 -9
- package/skills/agent-teams/references/common-patterns.md +9 -7
- package/skills/agent-telegram/SKILL.md +1 -1
- package/skills/agent-webex/SKILL.md +13 -4
- package/skills/agent-webex/references/common-patterns.md +8 -2
- package/skills/agent-wechatbot/SKILL.md +1 -1
- package/skills/agent-whatsapp/SKILL.md +1 -1
- package/skills/agent-whatsappbot/SKILL.md +1 -1
- package/src/platforms/channeltalk/commands/snapshot.test.ts +58 -26
- package/src/platforms/channeltalk/commands/snapshot.ts +107 -33
- package/src/platforms/channeltalkbot/commands/snapshot.test.ts +26 -8
- package/src/platforms/channeltalkbot/commands/snapshot.ts +131 -64
- package/src/platforms/discord/commands/snapshot.test.ts +1 -1
- package/src/platforms/discord/commands/snapshot.ts +58 -42
- package/src/platforms/discordbot/commands/snapshot.test.ts +40 -18
- package/src/platforms/discordbot/commands/snapshot.ts +54 -37
- package/src/platforms/slack/commands/snapshot.test.ts +63 -8
- package/src/platforms/slack/commands/snapshot.ts +98 -66
- package/src/platforms/teams/client.test.ts +34 -30
- package/src/platforms/teams/client.ts +92 -20
- package/src/platforms/teams/commands/auth.test.ts +6 -2
- package/src/platforms/teams/commands/auth.ts +7 -2
- package/src/platforms/teams/commands/channel.test.ts +6 -6
- package/src/platforms/teams/commands/channel.ts +18 -3
- package/src/platforms/teams/commands/file.ts +18 -3
- package/src/platforms/teams/commands/message.ts +24 -4
- package/src/platforms/teams/commands/reaction.ts +12 -2
- package/src/platforms/teams/commands/snapshot.test.ts +1 -1
- package/src/platforms/teams/commands/snapshot.ts +59 -39
- package/src/platforms/teams/commands/team.test.ts +2 -2
- package/src/platforms/teams/commands/team.ts +6 -1
- package/src/platforms/teams/commands/user.ts +18 -3
- package/src/platforms/teams/commands/whoami.ts +6 -1
- package/src/platforms/teams/credential-manager.test.ts +25 -0
- package/src/platforms/teams/credential-manager.ts +13 -3
- package/src/platforms/teams/ensure-auth.test.ts +6 -1
- package/src/platforms/teams/ensure-auth.ts +7 -2
- package/src/platforms/teams/token-extractor.ts +77 -12
- package/src/platforms/teams/types.test.ts +17 -0
- package/src/platforms/teams/types.ts +6 -0
- package/src/platforms/webex/client.test.ts +157 -13
- package/src/platforms/webex/client.ts +64 -15
- package/src/platforms/webex/commands/auth.test.ts +122 -1
- package/src/platforms/webex/commands/auth.ts +72 -17
- package/src/platforms/webex/commands/snapshot.test.ts +14 -1
- package/src/platforms/webex/commands/snapshot.ts +17 -9
- package/src/platforms/webex/credential-manager.test.ts +63 -0
- package/src/platforms/webex/credential-manager.ts +22 -8
- package/src/platforms/webex/encryption.test.ts +54 -0
- package/src/platforms/webex/encryption.ts +3 -1
- package/src/platforms/webex/ensure-auth.ts +10 -2
- package/src/platforms/webex/token-extractor.test.ts +32 -3
- package/src/platforms/webex/token-extractor.ts +26 -5
|
@@ -14,48 +14,60 @@ export async function snapshotAction(options) {
|
|
|
14
14
|
}
|
|
15
15
|
const client = await new DiscordClient().login({ token: config.token });
|
|
16
16
|
const serverId = config.current_server;
|
|
17
|
-
const messageLimit = options.limit || 20;
|
|
18
17
|
const snapshot = {};
|
|
19
18
|
const server = await client.getServer(serverId);
|
|
20
19
|
snapshot.server = {
|
|
21
20
|
id: server.id,
|
|
22
21
|
name: server.name,
|
|
23
22
|
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
23
|
+
const isFull = options.full || options.channelsOnly || options.usersOnly;
|
|
24
|
+
if (isFull) {
|
|
25
|
+
const messageLimit = options.limit || 20;
|
|
26
|
+
if (!options.usersOnly) {
|
|
27
|
+
const channels = await client.listChannels(serverId);
|
|
28
|
+
snapshot.channels = channels.map((ch) => ({
|
|
29
|
+
id: ch.id,
|
|
30
|
+
name: ch.name,
|
|
31
|
+
type: ch.type,
|
|
32
|
+
topic: ch.topic,
|
|
33
|
+
}));
|
|
34
|
+
if (!options.channelsOnly) {
|
|
35
|
+
const isTextChannel = (ch) => ch.type === 0 || ch.type === 5;
|
|
36
|
+
const textChannels = channels.filter(isTextChannel);
|
|
37
|
+
const channelMessages = await parallelMap(textChannels, async (channel) => {
|
|
38
|
+
const messages = await client.getMessages(channel.id, messageLimit);
|
|
39
|
+
return messages.map((msg) => ({
|
|
40
|
+
...msg,
|
|
41
|
+
channel_name: channel.name,
|
|
42
|
+
}));
|
|
43
|
+
}, 5);
|
|
44
|
+
snapshot.recent_messages = channelMessages.flat().map((msg) => ({
|
|
45
|
+
channel_id: msg.channel_id,
|
|
46
|
+
channel_name: msg.channel_name,
|
|
47
|
+
id: msg.id,
|
|
48
|
+
author: msg.author.username,
|
|
49
|
+
content: msg.content,
|
|
50
|
+
timestamp: msg.timestamp,
|
|
40
51
|
}));
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
if (!options.channelsOnly) {
|
|
55
|
+
const users = await client.listUsers(serverId);
|
|
56
|
+
snapshot.members = users.map((u) => ({
|
|
57
|
+
id: u.id,
|
|
58
|
+
username: u.username,
|
|
59
|
+
global_name: u.global_name || null,
|
|
49
60
|
}));
|
|
50
61
|
}
|
|
51
62
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
63
|
+
else {
|
|
64
|
+
if (!options.usersOnly) {
|
|
65
|
+
const channels = await client.listChannels(serverId);
|
|
66
|
+
const textChannels = channels.filter((ch) => ch.type === 0 || ch.type === 5);
|
|
67
|
+
snapshot.channels = textChannels.map((ch) => ({ id: ch.id, name: ch.name }));
|
|
68
|
+
}
|
|
69
|
+
snapshot.hint =
|
|
70
|
+
"Use 'message list <channel>' for messages, 'channel info <channel>' for channel details, 'user list' for members.";
|
|
59
71
|
}
|
|
60
72
|
console.log(formatOutput(snapshot, options.pretty));
|
|
61
73
|
}
|
|
@@ -64,14 +76,16 @@ export async function snapshotAction(options) {
|
|
|
64
76
|
}
|
|
65
77
|
}
|
|
66
78
|
export const snapshotCommand = new Command('snapshot')
|
|
67
|
-
.description('Get
|
|
79
|
+
.description('Get server overview for AI agents (brief by default, use --full for comprehensive data)')
|
|
80
|
+
.option('--full', 'Include messages and members (verbose)')
|
|
68
81
|
.option('--channels-only', 'Include only channels (exclude messages and members)')
|
|
69
82
|
.option('--users-only', 'Include only members (exclude channels and messages)')
|
|
70
|
-
.option('--limit <n>', 'Number of recent messages per channel (default: 20)', '20')
|
|
83
|
+
.option('--limit <n>', 'Number of recent messages per channel with --full (default: 20)', '20')
|
|
71
84
|
.action(async (options) => {
|
|
72
85
|
await snapshotAction({
|
|
73
86
|
channelsOnly: options.channelsOnly,
|
|
74
87
|
usersOnly: options.usersOnly,
|
|
88
|
+
full: options.full,
|
|
75
89
|
limit: parseInt(options.limit, 10),
|
|
76
90
|
pretty: options.pretty,
|
|
77
91
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../../../../src/platforms/discord/commands/snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAA;AAGhE,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../../../../src/platforms/discord/commands/snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAA;AAGhE,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,OAMpC;IACC,IAAI,CAAC;QACH,MAAM,WAAW,GAAG,IAAI,wBAAwB,EAAE,CAAA;QAClD,MAAM,MAAM,GAAG,MAAM,WAAW,CAAC,IAAI,EAAE,CAAA;QAEvC,IAAI,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,MAAM,CAAC,cAAc,EAAE,CAAC;YAC5C,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,KAAK,EAAE,mDAAmD,EAAE,EAAE,OAAO,CAAC,MA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B,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;QAClC,MAAM,EAAE,OAAO,CAAC,MAAM;KACvB,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -3,6 +3,7 @@ import type { BotOption } from './shared.js';
|
|
|
3
3
|
interface SnapshotOption extends BotOption {
|
|
4
4
|
channelsOnly?: boolean;
|
|
5
5
|
usersOnly?: boolean;
|
|
6
|
+
full?: boolean;
|
|
6
7
|
limit?: number;
|
|
7
8
|
}
|
|
8
9
|
interface SnapshotResult {
|
|
@@ -23,6 +24,7 @@ interface SnapshotResult {
|
|
|
23
24
|
username: string;
|
|
24
25
|
global_name: string | null;
|
|
25
26
|
}>;
|
|
27
|
+
hint?: string;
|
|
26
28
|
error?: string;
|
|
27
29
|
}
|
|
28
30
|
export declare function snapshotAction(options: SnapshotOption): Promise<SnapshotResult>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../../../../../src/platforms/discordbot/commands/snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAMnC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAGzC,UAAU,cAAe,SAAQ,SAAS;IACxC,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,UAAU,cAAc;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC;QACf,EAAE,EAAE,MAAM,CAAA;QACV,IAAI,EAAE,MAAM,CAAA;QACZ,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,QAAQ,CAAC,EAAE,KAAK,CAAC;YACf,EAAE,EAAE,MAAM,CAAA;YACV,MAAM,EAAE,MAAM,CAAA;YACd,OAAO,EAAE,MAA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;KAC3B,CAAC,CAAA;IACF,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,wBAAsB,cAAc,CAAC,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,CAyErF;AAED,eAAO,MAAM,eAAe,SAoBxB,CAAA"}
|
|
@@ -10,46 +10,56 @@ export async function snapshotAction(options) {
|
|
|
10
10
|
return { error: 'No server set. Run "server switch <server-id>" first.' };
|
|
11
11
|
}
|
|
12
12
|
const client = await getClient(options);
|
|
13
|
-
const
|
|
14
|
-
if (
|
|
15
|
-
const
|
|
13
|
+
const isFull = options.full || options.channelsOnly || options.usersOnly;
|
|
14
|
+
if (isFull) {
|
|
15
|
+
const limit = options.limit ?? 5;
|
|
16
|
+
if (options.usersOnly) {
|
|
17
|
+
const users = await client.listUsers(serverId);
|
|
18
|
+
return {
|
|
19
|
+
server_id: serverId,
|
|
20
|
+
users: users.map((u) => ({
|
|
21
|
+
id: u.id,
|
|
22
|
+
username: u.username,
|
|
23
|
+
global_name: u.global_name ?? null,
|
|
24
|
+
})),
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
const allChannels = await client.listChannels(serverId);
|
|
28
|
+
const textChannels = allChannels.filter((ch) => ch.type === 0);
|
|
29
|
+
if (options.channelsOnly) {
|
|
30
|
+
return {
|
|
31
|
+
server_id: serverId,
|
|
32
|
+
channels: textChannels.map((ch) => ({
|
|
33
|
+
id: ch.id,
|
|
34
|
+
name: ch.name,
|
|
35
|
+
type: ch.type,
|
|
36
|
+
})),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
const channelsWithMessages = await Promise.all(textChannels.map(async (ch) => {
|
|
40
|
+
const messages = await client.getMessages(ch.id, limit);
|
|
41
|
+
return {
|
|
42
|
+
id: ch.id,
|
|
43
|
+
name: ch.name,
|
|
44
|
+
messages: messages.map((msg) => ({
|
|
45
|
+
id: msg.id,
|
|
46
|
+
author: msg.author.username,
|
|
47
|
+
content: msg.content,
|
|
48
|
+
timestamp: msg.timestamp,
|
|
49
|
+
})),
|
|
50
|
+
};
|
|
51
|
+
}));
|
|
16
52
|
return {
|
|
17
53
|
server_id: serverId,
|
|
18
|
-
|
|
19
|
-
id: u.id,
|
|
20
|
-
username: u.username,
|
|
21
|
-
global_name: u.global_name ?? null,
|
|
22
|
-
})),
|
|
54
|
+
channels: channelsWithMessages,
|
|
23
55
|
};
|
|
24
56
|
}
|
|
25
57
|
const allChannels = await client.listChannels(serverId);
|
|
26
58
|
const textChannels = allChannels.filter((ch) => ch.type === 0);
|
|
27
|
-
if (options.channelsOnly) {
|
|
28
|
-
return {
|
|
29
|
-
server_id: serverId,
|
|
30
|
-
channels: textChannels.map((ch) => ({
|
|
31
|
-
id: ch.id,
|
|
32
|
-
name: ch.name,
|
|
33
|
-
type: ch.type,
|
|
34
|
-
})),
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
const channelsWithMessages = await Promise.all(textChannels.map(async (ch) => {
|
|
38
|
-
const messages = await client.getMessages(ch.id, limit);
|
|
39
|
-
return {
|
|
40
|
-
id: ch.id,
|
|
41
|
-
name: ch.name,
|
|
42
|
-
messages: messages.map((msg) => ({
|
|
43
|
-
id: msg.id,
|
|
44
|
-
author: msg.author.username,
|
|
45
|
-
content: msg.content,
|
|
46
|
-
timestamp: msg.timestamp,
|
|
47
|
-
})),
|
|
48
|
-
};
|
|
49
|
-
}));
|
|
50
59
|
return {
|
|
51
60
|
server_id: serverId,
|
|
52
|
-
channels:
|
|
61
|
+
channels: textChannels.map((ch) => ({ id: ch.id, name: ch.name })),
|
|
62
|
+
hint: "Use 'message list <channel>' for messages, 'channel info <channel>' for channel details, 'user list' for members.",
|
|
53
63
|
};
|
|
54
64
|
}
|
|
55
65
|
catch (error) {
|
|
@@ -57,10 +67,11 @@ export async function snapshotAction(options) {
|
|
|
57
67
|
}
|
|
58
68
|
}
|
|
59
69
|
export const snapshotCommand = new Command('snapshot')
|
|
60
|
-
.description('Server overview for AI
|
|
70
|
+
.description('Server overview for AI agents (brief by default, use --full for comprehensive data)')
|
|
71
|
+
.option('--full', 'Include messages and members (verbose)')
|
|
61
72
|
.option('--channels-only', 'List channels only, skip messages')
|
|
62
73
|
.option('--users-only', 'List users only')
|
|
63
|
-
.option('--limit <n>', 'Messages per channel (default: 5)', '5')
|
|
74
|
+
.option('--limit <n>', 'Messages per channel with --full (default: 5)', '5')
|
|
64
75
|
.option('--server <id>', 'Use specific server')
|
|
65
76
|
.option('--bot <id>', 'Use specific bot')
|
|
66
77
|
.option('--pretty', 'Pretty print JSON output')
|
|
@@ -68,6 +79,7 @@ export const snapshotCommand = new Command('snapshot')
|
|
|
68
79
|
try {
|
|
69
80
|
const result = await snapshotAction({
|
|
70
81
|
...options,
|
|
82
|
+
full: options.full,
|
|
71
83
|
limit: parseInt(options.limit, 10),
|
|
72
84
|
});
|
|
73
85
|
console.log(formatOutput(result, options.pretty));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../../../../src/platforms/discordbot/commands/snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD,OAAO,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAA;AAEnE,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../../../../src/platforms/discordbot/commands/snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD,OAAO,EAAE,2B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|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../../../../../src/platforms/slack/commands/snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../../../../../src/platforms/slack/commands/snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AA4InC,eAAO,MAAM,eAAe,SAcxB,CAAA"}
|
|
@@ -14,66 +14,18 @@ async function snapshotAction(options) {
|
|
|
14
14
|
}
|
|
15
15
|
const client = await new SlackClient().login({ token: workspace.token, cookie: workspace.cookie });
|
|
16
16
|
const auth = await client.testAuth();
|
|
17
|
-
const messageLimit = options.limit || 20;
|
|
18
17
|
const snapshot = {
|
|
19
18
|
workspace: {
|
|
20
19
|
id: auth.team_id,
|
|
21
20
|
name: auth.team,
|
|
22
21
|
},
|
|
23
22
|
};
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
id: ch.id,
|
|
28
|
-
name: ch.name,
|
|
29
|
-
is_private: ch.is_private,
|
|
30
|
-
is_archived: ch.is_archived,
|
|
31
|
-
created: ch.created,
|
|
32
|
-
topic: ch.topic?.value,
|
|
33
|
-
purpose: ch.purpose?.value,
|
|
34
|
-
}));
|
|
35
|
-
if (!options.channelsOnly) {
|
|
36
|
-
const activeChannels = channels.filter((ch) => !ch.is_archived);
|
|
37
|
-
const channelMessages = await parallelMap(activeChannels, async (channel) => {
|
|
38
|
-
const messages = await client.getMessages(channel.id, messageLimit);
|
|
39
|
-
return messages.map((msg) => ({
|
|
40
|
-
...msg,
|
|
41
|
-
channel_id: channel.id,
|
|
42
|
-
channel_name: channel.name,
|
|
43
|
-
}));
|
|
44
|
-
}, 5);
|
|
45
|
-
snapshot.recent_messages = channelMessages.flat().map((msg) => ({
|
|
46
|
-
channel_id: msg.channel_id,
|
|
47
|
-
channel_name: msg.channel_name,
|
|
48
|
-
ts: msg.ts,
|
|
49
|
-
text: msg.text,
|
|
50
|
-
user: msg.user,
|
|
51
|
-
username: msg.username,
|
|
52
|
-
thread_ts: msg.thread_ts,
|
|
53
|
-
}));
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
if (!options.channelsOnly) {
|
|
57
|
-
const users = await client.listUsers();
|
|
58
|
-
snapshot.users = users.map((u) => ({
|
|
59
|
-
id: u.id,
|
|
60
|
-
name: u.name,
|
|
61
|
-
real_name: u.real_name,
|
|
62
|
-
is_admin: u.is_admin,
|
|
63
|
-
is_bot: u.is_bot,
|
|
64
|
-
profile: u.profile,
|
|
65
|
-
}));
|
|
23
|
+
const isFull = options.full || options.channelsOnly || options.usersOnly;
|
|
24
|
+
if (isFull) {
|
|
25
|
+
await buildFullSnapshot(client, snapshot, options);
|
|
66
26
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
snapshot.usergroups = usergroups.map((ug) => ({
|
|
70
|
-
id: ug.id,
|
|
71
|
-
name: ug.name,
|
|
72
|
-
handle: ug.handle,
|
|
73
|
-
description: ug.description,
|
|
74
|
-
user_count: ug.user_count,
|
|
75
|
-
users: ug.users,
|
|
76
|
-
}));
|
|
27
|
+
else {
|
|
28
|
+
await buildBriefSnapshot(client, snapshot, options);
|
|
77
29
|
}
|
|
78
30
|
console.log(formatOutput(snapshot, options.pretty));
|
|
79
31
|
}
|
|
@@ -81,15 +33,83 @@ async function snapshotAction(options) {
|
|
|
81
33
|
handleError(error);
|
|
82
34
|
}
|
|
83
35
|
}
|
|
36
|
+
async function buildBriefSnapshot(client, snapshot, options) {
|
|
37
|
+
if (!options.usersOnly) {
|
|
38
|
+
const channels = await client.listChannels();
|
|
39
|
+
const active = channels.filter((ch) => !ch.is_archived);
|
|
40
|
+
snapshot.channels = active.map((ch) => ({ id: ch.id, name: ch.name }));
|
|
41
|
+
}
|
|
42
|
+
snapshot.hint =
|
|
43
|
+
"Use 'message list <channel>' for messages, 'channel info <channel>' for channel details, 'user list' for users, 'usergroup list' for groups.";
|
|
44
|
+
}
|
|
45
|
+
async function buildFullSnapshot(client, snapshot, options) {
|
|
46
|
+
const messageLimit = options.limit || 20;
|
|
47
|
+
if (!options.usersOnly) {
|
|
48
|
+
const channels = await client.listChannels();
|
|
49
|
+
snapshot.channels = channels.map((ch) => ({
|
|
50
|
+
id: ch.id,
|
|
51
|
+
name: ch.name,
|
|
52
|
+
is_private: ch.is_private,
|
|
53
|
+
is_archived: ch.is_archived,
|
|
54
|
+
created: ch.created,
|
|
55
|
+
topic: ch.topic?.value,
|
|
56
|
+
purpose: ch.purpose?.value,
|
|
57
|
+
}));
|
|
58
|
+
if (!options.channelsOnly) {
|
|
59
|
+
const activeChannels = channels.filter((ch) => !ch.is_archived);
|
|
60
|
+
const channelMessages = await parallelMap(activeChannels, async (channel) => {
|
|
61
|
+
const messages = await client.getMessages(channel.id, messageLimit);
|
|
62
|
+
return messages.map((msg) => ({
|
|
63
|
+
...msg,
|
|
64
|
+
channel_id: channel.id,
|
|
65
|
+
channel_name: channel.name,
|
|
66
|
+
}));
|
|
67
|
+
}, 5);
|
|
68
|
+
snapshot.recent_messages = channelMessages.flat().map((msg) => ({
|
|
69
|
+
channel_id: msg.channel_id,
|
|
70
|
+
channel_name: msg.channel_name,
|
|
71
|
+
ts: msg.ts,
|
|
72
|
+
text: msg.text,
|
|
73
|
+
user: msg.user,
|
|
74
|
+
username: msg.username,
|
|
75
|
+
thread_ts: msg.thread_ts,
|
|
76
|
+
}));
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
if (!options.channelsOnly) {
|
|
80
|
+
const users = await client.listUsers();
|
|
81
|
+
snapshot.users = users.map((u) => ({
|
|
82
|
+
id: u.id,
|
|
83
|
+
name: u.name,
|
|
84
|
+
real_name: u.real_name,
|
|
85
|
+
is_admin: u.is_admin,
|
|
86
|
+
is_bot: u.is_bot,
|
|
87
|
+
profile: u.profile,
|
|
88
|
+
}));
|
|
89
|
+
}
|
|
90
|
+
if (!options.channelsOnly && !options.usersOnly) {
|
|
91
|
+
const usergroups = await client.listUsergroups({ includeUsers: true, includeCount: true });
|
|
92
|
+
snapshot.usergroups = usergroups.map((ug) => ({
|
|
93
|
+
id: ug.id,
|
|
94
|
+
name: ug.name,
|
|
95
|
+
handle: ug.handle,
|
|
96
|
+
description: ug.description,
|
|
97
|
+
user_count: ug.user_count,
|
|
98
|
+
users: ug.users,
|
|
99
|
+
}));
|
|
100
|
+
}
|
|
101
|
+
}
|
|
84
102
|
export const snapshotCommand = new Command('snapshot')
|
|
85
|
-
.description('Get
|
|
103
|
+
.description('Get workspace overview for AI agents (brief by default, use --full for comprehensive data)')
|
|
104
|
+
.option('--full', 'Include messages, users, and user groups (verbose)')
|
|
86
105
|
.option('--channels-only', 'Include only channels (exclude messages and users)')
|
|
87
106
|
.option('--users-only', 'Include only users (exclude channels and messages)')
|
|
88
|
-
.option('--limit <n>', 'Number of recent messages per channel (default: 20)', '20')
|
|
107
|
+
.option('--limit <n>', 'Number of recent messages per channel with --full (default: 20)', '20')
|
|
89
108
|
.action(async (options) => {
|
|
90
109
|
await snapshotAction({
|
|
91
110
|
channelsOnly: options.channelsOnly,
|
|
92
111
|
usersOnly: options.usersOnly,
|
|
112
|
+
full: options.full,
|
|
93
113
|
limit: parseInt(options.limit, 10),
|
|
94
114
|
pretty: options.pretty,
|
|
95
115
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../../../../src/platforms/slack/commands/snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD,OAAO,EAAE,WAAW,EAAE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M,eAAe,GAAG,IAAI,OAAO,CAAC,UAAU,CAAC;KACnD,WAAW,CAAC,4FAA4F,CAAC;KACzG,MAAM,CAAC,QAAQ,EAAE,oDAAoD,CAAC;KACtE,MAAM,CAAC,iBAAiB,EAAE,oDAAoD,CAAC;KAC/E,MAAM,CAAC,cAAc,EAAE,oDAAoD,CAAC;KAC5E,MAAM,CAAC,aAAa,EAAE,iEAAiE,EAAE,IAAI,CAAC;KAC9F,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;IACxB,MAAM,cAAc,CAAC;QACnB,YAAY,EAAE,OAAO,CAAC,YAAY;QAClC,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC;QAClC,MAAM,EAAE,OAAO,CAAC,MAAM;KACvB,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
import type { TeamsChannel, TeamsFile, TeamsMessage, TeamsTeam, TeamsUser } from './types.js';
|
|
1
|
+
import type { TeamsAccountType, TeamsChannel, TeamsFile, TeamsMessage, TeamsRegion, TeamsTeam, TeamsUser } from './types.js';
|
|
2
2
|
export declare class TeamsClient {
|
|
3
3
|
private token;
|
|
4
4
|
private tokenExpiresAt?;
|
|
5
|
+
private isPersonalAccount;
|
|
6
|
+
private region;
|
|
7
|
+
private regionDiscovered;
|
|
5
8
|
private buckets;
|
|
6
9
|
private globalRateLimitUntil;
|
|
7
10
|
login(credentials?: {
|
|
8
11
|
token: string;
|
|
9
12
|
tokenExpiresAt?: string;
|
|
13
|
+
accountType?: TeamsAccountType;
|
|
14
|
+
region?: TeamsRegion;
|
|
10
15
|
}): Promise<this>;
|
|
16
|
+
getRegion(): TeamsRegion;
|
|
11
17
|
private ensureAuth;
|
|
12
18
|
private isTokenExpired;
|
|
13
19
|
private getBucketKey;
|
|
@@ -15,6 +21,8 @@ export declare class TeamsClient {
|
|
|
15
21
|
private updateBucket;
|
|
16
22
|
private handleRateLimitResponse;
|
|
17
23
|
private sleep;
|
|
24
|
+
private getMsgApiBase;
|
|
25
|
+
private discoverRegion;
|
|
18
26
|
private request;
|
|
19
27
|
private requestFormData;
|
|
20
28
|
testAuth(): Promise<TeamsUser>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/platforms/teams/client.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/platforms/teams/client.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,gBAAgB,EAChB,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,WAAW,EACX,SAAS,EACT,SAAS,EACV,MAAM,SAAS,CAAA;AAehB,qBAAa,WAAW;IACtB,OAAO,CAAC,KAAK,CAAsB;IACnC,OAAO,CAAC,cAAc,CAAC,CAAM;IAC7B,OAAO,CAAC,iBAAiB,CAAiB;IAC1C,OAAO,CAAC,MAAM,CAA8B;IAC5C,OAAO,CAAC,gBAAgB,CAAiB;IACzC,OAAO,CAAC,OAAO,CAA0C;IACzD,OAAO,CAAC,oBAAoB,CAAY;IAElC,KAAK,CAAC,WAAW,CAAC,EAAE;QACxB,KAAK,EAAE,MAAM,CAAA;QACb,cAAc,CAAC,EAAE,MAAM,CAAA;QACvB,WAAW,CAAC,EAAE,gBAAgB,CAAA;QAC9B,MAAM,CAAC,EAAE,WAAW,CAAA;KACrB,GAAG,OAAO,CAAC,IAAI,CAAC;IAmCjB,SAAS,IAAI,WAAW;IAIxB,OAAO,CAAC,UAAU;IAOlB,OAAO,CAAC,cAAc;IAOtB,OAAO,CAAC,YAAY;YAUN,gBAAgB;IAa9B,OAAO,CAAC,YAAY;YAYN,uBAAuB;IASrC,OAAO,CAAC,KAAK;IAIb,OAAO,CAAC,aAAa;YAKP,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