@elizaos/cli 1.5.9-alpha.10 → 1.5.9-alpha.12
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/dev/utils/build-utils.d.ts.map +1 -1
- package/dist/commands/start/actions/agent-start.d.ts.map +1 -1
- package/dist/index.js +31 -27
- package/dist/index.js.map +6 -6
- 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;AAsRtC;;;;GAIG;AACH,wBAAsB,YAAY,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAgMrE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build-utils.d.ts","sourceRoot":"","sources":["../../../../src/commands/dev/utils/build-utils.ts"],"names":[],"mappings":"AAIA,OAAO,EAAe,UAAU,EAAE,MAAM,UAAU,CAAC;AA0DnD;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAyBvE;AAED;;GAEG;AACH,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CA2B5E;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,
|
|
1
|
+
{"version":3,"file":"build-utils.d.ts","sourceRoot":"","sources":["../../../../src/commands/dev/utils/build-utils.ts"],"names":[],"mappings":"AAIA,OAAO,EAAe,UAAU,EAAE,MAAM,UAAU,CAAC;AA0DnD;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAyBvE;AAED;;GAEG;AACH,wBAAsB,mBAAmB,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CA2B5E;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAqBxD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-start.d.ts","sourceRoot":"","sources":["../../../../src/commands/start/actions/agent-start.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,MAAM,EACZ,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAS7C;;;;GAIG;AACH,wBAAsB,UAAU,CAC9B,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,WAAW,EACnB,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,OAAO,CAAC,IAAI,CAAC,EAChD,OAAO,GAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAO,EACjC,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"agent-start.d.ts","sourceRoot":"","sources":["../../../../src/commands/start/actions/agent-start.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,SAAS,EACd,KAAK,aAAa,EAClB,KAAK,MAAM,EACZ,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAS7C;;;;GAIG;AACH,wBAAsB,UAAU,CAC9B,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,WAAW,EACnB,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,aAAa,KAAK,OAAO,CAAC,IAAI,CAAC,EAChD,OAAO,GAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAO,EACjC,OAAO,GAAE,iBAAsB,GAC9B,OAAO,CAAC,aAAa,CAAC,CA8ExB;AAED;;GAEG;AACH,wBAAsB,SAAS,CAAC,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAI1F"}
|
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.12", CLI_NAME = "@elizaos/cli", CLI_DESCRIPTION = "elizaOS CLI - Manage your AI agents and plugins", BUILD_TIME = "2025-09-16T15:56:28.627Z", BUILD_ENV = "production", version_default;
|
|
4692
4692
|
var init_version = __esm(() => {
|
|
4693
4693
|
version_default = {
|
|
4694
4694
|
version: CLI_VERSION,
|
|
@@ -259942,21 +259942,6 @@ async function startAgent2(character, server2, init, plugins2 = [], options = {}
|
|
|
259942
259942
|
};
|
|
259943
259943
|
await initWrapper(runtime);
|
|
259944
259944
|
await runtime.initialize();
|
|
259945
|
-
try {
|
|
259946
|
-
const migrationService = runtime.getService("database_migration");
|
|
259947
|
-
if (migrationService) {
|
|
259948
|
-
logger46.info("Discovering plugin schemas for dynamic migration...");
|
|
259949
|
-
migrationService.discoverAndRegisterPluginSchemas(finalPlugins);
|
|
259950
|
-
logger46.info("Running all plugin migrations...");
|
|
259951
|
-
await migrationService.runAllPluginMigrations();
|
|
259952
|
-
logger46.info("All plugin migrations completed successfully");
|
|
259953
|
-
} else {
|
|
259954
|
-
logger46.warn("DatabaseMigrationService not found - plugin schema migrations skipped");
|
|
259955
|
-
}
|
|
259956
|
-
} catch (error2) {
|
|
259957
|
-
logger46.error({ error: error2 }, "Failed to run plugin migrations:");
|
|
259958
|
-
throw error2;
|
|
259959
|
-
}
|
|
259960
259945
|
server2.registerAgent(runtime);
|
|
259961
259946
|
logger46.log(`Started ${runtime.character.name} as ${runtime.agentId}`);
|
|
259962
259947
|
return runtime;
|
|
@@ -273965,7 +273950,7 @@ function createDevContext(cwd) {
|
|
|
273965
273950
|
return {
|
|
273966
273951
|
directory: cwd,
|
|
273967
273952
|
directoryType,
|
|
273968
|
-
watchDirectory: existsSync22(srcDir) ? srcDir : cwd,
|
|
273953
|
+
watchDirectory: directoryType.monorepoRoot ? directoryType.monorepoRoot : existsSync22(srcDir) ? srcDir : cwd,
|
|
273969
273954
|
buildRequired: directoryType.type !== "elizaos-monorepo"
|
|
273970
273955
|
};
|
|
273971
273956
|
}
|
|
@@ -274273,11 +274258,12 @@ import { logger as logger28 } from "@elizaos/core";
|
|
|
274273
274258
|
import * as path26 from "path";
|
|
274274
274259
|
import * as fs15 from "fs";
|
|
274275
274260
|
var clientDevServerProcess = null;
|
|
274276
|
-
function
|
|
274277
|
-
const
|
|
274278
|
-
const
|
|
274279
|
-
const
|
|
274280
|
-
|
|
274261
|
+
function hasLocalClientSource(cwd) {
|
|
274262
|
+
const monorepoClient = path26.join(cwd, "packages", "client", "package.json");
|
|
274263
|
+
const parentClient = path26.join(path26.dirname(cwd), "client", "package.json");
|
|
274264
|
+
const localViteTs = path26.join(cwd, "vite.config.ts");
|
|
274265
|
+
const localViteJs = path26.join(cwd, "vite.config.js");
|
|
274266
|
+
return fs15.existsSync(monorepoClient) || fs15.existsSync(parentClient) || fs15.existsSync(localViteTs) || fs15.existsSync(localViteJs);
|
|
274281
274267
|
}
|
|
274282
274268
|
async function startClientDevServer(cwd) {
|
|
274283
274269
|
if (clientDevServerProcess) {
|
|
@@ -274298,12 +274284,24 @@ async function startClientDevServer(cwd) {
|
|
|
274298
274284
|
if (fs15.existsSync(path26.join(installedClientPath, "package.json"))) {
|
|
274299
274285
|
clientDir = installedClientPath;
|
|
274300
274286
|
}
|
|
274287
|
+
if (!clientDir) {
|
|
274288
|
+
const localViteTs = path26.join(cwd, "vite.config.ts");
|
|
274289
|
+
const localViteJs = path26.join(cwd, "vite.config.js");
|
|
274290
|
+
if (fs15.existsSync(localViteTs) || fs15.existsSync(localViteJs)) {
|
|
274291
|
+
clientDir = cwd;
|
|
274292
|
+
}
|
|
274293
|
+
}
|
|
274301
274294
|
}
|
|
274302
274295
|
}
|
|
274303
274296
|
if (!clientDir) {
|
|
274304
274297
|
console.warn("Client package not found, skipping client dev server");
|
|
274305
274298
|
return;
|
|
274306
274299
|
}
|
|
274300
|
+
const isInstalledClient = clientDir.includes(path26.join("node_modules", "@elizaos", "client"));
|
|
274301
|
+
if (isInstalledClient) {
|
|
274302
|
+
console.info("Detected installed @elizaos/client. Using server static UI instead of running Vite.");
|
|
274303
|
+
return;
|
|
274304
|
+
}
|
|
274307
274305
|
console.info("Starting Vite dev server for client with HMR...");
|
|
274308
274306
|
const clientPackageJson = JSON.parse(fs15.readFileSync(path26.join(clientDir, "package.json"), "utf-8"));
|
|
274309
274307
|
const hasDevClientScript = clientPackageJson.scripts?.["dev:client"];
|
|
@@ -274398,9 +274396,11 @@ async function stopClientDevServer() {
|
|
|
274398
274396
|
}
|
|
274399
274397
|
async function getClientPort(cwd) {
|
|
274400
274398
|
const possibleClientDirs = [
|
|
274399
|
+
cwd,
|
|
274401
274400
|
path26.join(cwd, "packages", "client"),
|
|
274402
274401
|
path26.join(path26.dirname(cwd), "client"),
|
|
274403
|
-
path26.join(cwd, "..", "client")
|
|
274402
|
+
path26.join(cwd, "..", "client"),
|
|
274403
|
+
path26.join(cwd, "node_modules", "@elizaos", "client")
|
|
274404
274404
|
];
|
|
274405
274405
|
for (const clientDir of possibleClientDirs) {
|
|
274406
274406
|
const pkgPath = path26.join(clientDir, "package.json");
|
|
@@ -274490,13 +274490,15 @@ async function startDevMode(options) {
|
|
|
274490
274490
|
const rebuildAndRestart = async () => {
|
|
274491
274491
|
try {
|
|
274492
274492
|
await serverManager2.stop();
|
|
274493
|
-
|
|
274493
|
+
const hasLocalVite2 = fs15.existsSync(path26.join(cwd, "vite.config.ts")) || fs15.existsSync(path26.join(cwd, "vite.config.js"));
|
|
274494
|
+
const shouldStartClient2 = (isProject || isMonorepo) && hasLocalClientSource(cwd) || isPlugin && hasLocalVite2;
|
|
274495
|
+
if (shouldStartClient2) {
|
|
274494
274496
|
await stopClientDevServer();
|
|
274495
274497
|
}
|
|
274496
274498
|
await performRebuild(context);
|
|
274497
274499
|
console.log("\u2713 Rebuild successful, restarting...");
|
|
274498
274500
|
await serverManager2.start(cliArgs);
|
|
274499
|
-
if (
|
|
274501
|
+
if (shouldStartClient2) {
|
|
274500
274502
|
await new Promise((resolve2) => setTimeout(resolve2, 2000));
|
|
274501
274503
|
await startClientDevServer(cwd);
|
|
274502
274504
|
}
|
|
@@ -274520,7 +274522,9 @@ async function startDevMode(options) {
|
|
|
274520
274522
|
const serverPort = portArgIndex !== -1 && cliArgs[portArgIndex + 1] ? parseInt(cliArgs[portArgIndex + 1], 10) : availablePort || 3000;
|
|
274521
274523
|
await serverManager2.start(cliArgs);
|
|
274522
274524
|
await new Promise((resolve2) => setTimeout(resolve2, 2000));
|
|
274523
|
-
|
|
274525
|
+
const hasLocalVite = fs15.existsSync(path26.join(cwd, "vite.config.ts")) || fs15.existsSync(path26.join(cwd, "vite.config.js"));
|
|
274526
|
+
const shouldStartClient = (isProject || isMonorepo) && hasLocalClientSource(cwd) || isPlugin && hasLocalVite;
|
|
274527
|
+
if (shouldStartClient) {
|
|
274524
274528
|
await startClientDevServer(cwd);
|
|
274525
274529
|
await new Promise((resolve2) => setTimeout(resolve2, 1000));
|
|
274526
274530
|
}
|
|
@@ -299232,5 +299236,5 @@ main2().catch((error2) => {
|
|
|
299232
299236
|
process.exit(1);
|
|
299233
299237
|
});
|
|
299234
299238
|
|
|
299235
|
-
//# debugId=
|
|
299239
|
+
//# debugId=23FBF41990F8D3F264756E2164756E21
|
|
299236
299240
|
//# sourceMappingURL=index.js.map
|