@elizaos/cli 1.6.5-alpha.12 → 1.6.5-alpha.13
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 +18 -18
- package/dist/index.js.map +5 -5
- package/dist/templates/plugin-quick-starter/package.json +2 -2
- package/dist/templates/plugin-starter/package.json +2 -2
- package/dist/templates/project-starter/package.json +6 -6
- package/dist/templates/project-tee-starter/package.json +4 -4
- package/dist/version.d.ts +2 -2
- package/dist/version.js +2 -2
- package/package.json +7 -7
- package/templates/plugin-quick-starter/package.json +2 -2
- package/templates/plugin-starter/package.json +2 -2
- package/templates/project-starter/package.json +6 -6
- package/templates/project-tee-starter/package.json +4 -4
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.
|
|
4752
|
+
var CLI_VERSION = "1.6.5-alpha.13", CLI_NAME = "@elizaos/cli", CLI_DESCRIPTION = "elizaOS CLI - Manage your AI agents and plugins", BUILD_TIME = "2025-11-27T09:16:45.304Z", 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.
|
|
266773
|
-
const {
|
|
266774
|
-
console.log(`\uD83D\uDD27 [askAgentViaApi] \u2705
|
|
266775
|
-
if (
|
|
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
|
|
266778
|
-
console.log(`\uD83D\uDD27 [askAgentViaApi] Using server: ${
|
|
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
|
-
|
|
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
|
|
266834
|
-
console.log(`\uD83D\uDD27 [askAgentViaApi] \uD83D\uDD0D DEBUG: Server reports ${
|
|
266835
|
-
const ourChannel =
|
|
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
|
-
|
|
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
|
|
268335
|
-
const
|
|
268336
|
-
if (!
|
|
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
|
-
|
|
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=
|
|
313472
|
+
//# debugId=1A8B3BBF5067B18E64756E2164756E21
|
|
313473
313473
|
//# sourceMappingURL=index.js.map
|