agent-messenger 2.8.0 → 2.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +1 -1
- package/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/commands/snapshot.d.ts +1 -0
- package/dist/src/platforms/teams/commands/snapshot.d.ts.map +1 -1
- package/dist/src/platforms/teams/commands/snapshot.js +44 -31
- package/dist/src/platforms/teams/commands/snapshot.js.map +1 -1
- package/dist/src/platforms/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/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/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/commands/snapshot.test.ts +1 -1
- package/src/platforms/teams/commands/snapshot.ts +53 -38
- package/src/platforms/webex/commands/snapshot.test.ts +14 -1
- package/src/platforms/webex/commands/snapshot.ts +17 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../../../../../src/platforms/webex/commands/snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAOnC,wBAAsB,cAAc,CAAC,OAAO,EAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../../../../../src/platforms/webex/commands/snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAOnC,wBAAsB,cAAc,CAAC,OAAO,EAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA6BjG;AAED,eAAO,MAAM,eAAe,SASxB,CAAA"}
|
|
@@ -10,13 +10,18 @@ export async function snapshotAction(options) {
|
|
|
10
10
|
const allSpaces = await client.listSpaces({ max: 100 });
|
|
11
11
|
const spaces = allSpaces.filter((s) => myRoomIds.has(s.id));
|
|
12
12
|
const snapshot = {
|
|
13
|
-
spaces:
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
spaces: options.full
|
|
14
|
+
? spaces.map((s) => ({
|
|
15
|
+
id: s.id,
|
|
16
|
+
title: s.title,
|
|
17
|
+
type: s.type,
|
|
18
|
+
lastActivity: s.lastActivity,
|
|
19
|
+
}))
|
|
20
|
+
: spaces.map((s) => ({ id: s.id, title: s.title })),
|
|
19
21
|
};
|
|
22
|
+
if (!options.full) {
|
|
23
|
+
snapshot.hint = "Use 'message list <space>' for messages, 'space info <space>' for space details.";
|
|
24
|
+
}
|
|
20
25
|
console.log(formatOutput(snapshot, options.pretty));
|
|
21
26
|
}
|
|
22
27
|
catch (error) {
|
|
@@ -24,10 +29,12 @@ export async function snapshotAction(options) {
|
|
|
24
29
|
}
|
|
25
30
|
}
|
|
26
31
|
export const snapshotCommand = new Command('snapshot')
|
|
27
|
-
.description('Get workspace
|
|
32
|
+
.description('Get workspace overview for AI agents (brief by default, use --full for comprehensive data)')
|
|
33
|
+
.option('--full', 'Include full space details (verbose)')
|
|
28
34
|
.option('--pretty', 'Pretty print JSON output')
|
|
29
35
|
.action(async (options) => {
|
|
30
36
|
await snapshotAction({
|
|
37
|
+
full: options.full,
|
|
31
38
|
pretty: options.pretty,
|
|
32
39
|
});
|
|
33
40
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../../../../src/platforms/webex/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,WAAW,EAAE,MAAM,WAAW,CAAA;AAEvC,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../../../../src/platforms/webex/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,WAAW,EAAE,MAAM,WAAW,CAAA;AAEvC,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,OAA6C;IAChF,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,IAAI,WAAW,EAAE,CAAC,KAAK,EAAE,CAAA;QAE9C,MAAM,aAAa,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAA;QAClE,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;QAE7D,MAAM,SAAS,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAA;QACvD,MAAM,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;QAE3D,MAAM,QAAQ,GAAwB;YACpC,MAAM,EAAE,OAAO,CAAC,IAAI;gBAClB,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;oBACjB,EAAE,EAAE,CAAC,CAAC,EAAE;oBACR,KAAK,EAAE,CAAC,CAAC,KAAK;oBACd,IAAI,EAAE,CAAC,CAAC,IAAI;oBACZ,YAAY,EAAE,CAAC,CAAC,YAAY;iBAC7B,CAAC,CAAC;gBACL,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC;SACtD,CAAA;QAED,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;YAClB,QAAQ,CAAC,IAAI,GAAG,kFAAkF,CAAA;QACpG,CAAC;QAED,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAA;IACrD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,WAAW,CAAC,KAAc,CAAC,CAAA;IAC7B,CAAC;AACH,CAAC;AAED,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,OAAO,CAAC,UAAU,CAAC;KACnD,WAAW,CAAC,4FAA4F,CAAC;KACzG,MAAM,CAAC,QAAQ,EAAE,sCAAsC,CAAC;KACxD,MAAM,CAAC,UAAU,EAAE,0BAA0B,CAAC;KAC9C,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;IACxB,MAAM,cAAc,CAAC;QACnB,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,MAAM,EAAE,OAAO,CAAC,MAAM;KACvB,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -46,16 +46,6 @@ Or from within Claude Code:
|
|
|
46
46
|
/plugin install agent-messenger
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
### OpenCode (via plugin)
|
|
50
|
-
|
|
51
|
-
Add to your `opencode.jsonc`:
|
|
52
|
-
|
|
53
|
-
```jsonc
|
|
54
|
-
{
|
|
55
|
-
"plugins": ["agent-messenger"],
|
|
56
|
-
}
|
|
57
|
-
```
|
|
58
|
-
|
|
59
49
|
## How It Works
|
|
60
50
|
|
|
61
51
|
Once installed, your AI agent can:
|
|
@@ -170,21 +170,31 @@ agent-channeltalk bot list --limit 50
|
|
|
170
170
|
|
|
171
171
|
### Snapshot Command
|
|
172
172
|
|
|
173
|
-
Get
|
|
173
|
+
Get workspace overview for AI agents (brief by default):
|
|
174
174
|
|
|
175
175
|
```bash
|
|
176
|
-
#
|
|
176
|
+
# Brief snapshot (default) — fast, minimal API calls
|
|
177
177
|
agent-channeltalk snapshot
|
|
178
178
|
|
|
179
|
-
#
|
|
180
|
-
agent-channeltalk snapshot --
|
|
181
|
-
agent-channeltalk snapshot --chats-only
|
|
179
|
+
# Full snapshot — includes messages, managers, bots (slow, large output)
|
|
180
|
+
agent-channeltalk snapshot --full
|
|
182
181
|
|
|
183
|
-
#
|
|
184
|
-
agent-channeltalk snapshot --
|
|
182
|
+
# Filtered full snapshots
|
|
183
|
+
agent-channeltalk snapshot --full --groups-only
|
|
184
|
+
agent-channeltalk snapshot --full --chats-only
|
|
185
|
+
|
|
186
|
+
# Limit messages per group/chat (only with --full)
|
|
187
|
+
agent-channeltalk snapshot --full --limit 10
|
|
185
188
|
```
|
|
186
189
|
|
|
187
|
-
|
|
190
|
+
Default returns brief JSON with:
|
|
191
|
+
|
|
192
|
+
- Workspace metadata (id, name)
|
|
193
|
+
- Groups (id, name)
|
|
194
|
+
- UserChat summary (total count, by state)
|
|
195
|
+
- Hint for next commands
|
|
196
|
+
|
|
197
|
+
With `--full`, returns comprehensive JSON with:
|
|
188
198
|
|
|
189
199
|
- Workspace metadata (id, name)
|
|
190
200
|
- Groups with recent messages (id, name, messages)
|
|
@@ -196,21 +196,31 @@ agent-channeltalkbot bot delete <bot-id> --force
|
|
|
196
196
|
|
|
197
197
|
### Snapshot Command
|
|
198
198
|
|
|
199
|
-
Get
|
|
199
|
+
Get workspace overview for AI agents (brief by default):
|
|
200
200
|
|
|
201
201
|
```bash
|
|
202
|
-
#
|
|
202
|
+
# Brief snapshot (default) — fast, minimal API calls
|
|
203
203
|
agent-channeltalkbot snapshot
|
|
204
204
|
|
|
205
|
-
#
|
|
205
|
+
# Full snapshot — includes messages, managers, bots (slow, large output)
|
|
206
|
+
agent-channeltalkbot snapshot --full
|
|
207
|
+
|
|
208
|
+
# Filtered snapshots (work in both brief and full mode)
|
|
206
209
|
agent-channeltalkbot snapshot --groups-only
|
|
207
210
|
agent-channeltalkbot snapshot --chats-only
|
|
208
211
|
|
|
209
|
-
# Limit messages per group/chat
|
|
210
|
-
agent-channeltalkbot snapshot --limit 10
|
|
212
|
+
# Limit messages per group/chat (only with --full)
|
|
213
|
+
agent-channeltalkbot snapshot --full --limit 10
|
|
211
214
|
```
|
|
212
215
|
|
|
213
|
-
|
|
216
|
+
Default returns brief JSON with:
|
|
217
|
+
|
|
218
|
+
- Workspace metadata (id, name, homepage_url, description)
|
|
219
|
+
- Groups (id, name)
|
|
220
|
+
- UserChat summary (opened/snoozed/closed counts)
|
|
221
|
+
- Hint for next commands
|
|
222
|
+
|
|
223
|
+
With `--full`, returns comprehensive JSON with:
|
|
214
224
|
|
|
215
225
|
- Workspace metadata (id, name, homepage_url, description)
|
|
216
226
|
- Groups with recent messages (id, name, messages)
|
|
@@ -179,20 +179,36 @@ agent-discord file info <channel-id> <file-id>
|
|
|
179
179
|
|
|
180
180
|
### Snapshot Command
|
|
181
181
|
|
|
182
|
-
Get
|
|
182
|
+
Get server overview for AI agents (brief by default):
|
|
183
183
|
|
|
184
184
|
```bash
|
|
185
|
-
#
|
|
185
|
+
# Brief snapshot (default) — fast, minimal API calls
|
|
186
186
|
agent-discord snapshot
|
|
187
187
|
|
|
188
|
-
#
|
|
189
|
-
agent-discord snapshot --
|
|
190
|
-
agent-discord snapshot --users-only
|
|
188
|
+
# Full snapshot — includes messages and members (slow, large output)
|
|
189
|
+
agent-discord snapshot --full
|
|
191
190
|
|
|
192
|
-
#
|
|
193
|
-
agent-discord snapshot --
|
|
191
|
+
# Filtered full snapshots
|
|
192
|
+
agent-discord snapshot --full --channels-only
|
|
193
|
+
agent-discord snapshot --full --users-only
|
|
194
|
+
|
|
195
|
+
# Limit messages per channel (only with --full)
|
|
196
|
+
agent-discord snapshot --full --limit 10
|
|
194
197
|
```
|
|
195
198
|
|
|
199
|
+
Default returns brief JSON with:
|
|
200
|
+
|
|
201
|
+
- Server metadata (id, name)
|
|
202
|
+
- Channels (id, name) — text channels only
|
|
203
|
+
- Hint for next commands
|
|
204
|
+
|
|
205
|
+
With `--full`, returns comprehensive JSON with:
|
|
206
|
+
|
|
207
|
+
- Server metadata (id, name)
|
|
208
|
+
- Channels (id, name, type, topic)
|
|
209
|
+
- Recent messages (id, content, author, timestamp)
|
|
210
|
+
- Members (id, username, global_name)
|
|
211
|
+
|
|
196
212
|
### DM Commands
|
|
197
213
|
|
|
198
214
|
```bash
|
|
@@ -231,20 +231,36 @@ agent-discordbot thread archive <thread-id>
|
|
|
231
231
|
|
|
232
232
|
### Snapshot Command
|
|
233
233
|
|
|
234
|
-
Get
|
|
234
|
+
Get server overview for AI agents (brief by default):
|
|
235
235
|
|
|
236
236
|
```bash
|
|
237
|
-
#
|
|
237
|
+
# Brief snapshot (default) — fast, minimal API calls
|
|
238
238
|
agent-discordbot snapshot
|
|
239
239
|
|
|
240
|
-
#
|
|
241
|
-
agent-discordbot snapshot --
|
|
242
|
-
agent-discordbot snapshot --users-only
|
|
240
|
+
# Full snapshot — includes messages and members (slow, large output)
|
|
241
|
+
agent-discordbot snapshot --full
|
|
243
242
|
|
|
244
|
-
#
|
|
245
|
-
agent-discordbot snapshot --
|
|
243
|
+
# Filtered full snapshots
|
|
244
|
+
agent-discordbot snapshot --full --channels-only
|
|
245
|
+
agent-discordbot snapshot --full --users-only
|
|
246
|
+
|
|
247
|
+
# Limit messages per channel (only with --full)
|
|
248
|
+
agent-discordbot snapshot --full --limit 10
|
|
246
249
|
```
|
|
247
250
|
|
|
251
|
+
Default returns brief JSON with:
|
|
252
|
+
|
|
253
|
+
- Server ID
|
|
254
|
+
- Channels (id, name) — text channels only
|
|
255
|
+
- Hint for next commands
|
|
256
|
+
|
|
257
|
+
With `--full`, returns comprehensive JSON with:
|
|
258
|
+
|
|
259
|
+
- Server ID
|
|
260
|
+
- Channels with messages (id, name, messages)
|
|
261
|
+
- Use `--full --channels-only` for channel type info
|
|
262
|
+
- Use `--full --users-only` for members (id, username, global_name)
|
|
263
|
+
|
|
248
264
|
## Key Differences from agent-discord
|
|
249
265
|
|
|
250
266
|
| Feature | agent-discord | agent-discordbot |
|
|
@@ -241,20 +241,37 @@ agent-slack file delete <file-id>
|
|
|
241
241
|
|
|
242
242
|
### Snapshot Command
|
|
243
243
|
|
|
244
|
-
Get
|
|
244
|
+
Get workspace overview for AI agents (brief by default):
|
|
245
245
|
|
|
246
246
|
```bash
|
|
247
|
-
#
|
|
247
|
+
# Brief snapshot (default) — fast, minimal API calls
|
|
248
248
|
agent-slack snapshot
|
|
249
249
|
|
|
250
|
-
#
|
|
251
|
-
agent-slack snapshot --
|
|
252
|
-
agent-slack snapshot --users-only
|
|
250
|
+
# Full snapshot — includes messages, users, user groups (slow, large output)
|
|
251
|
+
agent-slack snapshot --full
|
|
253
252
|
|
|
254
|
-
#
|
|
255
|
-
agent-slack snapshot --
|
|
253
|
+
# Filtered full snapshots
|
|
254
|
+
agent-slack snapshot --full --channels-only
|
|
255
|
+
agent-slack snapshot --full --users-only
|
|
256
|
+
|
|
257
|
+
# Limit messages per channel (only with --full)
|
|
258
|
+
agent-slack snapshot --full --limit 10
|
|
256
259
|
```
|
|
257
260
|
|
|
261
|
+
Default returns brief JSON with:
|
|
262
|
+
|
|
263
|
+
- Workspace metadata
|
|
264
|
+
- Channels (id, name) — non-archived only
|
|
265
|
+
- Hint for next commands
|
|
266
|
+
|
|
267
|
+
With `--full`, returns comprehensive JSON with:
|
|
268
|
+
|
|
269
|
+
- Workspace metadata
|
|
270
|
+
- Channels (id, name, topic, purpose, is_private, is_archived)
|
|
271
|
+
- Recent messages (ts, text, user, channel)
|
|
272
|
+
- Users (id, name, profile)
|
|
273
|
+
- User groups (id, name, handle, description, user_count, users)
|
|
274
|
+
|
|
258
275
|
### Activity Commands
|
|
259
276
|
|
|
260
277
|
```bash
|
|
@@ -209,20 +209,36 @@ agent-teams file download <file-id> <output-path>
|
|
|
209
209
|
|
|
210
210
|
### Snapshot Command
|
|
211
211
|
|
|
212
|
-
Get
|
|
212
|
+
Get team overview for AI agents (brief by default):
|
|
213
213
|
|
|
214
214
|
```bash
|
|
215
|
-
#
|
|
215
|
+
# Brief snapshot (default) — fast, minimal API calls
|
|
216
216
|
agent-teams snapshot
|
|
217
217
|
|
|
218
|
-
#
|
|
219
|
-
agent-teams snapshot --
|
|
220
|
-
agent-teams snapshot --users-only
|
|
218
|
+
# Full snapshot — includes messages and members (slow, large output)
|
|
219
|
+
agent-teams snapshot --full
|
|
221
220
|
|
|
222
|
-
#
|
|
223
|
-
agent-teams snapshot --
|
|
221
|
+
# Filtered full snapshots
|
|
222
|
+
agent-teams snapshot --full --channels-only
|
|
223
|
+
agent-teams snapshot --full --users-only
|
|
224
|
+
|
|
225
|
+
# Limit messages per channel (only with --full)
|
|
226
|
+
agent-teams snapshot --full --limit 10
|
|
224
227
|
```
|
|
225
228
|
|
|
229
|
+
Default returns brief JSON with:
|
|
230
|
+
|
|
231
|
+
- Team metadata (id, name)
|
|
232
|
+
- Channels (id, name)
|
|
233
|
+
- Hint for next commands
|
|
234
|
+
|
|
235
|
+
With `--full`, returns comprehensive JSON with:
|
|
236
|
+
|
|
237
|
+
- Team metadata (id, name)
|
|
238
|
+
- Channels (id, name, type, description)
|
|
239
|
+
- Recent messages (id, content, author, timestamp)
|
|
240
|
+
- Members (id, displayName, email)
|
|
241
|
+
|
|
226
242
|
## Global Options
|
|
227
243
|
|
|
228
244
|
All commands support these options:
|
|
@@ -321,7 +337,7 @@ if ! agent-teams auth status | grep -q "valid"; then
|
|
|
321
337
|
fi
|
|
322
338
|
|
|
323
339
|
# 2. Get team context
|
|
324
|
-
agent-teams snapshot
|
|
340
|
+
agent-teams snapshot > /tmp/teams-context.json
|
|
325
341
|
|
|
326
342
|
# 3. Send standup reminder
|
|
327
343
|
agent-teams message send $STANDUP_CHANNEL "Good morning! Time for standup."
|
|
@@ -176,13 +176,26 @@ agent-webex member list abc123 --limit 100
|
|
|
176
176
|
|
|
177
177
|
### Snapshot Command
|
|
178
178
|
|
|
179
|
-
Get workspace
|
|
179
|
+
Get workspace overview for AI agents (brief by default):
|
|
180
180
|
|
|
181
181
|
```bash
|
|
182
|
+
# Brief snapshot (default) — fast, minimal output
|
|
182
183
|
agent-webex snapshot
|
|
184
|
+
|
|
185
|
+
# Full snapshot — includes type and lastActivity
|
|
186
|
+
agent-webex snapshot --full
|
|
183
187
|
```
|
|
184
188
|
|
|
185
|
-
|
|
189
|
+
Default returns brief JSON with:
|
|
190
|
+
|
|
191
|
+
- Spaces (id, title) — only spaces you're a member of
|
|
192
|
+
- Hint for next commands
|
|
193
|
+
|
|
194
|
+
With `--full`, returns:
|
|
195
|
+
|
|
196
|
+
- Spaces (id, title, type, lastActivity)
|
|
197
|
+
|
|
198
|
+
For messages or members, use `message list <space-id>` or `member list <space-id>`.
|
|
186
199
|
|
|
187
200
|
## Global Options
|
|
188
201
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: agent-channeltalk
|
|
3
3
|
description: Interact with Channel Talk using extracted desktop app or browser credentials - read chats, send messages, search messages, manage groups
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.9.0
|
|
5
5
|
allowed-tools: Bash(agent-channeltalk:*)
|
|
6
6
|
metadata:
|
|
7
7
|
openclaw:
|
|
@@ -267,21 +267,31 @@ agent-channeltalk bot list --limit 50
|
|
|
267
267
|
|
|
268
268
|
### Snapshot Command
|
|
269
269
|
|
|
270
|
-
Get
|
|
270
|
+
Get workspace overview for AI agents (brief by default):
|
|
271
271
|
|
|
272
272
|
```bash
|
|
273
|
-
#
|
|
273
|
+
# Brief snapshot (default) — fast, minimal API calls
|
|
274
274
|
agent-channeltalk snapshot
|
|
275
275
|
|
|
276
|
-
#
|
|
277
|
-
agent-channeltalk snapshot --
|
|
278
|
-
agent-channeltalk snapshot --chats-only
|
|
276
|
+
# Full snapshot — includes messages, managers, bots (slow, large output)
|
|
277
|
+
agent-channeltalk snapshot --full
|
|
279
278
|
|
|
280
|
-
#
|
|
281
|
-
agent-channeltalk snapshot --
|
|
279
|
+
# Filtered full snapshots
|
|
280
|
+
agent-channeltalk snapshot --full --groups-only
|
|
281
|
+
agent-channeltalk snapshot --full --chats-only
|
|
282
|
+
|
|
283
|
+
# Limit messages per group/chat (only with --full)
|
|
284
|
+
agent-channeltalk snapshot --full --limit 10
|
|
282
285
|
```
|
|
283
286
|
|
|
284
|
-
|
|
287
|
+
Default returns brief JSON with:
|
|
288
|
+
|
|
289
|
+
- Workspace metadata (id, name)
|
|
290
|
+
- Groups (id, name)
|
|
291
|
+
- UserChat summary (total count, by state)
|
|
292
|
+
- Hint for next commands
|
|
293
|
+
|
|
294
|
+
With `--full`, returns comprehensive JSON with:
|
|
285
295
|
|
|
286
296
|
- Workspace metadata (id, name)
|
|
287
297
|
- Groups with recent messages (id, name, messages)
|
|
@@ -92,28 +92,29 @@ done
|
|
|
92
92
|
```bash
|
|
93
93
|
#!/bin/bash
|
|
94
94
|
|
|
95
|
-
#
|
|
95
|
+
# Get brief snapshot (default — fast, minimal output)
|
|
96
96
|
SNAPSHOT=$(agent-channeltalk snapshot)
|
|
97
97
|
|
|
98
98
|
# Extract key info
|
|
99
99
|
WORKSPACE=$(echo "$SNAPSHOT" | jq -r '.workspace.name')
|
|
100
100
|
GROUP_COUNT=$(echo "$SNAPSHOT" | jq '.groups | length')
|
|
101
101
|
OPEN_CHATS=$(echo "$SNAPSHOT" | jq '.user_chats.by_state.opened')
|
|
102
|
-
MANAGER_COUNT=$(echo "$SNAPSHOT" | jq '.managers | length')
|
|
103
|
-
BOT_COUNT=$(echo "$SNAPSHOT" | jq '.bots | length')
|
|
104
102
|
|
|
105
103
|
echo "Workspace: $WORKSPACE"
|
|
106
104
|
echo "Groups: $GROUP_COUNT"
|
|
107
105
|
echo "Open chats: $OPEN_CHATS"
|
|
108
|
-
echo "Managers: $MANAGER_COUNT"
|
|
109
|
-
echo "Bots: $BOT_COUNT"
|
|
110
106
|
|
|
111
|
-
#
|
|
112
|
-
|
|
113
|
-
|
|
107
|
+
# List all groups
|
|
108
|
+
echo -e "\nGroups:"
|
|
109
|
+
echo "$SNAPSHOT" | jq -r '.groups[] | " \(.name) (\(.id))"'
|
|
110
|
+
|
|
111
|
+
# Then drill into specific resources for details
|
|
112
|
+
agent-channeltalk chat list --state opened --limit 10
|
|
113
|
+
agent-channeltalk manager list --limit 20
|
|
114
|
+
agent-channeltalk bot list --limit 20
|
|
114
115
|
```
|
|
115
116
|
|
|
116
|
-
**When to use**: Start of every AI agent session, periodic context refresh, workspace audits.
|
|
117
|
+
**When to use**: Start of every AI agent session, periodic context refresh, workspace audits. Start with brief snapshot, then use targeted list commands for messages, managers, or bots.
|
|
117
118
|
|
|
118
119
|
## Pattern 5: Find Group by Name
|
|
119
120
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: agent-channeltalkbot
|
|
3
3
|
description: Interact with Channel Talk workspaces using API credentials - send messages, read chats, manage groups and bots
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.9.0
|
|
5
5
|
allowed-tools: Bash(agent-channeltalkbot:*)
|
|
6
6
|
metadata:
|
|
7
7
|
openclaw:
|
|
@@ -274,21 +274,31 @@ agent-channeltalkbot bot delete <bot-id> --force
|
|
|
274
274
|
|
|
275
275
|
### Snapshot Command
|
|
276
276
|
|
|
277
|
-
Get
|
|
277
|
+
Get workspace overview for AI agents (brief by default):
|
|
278
278
|
|
|
279
279
|
```bash
|
|
280
|
-
#
|
|
280
|
+
# Brief snapshot (default) — fast, minimal API calls
|
|
281
281
|
agent-channeltalkbot snapshot
|
|
282
282
|
|
|
283
|
-
#
|
|
284
|
-
agent-channeltalkbot snapshot --
|
|
285
|
-
agent-channeltalkbot snapshot --chats-only
|
|
283
|
+
# Full snapshot — includes messages, managers, bots (slow, large output)
|
|
284
|
+
agent-channeltalkbot snapshot --full
|
|
286
285
|
|
|
287
|
-
#
|
|
288
|
-
agent-channeltalkbot snapshot --
|
|
286
|
+
# Filtered full snapshots
|
|
287
|
+
agent-channeltalkbot snapshot --full --groups-only
|
|
288
|
+
agent-channeltalkbot snapshot --full --chats-only
|
|
289
|
+
|
|
290
|
+
# Limit messages per group/chat (only with --full)
|
|
291
|
+
agent-channeltalkbot snapshot --full --limit 10
|
|
289
292
|
```
|
|
290
293
|
|
|
291
|
-
|
|
294
|
+
Default returns brief JSON with:
|
|
295
|
+
|
|
296
|
+
- Workspace metadata (id, name, homepage_url, description)
|
|
297
|
+
- Groups (id, name)
|
|
298
|
+
- UserChat summary (opened/snoozed/closed counts)
|
|
299
|
+
- Hint for next commands
|
|
300
|
+
|
|
301
|
+
With `--full`, returns comprehensive JSON with:
|
|
292
302
|
|
|
293
303
|
- Workspace metadata (id, name, homepage_url, description)
|
|
294
304
|
- Groups with recent messages (id, name, messages)
|
|
@@ -112,28 +112,29 @@ fi
|
|
|
112
112
|
```bash
|
|
113
113
|
#!/bin/bash
|
|
114
114
|
|
|
115
|
-
#
|
|
115
|
+
# Get brief snapshot (default — fast, minimal output)
|
|
116
116
|
SNAPSHOT=$(agent-channeltalkbot snapshot)
|
|
117
117
|
|
|
118
118
|
# Extract key info
|
|
119
119
|
WORKSPACE=$(echo "$SNAPSHOT" | jq -r '.workspace.name')
|
|
120
120
|
GROUP_COUNT=$(echo "$SNAPSHOT" | jq '.groups | length')
|
|
121
121
|
OPEN_CHATS=$(echo "$SNAPSHOT" | jq '.user_chats.opened_count')
|
|
122
|
-
MANAGER_COUNT=$(echo "$SNAPSHOT" | jq '.managers | length')
|
|
123
|
-
BOT_COUNT=$(echo "$SNAPSHOT" | jq '.bots | length')
|
|
124
122
|
|
|
125
123
|
echo "Workspace: $WORKSPACE"
|
|
126
124
|
echo "Groups: $GROUP_COUNT"
|
|
127
125
|
echo "Open chats: $OPEN_CHATS"
|
|
128
|
-
echo "Managers: $MANAGER_COUNT"
|
|
129
|
-
echo "Bots: $BOT_COUNT"
|
|
130
126
|
|
|
131
|
-
#
|
|
132
|
-
|
|
133
|
-
|
|
127
|
+
# List all groups
|
|
128
|
+
echo -e "\nGroups:"
|
|
129
|
+
echo "$SNAPSHOT" | jq -r '.groups[] | " \(.name) (\(.id))"'
|
|
130
|
+
|
|
131
|
+
# Then drill into specific resources for details
|
|
132
|
+
agent-channeltalkbot chat list --state opened --limit 10
|
|
133
|
+
agent-channeltalkbot manager list
|
|
134
|
+
agent-channeltalkbot bot list
|
|
134
135
|
```
|
|
135
136
|
|
|
136
|
-
**When to use**: Start of every AI agent session, periodic context refresh, workspace audits.
|
|
137
|
+
**When to use**: Start of every AI agent session, periodic context refresh, workspace audits. Start with brief snapshot, then use targeted list commands for chats, managers, or bots.
|
|
137
138
|
|
|
138
139
|
## Pattern 6: Search Messages Across Chats
|
|
139
140
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: agent-discord
|
|
3
3
|
description: Interact with Discord servers - send messages, read channels, manage reactions
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.9.0
|
|
5
5
|
allowed-tools: Bash(agent-discord:*)
|
|
6
6
|
metadata:
|
|
7
7
|
openclaw:
|
|
@@ -318,21 +318,30 @@ agent-discord file info <channel-id> <file-id>
|
|
|
318
318
|
|
|
319
319
|
### Snapshot Command
|
|
320
320
|
|
|
321
|
-
Get
|
|
321
|
+
Get server overview for AI agents (brief by default):
|
|
322
322
|
|
|
323
323
|
```bash
|
|
324
|
-
#
|
|
324
|
+
# Brief snapshot (default) — fast, minimal API calls
|
|
325
325
|
agent-discord snapshot
|
|
326
326
|
|
|
327
|
-
#
|
|
328
|
-
agent-discord snapshot --
|
|
329
|
-
agent-discord snapshot --users-only
|
|
327
|
+
# Full snapshot — includes messages and members (slow, large output)
|
|
328
|
+
agent-discord snapshot --full
|
|
330
329
|
|
|
331
|
-
#
|
|
332
|
-
agent-discord snapshot --
|
|
330
|
+
# Filtered full snapshots
|
|
331
|
+
agent-discord snapshot --full --channels-only
|
|
332
|
+
agent-discord snapshot --full --users-only
|
|
333
|
+
|
|
334
|
+
# Limit messages per channel (only with --full)
|
|
335
|
+
agent-discord snapshot --full --limit 10
|
|
333
336
|
```
|
|
334
337
|
|
|
335
|
-
|
|
338
|
+
Default returns brief JSON with:
|
|
339
|
+
|
|
340
|
+
- Server metadata (id, name)
|
|
341
|
+
- Channels (id, name) — text channels only
|
|
342
|
+
- Hint for next commands
|
|
343
|
+
|
|
344
|
+
With `--full`, returns comprehensive JSON with:
|
|
336
345
|
|
|
337
346
|
- Server metadata (id, name)
|
|
338
347
|
- Channels (id, name, type, topic)
|
|
@@ -77,28 +77,29 @@ done
|
|
|
77
77
|
```bash
|
|
78
78
|
#!/bin/bash
|
|
79
79
|
|
|
80
|
-
# Get
|
|
80
|
+
# Get brief snapshot (default — fast, minimal output)
|
|
81
81
|
SNAPSHOT=$(agent-discord snapshot)
|
|
82
82
|
|
|
83
83
|
# Extract key information
|
|
84
84
|
SERVER_NAME=$(echo "$SNAPSHOT" | jq -r '.server.name')
|
|
85
85
|
CHANNEL_COUNT=$(echo "$SNAPSHOT" | jq -r '.channels | length')
|
|
86
|
-
MEMBER_COUNT=$(echo "$SNAPSHOT" | jq -r '.members | length')
|
|
87
86
|
|
|
88
87
|
echo "Server: $SERVER_NAME"
|
|
89
88
|
echo "Channels: $CHANNEL_COUNT"
|
|
90
|
-
echo "Members: $MEMBER_COUNT"
|
|
91
89
|
|
|
92
90
|
# List all text channels
|
|
93
91
|
echo -e "\nChannels:"
|
|
94
92
|
echo "$SNAPSHOT" | jq -r '.channels[] | " #\(.name) (\(.id))"'
|
|
95
93
|
|
|
96
|
-
#
|
|
97
|
-
echo -
|
|
98
|
-
|
|
94
|
+
# Then drill into a specific channel for recent activity
|
|
95
|
+
CHANNEL_ID=$(echo "$SNAPSHOT" | jq -r '.channels[0].id // empty')
|
|
96
|
+
if [ -n "$CHANNEL_ID" ]; then
|
|
97
|
+
echo -e "\nRecent messages:"
|
|
98
|
+
agent-discord message list "$CHANNEL_ID" --limit 10
|
|
99
|
+
fi
|
|
99
100
|
```
|
|
100
101
|
|
|
101
|
-
**When to use**: Initial context gathering, status reports, server summaries.
|
|
102
|
+
**When to use**: Initial context gathering, status reports, server summaries. Start with brief snapshot, then use `message list <channel-id>` or `user list` for details.
|
|
102
103
|
|
|
103
104
|
## Pattern 4: Find Channel by Name
|
|
104
105
|
|