@elizaos/plugin-bootstrap 1.0.2 → 1.0.4

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
@@ -186,8 +186,7 @@ var choiceAction = {
186
186
  });
187
187
  const room = state.data.room ?? await runtime.getRoom(message.roomId);
188
188
  if (!room || !room.serverId) {
189
- logger.error("Room or room.serverId is missing");
190
- throw new Error("Room or room.serverId is required for validating the action");
189
+ return false;
191
190
  }
192
191
  const userRole = await getUserServerRole(runtime, message.entityId, room.serverId);
193
192
  if (userRole !== "OWNER" && userRole !== "ADMIN") {
@@ -4908,9 +4907,8 @@ var settingsProvider = {
4908
4907
  world = await runtime.getWorld(room.worldId);
4909
4908
  if (!world) {
4910
4909
  logger15.error(`No world found for room ${room.worldId}`);
4911
- throw new Error(`No world found for room ${room.worldId}`);
4912
4910
  }
4913
- serverId = world.serverId;
4911
+ serverId = world?.serverId;
4914
4912
  if (serverId) {
4915
4913
  worldSettings = await getWorldSettings2(runtime, serverId);
4916
4914
  } else {
@@ -4918,7 +4916,6 @@ var settingsProvider = {
4918
4916
  }
4919
4917
  } catch (error) {
4920
4918
  logger15.error(`Error processing world data: ${error}`);
4921
- throw new Error("Failed to process world information");
4922
4919
  }
4923
4920
  }
4924
4921
  if (!serverId) {