@friendlyrobot/discord-pi-agent 0.6.0 → 0.6.1
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 +1 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -970,19 +970,6 @@ async function startGatewayClient(config, agentService, sessionRegistry, authCon
|
|
|
970
970
|
}
|
|
971
971
|
});
|
|
972
972
|
client.on(Events.MessageCreate, async (message) => {
|
|
973
|
-
if (message.channel.isThread()) {
|
|
974
|
-
console.log("[gateway:debug] thread message raw", {
|
|
975
|
-
messageId: message.id,
|
|
976
|
-
authorId: message.author.id,
|
|
977
|
-
authorTag: message.author.tag,
|
|
978
|
-
channelId: message.channel.id,
|
|
979
|
-
channelType: message.channel.type,
|
|
980
|
-
parentId: message.channel.parentId,
|
|
981
|
-
parentType: message.channel.parent?.type,
|
|
982
|
-
guildId: message.guild?.id,
|
|
983
|
-
content: message.content.slice(0, 500)
|
|
984
|
-
});
|
|
985
|
-
}
|
|
986
973
|
console.log("[gateway] message received", {
|
|
987
974
|
messageId: message.id,
|
|
988
975
|
authorId: message.author.id,
|
|
@@ -1096,6 +1083,7 @@ async function onMessage(message, config, agentService, sessionRegistry, authCon
|
|
|
1096
1083
|
const response = await promptQueue.enqueue(async () => {
|
|
1097
1084
|
console.log(`[queue] processing message ${message.id} in scope ${scope}`);
|
|
1098
1085
|
const promptContent = buildDiscordPromptContent(message, scope, content, config);
|
|
1086
|
+
console.log("[gateway:debug] prompt content", promptContent);
|
|
1099
1087
|
const transformedPrompt = await config.promptTransform(promptContent);
|
|
1100
1088
|
return collectReply(session, transformedPrompt, {
|
|
1101
1089
|
logPrefix: `[agent:${session.sessionId}]`
|