@elizaos/cli 1.7.3-alpha.3 → 1.7.3-alpha.4
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/agent/utils/validation.d.ts.map +1 -1
- package/dist/index.js +27 -42
- 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/utils/copy-template.d.ts +1 -10
- package/dist/utils/copy-template.d.ts.map +1 -1
- package/dist/utils/get-config.d.ts.map +1 -1
- package/dist/version.d.ts +2 -2
- package/dist/version.js +2 -2
- package/package.json +8 -8
- 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":"validation.d.ts","sourceRoot":"","sources":["../../../../src/commands/agent/utils/validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../../../src/commands/agent/utils/validation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAM/C,eAAO,MAAM,gBAAgB;;;;iBAMb,CAAC;AAEjB,eAAO,MAAM,wBAAwB;;;;;;iBAEnC,CAAC;AAEH;;GAEG;AACH,wBAAsB,SAAS,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC,CAWzE;AAED;;GAEG;AACH,wBAAsB,cAAc,CAAC,eAAe,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,CA8BjG"}
|
package/dist/index.js
CHANGED
|
@@ -4670,7 +4670,7 @@ __export(exports_version, {
|
|
|
4670
4670
|
BUILD_TIME: () => BUILD_TIME,
|
|
4671
4671
|
BUILD_ENV: () => BUILD_ENV
|
|
4672
4672
|
});
|
|
4673
|
-
var CLI_VERSION = "1.7.3-alpha.
|
|
4673
|
+
var CLI_VERSION = "1.7.3-alpha.4", CLI_NAME = "@elizaos/cli", CLI_DESCRIPTION = "elizaOS CLI - Manage your AI agents and plugins", BUILD_TIME = "2026-02-08T18:20:35.369Z", BUILD_ENV = "production", version_default;
|
|
4674
4674
|
var init_version = __esm(() => {
|
|
4675
4675
|
version_default = {
|
|
4676
4676
|
version: CLI_VERSION,
|
|
@@ -6584,7 +6584,6 @@ async function copyTemplate(templateType, targetDir) {
|
|
|
6584
6584
|
const possibleTemplatePaths = [
|
|
6585
6585
|
path6.resolve(__dirname2, "../../templates", packageName),
|
|
6586
6586
|
path6.resolve(__dirname2, "../templates", packageName),
|
|
6587
|
-
path6.resolve(__dirname2, "../../templates", packageName),
|
|
6588
6587
|
path6.resolve(__dirname2, "../../../templates", packageName),
|
|
6589
6588
|
path6.resolve(__dirname2, "templates", packageName),
|
|
6590
6589
|
path6.resolve(__dirname2, "../../../..", packageName),
|
|
@@ -6615,39 +6614,21 @@ ${possibleTemplatePaths.join(`
|
|
|
6615
6614
|
delete packageJson.private;
|
|
6616
6615
|
logger8.debug({ src: "cli", util: "copy-template" }, "Removed private field from template package.json");
|
|
6617
6616
|
}
|
|
6618
|
-
const
|
|
6619
|
-
|
|
6620
|
-
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
};
|
|
6624
|
-
if (packageJson.dependencies) {
|
|
6625
|
-
for (const depName of Object.keys(packageJson.dependencies)) {
|
|
6626
|
-
if (depName.startsWith("@elizaos/")) {
|
|
6627
|
-
const before = packageJson.dependencies[depName];
|
|
6628
|
-
const after = normalizeElizaDep(before);
|
|
6629
|
-
if (after !== before) {
|
|
6630
|
-
if (!isQuietMode()) {
|
|
6631
|
-
logger8.info({ src: "cli", util: "copy-template", depName, version: after }, "Setting dependency version");
|
|
6632
|
-
}
|
|
6633
|
-
packageJson.dependencies[depName] = after;
|
|
6617
|
+
const normalizeElizaDeps = (deps, isDevDeps = false) => {
|
|
6618
|
+
for (const depName of Object.keys(deps)) {
|
|
6619
|
+
if (depName.startsWith("@elizaos/") && deps[depName] !== "latest") {
|
|
6620
|
+
if (!isQuietMode()) {
|
|
6621
|
+
logger8.info({ src: "cli", util: "copy-template", depName, version: "latest" }, isDevDeps ? "Setting dev dependency version" : "Setting dependency version");
|
|
6634
6622
|
}
|
|
6623
|
+
deps[depName] = "latest";
|
|
6635
6624
|
}
|
|
6636
6625
|
}
|
|
6626
|
+
};
|
|
6627
|
+
if (packageJson.dependencies) {
|
|
6628
|
+
normalizeElizaDeps(packageJson.dependencies);
|
|
6637
6629
|
}
|
|
6638
6630
|
if (packageJson.devDependencies) {
|
|
6639
|
-
|
|
6640
|
-
if (depName.startsWith("@elizaos/")) {
|
|
6641
|
-
const before = packageJson.devDependencies[depName];
|
|
6642
|
-
const after = normalizeElizaDep(before);
|
|
6643
|
-
if (after !== before) {
|
|
6644
|
-
if (!isQuietMode()) {
|
|
6645
|
-
logger8.info({ src: "cli", util: "copy-template", depName, version: after }, "Setting dev dependency version");
|
|
6646
|
-
}
|
|
6647
|
-
packageJson.devDependencies[depName] = after;
|
|
6648
|
-
}
|
|
6649
|
-
}
|
|
6650
|
-
}
|
|
6631
|
+
normalizeElizaDeps(packageJson.devDependencies, true);
|
|
6651
6632
|
}
|
|
6652
6633
|
const projectNameFromPath = path6.basename(targetDir);
|
|
6653
6634
|
if (packageJson.name !== projectNameFromPath) {
|
|
@@ -6698,11 +6679,10 @@ async function replacePluginNameInFiles(targetDir, pluginName) {
|
|
|
6698
6679
|
});
|
|
6699
6680
|
await Promise.all(promises2);
|
|
6700
6681
|
}
|
|
6701
|
-
var
|
|
6682
|
+
var __dirname2;
|
|
6702
6683
|
var init_copy_template = __esm(() => {
|
|
6703
6684
|
init_spinner_utils();
|
|
6704
|
-
|
|
6705
|
-
__dirname2 = path6.dirname(__filename2);
|
|
6685
|
+
__dirname2 = path6.dirname(fileURLToPath(import.meta.url));
|
|
6706
6686
|
});
|
|
6707
6687
|
|
|
6708
6688
|
// src/utils/version-channel.ts
|
|
@@ -6763,13 +6743,13 @@ import { existsSync as existsSync6, readFileSync as readFileSync4 } from "fs";
|
|
|
6763
6743
|
import path7, { dirname } from "path";
|
|
6764
6744
|
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
6765
6745
|
function isRunningFromNodeModules() {
|
|
6766
|
-
const
|
|
6767
|
-
return
|
|
6746
|
+
const __filename2 = fileURLToPath2(import.meta.url);
|
|
6747
|
+
return __filename2.includes("node_modules") || __filename2.includes("/.bun/");
|
|
6768
6748
|
}
|
|
6769
6749
|
function getVersion() {
|
|
6770
|
-
const
|
|
6750
|
+
const __filename2 = fileURLToPath2(import.meta.url);
|
|
6771
6751
|
const userEnv = UserEnvironment.getInstance();
|
|
6772
|
-
const monorepoRoot = userEnv.findMonorepoRoot(
|
|
6752
|
+
const monorepoRoot = userEnv.findMonorepoRoot(__filename2);
|
|
6773
6753
|
if (monorepoRoot && !isRunningFromNodeModules()) {
|
|
6774
6754
|
return "monorepo";
|
|
6775
6755
|
}
|
|
@@ -6778,15 +6758,15 @@ function getVersion() {
|
|
|
6778
6758
|
return cachedVersion;
|
|
6779
6759
|
}
|
|
6780
6760
|
try {
|
|
6781
|
-
const
|
|
6782
|
-
const __dirname3 = dirname(
|
|
6761
|
+
const __filename3 = fileURLToPath2(import.meta.url);
|
|
6762
|
+
const __dirname3 = dirname(__filename3);
|
|
6783
6763
|
const possiblePaths = [
|
|
6784
6764
|
path7.resolve(__dirname3, "../version.js"),
|
|
6785
6765
|
path7.resolve(__dirname3, "version.js"),
|
|
6786
6766
|
path7.resolve(__dirname3, "./version.js")
|
|
6787
6767
|
];
|
|
6788
|
-
if (
|
|
6789
|
-
const distDir = path7.dirname(
|
|
6768
|
+
if (__filename3.endsWith("index.js")) {
|
|
6769
|
+
const distDir = path7.dirname(__filename3);
|
|
6790
6770
|
possiblePaths.unshift(path7.resolve(distDir, "version.js"));
|
|
6791
6771
|
}
|
|
6792
6772
|
for (const versionPath of possiblePaths) {
|
|
@@ -24423,6 +24403,9 @@ async function getElizaDirectories(targetProjectDir) {
|
|
|
24423
24403
|
return { elizaDir, elizaDbDir, envFilePath };
|
|
24424
24404
|
}
|
|
24425
24405
|
async function ensureDir(dirPath) {
|
|
24406
|
+
if (!dirPath || dirPath.trim() === "") {
|
|
24407
|
+
throw new Error("Directory path cannot be empty");
|
|
24408
|
+
}
|
|
24426
24409
|
if (!existsSync10(dirPath)) {
|
|
24427
24410
|
await fs7.mkdir(dirPath, { recursive: true });
|
|
24428
24411
|
logger11.debug({ src: "cli", util: "get-config", dirPath }, "Created directory");
|
|
@@ -31576,6 +31559,7 @@ var init_utils2 = __esm(() => {
|
|
|
31576
31559
|
// src/commands/agent/utils/validation.ts
|
|
31577
31560
|
import { AgentsService } from "@elizaos/api-client";
|
|
31578
31561
|
async function getAgents(opts) {
|
|
31562
|
+
await loadEnvironment();
|
|
31579
31563
|
const config3 = createApiClientConfig(opts);
|
|
31580
31564
|
const agentsService = new AgentsService(config3);
|
|
31581
31565
|
const result = await agentsService.listAgents();
|
|
@@ -31604,6 +31588,7 @@ var AgentBasicSchema, AgentsListResponseSchema;
|
|
|
31604
31588
|
var init_validation = __esm(() => {
|
|
31605
31589
|
init_zod();
|
|
31606
31590
|
init_shared();
|
|
31591
|
+
init_get_config();
|
|
31607
31592
|
AgentBasicSchema = exports_external.object({
|
|
31608
31593
|
id: exports_external.string(),
|
|
31609
31594
|
name: exports_external.string(),
|
|
@@ -308683,5 +308668,5 @@ main().catch((error49) => {
|
|
|
308683
308668
|
process.exit(1);
|
|
308684
308669
|
});
|
|
308685
308670
|
|
|
308686
|
-
//# debugId=
|
|
308671
|
+
//# debugId=AD2C7EE27D87A4F164756E2164756E21
|
|
308687
308672
|
//# sourceMappingURL=index.js.map
|