@elizaos/plugin-bootstrap 1.0.0-beta.57 → 1.0.0-beta.59

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
@@ -5751,7 +5751,7 @@ var messageReceivedHandler = async ({
5751
5751
  true
5752
5752
  );
5753
5753
  const room = await runtime.getRoom(message.roomId);
5754
- const shouldSkipShouldRespond = room?.type === ChannelType10.DM || room?.type === ChannelType10.VOICE_DM || room?.type === ChannelType10.SELF || room?.type === ChannelType10.API || room?.source === "client_chat";
5754
+ const shouldSkipShouldRespond = room?.type === ChannelType10.DM || room?.type === ChannelType10.VOICE_DM || room?.type === ChannelType10.SELF || room?.type === ChannelType10.API || room?.source.includes("client_chat");
5755
5755
  logger19.debug(
5756
5756
  `[Bootstrap] Skipping shouldRespond check for ${runtime.character.name} because ${room?.type} ${room?.source}`
5757
5757
  );
@@ -6031,6 +6031,7 @@ var postGeneratedHandler = async ({
6031
6031
  function cleanupPostText(text) {
6032
6032
  let cleanedText2 = text.replace(/^['"](.*)['"]$/, "$1");
6033
6033
  cleanedText2 = cleanedText2.replaceAll(/\\n/g, "\n\n");
6034
+ cleanedText2 = cleanedText2.replace(/([^\n])\n([^\n])/g, "$1\n\n$2");
6034
6035
  if (cleanedText2.length > 280) {
6035
6036
  cleanedText2 = truncateToCompleteSentence(cleanedText2, 280);
6036
6037
  }