@songsid/agend-plugin-discord 0.0.24-beta.9 → 2.0.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/dist/discord-adapter.js +8 -10
- package/package.json +2 -2
- package/src/discord-adapter.ts +8 -10
package/dist/discord-adapter.js
CHANGED
|
@@ -280,28 +280,26 @@ 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: "compact", description: "
|
|
289
|
+
{ name: "compact", description: "Compact the agent's context window" },
|
|
290
290
|
{
|
|
291
|
-
name: "save", description: "
|
|
291
|
+
name: "save", description: "Save the agent's conversation",
|
|
292
292
|
options: [
|
|
293
293
|
{ name: "filename", description: "File name to save as", type: 3, required: true },
|
|
294
294
|
{ name: "force", description: "Overwrite if file exists", type: 5, required: false },
|
|
295
295
|
],
|
|
296
296
|
},
|
|
297
297
|
{
|
|
298
|
-
name: "load", description: "
|
|
298
|
+
name: "load", description: "Load a saved conversation",
|
|
299
299
|
options: [{ name: "filename", description: "File name to load", type: 3, required: true }],
|
|
300
300
|
},
|
|
301
|
-
{ name: "ctx", description: "
|
|
302
|
-
{ name: "collab", description: "
|
|
303
|
-
{ name: "update", description: "[Fleet] Update AgEnD to latest version" },
|
|
304
|
-
{ name: "doctor", description: "[Fleet] Run health diagnostics" },
|
|
301
|
+
{ name: "ctx", description: "Show agent context usage" },
|
|
302
|
+
{ name: "collab", description: "Toggle collaboration mode (@mention trigger)" },
|
|
305
303
|
]);
|
|
306
304
|
}
|
|
307
305
|
catch (err) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@songsid/agend-plugin-discord",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "2.0.0",
|
|
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": ">=0.0
|
|
12
|
+
"@songsid/agend": ">=2.0.0"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"discord.js": "^14.25.1"
|
package/src/discord-adapter.ts
CHANGED
|
@@ -310,28 +310,26 @@ 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: "compact", description: "
|
|
319
|
+
{ name: "compact", description: "Compact the agent's context window" },
|
|
320
320
|
{
|
|
321
|
-
name: "save", description: "
|
|
321
|
+
name: "save", description: "Save the agent's conversation",
|
|
322
322
|
options: [
|
|
323
323
|
{ name: "filename", description: "File name to save as", type: 3, required: true },
|
|
324
324
|
{ name: "force", description: "Overwrite if file exists", type: 5, required: false },
|
|
325
325
|
],
|
|
326
326
|
},
|
|
327
327
|
{
|
|
328
|
-
name: "load", description: "
|
|
328
|
+
name: "load", description: "Load a saved conversation",
|
|
329
329
|
options: [{ name: "filename", description: "File name to load", type: 3, required: true }],
|
|
330
330
|
},
|
|
331
|
-
{ name: "ctx", description: "
|
|
332
|
-
{ name: "collab", description: "
|
|
333
|
-
{ name: "update", description: "[Fleet] Update AgEnD to latest version" },
|
|
334
|
-
{ name: "doctor", description: "[Fleet] Run health diagnostics" },
|
|
331
|
+
{ name: "ctx", description: "Show agent context usage" },
|
|
332
|
+
{ name: "collab", description: "Toggle collaboration mode (@mention trigger)" },
|
|
335
333
|
]);
|
|
336
334
|
} catch (err) {
|
|
337
335
|
// Non-fatal — slash commands may fail on network issues
|