@elizaos/cli 1.1.8 → 1.2.0
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/{chunk-ZVDUENTN.js → chunk-7F7J7V7K.js} +6 -6
- package/dist/{chunk-ECNPEB5D.js → chunk-GDP7OWFE.js} +1 -1
- package/dist/{chunk-XJVXRHX2.js → chunk-IMVD3V75.js} +2 -2
- package/dist/{chunk-RTC6IT4U.js → chunk-RXPGZT6Z.js} +5 -5
- package/dist/commands/agent/actions/index.js +1 -1
- package/dist/commands/agent/index.js +1 -1
- package/dist/commands/create/actions/index.js +3 -3
- package/dist/commands/create/index.js +4 -4
- package/dist/index.js +5 -5
- package/dist/{registry-WE56QM2V.js → registry-3LKJUU3X.js} +1 -1
- package/dist/{setup-R6L5JN2R.js → setup-JDB67JV2.js} +2 -2
- package/dist/templates/project-starter/package.json +4 -4
- package/dist/templates/project-tee-starter/package.json +3 -3
- package/dist/{utils-SLAKQOI6.js → utils-SV7PQSFH.js} +1 -1
- package/package.json +5 -5
- package/templates/project-starter/package.json +4 -4
- package/templates/project-tee-starter/package.json +3 -3
|
@@ -4,7 +4,7 @@ const require = createRequire(import.meta.url);
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
setupProjectEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GDP7OWFE.js";
|
|
8
8
|
import {
|
|
9
9
|
buildProjectWithSpinner,
|
|
10
10
|
copyTemplate,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
getDisplayDirectory,
|
|
13
13
|
installDependenciesWithSpinner,
|
|
14
14
|
runTasks
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-RXPGZT6Z.js";
|
|
16
16
|
|
|
17
17
|
// src/characters/eliza.ts
|
|
18
18
|
var baseCharacter = {
|
|
@@ -605,8 +605,8 @@ async function createTEEProject(projectName, targetDir, database, aiModel, embed
|
|
|
605
605
|
await withCleanupOnInterrupt(teeTargetDir, projectName, async () => {
|
|
606
606
|
await fs2.mkdir(teeTargetDir, { recursive: true });
|
|
607
607
|
if (!isNonInteractive) {
|
|
608
|
-
const { setupAIModelConfig, setupEmbeddingModelConfig } = await import("./setup-
|
|
609
|
-
const { promptAndStorePostgresUrl } = await import("./utils-
|
|
608
|
+
const { setupAIModelConfig, setupEmbeddingModelConfig } = await import("./setup-JDB67JV2.js");
|
|
609
|
+
const { promptAndStorePostgresUrl } = await import("./utils-SV7PQSFH.js");
|
|
610
610
|
const envFilePath = `${teeTargetDir}/.env`;
|
|
611
611
|
if (database === "postgres") {
|
|
612
612
|
await promptAndStorePostgresUrl(envFilePath);
|
|
@@ -666,8 +666,8 @@ async function createProject(projectName, targetDir, database, aiModel, embeddin
|
|
|
666
666
|
await fs2.mkdir(projectTargetDir, { recursive: true });
|
|
667
667
|
}
|
|
668
668
|
if (!isNonInteractive) {
|
|
669
|
-
const { setupAIModelConfig, setupEmbeddingModelConfig } = await import("./setup-
|
|
670
|
-
const { promptAndStorePostgresUrl } = await import("./utils-
|
|
669
|
+
const { setupAIModelConfig, setupEmbeddingModelConfig } = await import("./setup-JDB67JV2.js");
|
|
670
|
+
const { promptAndStorePostgresUrl } = await import("./utils-SV7PQSFH.js");
|
|
671
671
|
const envFilePath = `${projectTargetDir}/.env`;
|
|
672
672
|
if (database === "postgres") {
|
|
673
673
|
await promptAndStorePostgresUrl(envFilePath);
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
selectEmbeddingModel,
|
|
13
13
|
validateCreateOptions,
|
|
14
14
|
validateProjectName
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7F7J7V7K.js";
|
|
16
16
|
import {
|
|
17
17
|
displayBanner,
|
|
18
18
|
handleError
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-RXPGZT6Z.js";
|
|
20
20
|
|
|
21
21
|
// src/commands/create/index.ts
|
|
22
22
|
import { Command } from "commander";
|
|
@@ -67,11 +67,11 @@ function resolveEnvFile(startDir = process.cwd(), boundaryDir) {
|
|
|
67
67
|
}
|
|
68
68
|
return path.join(root, ".env");
|
|
69
69
|
}
|
|
70
|
-
async function resolvePgliteDir(dir, fallbackDir) {
|
|
70
|
+
async function resolvePgliteDir(dir, fallbackDir, targetProjectDir) {
|
|
71
71
|
const userEnv = UserEnvironment.getInstance();
|
|
72
72
|
const pathsInfo = await userEnv.getPathInfo();
|
|
73
|
-
const projectRoot = pathsInfo.monorepoRoot || process.cwd();
|
|
74
|
-
if (pathsInfo.envFilePath && existsSync(pathsInfo.envFilePath)) {
|
|
73
|
+
const projectRoot = targetProjectDir || pathsInfo.monorepoRoot || process.cwd();
|
|
74
|
+
if (!targetProjectDir && pathsInfo.envFilePath && existsSync(pathsInfo.envFilePath)) {
|
|
75
75
|
dotenv.config({ path: pathsInfo.envFilePath });
|
|
76
76
|
}
|
|
77
77
|
const defaultBaseDir = path.join(projectRoot, ".eliza", ".elizadb");
|
|
@@ -1760,7 +1760,7 @@ async function getElizaDirectories(targetProjectDir) {
|
|
|
1760
1760
|
targetProjectDir: targetProjectDir || "none"
|
|
1761
1761
|
});
|
|
1762
1762
|
const defaultElizaDbDir = path9.resolve(projectRoot, ".eliza", ".elizadb");
|
|
1763
|
-
const elizaDbDir = await resolvePgliteDir(void 0, defaultElizaDbDir);
|
|
1763
|
+
const elizaDbDir = await resolvePgliteDir(void 0, defaultElizaDbDir, targetProjectDir);
|
|
1764
1764
|
return { elizaDir, elizaDbDir, envFilePath };
|
|
1765
1765
|
}
|
|
1766
1766
|
async function ensureDir(dirPath) {
|
|
@@ -2757,7 +2757,7 @@ async function getGitHubCredentials() {
|
|
|
2757
2757
|
}
|
|
2758
2758
|
logger10.warn("Invalid GitHub token found in environment variables");
|
|
2759
2759
|
}
|
|
2760
|
-
const { getGitHubToken: getGitHubToken2 } = await import("./registry-
|
|
2760
|
+
const { getGitHubToken: getGitHubToken2 } = await import("./registry-3LKJUU3X.js");
|
|
2761
2761
|
const token = await getGitHubToken2() || void 0;
|
|
2762
2762
|
if (token) {
|
|
2763
2763
|
const isValid2 = await validateGitHubToken(token);
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
createPlugin,
|
|
8
8
|
createProject,
|
|
9
9
|
createTEEProject
|
|
10
|
-
} from "../../../chunk-
|
|
10
|
+
} from "../../../chunk-7F7J7V7K.js";
|
|
11
11
|
import {
|
|
12
12
|
createProjectDirectories,
|
|
13
13
|
setupAIModelConfig,
|
|
14
14
|
setupEmbeddingModelConfig,
|
|
15
15
|
setupProjectEnvironment
|
|
16
|
-
} from "../../../chunk-
|
|
17
|
-
import "../../../chunk-
|
|
16
|
+
} from "../../../chunk-GDP7OWFE.js";
|
|
17
|
+
import "../../../chunk-RXPGZT6Z.js";
|
|
18
18
|
import "../../../chunk-7PPBVSWE.js";
|
|
19
19
|
import "../../../chunk-F24MS2YR.js";
|
|
20
20
|
import "../../../chunk-AQ6OMR2A.js";
|
|
@@ -4,10 +4,10 @@ const require = createRequire(import.meta.url);
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
create
|
|
7
|
-
} from "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
7
|
+
} from "../../chunk-IMVD3V75.js";
|
|
8
|
+
import "../../chunk-7F7J7V7K.js";
|
|
9
|
+
import "../../chunk-GDP7OWFE.js";
|
|
10
|
+
import "../../chunk-RXPGZT6Z.js";
|
|
11
11
|
import "../../chunk-7PPBVSWE.js";
|
|
12
12
|
import "../../chunk-F24MS2YR.js";
|
|
13
13
|
import "../../chunk-AQ6OMR2A.js";
|
package/dist/index.js
CHANGED
|
@@ -5,11 +5,11 @@ const require = createRequire(import.meta.url);
|
|
|
5
5
|
|
|
6
6
|
import {
|
|
7
7
|
create
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IMVD3V75.js";
|
|
9
9
|
import {
|
|
10
10
|
getElizaCharacter
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-7F7J7V7K.js";
|
|
12
|
+
import "./chunk-GDP7OWFE.js";
|
|
13
13
|
import {
|
|
14
14
|
TestRunner,
|
|
15
15
|
UserEnvironment,
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
testPublishToGitHub,
|
|
47
47
|
testPublishToNpm,
|
|
48
48
|
validateDataDir
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-RXPGZT6Z.js";
|
|
50
50
|
import {
|
|
51
51
|
configureEmojis,
|
|
52
52
|
emoji,
|
|
@@ -4812,7 +4812,7 @@ async function installPluginDependencies(projectInfo) {
|
|
|
4812
4812
|
};
|
|
4813
4813
|
await fs11.promises.writeFile(packageJsonPath, JSON.stringify(packageJsonContent, null, 2));
|
|
4814
4814
|
}
|
|
4815
|
-
const { installPlugin: installPlugin2 } = await import("./utils-
|
|
4815
|
+
const { installPlugin: installPlugin2 } = await import("./utils-SV7PQSFH.js");
|
|
4816
4816
|
for (const dependency of project.pluginModule.dependencies) {
|
|
4817
4817
|
await installPlugin2(dependency, pluginsDir);
|
|
4818
4818
|
const dependencyPath = path24.join(pluginsDir, "node_modules", dependency);
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
setupAIModelConfig,
|
|
8
8
|
setupEmbeddingModelConfig,
|
|
9
9
|
setupProjectEnvironment
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-GDP7OWFE.js";
|
|
11
|
+
import "./chunk-RXPGZT6Z.js";
|
|
12
12
|
import "./chunk-7PPBVSWE.js";
|
|
13
13
|
import "./chunk-F24MS2YR.js";
|
|
14
14
|
import "./chunk-AQ6OMR2A.js";
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@elizaos/cli": "1.
|
|
32
|
-
"@elizaos/core": "1.
|
|
33
|
-
"@elizaos/plugin-bootstrap": "1.
|
|
34
|
-
"@elizaos/plugin-sql": "1.
|
|
31
|
+
"@elizaos/cli": "1.2.0",
|
|
32
|
+
"@elizaos/core": "1.2.0",
|
|
33
|
+
"@elizaos/plugin-bootstrap": "1.2.0",
|
|
34
|
+
"@elizaos/plugin-sql": "1.2.0",
|
|
35
35
|
"@tanstack/react-query": "^5.29.0",
|
|
36
36
|
"clsx": "^2.1.1",
|
|
37
37
|
"react": "^18.3.1",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"GUIDE.md"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@elizaos/cli": "1.
|
|
37
|
-
"@elizaos/core": "1.
|
|
36
|
+
"@elizaos/cli": "1.2.0",
|
|
37
|
+
"@elizaos/core": "1.2.0",
|
|
38
38
|
"@elizaos/plugin-redpill": "1.0.3",
|
|
39
|
-
"@elizaos/plugin-sql": "1.
|
|
39
|
+
"@elizaos/plugin-sql": "1.2.0",
|
|
40
40
|
"@phala/dstack-sdk": "0.1.11",
|
|
41
41
|
"@solana/web3.js": "1.98.2",
|
|
42
42
|
"viem": "2.30.1",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elizaos/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "elizaOS CLI - Manage your AI agents and plugins",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -69,14 +69,14 @@
|
|
|
69
69
|
"typescript": "5.8.3",
|
|
70
70
|
"vite": "^6.3.5"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "ebaf4b24102aa4c17c6d42108be13bf2cc1348f3",
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@anthropic-ai/claude-code": "^1.0.35",
|
|
75
75
|
"@anthropic-ai/sdk": "^0.54.0",
|
|
76
76
|
"@clack/prompts": "^0.11.0",
|
|
77
|
-
"@elizaos/core": "1.
|
|
78
|
-
"@elizaos/plugin-sql": "1.
|
|
79
|
-
"@elizaos/server": "1.
|
|
77
|
+
"@elizaos/core": "1.2.0",
|
|
78
|
+
"@elizaos/plugin-sql": "1.2.0",
|
|
79
|
+
"@elizaos/server": "1.2.0",
|
|
80
80
|
"bun": "^1.2.17",
|
|
81
81
|
"chalk": "^5.3.0",
|
|
82
82
|
"chokidar": "^4.0.3",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@elizaos/cli": "1.
|
|
32
|
-
"@elizaos/core": "1.
|
|
33
|
-
"@elizaos/plugin-bootstrap": "1.
|
|
34
|
-
"@elizaos/plugin-sql": "1.
|
|
31
|
+
"@elizaos/cli": "1.2.0",
|
|
32
|
+
"@elizaos/core": "1.2.0",
|
|
33
|
+
"@elizaos/plugin-bootstrap": "1.2.0",
|
|
34
|
+
"@elizaos/plugin-sql": "1.2.0",
|
|
35
35
|
"@tanstack/react-query": "^5.29.0",
|
|
36
36
|
"clsx": "^2.1.1",
|
|
37
37
|
"react": "^18.3.1",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"GUIDE.md"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@elizaos/cli": "1.
|
|
37
|
-
"@elizaos/core": "1.
|
|
36
|
+
"@elizaos/cli": "1.2.0",
|
|
37
|
+
"@elizaos/core": "1.2.0",
|
|
38
38
|
"@elizaos/plugin-redpill": "1.0.3",
|
|
39
|
-
"@elizaos/plugin-sql": "1.
|
|
39
|
+
"@elizaos/plugin-sql": "1.2.0",
|
|
40
40
|
"@phala/dstack-sdk": "0.1.11",
|
|
41
41
|
"@solana/web3.js": "1.98.2",
|
|
42
42
|
"viem": "2.30.1",
|