@friendlyrobot/discord-pi-agent 0.7.1 → 0.7.2

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 +8 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1011,13 +1011,6 @@ async function startGatewayClient(config, agentService, sessionRegistry, authCon
1011
1011
  }
1012
1012
  });
1013
1013
  client.on(Events.MessageCreate, async (message) => {
1014
- logger5.info({
1015
- direction: "IN",
1016
- messageId: message.id,
1017
- authorId: message.author.id,
1018
- channelType: message.channel.type,
1019
- content: message.content
1020
- }, "message received");
1021
1014
  try {
1022
1015
  await onMessage(message, config, agentService, sessionRegistry, authConfig);
1023
1016
  } catch (error) {
@@ -1063,6 +1056,14 @@ async function onMessage(message, config, agentService, sessionRegistry, authCon
1063
1056
  logger5.debug({ messageId: message.id }, "ignored empty message");
1064
1057
  return;
1065
1058
  }
1059
+ logger5.info({
1060
+ direction: "IN",
1061
+ scope,
1062
+ messageId: message.id,
1063
+ authorId: message.author.id,
1064
+ channelType: message.channel.type,
1065
+ content
1066
+ }, "message received");
1066
1067
  const { entry, created } = await sessionRegistry.getOrCreate(scope);
1067
1068
  const { session, promptQueue } = entry;
1068
1069
  if (created && scope.startsWith("thread:") && message.channel.isThread()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@friendlyrobot/discord-pi-agent",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "Reusable Discord gateway bridge for persistent pi agent sessions",
5
5
  "license": "MIT",
6
6
  "type": "module",