@friendlyrobot/discord-pi-agent 0.4.6 → 0.4.8
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/index.js +3 -1
- package/package.json +8 -5
package/dist/index.js
CHANGED
|
@@ -622,8 +622,10 @@ async function onMessage(message, config, agentService, promptQueue) {
|
|
|
622
622
|
console.log("[discord] ignored empty message", { messageId: message.id });
|
|
623
623
|
return;
|
|
624
624
|
}
|
|
625
|
+
const typingInterval = await startTypingInterval(message.channel);
|
|
625
626
|
const commandResult = await handleCommand(content, agentService, promptQueue);
|
|
626
627
|
if (commandResult.handled) {
|
|
628
|
+
stopTypingInterval(typingInterval);
|
|
627
629
|
console.log("[discord] command handled", {
|
|
628
630
|
messageId: message.id,
|
|
629
631
|
command: content,
|
|
@@ -635,10 +637,10 @@ async function onMessage(message, config, agentService, promptQueue) {
|
|
|
635
637
|
return;
|
|
636
638
|
}
|
|
637
639
|
if (!message.channel.isSendable()) {
|
|
640
|
+
stopTypingInterval(typingInterval);
|
|
638
641
|
console.log("[discord] channel is not sendable", { messageId: message.id });
|
|
639
642
|
return;
|
|
640
643
|
}
|
|
641
|
-
const typingInterval = await startTypingInterval(message.channel);
|
|
642
644
|
const queuePosition = promptQueue.getSnapshot().pending;
|
|
643
645
|
console.log("[queue] enqueue request", {
|
|
644
646
|
messageId: message.id,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@friendlyrobot/discord-pi-agent",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.8",
|
|
4
4
|
"description": "Reusable Discord gateway bridge for persistent pi agent sessions",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -27,10 +27,13 @@
|
|
|
27
27
|
"scripts": {
|
|
28
28
|
"test:watch": "vitest",
|
|
29
29
|
"test": "vitest run",
|
|
30
|
-
"update-deps": "
|
|
30
|
+
"update-deps": "npx npm-check-updates",
|
|
31
31
|
"format": "prettier --write .",
|
|
32
|
-
"build": "rm -rf dist
|
|
33
|
-
"
|
|
32
|
+
"build:01-clean": "rm -rf dist",
|
|
33
|
+
"build:02-tsgo": "tsgo -p tsconfig.json --emitDeclarationOnly --declaration --declarationMap false",
|
|
34
|
+
"build:03-build": "bun build ./src/index.ts --outdir ./dist --target node --format esm --packages external",
|
|
35
|
+
"build": "bun run --sequential 'build:*'",
|
|
36
|
+
"typecheck": "tsgo --noEmit -p tsconfig.json"
|
|
34
37
|
},
|
|
35
38
|
"dependencies": {
|
|
36
39
|
"@mariozechner/pi-ai": "^0.70.2",
|
|
@@ -42,8 +45,8 @@
|
|
|
42
45
|
},
|
|
43
46
|
"devDependencies": {
|
|
44
47
|
"@types/node": "^25.6.0",
|
|
48
|
+
"@typescript/native-preview": "^7.0.0-dev.20260424.2",
|
|
45
49
|
"@vitest/ui": "^4.1.5",
|
|
46
|
-
"typescript": "^6.0.3",
|
|
47
50
|
"vitest": "^4.1.5"
|
|
48
51
|
}
|
|
49
52
|
}
|