@elizaos/cli 1.5.9-beta.1 → 1.5.10-alpha.1
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/file-watcher.d.ts.map +1 -1
- package/dist/commands/start/index.d.ts.map +1 -1
- package/dist/index.js +35 -20
- package/dist/index.js.map +7 -7
- 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/utils/copy-template.d.ts.map +1 -1
- package/dist/version.d.ts +2 -2
- package/dist/version.d.ts.map +1 -1
- 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;AAkRtC;;;;GAIG;AACH,wBAAsB,YAAY,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,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;AAkRtC;;;;GAIG;AACH,wBAAsB,YAAY,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CA8OrE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-watcher.d.ts","sourceRoot":"","sources":["../../../../src/commands/dev/utils/file-watcher.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AA0FzC;;;;GAIG;AACH,wBAAsB,cAAc,CAClC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,IAAI,EACpB,MAAM,GAAE,OAAO,CAAC,aAAa,CAAM,GAClC,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"file-watcher.d.ts","sourceRoot":"","sources":["../../../../src/commands/dev/utils/file-watcher.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AA0FzC;;;;GAIG;AACH,wBAAsB,cAAc,CAClC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,IAAI,EACpB,MAAM,GAAE,OAAO,CAAC,aAAa,CAAM,GAClC,OAAO,CAAC,IAAI,CAAC,CAwHf;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,IAAI,EAAE,KAAK,GAAE,MAAY,GAAG,MAAM,IAAI,CAa3F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/start/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAOpC,eAAO,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/start/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAOpC,eAAO,MAAM,KAAK,SA4Hd,CAAC;AAGL,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,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.
|
|
4691
|
+
var CLI_VERSION = "1.5.10-alpha.1", CLI_NAME = "@elizaos/cli", CLI_DESCRIPTION = "elizaOS CLI - Manage your AI agents and plugins", BUILD_TIME = "2025-09-17T22:23:24.979Z", BUILD_ENV = "production", version_default;
|
|
4692
4692
|
var init_version = __esm(() => {
|
|
4693
4693
|
version_default = {
|
|
4694
4694
|
version: CLI_VERSION,
|
|
@@ -6619,37 +6619,42 @@ ${possibleTemplatePaths.join(`
|
|
|
6619
6619
|
}
|
|
6620
6620
|
const packageJsonPath = path6.join(targetDir, "package.json");
|
|
6621
6621
|
try {
|
|
6622
|
-
let cliPackageVersion = "latest";
|
|
6623
|
-
try {
|
|
6624
|
-
const versionModule = await Promise.resolve().then(() => (init_version(), exports_version)).catch(() => null);
|
|
6625
|
-
if (versionModule && versionModule.CLI_VERSION) {
|
|
6626
|
-
cliPackageVersion = versionModule.CLI_VERSION;
|
|
6627
|
-
}
|
|
6628
|
-
} catch {
|
|
6629
|
-
logger9.debug('Version file not found, using "latest" for dependencies');
|
|
6630
|
-
}
|
|
6631
6622
|
const packageJson = JSON.parse(await fs5.readFile(packageJsonPath, "utf8"));
|
|
6632
6623
|
if (packageJson.private) {
|
|
6633
6624
|
delete packageJson.private;
|
|
6634
6625
|
logger9.debug("Removed private field from template package.json");
|
|
6635
6626
|
}
|
|
6627
|
+
const normalizeElizaDep = (currentVersion) => {
|
|
6628
|
+
if (typeof currentVersion === "string" && currentVersion.startsWith("workspace:")) {
|
|
6629
|
+
return "latest";
|
|
6630
|
+
}
|
|
6631
|
+
return currentVersion;
|
|
6632
|
+
};
|
|
6636
6633
|
if (packageJson.dependencies) {
|
|
6637
6634
|
for (const depName of Object.keys(packageJson.dependencies)) {
|
|
6638
6635
|
if (depName.startsWith("@elizaos/")) {
|
|
6639
|
-
|
|
6640
|
-
|
|
6636
|
+
const before = packageJson.dependencies[depName];
|
|
6637
|
+
const after = normalizeElizaDep(before);
|
|
6638
|
+
if (after !== before) {
|
|
6639
|
+
if (!isQuietMode()) {
|
|
6640
|
+
logger9.info(`Setting ${depName} to use version ${after}`);
|
|
6641
|
+
}
|
|
6642
|
+
packageJson.dependencies[depName] = after;
|
|
6641
6643
|
}
|
|
6642
|
-
packageJson.dependencies[depName] = cliPackageVersion;
|
|
6643
6644
|
}
|
|
6644
6645
|
}
|
|
6645
6646
|
}
|
|
6646
6647
|
if (packageJson.devDependencies) {
|
|
6647
6648
|
for (const depName of Object.keys(packageJson.devDependencies)) {
|
|
6648
6649
|
if (depName.startsWith("@elizaos/")) {
|
|
6649
|
-
|
|
6650
|
-
|
|
6650
|
+
const before = packageJson.devDependencies[depName];
|
|
6651
|
+
const after = normalizeElizaDep(before);
|
|
6652
|
+
if (after !== before) {
|
|
6653
|
+
if (!isQuietMode()) {
|
|
6654
|
+
logger9.info(`Setting dev dependency ${depName} to use version ${after}`);
|
|
6655
|
+
}
|
|
6656
|
+
packageJson.devDependencies[depName] = after;
|
|
6651
6657
|
}
|
|
6652
|
-
packageJson.devDependencies[depName] = cliPackageVersion;
|
|
6653
6658
|
}
|
|
6654
6659
|
}
|
|
6655
6660
|
}
|
|
@@ -260125,6 +260130,9 @@ var init_start = __esm(() => {
|
|
|
260125
260130
|
} else {
|
|
260126
260131
|
process.env.PATH = localBinPath;
|
|
260127
260132
|
}
|
|
260133
|
+
if (!process.env.PGLITE_WASM_MODE) {
|
|
260134
|
+
process.env.PGLITE_WASM_MODE = "node";
|
|
260135
|
+
}
|
|
260128
260136
|
const cwd = process.cwd();
|
|
260129
260137
|
const dirInfo = detectDirectoryType(cwd);
|
|
260130
260138
|
const isMonorepo = dirInfo.type === "elizaos-monorepo";
|
|
@@ -274067,8 +274075,8 @@ var DEFAULT_WATCHER_CONFIG = {
|
|
|
274067
274075
|
usePolling: false,
|
|
274068
274076
|
interval: 1000,
|
|
274069
274077
|
awaitWriteFinish: {
|
|
274070
|
-
stabilityThreshold:
|
|
274071
|
-
pollInterval:
|
|
274078
|
+
stabilityThreshold: 300,
|
|
274079
|
+
pollInterval: 150
|
|
274072
274080
|
}
|
|
274073
274081
|
};
|
|
274074
274082
|
var activeWatcher = null;
|
|
@@ -274076,7 +274084,7 @@ var activeWatchRoot = null;
|
|
|
274076
274084
|
var changeHandlerRef = null;
|
|
274077
274085
|
var readyLogged = false;
|
|
274078
274086
|
var globalDebounceTimer = null;
|
|
274079
|
-
function debounceAndRun(handler, delay =
|
|
274087
|
+
function debounceAndRun(handler, delay = 500) {
|
|
274080
274088
|
if (globalDebounceTimer) {
|
|
274081
274089
|
clearTimeout(globalDebounceTimer);
|
|
274082
274090
|
}
|
|
@@ -274141,6 +274149,7 @@ async function watchDirectory(dir, onChange, config2 = {}) {
|
|
|
274141
274149
|
readyLogged = false;
|
|
274142
274150
|
}
|
|
274143
274151
|
const watcher = chokidar.watch(watchPaths, watchOptions);
|
|
274152
|
+
watcher.setMaxListeners(20);
|
|
274144
274153
|
activeWatcher = watcher;
|
|
274145
274154
|
activeWatchRoot = absoluteDir;
|
|
274146
274155
|
if (process.env.DEBUG) {
|
|
@@ -274575,6 +274584,10 @@ async function startDevMode(options) {
|
|
|
274575
274584
|
}
|
|
274576
274585
|
const rebuildAndRestart = async () => {
|
|
274577
274586
|
try {
|
|
274587
|
+
if (rebuildAndRestart._inFlight) {
|
|
274588
|
+
return;
|
|
274589
|
+
}
|
|
274590
|
+
rebuildAndRestart._inFlight = true;
|
|
274578
274591
|
await serverManager2.stop();
|
|
274579
274592
|
const hasLocalVite2 = fs15.existsSync(path26.join(cwd, "vite.config.ts")) || fs15.existsSync(path26.join(cwd, "vite.config.js"));
|
|
274580
274593
|
const shouldStartClient2 = (isProject || isMonorepo) && hasLocalClientSource(cwd) || isPlugin && hasLocalVite2;
|
|
@@ -274594,6 +274607,8 @@ async function startDevMode(options) {
|
|
|
274594
274607
|
console.info("Attempting to restart server regardless of build failure...");
|
|
274595
274608
|
await serverManager2.start(cliArgs);
|
|
274596
274609
|
}
|
|
274610
|
+
} finally {
|
|
274611
|
+
rebuildAndRestart._inFlight = false;
|
|
274597
274612
|
}
|
|
274598
274613
|
};
|
|
274599
274614
|
if (isProject || isPlugin || isMonorepo) {
|
|
@@ -299343,5 +299358,5 @@ main2().catch((error2) => {
|
|
|
299343
299358
|
process.exit(1);
|
|
299344
299359
|
});
|
|
299345
299360
|
|
|
299346
|
-
//# debugId=
|
|
299361
|
+
//# debugId=033DB28E74AA7E7964756E2164756E21
|
|
299347
299362
|
//# sourceMappingURL=index.js.map
|