@elizaos/cli 1.0.0-beta.3 → 1.0.0-beta.5

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.
@@ -28040,7 +28040,7 @@ function useRooms(options2 = {}) {
28040
28040
  ...options2
28041
28041
  });
28042
28042
  }
28043
- const version = "1.0.0-beta.2";
28043
+ const version = "1.0.0-beta.4";
28044
28044
  const info = {
28045
28045
  version
28046
28046
  };
@@ -42319,7 +42319,7 @@ var createStream = async () => {
42319
42319
  if (raw) {
42320
42320
  return void 0;
42321
42321
  }
42322
- const pretty = await __vitePreload(() => import("./index-BE1iZjgt.js").then((n) => n.i), true ? [] : void 0);
42322
+ const pretty = await __vitePreload(() => import("./index-DmI_PrY5.js").then((n) => n.i), true ? [] : void 0);
42323
42323
  return pretty.default(createPrettyConfig());
42324
42324
  };
42325
42325
  var options = {
@@ -42589,7 +42589,7 @@ function AgentAvatarStack({
42589
42589
  const displayAgents = agentIds.slice(0, maxDisplay);
42590
42590
  const remainingCount = agentIds.length - maxDisplay;
42591
42591
  const avatarSizeClass = size2 === "sm" ? "size-6" : size2 === "lg" ? "size-10" : "size-8";
42592
- const overlapFactor = displayAgents.length > 2 ? 0.6 : 0.5;
42592
+ const overlapFactor = 1 - 1 / displayAgents.length;
42593
42593
  const avatarSize = size2 === "sm" ? 24 : size2 === "lg" ? 40 : 32;
42594
42594
  const offsetPixels = Math.floor(avatarSize * overlapFactor);
42595
42595
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "relative flex items-center", children: [
@@ -42601,13 +42601,7 @@ function AgentAvatarStack({
42601
42601
  zIndex: displayAgents.length - index2,
42602
42602
  left: `${index2 * offsetPixels}px`
42603
42603
  },
42604
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(Avatar, { className: `${avatarSizeClass} rounded-full overflow-hidden`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
42605
- AvatarImage,
42606
- {
42607
- src: agentAvatars[agentId] || "/elizaos-icon.png",
42608
- alt: "Agent avatar"
42609
- }
42610
- ) })
42604
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Avatar, { className: `${avatarSizeClass} rounded-full overflow-hidden`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(AvatarImage, { src: agentAvatars[agentId] || "/elizaos-icon.png", alt: "Agent avatar" }) })
42611
42605
  },
42612
42606
  agentId
42613
42607
  )),
@@ -42625,10 +42619,16 @@ function AgentAvatarStack({
42625
42619
  ] })
42626
42620
  }
42627
42621
  ),
42628
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: {
42629
- width: `${(displayAgents.length + (remainingCount > 0 ? 1 : 0)) * offsetPixels - (offsetPixels - avatarSize)}px`,
42630
- height: avatarSizeClass
42631
- } })
42622
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
42623
+ "div",
42624
+ {
42625
+ style: {
42626
+ width: `${(displayAgents.length + (remainingCount > 0 ? 1 : 0)) * offsetPixels - (offsetPixels - avatarSize)}px`,
42627
+ height: avatarSizeClass,
42628
+ paddingRight: displayAgents.length > 1 ? "5px" : "0px"
42629
+ }
42630
+ }
42631
+ )
42632
42632
  ] });
42633
42633
  }
42634
42634
  function AppSidebar() {
@@ -42677,12 +42677,7 @@ function AppSidebar() {
42677
42677
  className: "w-full h-full object-contain"
42678
42678
  }
42679
42679
  ) : formatAgentName(agent.name),
42680
- /* @__PURE__ */ jsxRuntimeExports.jsx(
42681
- "div",
42682
- {
42683
- className: "absolute bottom-0 right-0 w-[10px] h-[10px] rounded-full border-[1px] border-white bg-green-500"
42684
- }
42685
- )
42680
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "absolute bottom-0 right-0 w-[10px] h-[10px] rounded-full border-[1px] border-white bg-green-500" })
42686
42681
  ] }) }) }),
42687
42682
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-base", children: agent.name })
42688
42683
  ] })
@@ -42715,7 +42710,7 @@ function AppSidebar() {
42715
42710
  const roomName = roomArray.length > 0 ? (_a2 = roomArray[0]) == null ? void 0 : _a2.name : null;
42716
42711
  const roomAgentIds = roomArray.map((room) => room.agentId).filter(Boolean);
42717
42712
  return /* @__PURE__ */ jsxRuntimeExports.jsx(SidebarMenuItem, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(NavLink, { to: `/room/${roomId}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "transition-colors px-4 my-4 rounded-md", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-2", children: [
42718
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "w-10 h-10 flex justify-center items-center", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
42713
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
42719
42714
  AgentAvatarStack,
42720
42715
  {
42721
42716
  agentIds: roomAgentIds,
@@ -52823,10 +52818,6 @@ function AgentSidebar({ agentId, agentName }) {
52823
52818
  /* @__PURE__ */ jsxRuntimeExports.jsx(Activity, { className: "h-4 w-4" }),
52824
52819
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: "Actions" })
52825
52820
  ] }),
52826
- /* @__PURE__ */ jsxRuntimeExports.jsxs(TabsTrigger, { value: "logs", className: "flex items-center gap-1.5", children: [
52827
- /* @__PURE__ */ jsxRuntimeExports.jsx(Terminal, { className: "h-4 w-4" }),
52828
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: "Logs" })
52829
- ] }),
52830
52821
  /* @__PURE__ */ jsxRuntimeExports.jsxs(TabsTrigger, { value: "memories", className: "flex items-center gap-1.5", children: [
52831
52822
  /* @__PURE__ */ jsxRuntimeExports.jsx(Database, { className: "h-4 w-4" }),
52832
52823
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: "Memories" })
@@ -52834,6 +52825,10 @@ function AgentSidebar({ agentId, agentName }) {
52834
52825
  /* @__PURE__ */ jsxRuntimeExports.jsxs(TabsTrigger, { value: "knowledge", className: "flex items-center gap-1.5", children: [
52835
52826
  /* @__PURE__ */ jsxRuntimeExports.jsx(Book, { className: "h-4 w-4" }),
52836
52827
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: "Knowledge" })
52828
+ ] }),
52829
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(TabsTrigger, { value: "logs", className: "flex items-center gap-1.5", children: [
52830
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Terminal, { className: "h-4 w-4" }),
52831
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: "Logs" })
52837
52832
  ] })
52838
52833
  ] }) }),
52839
52834
  /* @__PURE__ */ jsxRuntimeExports.jsx(TabsContent, { value: "actions", className: "overflow-y-scroll", children: /* @__PURE__ */ jsxRuntimeExports.jsx(AgentActionViewer, { agentId }) }),
@@ -55080,9 +55075,7 @@ function GroupPanel({ onClose, agents, groupId }) {
55080
55075
  setChatName(rooms[0].name || "");
55081
55076
  if (agents) {
55082
55077
  const roomAgentIds = rooms.map((room) => room.agentId).filter(Boolean);
55083
- const roomAgents = agents.filter(
55084
- (agent) => roomAgentIds.includes(agent.id)
55085
- );
55078
+ const roomAgents = agents.filter((agent) => roomAgentIds.includes(agent.id));
55086
55079
  setSelectedAgents(roomAgents);
55087
55080
  const options2 = roomAgents.map((agent) => {
55088
55081
  var _a2;
@@ -55489,14 +55482,7 @@ function Page({ serverId }) {
55489
55482
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col w-full h-screen p-4", children: [
55490
55483
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center justify-between mb-4 p-3 bg-card rounded-lg border", children: [
55491
55484
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center gap-3", children: [
55492
- /* @__PURE__ */ jsxRuntimeExports.jsx(
55493
- AgentAvatarStack,
55494
- {
55495
- agentIds: getRoomAgentIds(),
55496
- agentAvatars,
55497
- size: "md"
55498
- }
55499
- ),
55485
+ /* @__PURE__ */ jsxRuntimeExports.jsx(AgentAvatarStack, { agentIds: getRoomAgentIds(), agentAvatars, size: "md" }),
55500
55486
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex flex-col", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsxRuntimeExports.jsx("h2", { className: "font-semibold text-lg", children: getRoomName() || "Group Chat" }) }) })
55501
55487
  ] }),
55502
55488
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -55632,14 +55618,7 @@ function Page({ serverId }) {
55632
55618
  ) })
55633
55619
  ] }) })
55634
55620
  ] }),
55635
- showGroupPanel && /* @__PURE__ */ jsxRuntimeExports.jsx(
55636
- GroupPanel,
55637
- {
55638
- agents,
55639
- onClose: () => setShowGroupPanel(false),
55640
- groupId: serverId
55641
- }
55642
- )
55621
+ showGroupPanel && /* @__PURE__ */ jsxRuntimeExports.jsx(GroupPanel, { agents, onClose: () => setShowGroupPanel(false), groupId: serverId })
55643
55622
  ] });
55644
55623
  }
55645
55624
  function AgentRoute$1() {
@@ -56285,4 +56264,4 @@ export {
56285
56264
  getDefaultExportFromCjs as g,
56286
56265
  require$$2 as r
56287
56266
  };
56288
- //# sourceMappingURL=index-BsOEygLw.js.map
56267
+ //# sourceMappingURL=index-CYjo_HmM.js.map
Binary file