@elizaos/plugin-bootstrap 1.0.0-beta.69 → 1.0.0-beta.71

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 CHANGED
@@ -5722,7 +5722,9 @@ var messageReceivedHandler = async ({
5722
5722
  true
5723
5723
  );
5724
5724
  const room = await runtime.getRoom(message.roomId);
5725
- const shouldSkipShouldRespond = room?.type === ChannelType10.DM || room?.type === ChannelType10.VOICE_DM || room?.type === ChannelType10.SELF || room?.type === ChannelType10.API || room?.source.includes("client_chat");
5725
+ console.log("room is", room);
5726
+ console.log("message is", message);
5727
+ const shouldSkipShouldRespond = room?.type === ChannelType10.DM || room?.type === ChannelType10.VOICE_DM || room?.type === ChannelType10.SELF || room?.type === ChannelType10.API || message.content.source?.includes("client_chat");
5726
5728
  logger19.debug(
5727
5729
  `[Bootstrap] Skipping shouldRespond check for ${runtime.character.name} because ${room?.type} ${room?.source}`
5728
5730
  );
@@ -5751,6 +5753,8 @@ ${response}`
5751
5753
  shouldRespond = true;
5752
5754
  }
5753
5755
  let responseMessages = [];
5756
+ console.log("shouldRespond is", shouldRespond);
5757
+ console.log("shouldSkipShouldRespond", shouldSkipShouldRespond);
5754
5758
  if (shouldRespond) {
5755
5759
  state = await runtime.composeState(message);
5756
5760
  const prompt = composePromptFromState9({
@@ -5782,7 +5786,10 @@ ${response}`
5782
5786
  retries++;
5783
5787
  if (!responseContent?.thought || !responseContent?.actions) {
5784
5788
  logger19.warn(
5785
- "[Bootstrap] *** Missing required fields (thought or actions), retrying... ***"
5789
+ "[Bootstrap] *** Missing required fields (thought or actions), retrying... ***\n",
5790
+ response,
5791
+ parsedXml,
5792
+ responseContent
5786
5793
  );
5787
5794
  }
5788
5795
  }
@@ -5980,7 +5987,12 @@ var postGeneratedHandler = async ({
5980
5987
  }
5981
5988
  retries++;
5982
5989
  if (!responseContent?.thought || !responseContent?.actions) {
5983
- logger19.warn("[Bootstrap] *** Missing required fields, retrying... ***");
5990
+ logger19.warn(
5991
+ "[Bootstrap] *** Missing required fields, retrying... ***\n",
5992
+ response,
5993
+ parsedXml,
5994
+ responseContent
5995
+ );
5984
5996
  }
5985
5997
  }
5986
5998
  state = await runtime.composeState(message, responseContent?.providers);