groove-dev 0.21.5 → 0.21.7
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/node_modules/@groove-dev/daemon/src/gateways/discord.js +2 -1
- package/node_modules/@groove-dev/daemon/src/gateways/slack.js +12 -5
- package/node_modules/@groove-dev/daemon/src/gateways/telegram.js +2 -1
- package/node_modules/@groove-dev/gui/.groove/audit.log +8 -0
- package/node_modules/@groove-dev/gui/.groove/codebase-index.json +1 -1
- package/node_modules/@groove-dev/gui/.groove/credentials.json +6 -6
- package/node_modules/@groove-dev/gui/.groove/gateways/{slack-e85bcb.json → slack-4d7f00.json} +2 -2
- package/node_modules/@groove-dev/gui/.groove/timeline.json +272 -0
- package/node_modules/@groove-dev/gui/dist/assets/{index-CoTZdD8N.js → index-BKfu8mGS.js} +1 -1
- package/node_modules/@groove-dev/gui/dist/index.html +1 -1
- package/node_modules/@groove-dev/gui/src/views/settings.jsx +1 -1
- package/package.json +1 -1
- package/packages/daemon/src/gateways/discord.js +2 -1
- package/packages/daemon/src/gateways/slack.js +12 -5
- package/packages/daemon/src/gateways/telegram.js +2 -1
- package/packages/gui/dist/assets/{index-CoTZdD8N.js → index-BKfu8mGS.js} +1 -1
- package/packages/gui/dist/index.html +1 -1
- package/packages/gui/src/views/settings.jsx +1 -1
- package/test-slack.mjs +28 -0
- package/node_modules/@groove-dev/gui/.groove/daemon.host +0 -1
- package/node_modules/@groove-dev/gui/.groove/daemon.pid +0 -1
- package/node_modules/@groove-dev/gui/AGENTS_REGISTRY.md +0 -9
|
@@ -54,7 +54,8 @@ export class DiscordGateway extends BaseGateway {
|
|
|
54
54
|
if (!msg.content.startsWith('/')) return;
|
|
55
55
|
|
|
56
56
|
const userId = msg.author.id;
|
|
57
|
-
const [
|
|
57
|
+
const [rawCmd, ...args] = msg.content.slice(1).split(/\s+/);
|
|
58
|
+
const command = rawCmd.toLowerCase();
|
|
58
59
|
|
|
59
60
|
// Auto-capture channelId
|
|
60
61
|
if (!this.config.chatId) {
|
|
@@ -73,7 +73,8 @@ export class SlackGateway extends BaseGateway {
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
// Parse command — no / prefix needed when mentioning
|
|
76
|
-
const [
|
|
76
|
+
const [rawCmd, ...args] = text.split(/\s+/);
|
|
77
|
+
const command = rawCmd.toLowerCase();
|
|
77
78
|
const response = await this.handleCommand(command, args, event.user);
|
|
78
79
|
if (response) {
|
|
79
80
|
await say(this._buildReply(response));
|
|
@@ -102,9 +103,10 @@ export class SlackGateway extends BaseGateway {
|
|
|
102
103
|
const text = message.text.trim();
|
|
103
104
|
if (!text) return;
|
|
104
105
|
|
|
105
|
-
// Strip leading / if someone tries it anyway
|
|
106
|
+
// Strip leading / if someone tries it anyway, lowercase for matching
|
|
106
107
|
const cleaned = text.startsWith('/') ? text.slice(1) : text;
|
|
107
|
-
const [
|
|
108
|
+
const [rawCommand, ...args] = cleaned.split(/\s+/);
|
|
109
|
+
const command = rawCommand.toLowerCase();
|
|
108
110
|
|
|
109
111
|
// Only respond to known commands
|
|
110
112
|
const known = ['status', 'agents', 'spawn', 'kill', 'approve', 'reject', 'rotate', 'teams', 'schedules', 'help'];
|
|
@@ -156,11 +158,16 @@ export class SlackGateway extends BaseGateway {
|
|
|
156
158
|
}
|
|
157
159
|
});
|
|
158
160
|
|
|
161
|
+
// Bolt's auth.test can throw as unhandled rejection — catch it
|
|
162
|
+
const startPromise = this.app.start().catch((err) => {
|
|
163
|
+
throw new Error(`Slack connection failed: ${err.message}`);
|
|
164
|
+
});
|
|
165
|
+
|
|
159
166
|
try {
|
|
160
|
-
await
|
|
167
|
+
await startPromise;
|
|
161
168
|
} catch (err) {
|
|
162
169
|
this.app = null;
|
|
163
|
-
throw
|
|
170
|
+
throw err;
|
|
164
171
|
}
|
|
165
172
|
|
|
166
173
|
this.connected = true;
|
|
@@ -141,7 +141,8 @@ export class TelegramGateway extends BaseGateway {
|
|
|
141
141
|
|
|
142
142
|
const userId = String(msg.from.id);
|
|
143
143
|
const text = msg.text.split('@')[0]; // Remove @botname suffix from group commands
|
|
144
|
-
const [
|
|
144
|
+
const [rawCmd, ...args] = text.slice(1).split(/\s+/);
|
|
145
|
+
const command = rawCmd.toLowerCase();
|
|
145
146
|
|
|
146
147
|
const response = await this.handleCommand(command, args, userId);
|
|
147
148
|
if (response) {
|
|
@@ -154,3 +154,11 @@
|
|
|
154
154
|
{"t":"2026-04-09T21:32:09.994Z","action":"gateway.credential.set","id":"slack-e85bcb","key":"app_token"}
|
|
155
155
|
{"t":"2026-04-09T21:32:10.600Z","action":"gateway.connect","id":"slack-e85bcb","type":"slack"}
|
|
156
156
|
{"t":"2026-04-09T21:32:16.196Z","action":"gateway.test","id":"slack-e85bcb"}
|
|
157
|
+
{"t":"2026-04-09T21:41:19.196Z","action":"gateway.connect","id":"slack-e85bcb","type":"slack"}
|
|
158
|
+
{"t":"2026-04-09T21:41:31.136Z","action":"gateway.test","id":"slack-e85bcb"}
|
|
159
|
+
{"t":"2026-04-09T21:43:16.943Z","action":"gateway.delete","id":"slack-e85bcb"}
|
|
160
|
+
{"t":"2026-04-09T21:43:43.209Z","action":"gateway.create","id":"slack-4d7f00","type":"slack"}
|
|
161
|
+
{"t":"2026-04-09T21:43:54.272Z","action":"gateway.credential.set","id":"slack-4d7f00","key":"bot_token"}
|
|
162
|
+
{"t":"2026-04-09T21:43:54.277Z","action":"gateway.credential.set","id":"slack-4d7f00","key":"app_token"}
|
|
163
|
+
{"t":"2026-04-09T21:43:54.881Z","action":"gateway.connect","id":"slack-4d7f00","type":"slack"}
|
|
164
|
+
{"t":"2026-04-09T21:46:01.053Z","action":"gateway.disconnect","id":"slack-4d7f00"}
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"key": "bee44e798e85b64b04e5198bd44074f0:a0de1b79cca1a00842ca83193e383128:fb7b942b82313c940f802fd2c54f5945756ce6b65dae652b1534acd38d9cca19cdfaad8eee267f56e11f2c2ec6cd8db16c4a4139ddfe0777517437a3a4b5beb53e89210e31c1cfc1f964bba8b26ca75b93f62d36ea1dbc19d3910a91c8a976a2c4369b233a5d00f799e33ebd",
|
|
4
4
|
"setAt": "2026-04-08T02:20:01.107Z"
|
|
5
5
|
},
|
|
6
|
-
"gateway:slack-
|
|
7
|
-
"key": "
|
|
8
|
-
"setAt": "2026-04-09T21:
|
|
6
|
+
"gateway:slack-4d7f00:bot_token": {
|
|
7
|
+
"key": "459522d149a633c148b9146d0612aa85:1c7030ab6862acb303cdc6f565cec24c:53538281a4cda4902543c9a6258b2d569de525fb912e48fed3ed36b3d5a69fcd604eb22c28537bd4636ded763cf5ac71bda4bbc824841711755f",
|
|
8
|
+
"setAt": "2026-04-09T21:43:54.270Z"
|
|
9
9
|
},
|
|
10
|
-
"gateway:slack-
|
|
11
|
-
"key": "
|
|
12
|
-
"setAt": "2026-04-09T21:
|
|
10
|
+
"gateway:slack-4d7f00:app_token": {
|
|
11
|
+
"key": "f1287bb185a9e1493024763c2725c4ed:5f6b43279c880149c5913cfa1dfc8ea9:02906568c7cc79347f443ddb9897d46f478648b0a43ff77706bb754745e38907618bb5ae13094e2afc47153789121ae05292ae69e3dcab96fa91e3f3cadeca8fb287d6589d4a9ddfa1e8dd2b695347295bac1e7f573247ea0050b88996336aec7794",
|
|
12
|
+
"setAt": "2026-04-09T21:43:54.276Z"
|
|
13
13
|
}
|
|
14
14
|
}
|
package/node_modules/@groove-dev/gui/.groove/gateways/{slack-e85bcb.json → slack-4d7f00.json}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"id": "slack-
|
|
2
|
+
"id": "slack-4d7f00",
|
|
3
3
|
"type": "slack",
|
|
4
4
|
"enabled": true,
|
|
5
5
|
"chatId": "C0ARYHCFC90",
|
|
@@ -8,5 +8,5 @@
|
|
|
8
8
|
"preset": "critical"
|
|
9
9
|
},
|
|
10
10
|
"commandPermission": "full",
|
|
11
|
-
"createdAt": "2026-04-09T21:
|
|
11
|
+
"createdAt": "2026-04-09T21:43:43.208Z"
|
|
12
12
|
}
|
|
@@ -11207,6 +11207,278 @@
|
|
|
11207
11207
|
"agents": 1,
|
|
11208
11208
|
"running": 0,
|
|
11209
11209
|
"cacheHitRate": 0.8360697165954649
|
|
11210
|
+
},
|
|
11211
|
+
{
|
|
11212
|
+
"t": 1775770522944,
|
|
11213
|
+
"tokens": 3005468,
|
|
11214
|
+
"costUsd": 0.42406725000000006,
|
|
11215
|
+
"agents": 1,
|
|
11216
|
+
"running": 0,
|
|
11217
|
+
"cacheHitRate": 0.8360697165954649
|
|
11218
|
+
},
|
|
11219
|
+
{
|
|
11220
|
+
"t": 1775770552944,
|
|
11221
|
+
"tokens": 3005468,
|
|
11222
|
+
"costUsd": 0.42406725000000006,
|
|
11223
|
+
"agents": 1,
|
|
11224
|
+
"running": 0,
|
|
11225
|
+
"cacheHitRate": 0.8360697165954649
|
|
11226
|
+
},
|
|
11227
|
+
{
|
|
11228
|
+
"t": 1775770582943,
|
|
11229
|
+
"tokens": 3005468,
|
|
11230
|
+
"costUsd": 0.42406725000000006,
|
|
11231
|
+
"agents": 1,
|
|
11232
|
+
"running": 0,
|
|
11233
|
+
"cacheHitRate": 0.8360697165954649
|
|
11234
|
+
},
|
|
11235
|
+
{
|
|
11236
|
+
"t": 1775770612944,
|
|
11237
|
+
"tokens": 3005468,
|
|
11238
|
+
"costUsd": 0.42406725000000006,
|
|
11239
|
+
"agents": 1,
|
|
11240
|
+
"running": 0,
|
|
11241
|
+
"cacheHitRate": 0.8360697165954649
|
|
11242
|
+
},
|
|
11243
|
+
{
|
|
11244
|
+
"t": 1775770642943,
|
|
11245
|
+
"tokens": 3005468,
|
|
11246
|
+
"costUsd": 0.42406725000000006,
|
|
11247
|
+
"agents": 1,
|
|
11248
|
+
"running": 0,
|
|
11249
|
+
"cacheHitRate": 0.8360697165954649
|
|
11250
|
+
},
|
|
11251
|
+
{
|
|
11252
|
+
"t": 1775770672944,
|
|
11253
|
+
"tokens": 3005468,
|
|
11254
|
+
"costUsd": 0.42406725000000006,
|
|
11255
|
+
"agents": 1,
|
|
11256
|
+
"running": 0,
|
|
11257
|
+
"cacheHitRate": 0.8360697165954649
|
|
11258
|
+
},
|
|
11259
|
+
{
|
|
11260
|
+
"t": 1775770702944,
|
|
11261
|
+
"tokens": 3005468,
|
|
11262
|
+
"costUsd": 0.42406725000000006,
|
|
11263
|
+
"agents": 1,
|
|
11264
|
+
"running": 0,
|
|
11265
|
+
"cacheHitRate": 0.8360697165954649
|
|
11266
|
+
},
|
|
11267
|
+
{
|
|
11268
|
+
"t": 1775770732944,
|
|
11269
|
+
"tokens": 3005468,
|
|
11270
|
+
"costUsd": 0.42406725000000006,
|
|
11271
|
+
"agents": 1,
|
|
11272
|
+
"running": 0,
|
|
11273
|
+
"cacheHitRate": 0.8360697165954649
|
|
11274
|
+
},
|
|
11275
|
+
{
|
|
11276
|
+
"t": 1775770762945,
|
|
11277
|
+
"tokens": 3005468,
|
|
11278
|
+
"costUsd": 0.42406725000000006,
|
|
11279
|
+
"agents": 1,
|
|
11280
|
+
"running": 0,
|
|
11281
|
+
"cacheHitRate": 0.8360697165954649
|
|
11282
|
+
},
|
|
11283
|
+
{
|
|
11284
|
+
"t": 1775770792944,
|
|
11285
|
+
"tokens": 3005468,
|
|
11286
|
+
"costUsd": 0.42406725000000006,
|
|
11287
|
+
"agents": 1,
|
|
11288
|
+
"running": 0,
|
|
11289
|
+
"cacheHitRate": 0.8360697165954649
|
|
11290
|
+
},
|
|
11291
|
+
{
|
|
11292
|
+
"t": 1775770822944,
|
|
11293
|
+
"tokens": 3005468,
|
|
11294
|
+
"costUsd": 0.42406725000000006,
|
|
11295
|
+
"agents": 1,
|
|
11296
|
+
"running": 0,
|
|
11297
|
+
"cacheHitRate": 0.8360697165954649
|
|
11298
|
+
},
|
|
11299
|
+
{
|
|
11300
|
+
"t": 1775770878455,
|
|
11301
|
+
"tokens": 3005468,
|
|
11302
|
+
"costUsd": 0.42406725000000006,
|
|
11303
|
+
"agents": 1,
|
|
11304
|
+
"running": 0,
|
|
11305
|
+
"cacheHitRate": 0.8360697165954649
|
|
11306
|
+
},
|
|
11307
|
+
{
|
|
11308
|
+
"t": 1775770908457,
|
|
11309
|
+
"tokens": 3005468,
|
|
11310
|
+
"costUsd": 0.42406725000000006,
|
|
11311
|
+
"agents": 1,
|
|
11312
|
+
"running": 0,
|
|
11313
|
+
"cacheHitRate": 0.8360697165954649
|
|
11314
|
+
},
|
|
11315
|
+
{
|
|
11316
|
+
"t": 1775770938456,
|
|
11317
|
+
"tokens": 3005468,
|
|
11318
|
+
"costUsd": 0.42406725000000006,
|
|
11319
|
+
"agents": 1,
|
|
11320
|
+
"running": 0,
|
|
11321
|
+
"cacheHitRate": 0.8360697165954649
|
|
11322
|
+
},
|
|
11323
|
+
{
|
|
11324
|
+
"t": 1775770968457,
|
|
11325
|
+
"tokens": 3005468,
|
|
11326
|
+
"costUsd": 0.42406725000000006,
|
|
11327
|
+
"agents": 1,
|
|
11328
|
+
"running": 0,
|
|
11329
|
+
"cacheHitRate": 0.8360697165954649
|
|
11330
|
+
},
|
|
11331
|
+
{
|
|
11332
|
+
"t": 1775770998458,
|
|
11333
|
+
"tokens": 3005468,
|
|
11334
|
+
"costUsd": 0.42406725000000006,
|
|
11335
|
+
"agents": 1,
|
|
11336
|
+
"running": 0,
|
|
11337
|
+
"cacheHitRate": 0.8360697165954649
|
|
11338
|
+
},
|
|
11339
|
+
{
|
|
11340
|
+
"t": 1775771028457,
|
|
11341
|
+
"tokens": 3005468,
|
|
11342
|
+
"costUsd": 0.42406725000000006,
|
|
11343
|
+
"agents": 1,
|
|
11344
|
+
"running": 0,
|
|
11345
|
+
"cacheHitRate": 0.8360697165954649
|
|
11346
|
+
},
|
|
11347
|
+
{
|
|
11348
|
+
"t": 1775771058457,
|
|
11349
|
+
"tokens": 3005468,
|
|
11350
|
+
"costUsd": 0.42406725000000006,
|
|
11351
|
+
"agents": 1,
|
|
11352
|
+
"running": 0,
|
|
11353
|
+
"cacheHitRate": 0.8360697165954649
|
|
11354
|
+
},
|
|
11355
|
+
{
|
|
11356
|
+
"t": 1775771088453,
|
|
11357
|
+
"tokens": 3005468,
|
|
11358
|
+
"costUsd": 0.42406725000000006,
|
|
11359
|
+
"agents": 1,
|
|
11360
|
+
"running": 0,
|
|
11361
|
+
"cacheHitRate": 0.8360697165954649
|
|
11362
|
+
},
|
|
11363
|
+
{
|
|
11364
|
+
"t": 1775771118452,
|
|
11365
|
+
"tokens": 3005468,
|
|
11366
|
+
"costUsd": 0.42406725000000006,
|
|
11367
|
+
"agents": 1,
|
|
11368
|
+
"running": 0,
|
|
11369
|
+
"cacheHitRate": 0.8360697165954649
|
|
11370
|
+
},
|
|
11371
|
+
{
|
|
11372
|
+
"t": 1775771148452,
|
|
11373
|
+
"tokens": 3005468,
|
|
11374
|
+
"costUsd": 0.42406725000000006,
|
|
11375
|
+
"agents": 1,
|
|
11376
|
+
"running": 0,
|
|
11377
|
+
"cacheHitRate": 0.8360697165954649
|
|
11378
|
+
},
|
|
11379
|
+
{
|
|
11380
|
+
"t": 1775771178452,
|
|
11381
|
+
"tokens": 3005468,
|
|
11382
|
+
"costUsd": 0.42406725000000006,
|
|
11383
|
+
"agents": 1,
|
|
11384
|
+
"running": 0,
|
|
11385
|
+
"cacheHitRate": 0.8360697165954649
|
|
11386
|
+
},
|
|
11387
|
+
{
|
|
11388
|
+
"t": 1775771208453,
|
|
11389
|
+
"tokens": 3005468,
|
|
11390
|
+
"costUsd": 0.42406725000000006,
|
|
11391
|
+
"agents": 1,
|
|
11392
|
+
"running": 0,
|
|
11393
|
+
"cacheHitRate": 0.8360697165954649
|
|
11394
|
+
},
|
|
11395
|
+
{
|
|
11396
|
+
"t": 1775771238452,
|
|
11397
|
+
"tokens": 3005468,
|
|
11398
|
+
"costUsd": 0.42406725000000006,
|
|
11399
|
+
"agents": 1,
|
|
11400
|
+
"running": 0,
|
|
11401
|
+
"cacheHitRate": 0.8360697165954649
|
|
11402
|
+
},
|
|
11403
|
+
{
|
|
11404
|
+
"t": 1775771268452,
|
|
11405
|
+
"tokens": 3005468,
|
|
11406
|
+
"costUsd": 0.42406725000000006,
|
|
11407
|
+
"agents": 1,
|
|
11408
|
+
"running": 0,
|
|
11409
|
+
"cacheHitRate": 0.8360697165954649
|
|
11410
|
+
},
|
|
11411
|
+
{
|
|
11412
|
+
"t": 1775771298451,
|
|
11413
|
+
"tokens": 3005468,
|
|
11414
|
+
"costUsd": 0.42406725000000006,
|
|
11415
|
+
"agents": 1,
|
|
11416
|
+
"running": 0,
|
|
11417
|
+
"cacheHitRate": 0.8360697165954649
|
|
11418
|
+
},
|
|
11419
|
+
{
|
|
11420
|
+
"t": 1775771328452,
|
|
11421
|
+
"tokens": 3005468,
|
|
11422
|
+
"costUsd": 0.42406725000000006,
|
|
11423
|
+
"agents": 1,
|
|
11424
|
+
"running": 0,
|
|
11425
|
+
"cacheHitRate": 0.8360697165954649
|
|
11426
|
+
},
|
|
11427
|
+
{
|
|
11428
|
+
"t": 1775771358451,
|
|
11429
|
+
"tokens": 3005468,
|
|
11430
|
+
"costUsd": 0.42406725000000006,
|
|
11431
|
+
"agents": 1,
|
|
11432
|
+
"running": 0,
|
|
11433
|
+
"cacheHitRate": 0.8360697165954649
|
|
11434
|
+
},
|
|
11435
|
+
{
|
|
11436
|
+
"t": 1775771388451,
|
|
11437
|
+
"tokens": 3005468,
|
|
11438
|
+
"costUsd": 0.42406725000000006,
|
|
11439
|
+
"agents": 1,
|
|
11440
|
+
"running": 0,
|
|
11441
|
+
"cacheHitRate": 0.8360697165954649
|
|
11442
|
+
},
|
|
11443
|
+
{
|
|
11444
|
+
"t": 1775771418451,
|
|
11445
|
+
"tokens": 3005468,
|
|
11446
|
+
"costUsd": 0.42406725000000006,
|
|
11447
|
+
"agents": 1,
|
|
11448
|
+
"running": 0,
|
|
11449
|
+
"cacheHitRate": 0.8360697165954649
|
|
11450
|
+
},
|
|
11451
|
+
{
|
|
11452
|
+
"t": 1775771448451,
|
|
11453
|
+
"tokens": 3005468,
|
|
11454
|
+
"costUsd": 0.42406725000000006,
|
|
11455
|
+
"agents": 1,
|
|
11456
|
+
"running": 0,
|
|
11457
|
+
"cacheHitRate": 0.8360697165954649
|
|
11458
|
+
},
|
|
11459
|
+
{
|
|
11460
|
+
"t": 1775771478451,
|
|
11461
|
+
"tokens": 3005468,
|
|
11462
|
+
"costUsd": 0.42406725000000006,
|
|
11463
|
+
"agents": 1,
|
|
11464
|
+
"running": 0,
|
|
11465
|
+
"cacheHitRate": 0.8360697165954649
|
|
11466
|
+
},
|
|
11467
|
+
{
|
|
11468
|
+
"t": 1775771508451,
|
|
11469
|
+
"tokens": 3005468,
|
|
11470
|
+
"costUsd": 0.42406725000000006,
|
|
11471
|
+
"agents": 1,
|
|
11472
|
+
"running": 0,
|
|
11473
|
+
"cacheHitRate": 0.8360697165954649
|
|
11474
|
+
},
|
|
11475
|
+
{
|
|
11476
|
+
"t": 1775771538451,
|
|
11477
|
+
"tokens": 3005468,
|
|
11478
|
+
"costUsd": 0.42406725000000006,
|
|
11479
|
+
"agents": 1,
|
|
11480
|
+
"running": 0,
|
|
11481
|
+
"cacheHitRate": 0.8360697165954649
|
|
11210
11482
|
}
|
|
11211
11483
|
],
|
|
11212
11484
|
"events": [
|