@friendlyrobot/discord-pi-agent 0.4.5 → 0.4.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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +3 -3
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.5",
3
+ "version": "0.4.7",
4
4
  "description": "Reusable Discord gateway bridge for persistent pi agent sessions",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -33,8 +33,8 @@
33
33
  "typecheck": "tsc --noEmit -p tsconfig.json"
34
34
  },
35
35
  "dependencies": {
36
- "@mariozechner/pi-ai": "^0.70.0",
37
- "@mariozechner/pi-coding-agent": "^0.70.0",
36
+ "@mariozechner/pi-ai": "^0.70.2",
37
+ "@mariozechner/pi-coding-agent": "^0.70.2",
38
38
  "discord.js": "^14.26.3",
39
39
  "dotenv": "^17.4.2",
40
40
  "marked": "^18.0.2",