@elizaos/cli 1.6.5-alpha.12 → 1.6.5-alpha.14

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
@@ -4749,7 +4749,7 @@ __export(exports_version, {
4749
4749
  BUILD_TIME: () => BUILD_TIME,
4750
4750
  BUILD_ENV: () => BUILD_ENV
4751
4751
  });
4752
- var CLI_VERSION = "1.6.5-alpha.12", CLI_NAME = "@elizaos/cli", CLI_DESCRIPTION = "elizaOS CLI - Manage your AI agents and plugins", BUILD_TIME = "2025-11-26T14:58:24.881Z", BUILD_ENV = "production", version_default;
4752
+ var CLI_VERSION = "1.6.5-alpha.14", CLI_NAME = "@elizaos/cli", CLI_DESCRIPTION = "elizaOS CLI - Manage your AI agents and plugins", BUILD_TIME = "2025-11-29T20:24:36.717Z", BUILD_ENV = "production", version_default;
4753
4753
  var init_version = __esm(() => {
4754
4754
  version_default = {
4755
4755
  version: CLI_VERSION,
@@ -266769,13 +266769,13 @@ async function askAgentViaApi(server2, agentId, input3, timeoutMs = 60000, serve
266769
266769
  console.log(`\uD83D\uDD27 [askAgentViaApi] - CENTRAL_MESSAGE_SERVER_URL env: ${process.env.CENTRAL_MESSAGE_SERVER_URL || "NOT SET"}`);
266770
266770
  const client = ElizaClient.create({ baseUrl: `http://localhost:${port}` });
266771
266771
  console.log(`\uD83D\uDD27 [askAgentViaApi] \u2705 ElizaClient created`);
266772
- console.log(`\uD83D\uDD27 [askAgentViaApi] About to call client.messaging.listServers()...`);
266773
- const { servers } = await client.messaging.listServers();
266774
- console.log(`\uD83D\uDD27 [askAgentViaApi] \u2705 listServers() returned ${servers.length} servers`);
266775
- if (servers.length === 0)
266772
+ console.log(`\uD83D\uDD27 [askAgentViaApi] About to call client.messaging.listMessageServers()...`);
266773
+ const { messageServers } = await client.messaging.listMessageServers();
266774
+ console.log(`\uD83D\uDD27 [askAgentViaApi] \u2705 listMessageServers() returned ${messageServers.length} servers`);
266775
+ if (messageServers.length === 0)
266776
266776
  throw new Error("No servers found");
266777
- const defaultServer = servers[0];
266778
- console.log(`\uD83D\uDD27 [askAgentViaApi] Using server: ${defaultServer.id} (${defaultServer.name || "unnamed"})`);
266777
+ const defaultMessageServer = messageServers[0];
266778
+ console.log(`\uD83D\uDD27 [askAgentViaApi] Using server: ${defaultMessageServer.id} (${defaultMessageServer.name || "unnamed"})`);
266779
266779
  const testUserId = stringToUuidCore("11111111-1111-1111-1111-111111111111");
266780
266780
  console.log(`\uD83D\uDD27 [askAgentViaApi] Test user ID: ${testUserId}`);
266781
266781
  let channel;
@@ -266806,7 +266806,7 @@ async function askAgentViaApi(server2, agentId, input3, timeoutMs = 60000, serve
266806
266806
  headers: { "Content-Type": "application/json" },
266807
266807
  body: JSON.stringify({
266808
266808
  name: "scenario-test-channel",
266809
- server_id: defaultServer.id,
266809
+ message_server_id: defaultMessageServer.id,
266810
266810
  participantCentralUserIds: [testUserId],
266811
266811
  type: ChannelType.GROUP,
266812
266812
  metadata: { scenario: true }
@@ -266830,9 +266830,9 @@ async function askAgentViaApi(server2, agentId, input3, timeoutMs = 60000, serve
266830
266830
  }
266831
266831
  console.log(`\uD83D\uDD27 [askAgentViaApi] \uD83D\uDD0D DEBUG: Checking server channels before sync...`);
266832
266832
  try {
266833
- const serverChannels = await client.messaging.getServerChannels(defaultServer.id);
266834
- console.log(`\uD83D\uDD27 [askAgentViaApi] \uD83D\uDD0D DEBUG: Server reports ${serverChannels.channels.length} total channels`);
266835
- const ourChannel = serverChannels.channels.find((c3) => c3.id === channel.id);
266833
+ const messageServerChannels = await client.messaging.getMessageServerChannels(defaultMessageServer.id);
266834
+ console.log(`\uD83D\uDD27 [askAgentViaApi] \uD83D\uDD0D DEBUG: Server reports ${messageServerChannels.channels.length} total channels`);
266835
+ const ourChannel = messageServerChannels.channels.find((c3) => c3.id === channel.id);
266836
266836
  console.log(`\uD83D\uDD27 [askAgentViaApi] \uD83D\uDD0D DEBUG: Our channel ${channel.id} found in server list: ${!!ourChannel}`);
266837
266837
  if (ourChannel) {
266838
266838
  console.log(`\uD83D\uDD27 [askAgentViaApi] \uD83D\uDD0D DEBUG: Channel details:`, JSON.stringify(ourChannel, null, 2));
@@ -266860,7 +266860,7 @@ async function askAgentViaApi(server2, agentId, input3, timeoutMs = 60000, serve
266860
266860
  body: JSON.stringify({
266861
266861
  author_id: testUserId,
266862
266862
  content: input3,
266863
- server_id: defaultServer.id,
266863
+ message_server_id: defaultMessageServer.id,
266864
266864
  metadata: { scenario: true, user_display_name: "Scenario User" },
266865
266865
  source_type: "scenario_message"
266866
266866
  })
@@ -268331,17 +268331,17 @@ class ConversationManager {
268331
268331
  const { ChannelType: ChannelType2, stringToUuid: stringToUuidCore2 } = await import("@elizaos/core");
268332
268332
  const port = this.serverPort;
268333
268333
  const client = new ElizaClient2({ baseUrl: `http://localhost:${port}` });
268334
- const servers = await client.messaging.listServers();
268335
- const defaultServer = servers.servers.find((s) => s.name === "Default Server");
268336
- if (!defaultServer)
268337
- throw new Error("Default server not found");
268334
+ const messageServers = await client.messaging.listMessageServers();
268335
+ const defaultMessageServer = messageServers.messageServers.find((s) => s.name === "Default Message Server");
268336
+ if (!defaultMessageServer)
268337
+ throw new Error("Default message server not found");
268338
268338
  const testUserId = stringToUuidCore2("11111111-1111-1111-1111-111111111111");
268339
268339
  const channelResponse = await fetch(`http://localhost:${port}/api/messaging/central-channels`, {
268340
268340
  method: "POST",
268341
268341
  headers: { "Content-Type": "application/json" },
268342
268342
  body: JSON.stringify({
268343
268343
  name: "scenario-conversation-channel",
268344
- server_id: defaultServer.id,
268344
+ message_server_id: defaultMessageServer.id,
268345
268345
  participantCentralUserIds: [testUserId],
268346
268346
  type: ChannelType2.GROUP,
268347
268347
  metadata: { scenario: true, conversation: true }
@@ -313469,5 +313469,5 @@ main().catch((error46) => {
313469
313469
  process.exit(1);
313470
313470
  });
313471
313471
 
313472
- //# debugId=1B0C272A1E4D649664756E2164756E21
313472
+ //# debugId=EEF1D5044A93A53264756E2164756E21
313473
313473
  //# sourceMappingURL=index.js.map