@songsid/agend-plugin-discord 2.0.3-beta.9 → 2.0.4
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/dist/discord-adapter.js +13 -14
- package/package.json +2 -2
- package/src/discord-adapter.ts +13 -14
package/dist/discord-adapter.js
CHANGED
|
@@ -280,32 +280,31 @@ export class DiscordAdapter extends EventEmitter {
|
|
|
280
280
|
// Register classic bot slash commands
|
|
281
281
|
try {
|
|
282
282
|
await this.client.application?.commands.set([
|
|
283
|
-
{ name: "start", description: "
|
|
284
|
-
{ name: "stop", description: "
|
|
283
|
+
{ name: "start", description: "Start an agent in this channel" },
|
|
284
|
+
{ name: "stop", description: "Stop the agent in this channel" },
|
|
285
285
|
{
|
|
286
|
-
name: "chat", description: "
|
|
286
|
+
name: "chat", description: "Send a message to the agent",
|
|
287
287
|
options: [{ name: "message", description: "Your message", type: 3, required: true }],
|
|
288
288
|
},
|
|
289
|
-
{ name: "
|
|
289
|
+
{ name: "status", description: "Show fleet status and costs" },
|
|
290
|
+
{ name: "sysinfo", description: "System diagnostics" },
|
|
291
|
+
{ name: "ctx", description: "Show agent context usage" },
|
|
292
|
+
{ name: "restart", description: "🔒 Graceful restart all instances" },
|
|
293
|
+
{ name: "update", description: "🔒 Update AgEnD to latest version" },
|
|
294
|
+
{ name: "doctor", description: "🔒 Run health diagnostics" },
|
|
295
|
+
{ name: "compact", description: "🔒 Compact agent context window" },
|
|
296
|
+
{ name: "collab", description: "🔒 Toggle bot/webhook collaboration mode" },
|
|
290
297
|
{
|
|
291
|
-
name: "save", description: "
|
|
298
|
+
name: "save", description: "🔒 Save the agent's conversation",
|
|
292
299
|
options: [
|
|
293
300
|
{ name: "filename", description: "File name to save as", type: 3, required: true },
|
|
294
301
|
{ name: "force", description: "Overwrite if file exists", type: 5, required: false },
|
|
295
302
|
],
|
|
296
303
|
},
|
|
297
304
|
{
|
|
298
|
-
name: "load", description: "
|
|
305
|
+
name: "load", description: "🔒 Load a saved conversation",
|
|
299
306
|
options: [{ name: "filename", description: "File name to load", type: 3, required: true }],
|
|
300
307
|
},
|
|
301
|
-
{ name: "ctx", description: "[ClassicBot] Show agent context usage" },
|
|
302
|
-
{ name: "collab", description: "[ClassicBot] Toggle collaboration mode (@mention trigger)" },
|
|
303
|
-
{ name: "status", description: "[Fleet] Show fleet status and costs" },
|
|
304
|
-
{ name: "sysinfo", description: "[Fleet] System diagnostics" },
|
|
305
|
-
{ name: "restart", description: "[Fleet] Graceful restart all instances" },
|
|
306
|
-
{ name: "compact", description: "[Fleet] Compact agent context window" },
|
|
307
|
-
{ name: "update", description: "[Fleet] Update AgEnD to latest version" },
|
|
308
|
-
{ name: "doctor", description: "[Fleet] Run health diagnostics" },
|
|
309
308
|
]);
|
|
310
309
|
}
|
|
311
310
|
catch (err) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@songsid/agend-plugin-discord",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "Discord channel adapter plugin for AgEnD",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"build": "tsc"
|
|
10
10
|
},
|
|
11
11
|
"peerDependencies": {
|
|
12
|
-
"@songsid/agend": ">=2.0.
|
|
12
|
+
"@songsid/agend": ">=2.0.4"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"discord.js": "^14.25.1"
|
package/src/discord-adapter.ts
CHANGED
|
@@ -310,32 +310,31 @@ export class DiscordAdapter extends EventEmitter implements ChannelAdapter {
|
|
|
310
310
|
// Register classic bot slash commands
|
|
311
311
|
try {
|
|
312
312
|
await this.client.application?.commands.set([
|
|
313
|
-
{ name: "start", description: "
|
|
314
|
-
{ name: "stop", description: "
|
|
313
|
+
{ name: "start", description: "Start an agent in this channel" },
|
|
314
|
+
{ name: "stop", description: "Stop the agent in this channel" },
|
|
315
315
|
{
|
|
316
|
-
name: "chat", description: "
|
|
316
|
+
name: "chat", description: "Send a message to the agent",
|
|
317
317
|
options: [{ name: "message", description: "Your message", type: 3, required: true }],
|
|
318
318
|
},
|
|
319
|
-
{ name: "
|
|
319
|
+
{ name: "status", description: "Show fleet status and costs" },
|
|
320
|
+
{ name: "sysinfo", description: "System diagnostics" },
|
|
321
|
+
{ name: "ctx", description: "Show agent context usage" },
|
|
322
|
+
{ name: "restart", description: "🔒 Graceful restart all instances" },
|
|
323
|
+
{ name: "update", description: "🔒 Update AgEnD to latest version" },
|
|
324
|
+
{ name: "doctor", description: "🔒 Run health diagnostics" },
|
|
325
|
+
{ name: "compact", description: "🔒 Compact agent context window" },
|
|
326
|
+
{ name: "collab", description: "🔒 Toggle bot/webhook collaboration mode" },
|
|
320
327
|
{
|
|
321
|
-
name: "save", description: "
|
|
328
|
+
name: "save", description: "🔒 Save the agent's conversation",
|
|
322
329
|
options: [
|
|
323
330
|
{ name: "filename", description: "File name to save as", type: 3, required: true },
|
|
324
331
|
{ name: "force", description: "Overwrite if file exists", type: 5, required: false },
|
|
325
332
|
],
|
|
326
333
|
},
|
|
327
334
|
{
|
|
328
|
-
name: "load", description: "
|
|
335
|
+
name: "load", description: "🔒 Load a saved conversation",
|
|
329
336
|
options: [{ name: "filename", description: "File name to load", type: 3, required: true }],
|
|
330
337
|
},
|
|
331
|
-
{ name: "ctx", description: "[ClassicBot] Show agent context usage" },
|
|
332
|
-
{ name: "collab", description: "[ClassicBot] Toggle collaboration mode (@mention trigger)" },
|
|
333
|
-
{ name: "status", description: "[Fleet] Show fleet status and costs" },
|
|
334
|
-
{ name: "sysinfo", description: "[Fleet] System diagnostics" },
|
|
335
|
-
{ name: "restart", description: "[Fleet] Graceful restart all instances" },
|
|
336
|
-
{ name: "compact", description: "[Fleet] Compact agent context window" },
|
|
337
|
-
{ name: "update", description: "[Fleet] Update AgEnD to latest version" },
|
|
338
|
-
{ name: "doctor", description: "[Fleet] Run health diagnostics" },
|
|
339
338
|
]);
|
|
340
339
|
} catch (err) {
|
|
341
340
|
// Non-fatal — slash commands may fail on network issues
|