@elizaos/cli 1.1.0 → 1.1.2
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-SKZWKDJV.js → chunk-77IXJDDC.js} +1 -1
- package/dist/{chunk-UJASHW4Z.js → chunk-GILK2M6Z.js} +56 -41
- package/dist/{chunk-6NQXP77K.js → chunk-KFGXZCQP.js} +2 -2
- package/dist/{chunk-F3T7CP3N.js → chunk-OHXCCMDW.js} +11 -11
- 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-URDUOPHD.js → registry-FOS35FQH.js} +1 -1
- package/dist/{setup-MMMQEN65.js → setup-6XRSST5O.js} +2 -2
- package/dist/templates/plugin-starter/package.json +3 -4
- package/dist/templates/project-starter/package.json +4 -4
- package/dist/templates/project-tee-starter/package.json +5 -5
- package/dist/{utils-3X6GHWTH.js → utils-QBGEZZ4I.js} +1 -1
- package/package.json +5 -5
- package/templates/plugin-starter/package.json +3 -4
- package/templates/project-starter/package.json +4 -4
- package/templates/project-tee-starter/package.json +5 -5
|
@@ -2643,10 +2643,10 @@ async function createBranch(token, owner, repo, branch, baseBranch = "main") {
|
|
|
2643
2643
|
return false;
|
|
2644
2644
|
}
|
|
2645
2645
|
}
|
|
2646
|
-
async function getFileContent(token, owner, repo,
|
|
2646
|
+
async function getFileContent(token, owner, repo, path20, branch = "main") {
|
|
2647
2647
|
try {
|
|
2648
2648
|
const response = await fetch(
|
|
2649
|
-
`${GITHUB_API_URL}/repos/${owner}/${repo}/contents/${
|
|
2649
|
+
`${GITHUB_API_URL}/repos/${owner}/${repo}/contents/${path20}?ref=${branch}`,
|
|
2650
2650
|
{
|
|
2651
2651
|
headers: {
|
|
2652
2652
|
Authorization: `token ${token}`,
|
|
@@ -2663,14 +2663,14 @@ async function getFileContent(token, owner, repo, path19, branch = "main") {
|
|
|
2663
2663
|
return null;
|
|
2664
2664
|
}
|
|
2665
2665
|
}
|
|
2666
|
-
async function updateFile(token, owner, repo,
|
|
2666
|
+
async function updateFile(token, owner, repo, path20, content, message, branch = "main") {
|
|
2667
2667
|
try {
|
|
2668
|
-
const existingContent = await getFileContent(token, owner, repo,
|
|
2668
|
+
const existingContent = await getFileContent(token, owner, repo, path20, branch);
|
|
2669
2669
|
const method = "PUT";
|
|
2670
2670
|
let sha;
|
|
2671
2671
|
if (existingContent !== null) {
|
|
2672
2672
|
const response2 = await fetch(
|
|
2673
|
-
`${GITHUB_API_URL}/repos/${owner}/${repo}/contents/${
|
|
2673
|
+
`${GITHUB_API_URL}/repos/${owner}/${repo}/contents/${path20}?ref=${branch}`,
|
|
2674
2674
|
{
|
|
2675
2675
|
headers: {
|
|
2676
2676
|
Authorization: `token ${token}`,
|
|
@@ -2683,7 +2683,7 @@ async function updateFile(token, owner, repo, path19, content, message, branch =
|
|
|
2683
2683
|
sha = data.sha;
|
|
2684
2684
|
}
|
|
2685
2685
|
}
|
|
2686
|
-
const fileUrl = `${GITHUB_API_URL}/repos/${owner}/${repo}/contents/${
|
|
2686
|
+
const fileUrl = `${GITHUB_API_URL}/repos/${owner}/${repo}/contents/${path20}`;
|
|
2687
2687
|
logger10.info(`Updating file at: ${fileUrl}`);
|
|
2688
2688
|
const requestBody = {
|
|
2689
2689
|
message,
|
|
@@ -2709,7 +2709,7 @@ async function updateFile(token, owner, repo, path19, content, message, branch =
|
|
|
2709
2709
|
logger10.error(`Failed to update file: ${response.status} ${response.statusText}`);
|
|
2710
2710
|
logger10.error(`Response body: ${errorBody}`);
|
|
2711
2711
|
if (response.status === 404) {
|
|
2712
|
-
logger10.error(`Repository or path not found: ${owner}/${repo}/${
|
|
2712
|
+
logger10.error(`Repository or path not found: ${owner}/${repo}/${path20}`);
|
|
2713
2713
|
const repoCheck = await fetch(`${GITHUB_API_URL}/repos/${owner}/${repo}`, {
|
|
2714
2714
|
headers: {
|
|
2715
2715
|
Authorization: `token ${token}`,
|
|
@@ -2788,7 +2788,7 @@ async function getGitHubCredentials() {
|
|
|
2788
2788
|
}
|
|
2789
2789
|
logger10.warn("Invalid GitHub token found in environment variables");
|
|
2790
2790
|
}
|
|
2791
|
-
const { getGitHubToken: getGitHubToken2 } = await import("./registry-
|
|
2791
|
+
const { getGitHubToken: getGitHubToken2 } = await import("./registry-FOS35FQH.js");
|
|
2792
2792
|
const token = await getGitHubToken2() || void 0;
|
|
2793
2793
|
if (token) {
|
|
2794
2794
|
const isValid2 = await validateGitHubToken(token);
|
|
@@ -2875,11 +2875,11 @@ async function saveGitHubCredentials(username, token) {
|
|
|
2875
2875
|
process.env.GITHUB_TOKEN = token;
|
|
2876
2876
|
logger10.success("GitHub credentials saved");
|
|
2877
2877
|
}
|
|
2878
|
-
async function ensureDirectory(token, repo,
|
|
2878
|
+
async function ensureDirectory(token, repo, path20, branch) {
|
|
2879
2879
|
try {
|
|
2880
2880
|
try {
|
|
2881
2881
|
const response = await fetch(
|
|
2882
|
-
`${GITHUB_API_URL}/repos/${repo}/contents/${
|
|
2882
|
+
`${GITHUB_API_URL}/repos/${repo}/contents/${path20}?ref=${branch}`,
|
|
2883
2883
|
{
|
|
2884
2884
|
headers: {
|
|
2885
2885
|
Authorization: `token ${token}`,
|
|
@@ -2888,27 +2888,27 @@ async function ensureDirectory(token, repo, path19, branch) {
|
|
|
2888
2888
|
}
|
|
2889
2889
|
);
|
|
2890
2890
|
if (response.status === 200) {
|
|
2891
|
-
logger10.info(`Directory ${
|
|
2891
|
+
logger10.info(`Directory ${path20} already exists`);
|
|
2892
2892
|
return true;
|
|
2893
2893
|
}
|
|
2894
2894
|
} catch (error) {
|
|
2895
|
-
logger10.info(`Directory ${
|
|
2895
|
+
logger10.info(`Directory ${path20} doesn't exist, creating it`);
|
|
2896
2896
|
}
|
|
2897
|
-
const placeholderPath = `${
|
|
2897
|
+
const placeholderPath = `${path20}/.gitkeep`;
|
|
2898
2898
|
const result = await updateFile(
|
|
2899
2899
|
token,
|
|
2900
2900
|
repo,
|
|
2901
2901
|
placeholderPath,
|
|
2902
2902
|
"",
|
|
2903
2903
|
// Empty content for placeholder
|
|
2904
|
-
`Create directory: ${
|
|
2904
|
+
`Create directory: ${path20}`,
|
|
2905
2905
|
branch
|
|
2906
2906
|
);
|
|
2907
2907
|
if (result) {
|
|
2908
|
-
logger10.success(`Created directory: ${
|
|
2908
|
+
logger10.success(`Created directory: ${path20}`);
|
|
2909
2909
|
return true;
|
|
2910
2910
|
}
|
|
2911
|
-
logger10.error(`Failed to create directory: ${
|
|
2911
|
+
logger10.error(`Failed to create directory: ${path20}`);
|
|
2912
2912
|
return false;
|
|
2913
2913
|
} catch (error) {
|
|
2914
2914
|
logger10.error(
|
|
@@ -3662,6 +3662,8 @@ ${bottomBorder}`);
|
|
|
3662
3662
|
|
|
3663
3663
|
// src/utils/install-plugin.ts
|
|
3664
3664
|
import { logger as logger18 } from "@elizaos/core";
|
|
3665
|
+
import { existsSync as existsSync14 } from "fs";
|
|
3666
|
+
import path17 from "path";
|
|
3665
3667
|
|
|
3666
3668
|
// src/utils/load-plugin.ts
|
|
3667
3669
|
import { logger as logger15 } from "@elizaos/core";
|
|
@@ -4050,6 +4052,23 @@ async function fetchPluginRegistry() {
|
|
|
4050
4052
|
}
|
|
4051
4053
|
|
|
4052
4054
|
// src/utils/install-plugin.ts
|
|
4055
|
+
function getCliDirectory() {
|
|
4056
|
+
try {
|
|
4057
|
+
const cliPath = process.argv[1];
|
|
4058
|
+
if (cliPath.includes("node_modules/@elizaos/cli")) {
|
|
4059
|
+
const cliDir = path17.dirname(
|
|
4060
|
+
cliPath.split("node_modules/@elizaos/cli")[0] + "node_modules/@elizaos/cli"
|
|
4061
|
+
);
|
|
4062
|
+
if (existsSync14(path17.join(cliDir, "package.json"))) {
|
|
4063
|
+
return cliDir;
|
|
4064
|
+
}
|
|
4065
|
+
}
|
|
4066
|
+
return null;
|
|
4067
|
+
} catch (error) {
|
|
4068
|
+
logger18.error("Failed to determine CLI directory:", error);
|
|
4069
|
+
return null;
|
|
4070
|
+
}
|
|
4071
|
+
}
|
|
4053
4072
|
async function verifyPluginImport(repository, context) {
|
|
4054
4073
|
const loadedModule = await loadPluginModule(repository);
|
|
4055
4074
|
if (loadedModule) {
|
|
@@ -4098,11 +4117,7 @@ async function installPlugin(packageName, cwd, versionSpecifier, skipVerificatio
|
|
|
4098
4117
|
);
|
|
4099
4118
|
return false;
|
|
4100
4119
|
}
|
|
4101
|
-
|
|
4102
|
-
logger18.warn(
|
|
4103
|
-
"CLI is running from a global installation. Plugins will be installed to the local directory."
|
|
4104
|
-
);
|
|
4105
|
-
}
|
|
4120
|
+
const cliDir = getCliDirectory();
|
|
4106
4121
|
if (packageName.startsWith("github:")) {
|
|
4107
4122
|
return await attemptInstallation(packageName, "", cwd, "", skipVerification);
|
|
4108
4123
|
}
|
|
@@ -4179,9 +4194,9 @@ async function installPlugin(packageName, cwd, versionSpecifier, skipVerificatio
|
|
|
4179
4194
|
return true;
|
|
4180
4195
|
}
|
|
4181
4196
|
}
|
|
4182
|
-
if (info.git?.repo) {
|
|
4197
|
+
if (info.git?.repo && cliDir) {
|
|
4183
4198
|
const spec = `github:${info.git.repo}${githubVersion ? `#${githubVersion}` : ""}`;
|
|
4184
|
-
return await attemptInstallation(spec, "",
|
|
4199
|
+
return await attemptInstallation(spec, "", cliDir, "in CLI directory", skipVerification);
|
|
4185
4200
|
}
|
|
4186
4201
|
logger18.error(`Failed to install plugin ${packageName}`);
|
|
4187
4202
|
return false;
|
|
@@ -4542,7 +4557,7 @@ import {
|
|
|
4542
4557
|
logger as logger20
|
|
4543
4558
|
} from "@elizaos/core";
|
|
4544
4559
|
import * as fs9 from "fs";
|
|
4545
|
-
import * as
|
|
4560
|
+
import * as path18 from "path";
|
|
4546
4561
|
import { pathToFileURL } from "url";
|
|
4547
4562
|
var safeLogger = {
|
|
4548
4563
|
debug: logger20?.debug || console.log,
|
|
@@ -4726,14 +4741,14 @@ export const myPlugin = {
|
|
|
4726
4741
|
return;
|
|
4727
4742
|
}
|
|
4728
4743
|
try {
|
|
4729
|
-
const e2eDir =
|
|
4744
|
+
const e2eDir = path18.join(process.cwd(), "e2e");
|
|
4730
4745
|
if (!fs9.existsSync(e2eDir)) {
|
|
4731
4746
|
safeLogger.debug("No e2e directory found, skipping e2e tests");
|
|
4732
4747
|
return;
|
|
4733
4748
|
}
|
|
4734
4749
|
safeLogger.info("\nRunning e2e tests...");
|
|
4735
4750
|
const walk = (dir) => fs9.readdirSync(dir, { withFileTypes: true }).flatMap(
|
|
4736
|
-
(entry) => entry.isDirectory() ? walk(
|
|
4751
|
+
(entry) => entry.isDirectory() ? walk(path18.join(dir, entry.name)) : entry.name.match(/\.test\.(t|j)sx?$/) ? [path18.join(dir, entry.name)] : []
|
|
4737
4752
|
);
|
|
4738
4753
|
const testFiles = walk(e2eDir);
|
|
4739
4754
|
if (testFiles.length === 0) {
|
|
@@ -4741,16 +4756,16 @@ export const myPlugin = {
|
|
|
4741
4756
|
return;
|
|
4742
4757
|
}
|
|
4743
4758
|
safeLogger.info(`Found ${testFiles.length} e2e test files`);
|
|
4744
|
-
const distE2eDir =
|
|
4759
|
+
const distE2eDir = path18.join(process.cwd(), "dist", "e2e");
|
|
4745
4760
|
const hasDistE2e = fs9.existsSync(distE2eDir);
|
|
4746
4761
|
for (const testFile of testFiles) {
|
|
4747
4762
|
try {
|
|
4748
|
-
const fileName =
|
|
4749
|
-
const fileNameWithoutExt =
|
|
4763
|
+
const fileName = path18.basename(testFile);
|
|
4764
|
+
const fileNameWithoutExt = path18.basename(testFile, ".test.ts");
|
|
4750
4765
|
safeLogger.info(`Loading test file: ${fileName}`);
|
|
4751
4766
|
let moduleImportPath = testFile;
|
|
4752
4767
|
if (hasDistE2e) {
|
|
4753
|
-
const distFile =
|
|
4768
|
+
const distFile = path18.join(distE2eDir, `${fileNameWithoutExt}.test.js`);
|
|
4754
4769
|
if (fs9.existsSync(distFile)) {
|
|
4755
4770
|
moduleImportPath = distFile;
|
|
4756
4771
|
safeLogger.debug(`Using compiled version from ${distFile}`);
|
|
@@ -4827,8 +4842,8 @@ import { logger as logger21 } from "@elizaos/core";
|
|
|
4827
4842
|
import dotenv3 from "dotenv";
|
|
4828
4843
|
import { execa as execa9 } from "execa";
|
|
4829
4844
|
import { HttpsProxyAgent } from "https-proxy-agent";
|
|
4830
|
-
import { existsSync as
|
|
4831
|
-
import
|
|
4845
|
+
import { existsSync as existsSync16, promises as fs10 } from "fs";
|
|
4846
|
+
import path19 from "path";
|
|
4832
4847
|
|
|
4833
4848
|
// src/utils/registry/constants.ts
|
|
4834
4849
|
var REGISTRY_ORG = "elizaos-plugins";
|
|
@@ -4839,10 +4854,10 @@ var REGISTRY_GITHUB_URL = `https://github.com/${REGISTRY_REPO}`;
|
|
|
4839
4854
|
var RAW_REGISTRY_URL = REGISTRY_URL;
|
|
4840
4855
|
|
|
4841
4856
|
// src/utils/registry/index.ts
|
|
4842
|
-
var ELIZA_DIR =
|
|
4843
|
-
var REGISTRY_SETTINGS_FILE =
|
|
4844
|
-
var ENV_FILE = resolveEnvFile() ||
|
|
4845
|
-
var REGISTRY_CACHE_FILE =
|
|
4857
|
+
var ELIZA_DIR = path19.join(process.cwd(), ".eliza");
|
|
4858
|
+
var REGISTRY_SETTINGS_FILE = path19.join(ELIZA_DIR, "registrysettings.json");
|
|
4859
|
+
var ENV_FILE = resolveEnvFile() || path19.join(ELIZA_DIR, ".env");
|
|
4860
|
+
var REGISTRY_CACHE_FILE = path19.join(ELIZA_DIR, "registry-cache.json");
|
|
4846
4861
|
var REQUIRED_ENV_VARS = ["GITHUB_TOKEN"];
|
|
4847
4862
|
var REQUIRED_SETTINGS = ["defaultRegistry"];
|
|
4848
4863
|
async function ensureElizaDir2() {
|
|
@@ -4890,13 +4905,13 @@ async function setEnvVar(key, value) {
|
|
|
4890
4905
|
async function getGitHubToken() {
|
|
4891
4906
|
try {
|
|
4892
4907
|
const envPath = resolveEnvFile();
|
|
4893
|
-
if (envPath &&
|
|
4908
|
+
if (envPath && existsSync16(envPath)) {
|
|
4894
4909
|
const envContent = await fs10.readFile(envPath, "utf-8");
|
|
4895
4910
|
const env = dotenv3.parse(envContent);
|
|
4896
4911
|
return env.GITHUB_TOKEN;
|
|
4897
4912
|
}
|
|
4898
|
-
const globalEnvPath =
|
|
4899
|
-
if (
|
|
4913
|
+
const globalEnvPath = path19.join(ELIZA_DIR, ".env");
|
|
4914
|
+
if (existsSync16(globalEnvPath) && globalEnvPath !== envPath) {
|
|
4900
4915
|
const envContent = await fs10.readFile(globalEnvPath, "utf-8");
|
|
4901
4916
|
const env = dotenv3.parse(envContent);
|
|
4902
4917
|
return env.GITHUB_TOKEN;
|
|
@@ -4913,7 +4928,7 @@ async function setGitHubToken(token) {
|
|
|
4913
4928
|
try {
|
|
4914
4929
|
let envContent = "";
|
|
4915
4930
|
try {
|
|
4916
|
-
if (
|
|
4931
|
+
if (existsSync16(ENV_FILE)) {
|
|
4917
4932
|
envContent = await fs10.readFile(ENV_FILE, "utf-8");
|
|
4918
4933
|
}
|
|
4919
4934
|
} catch (error) {
|
|
@@ -5005,7 +5020,7 @@ async function getLocalRegistryIndex() {
|
|
|
5005
5020
|
);
|
|
5006
5021
|
}
|
|
5007
5022
|
try {
|
|
5008
|
-
if (
|
|
5023
|
+
if (existsSync16(REGISTRY_CACHE_FILE)) {
|
|
5009
5024
|
const cacheContent = await fs10.readFile(REGISTRY_CACHE_FILE, "utf-8");
|
|
5010
5025
|
const cachedRegistry = JSON.parse(cacheContent);
|
|
5011
5026
|
logger21.debug("Using cached registry index");
|
|
@@ -12,11 +12,11 @@ import {
|
|
|
12
12
|
selectEmbeddingModel,
|
|
13
13
|
validateCreateOptions,
|
|
14
14
|
validateProjectName
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OHXCCMDW.js";
|
|
16
16
|
import {
|
|
17
17
|
displayBanner,
|
|
18
18
|
handleError
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-GILK2M6Z.js";
|
|
20
20
|
|
|
21
21
|
// src/commands/create/index.ts
|
|
22
22
|
import { Command } from "commander";
|
|
@@ -4,7 +4,7 @@ const require = createRequire(import.meta.url);
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
setupProjectEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-77IXJDDC.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-GILK2M6Z.js";
|
|
16
16
|
|
|
17
17
|
// src/characters/eliza.ts
|
|
18
18
|
var baseCharacter = {
|
|
@@ -199,12 +199,12 @@ function getElizaCharacter() {
|
|
|
199
199
|
// Core plugins first
|
|
200
200
|
"@elizaos/plugin-sql",
|
|
201
201
|
// Text-only plugins (no embedding support)
|
|
202
|
-
|
|
203
|
-
|
|
202
|
+
...!!process.env.ANTHROPIC_API_KEY ? ["@elizaos/plugin-anthropic"] : [],
|
|
203
|
+
...!!process.env.OPENROUTER_API_KEY ? ["@elizaos/plugin-openrouter"] : [],
|
|
204
204
|
// Embedding-capable plugins last (lowest priority for embedding fallback)
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
205
|
+
...!!process.env.OPENAI_API_KEY ? ["@elizaos/plugin-openai"] : [],
|
|
206
|
+
...!!process.env.OLLAMA_API_ENDPOINT ? ["@elizaos/plugin-ollama"] : [],
|
|
207
|
+
...!!process.env.GOOGLE_GENERATIVE_AI_API_KEY ? ["@elizaos/plugin-google-genai"] : [],
|
|
208
208
|
...!process.env.GOOGLE_GENERATIVE_AI_API_KEY && !process.env.OLLAMA_API_ENDPOINT && !process.env.OPENAI_API_KEY ? ["@elizaos/plugin-local-ai"] : [],
|
|
209
209
|
// Platform plugins
|
|
210
210
|
...process.env.DISCORD_API_TOKEN ? ["@elizaos/plugin-discord"] : [],
|
|
@@ -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-6XRSST5O.js");
|
|
609
|
+
const { promptAndStorePostgresUrl } = await import("./utils-QBGEZZ4I.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-6XRSST5O.js");
|
|
670
|
+
const { promptAndStorePostgresUrl } = await import("./utils-QBGEZZ4I.js");
|
|
671
671
|
const envFilePath = `${projectTargetDir}/.env`;
|
|
672
672
|
if (database === "postgres") {
|
|
673
673
|
await promptAndStorePostgresUrl(envFilePath);
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
createPlugin,
|
|
8
8
|
createProject,
|
|
9
9
|
createTEEProject
|
|
10
|
-
} from "../../../chunk-
|
|
10
|
+
} from "../../../chunk-OHXCCMDW.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-77IXJDDC.js";
|
|
17
|
+
import "../../../chunk-GILK2M6Z.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-KFGXZCQP.js";
|
|
8
|
+
import "../../chunk-OHXCCMDW.js";
|
|
9
|
+
import "../../chunk-77IXJDDC.js";
|
|
10
|
+
import "../../chunk-GILK2M6Z.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-KFGXZCQP.js";
|
|
9
9
|
import {
|
|
10
10
|
getElizaCharacter
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-OHXCCMDW.js";
|
|
12
|
+
import "./chunk-77IXJDDC.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-GILK2M6Z.js";
|
|
50
50
|
import {
|
|
51
51
|
configureEmojis,
|
|
52
52
|
emoji,
|
|
@@ -4782,7 +4782,7 @@ async function installPluginDependencies(projectInfo) {
|
|
|
4782
4782
|
};
|
|
4783
4783
|
await fs11.promises.writeFile(packageJsonPath, JSON.stringify(packageJsonContent, null, 2));
|
|
4784
4784
|
}
|
|
4785
|
-
const { installPlugin: installPlugin2 } = await import("./utils-
|
|
4785
|
+
const { installPlugin: installPlugin2 } = await import("./utils-QBGEZZ4I.js");
|
|
4786
4786
|
for (const dependency of project.pluginModule.dependencies) {
|
|
4787
4787
|
await installPlugin2(dependency, pluginsDir);
|
|
4788
4788
|
const dependencyPath = path23.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-77IXJDDC.js";
|
|
11
|
+
import "./chunk-GILK2M6Z.js";
|
|
12
12
|
import "./chunk-7PPBVSWE.js";
|
|
13
13
|
import "./chunk-F24MS2YR.js";
|
|
14
14
|
import "./chunk-AQ6OMR2A.js";
|
|
@@ -40,17 +40,16 @@
|
|
|
40
40
|
"tsup.config.ts"
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@elizaos/core": "
|
|
43
|
+
"@elizaos/core": "1.1.2",
|
|
44
44
|
"@tanstack/react-query": "^5.80.7",
|
|
45
45
|
"clsx": "^2.1.1",
|
|
46
|
-
"tailwindcss": "^4.1.10",
|
|
47
46
|
"tailwind-merge": "^3.3.1",
|
|
47
|
+
"tailwindcss": "^4.1.10",
|
|
48
48
|
"vite": "^6.3.5",
|
|
49
49
|
"zod": "3.24.2"
|
|
50
50
|
},
|
|
51
|
-
"peerDependencies": {},
|
|
52
51
|
"devDependencies": {
|
|
53
|
-
"@elizaos/cli": "
|
|
52
|
+
"@elizaos/cli": "1.1.2",
|
|
54
53
|
"@tailwindcss/vite": "^4.1.10",
|
|
55
54
|
"@vitejs/plugin-react-swc": "^3.10.2",
|
|
56
55
|
"dotenv": "16.4.5",
|
|
@@ -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.1.2",
|
|
32
|
+
"@elizaos/core": "1.1.2",
|
|
33
|
+
"@elizaos/plugin-bootstrap": "1.1.2",
|
|
34
|
+
"@elizaos/plugin-sql": "1.1.2",
|
|
35
35
|
"@tanstack/react-query": "^5.29.0",
|
|
36
36
|
"clsx": "^2.1.1",
|
|
37
37
|
"react": "^18.3.1",
|
|
@@ -33,18 +33,18 @@
|
|
|
33
33
|
"GUIDE.md"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@elizaos/cli": "1.
|
|
37
|
-
"@elizaos/core": "1.
|
|
36
|
+
"@elizaos/cli": "1.1.2",
|
|
37
|
+
"@elizaos/core": "1.1.2",
|
|
38
38
|
"@elizaos/plugin-redpill": "1.0.3",
|
|
39
|
-
"@elizaos/plugin-sql": "1.
|
|
39
|
+
"@elizaos/plugin-sql": "1.1.2",
|
|
40
40
|
"@phala/dstack-sdk": "0.1.11",
|
|
41
41
|
"@solana/web3.js": "1.98.2",
|
|
42
42
|
"viem": "2.30.1",
|
|
43
43
|
"zod": "3.24.2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"
|
|
47
|
-
"
|
|
46
|
+
"prettier": "3.5.3",
|
|
47
|
+
"tsup": "8.5.0"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"start": "elizaos start",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elizaos/cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
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": "90c477c53a184c0e33a58b862958b88a200296d6",
|
|
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.1.
|
|
78
|
-
"@elizaos/plugin-sql": "1.1.
|
|
79
|
-
"@elizaos/server": "1.1.
|
|
77
|
+
"@elizaos/core": "1.1.2",
|
|
78
|
+
"@elizaos/plugin-sql": "1.1.2",
|
|
79
|
+
"@elizaos/server": "1.1.2",
|
|
80
80
|
"bun": "^1.2.17",
|
|
81
81
|
"chalk": "^5.3.0",
|
|
82
82
|
"chokidar": "^4.0.3",
|
|
@@ -40,17 +40,16 @@
|
|
|
40
40
|
"tsup.config.ts"
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@elizaos/core": "
|
|
43
|
+
"@elizaos/core": "1.1.2",
|
|
44
44
|
"@tanstack/react-query": "^5.80.7",
|
|
45
45
|
"clsx": "^2.1.1",
|
|
46
|
-
"tailwindcss": "^4.1.10",
|
|
47
46
|
"tailwind-merge": "^3.3.1",
|
|
47
|
+
"tailwindcss": "^4.1.10",
|
|
48
48
|
"vite": "^6.3.5",
|
|
49
49
|
"zod": "3.24.2"
|
|
50
50
|
},
|
|
51
|
-
"peerDependencies": {},
|
|
52
51
|
"devDependencies": {
|
|
53
|
-
"@elizaos/cli": "
|
|
52
|
+
"@elizaos/cli": "1.1.2",
|
|
54
53
|
"@tailwindcss/vite": "^4.1.10",
|
|
55
54
|
"@vitejs/plugin-react-swc": "^3.10.2",
|
|
56
55
|
"dotenv": "16.4.5",
|
|
@@ -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.1.2",
|
|
32
|
+
"@elizaos/core": "1.1.2",
|
|
33
|
+
"@elizaos/plugin-bootstrap": "1.1.2",
|
|
34
|
+
"@elizaos/plugin-sql": "1.1.2",
|
|
35
35
|
"@tanstack/react-query": "^5.29.0",
|
|
36
36
|
"clsx": "^2.1.1",
|
|
37
37
|
"react": "^18.3.1",
|
|
@@ -33,18 +33,18 @@
|
|
|
33
33
|
"GUIDE.md"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@elizaos/cli": "1.
|
|
37
|
-
"@elizaos/core": "1.
|
|
36
|
+
"@elizaos/cli": "1.1.2",
|
|
37
|
+
"@elizaos/core": "1.1.2",
|
|
38
38
|
"@elizaos/plugin-redpill": "1.0.3",
|
|
39
|
-
"@elizaos/plugin-sql": "1.
|
|
39
|
+
"@elizaos/plugin-sql": "1.1.2",
|
|
40
40
|
"@phala/dstack-sdk": "0.1.11",
|
|
41
41
|
"@solana/web3.js": "1.98.2",
|
|
42
42
|
"viem": "2.30.1",
|
|
43
43
|
"zod": "3.24.2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"
|
|
47
|
-
"
|
|
46
|
+
"prettier": "3.5.3",
|
|
47
|
+
"tsup": "8.5.0"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"start": "elizaos start",
|