@elizaos/cli 1.5.9-alpha.12 → 1.5.9-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/commands/dev/actions/dev-server.d.ts.map +1 -1
- package/dist/commands/update/index.d.ts.map +1 -1
- package/dist/index.js +32 -14
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev-server.d.ts","sourceRoot":"","sources":["../../../../src/commands/dev/actions/dev-server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"dev-server.d.ts","sourceRoot":"","sources":["../../../../src/commands/dev/actions/dev-server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AA0QtC;;;;GAIG;AACH,wBAAsB,YAAY,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CA+MrE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/update/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQpC,eAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/update/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQpC,eAAO,MAAM,MAAM,SAoGf,CAAC;AAGL,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,SAAS,CAAC;AACxB,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -4688,7 +4688,7 @@ __export(exports_version, {
|
|
|
4688
4688
|
BUILD_TIME: () => BUILD_TIME,
|
|
4689
4689
|
BUILD_ENV: () => BUILD_ENV
|
|
4690
4690
|
});
|
|
4691
|
-
var CLI_VERSION = "1.5.9-alpha.
|
|
4691
|
+
var CLI_VERSION = "1.5.9-alpha.14", CLI_NAME = "@elizaos/cli", CLI_DESCRIPTION = "elizaOS CLI - Manage your AI agents and plugins", BUILD_TIME = "2025-09-17T00:30:27.072Z", BUILD_ENV = "production", version_default;
|
|
4692
4692
|
var init_version = __esm(() => {
|
|
4693
4693
|
version_default = {
|
|
4694
4694
|
version: CLI_VERSION,
|
|
@@ -274446,6 +274446,7 @@ async function startDevMode(options) {
|
|
|
274446
274446
|
const isProject = directoryType.type === "elizaos-project";
|
|
274447
274447
|
const isPlugin = directoryType.type === "elizaos-plugin";
|
|
274448
274448
|
const isMonorepo = directoryType.type === "elizaos-monorepo";
|
|
274449
|
+
const inStandalone = !isProject && !isPlugin && !isMonorepo;
|
|
274449
274450
|
if (isProject) {
|
|
274450
274451
|
console.info("Identified as an ElizaOS project package");
|
|
274451
274452
|
} else if (isPlugin) {
|
|
@@ -274515,13 +274516,20 @@ async function startDevMode(options) {
|
|
|
274515
274516
|
console.info(`Running in ${modeDescription} mode`);
|
|
274516
274517
|
await performInitialBuild(context);
|
|
274517
274518
|
}
|
|
274518
|
-
|
|
274519
|
-
|
|
274519
|
+
let backendStarted = false;
|
|
274520
|
+
let serverPort = availablePort || 3000;
|
|
274521
|
+
if (!inStandalone) {
|
|
274522
|
+
if (process.env.ELIZA_TEST_MODE === "true") {
|
|
274523
|
+
console.info(`[DEV] Starting server with args: ${cliArgs.join(" ")}`);
|
|
274524
|
+
}
|
|
274525
|
+
const portArgIndex = cliArgs.indexOf("--port");
|
|
274526
|
+
serverPort = portArgIndex !== -1 && cliArgs[portArgIndex + 1] ? parseInt(cliArgs[portArgIndex + 1], 10) : availablePort || 3000;
|
|
274527
|
+
await serverManager2.start(cliArgs);
|
|
274528
|
+
backendStarted = true;
|
|
274529
|
+
await new Promise((resolve2) => setTimeout(resolve2, 2000));
|
|
274530
|
+
} else if (process.env.ELIZA_TEST_MODE === "true") {
|
|
274531
|
+
console.info("[DEV] Standalone mode detected, skipping backend server start");
|
|
274520
274532
|
}
|
|
274521
|
-
const portArgIndex = cliArgs.indexOf("--port");
|
|
274522
|
-
const serverPort = portArgIndex !== -1 && cliArgs[portArgIndex + 1] ? parseInt(cliArgs[portArgIndex + 1], 10) : availablePort || 3000;
|
|
274523
|
-
await serverManager2.start(cliArgs);
|
|
274524
|
-
await new Promise((resolve2) => setTimeout(resolve2, 2000));
|
|
274525
274533
|
const hasLocalVite = fs15.existsSync(path26.join(cwd, "vite.config.ts")) || fs15.existsSync(path26.join(cwd, "vite.config.js"));
|
|
274526
274534
|
const shouldStartClient = (isProject || isMonorepo) && hasLocalClientSource(cwd) || isPlugin && hasLocalVite;
|
|
274527
274535
|
if (shouldStartClient) {
|
|
@@ -274530,11 +274538,17 @@ async function startDevMode(options) {
|
|
|
274530
274538
|
}
|
|
274531
274539
|
console.info(`
|
|
274532
274540
|
` + "\u2550".repeat(60));
|
|
274533
|
-
|
|
274541
|
+
if (backendStarted || clientDevServerProcess) {
|
|
274542
|
+
console.info("\uD83D\uDE80 Development servers are running:");
|
|
274543
|
+
} else {
|
|
274544
|
+
console.info("\uD83D\uDE80 Dev environment ready (standalone mode)");
|
|
274545
|
+
}
|
|
274534
274546
|
console.info("\u2550".repeat(60));
|
|
274535
|
-
|
|
274547
|
+
if (backendStarted) {
|
|
274548
|
+
console.info(`
|
|
274536
274549
|
Backend Server: ${source_default.cyan(`http://localhost:${serverPort}`)}`);
|
|
274537
|
-
|
|
274550
|
+
console.info(` API Endpoint: ${source_default.cyan(`http://localhost:${serverPort}/api`)}`);
|
|
274551
|
+
}
|
|
274538
274552
|
if (clientDevServerProcess) {
|
|
274539
274553
|
const clientPort = await getClientPort(cwd);
|
|
274540
274554
|
if (clientPort) {
|
|
@@ -274548,7 +274562,7 @@ async function startDevMode(options) {
|
|
|
274548
274562
|
console.log("\uD83D\uDCC1 Watching for file changes...");
|
|
274549
274563
|
console.log("\uD83D\uDD04 The server will restart automatically when files change.");
|
|
274550
274564
|
} else {
|
|
274551
|
-
console.log("\u26A1 Running in standalone mode (no file watching)");
|
|
274565
|
+
console.log("\u26A1 Running in standalone mode (no backend, no file watching)");
|
|
274552
274566
|
}
|
|
274553
274567
|
console.log(`
|
|
274554
274568
|
Press Ctrl+C to stop all servers`);
|
|
@@ -284046,12 +284060,16 @@ var update = new Command().name("update").description("Update ElizaOS CLI and pr
|
|
|
284046
284060
|
console.warn("CLI update is not available when running via npx or bunx.");
|
|
284047
284061
|
console.info("Please install the CLI globally:");
|
|
284048
284062
|
console.info(" bun install -g @elizaos/cli");
|
|
284049
|
-
if (!updatePackages)
|
|
284063
|
+
if (!updatePackages) {
|
|
284064
|
+
console.log("Update completed");
|
|
284050
284065
|
return;
|
|
284066
|
+
}
|
|
284051
284067
|
} else {
|
|
284052
284068
|
const success = await performCliUpdate();
|
|
284053
|
-
if (!updatePackages)
|
|
284069
|
+
if (!updatePackages) {
|
|
284070
|
+
console.log("Update completed");
|
|
284054
284071
|
return;
|
|
284072
|
+
}
|
|
284055
284073
|
if (!success) {
|
|
284056
284074
|
console.warn("CLI update failed, continuing with package updates...");
|
|
284057
284075
|
}
|
|
@@ -299236,5 +299254,5 @@ main2().catch((error2) => {
|
|
|
299236
299254
|
process.exit(1);
|
|
299237
299255
|
});
|
|
299238
299256
|
|
|
299239
|
-
//# debugId=
|
|
299257
|
+
//# debugId=403837137E1381CC64756E2164756E21
|
|
299240
299258
|
//# sourceMappingURL=index.js.map
|