@elizaos/cli 1.0.18 → 1.0.20
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/README.md +0 -1
- package/dist/assets/{index-BtIQw5Dh.js → index-B1BYc3c_.js} +6175 -678
- package/dist/assets/index-B1BYc3c_.js.br +0 -0
- package/dist/assets/{index-BtIQw5Dh.js.map → index-B1BYc3c_.js.map} +1 -1
- package/dist/assets/{index-Dgo_cOqK.js → index-CX0KZCt7.js} +2 -2
- package/dist/assets/index-CX0KZCt7.js.br +0 -0
- package/dist/assets/{index-Dgo_cOqK.js.map → index-CX0KZCt7.js.map} +1 -1
- package/dist/chunk-77IXJDDC.js +281 -0
- package/dist/{chunk-W4NJVJQV.js → chunk-7PPBVSWE.js} +21 -3
- package/dist/{chunk-ED42YJZA.js → chunk-GILK2M6Z.js} +327 -177
- package/dist/{chunk-JVEHLVLY.js → chunk-ME4CPLVT.js} +7 -8
- package/dist/{chunk-OEHDDUQ4.js → chunk-RJ7XRVPG.js} +83 -363
- package/dist/commands/agent/actions/index.js +2 -2
- package/dist/commands/agent/index.js +2 -2
- package/dist/commands/create/actions/index.d.ts +1 -8
- package/dist/commands/create/actions/index.js +6 -6
- package/dist/commands/create/index.js +5 -4
- package/dist/index.html +10 -1
- package/dist/index.js +71 -38
- package/dist/{plugin-creator-4QMSSR4X.js → plugin-creator-35CAJF4O.js} +1 -1
- package/dist/{registry-NIGTUGFP.js → registry-FOS35FQH.js} +2 -2
- package/dist/setup-6XRSST5O.js +20 -0
- package/dist/templates/project-starter/package.json +4 -4
- package/dist/templates/project-starter/src/character.ts +1 -0
- package/dist/templates/project-tee-starter/package.json +3 -3
- package/dist/{utils-TW6X75NO.js → utils-QBGEZZ4I.js} +18 -2
- package/package.json +5 -5
- package/templates/project-starter/package.json +4 -4
- package/templates/project-starter/src/character.ts +1 -0
- package/templates/project-tee-starter/package.json +3 -3
- package/dist/assets/index-BtIQw5Dh.js.br +0 -0
- package/dist/assets/index-Dgo_cOqK.js.br +0 -0
|
@@ -4,10 +4,11 @@ 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-ME4CPLVT.js";
|
|
8
|
+
import "../../chunk-RJ7XRVPG.js";
|
|
9
|
+
import "../../chunk-77IXJDDC.js";
|
|
10
|
+
import "../../chunk-GILK2M6Z.js";
|
|
11
|
+
import "../../chunk-7PPBVSWE.js";
|
|
11
12
|
import "../../chunk-F24MS2YR.js";
|
|
12
13
|
import "../../chunk-AQ6OMR2A.js";
|
|
13
14
|
export {
|
package/dist/index.html
CHANGED
|
@@ -1,11 +1,20 @@
|
|
|
1
1
|
<!doctype html>
|
|
2
2
|
<html lang="en" class="dark">
|
|
3
3
|
<head>
|
|
4
|
+
<script type="module">
|
|
5
|
+
// CommonJS shims for browser compatibility
|
|
6
|
+
if (typeof window !== 'undefined') {
|
|
7
|
+
window.global = window.global || window;
|
|
8
|
+
window.exports = window.exports || {};
|
|
9
|
+
window.module = window.module || { exports: {} };
|
|
10
|
+
}
|
|
11
|
+
</script>
|
|
12
|
+
|
|
4
13
|
<meta charset="UTF-8" />
|
|
5
14
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
15
|
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
|
7
16
|
<title>ElizaOS - Client</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
17
|
+
<script type="module" crossorigin src="/assets/index-B1BYc3c_.js"></script>
|
|
9
18
|
<link rel="modulepreload" crossorigin href="/assets/vendor-Dp9Dttv5.js">
|
|
10
19
|
<link rel="stylesheet" crossorigin href="/assets/index-BXWgVSUO.css">
|
|
11
20
|
</head>
|
package/dist/index.js
CHANGED
|
@@ -5,10 +5,11 @@ const require = createRequire(import.meta.url);
|
|
|
5
5
|
|
|
6
6
|
import {
|
|
7
7
|
create
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ME4CPLVT.js";
|
|
9
9
|
import {
|
|
10
10
|
getElizaCharacter
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-RJ7XRVPG.js";
|
|
12
|
+
import "./chunk-77IXJDDC.js";
|
|
12
13
|
import {
|
|
13
14
|
TestRunner,
|
|
14
15
|
UserEnvironment,
|
|
@@ -20,7 +21,6 @@ import {
|
|
|
20
21
|
detectDirectoryType,
|
|
21
22
|
detectPluginContext,
|
|
22
23
|
displayBanner,
|
|
23
|
-
executeInstallation,
|
|
24
24
|
fetchPluginRegistry,
|
|
25
25
|
findNextAvailablePort,
|
|
26
26
|
getCliInstallTag,
|
|
@@ -46,12 +46,12 @@ 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,
|
|
53
53
|
runBunCommand
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-7PPBVSWE.js";
|
|
55
55
|
import "./chunk-F24MS2YR.js";
|
|
56
56
|
import "./chunk-AQ6OMR2A.js";
|
|
57
57
|
|
|
@@ -1447,6 +1447,21 @@ var getDependenciesFromDirectory = (cwd) => {
|
|
|
1447
1447
|
};
|
|
1448
1448
|
|
|
1449
1449
|
// src/commands/plugins/actions/install.ts
|
|
1450
|
+
import * as clack5 from "@clack/prompts";
|
|
1451
|
+
import colors4 from "yoctocolors";
|
|
1452
|
+
function showInstallationSuccess(pluginName) {
|
|
1453
|
+
const message = `${colors4.green("\u2713")} Plugin installed successfully!
|
|
1454
|
+
|
|
1455
|
+
${colors4.bold("Next steps:")}
|
|
1456
|
+
1. Add ${colors4.cyan(`"${pluginName}"`)} to your character file's plugins array:
|
|
1457
|
+
|
|
1458
|
+
${colors4.gray("{")}${colors4.dim("\n")} ${colors4.green('"name"')}: ${colors4.yellow('"YourAgent"')},${colors4.dim("\n")} ${colors4.green('"plugins"')}: [${colors4.cyan(`"${pluginName}"`)}],${colors4.dim("\n")} ${colors4.gray("...")}${colors4.dim("\n")} ${colors4.gray("}")}
|
|
1459
|
+
|
|
1460
|
+
2. Restart your application to load the plugin
|
|
1461
|
+
3. Configure any required environment variables
|
|
1462
|
+
4. Check the plugin documentation for additional setup`;
|
|
1463
|
+
clack5.outro(message);
|
|
1464
|
+
}
|
|
1450
1465
|
async function installPluginFromGitHub(plugin, cwd, opts) {
|
|
1451
1466
|
const githubRegex = /^(?:github:)?([a-zA-Z0-9_-]+)\/([a-zA-Z0-9_.-]+)(?:#([a-zA-Z0-9_.-]+))?$/;
|
|
1452
1467
|
const githubMatch = plugin.match(githubRegex);
|
|
@@ -1459,9 +1474,9 @@ async function installPluginFromGitHub(plugin, cwd, opts) {
|
|
|
1459
1474
|
const success = await installPlugin(githubSpecifier, cwd, void 0, opts.skipVerification);
|
|
1460
1475
|
if (success) {
|
|
1461
1476
|
logger3.info(`Successfully installed ${pluginNameForPostInstall} from ${githubSpecifier}.`);
|
|
1477
|
+
const packageName = extractPackageName(plugin);
|
|
1462
1478
|
if (!opts.skipEnvPrompt) {
|
|
1463
1479
|
await new Promise((resolve2) => setTimeout(resolve2, 500));
|
|
1464
|
-
const packageName = extractPackageName(plugin);
|
|
1465
1480
|
console.log(`
|
|
1466
1481
|
\u{1F527} Checking environment variables for ${packageName}...`);
|
|
1467
1482
|
try {
|
|
@@ -1475,6 +1490,7 @@ async function installPluginFromGitHub(plugin, cwd, opts) {
|
|
|
1475
1490
|
console.log(`
|
|
1476
1491
|
\u23ED\uFE0F Skipping environment variable prompts due to --skip-env-prompt flag`);
|
|
1477
1492
|
}
|
|
1493
|
+
showInstallationSuccess(packageName);
|
|
1478
1494
|
process.exit(0);
|
|
1479
1495
|
} else {
|
|
1480
1496
|
logger3.error(`Failed to install plugin from ${githubSpecifier}.`);
|
|
@@ -1498,10 +1514,10 @@ async function installPluginFromRegistry(plugin, cwd, opts) {
|
|
|
1498
1514
|
);
|
|
1499
1515
|
if (registryInstallResult) {
|
|
1500
1516
|
console.log(`Successfully installed ${targetName}`);
|
|
1517
|
+
const updatedDependencies = getDependenciesFromDirectory(cwd);
|
|
1518
|
+
const actualPackageName = findPluginPackageName(targetName, updatedDependencies || {}) || targetName;
|
|
1501
1519
|
if (!opts.skipEnvPrompt) {
|
|
1502
1520
|
await new Promise((resolve2) => setTimeout(resolve2, 500));
|
|
1503
|
-
const updatedDependencies = getDependenciesFromDirectory(cwd);
|
|
1504
|
-
const actualPackageName = findPluginPackageName(targetName, updatedDependencies || {}) || targetName;
|
|
1505
1521
|
console.log(`
|
|
1506
1522
|
\u{1F527} Checking environment variables for ${actualPackageName}...`);
|
|
1507
1523
|
try {
|
|
@@ -1515,6 +1531,7 @@ async function installPluginFromRegistry(plugin, cwd, opts) {
|
|
|
1515
1531
|
console.log(`
|
|
1516
1532
|
\u23ED\uFE0F Skipping environment variable prompts due to --skip-env-prompt flag`);
|
|
1517
1533
|
}
|
|
1534
|
+
showInstallationSuccess(actualPackageName);
|
|
1518
1535
|
process.exit(0);
|
|
1519
1536
|
}
|
|
1520
1537
|
console.error(`Failed to install ${targetName} from registry.`);
|
|
@@ -2912,7 +2929,7 @@ import { readFileSync as readFileSync4 } from "fs";
|
|
|
2912
2929
|
import path12 from "path";
|
|
2913
2930
|
async function generatePlugin(opts) {
|
|
2914
2931
|
try {
|
|
2915
|
-
const { PluginCreator } = await import("./plugin-creator-
|
|
2932
|
+
const { PluginCreator } = await import("./plugin-creator-35CAJF4O.js");
|
|
2916
2933
|
if (opts.apiKey) {
|
|
2917
2934
|
process.env.ANTHROPIC_API_KEY = opts.apiKey;
|
|
2918
2935
|
}
|
|
@@ -3020,7 +3037,7 @@ plugins.command("generate").description("Generate a new plugin using AI-powered
|
|
|
3020
3037
|
import { Command as Command5 } from "commander";
|
|
3021
3038
|
import { promises as fs8 } from "fs";
|
|
3022
3039
|
import path18 from "path";
|
|
3023
|
-
import * as
|
|
3040
|
+
import * as clack10 from "@clack/prompts";
|
|
3024
3041
|
|
|
3025
3042
|
// src/commands/publish/actions/npm-publish.ts
|
|
3026
3043
|
import { execa as execa2 } from "execa";
|
|
@@ -3154,7 +3171,7 @@ async function savePackageToRegistry(packageMetadata, dryRun = false) {
|
|
|
3154
3171
|
// src/commands/publish/utils/validation.ts
|
|
3155
3172
|
import { promises as fs4 } from "fs";
|
|
3156
3173
|
import path15 from "path";
|
|
3157
|
-
import * as
|
|
3174
|
+
import * as clack6 from "@clack/prompts";
|
|
3158
3175
|
async function validatePluginRequirements(cwd, packageJson) {
|
|
3159
3176
|
const errors = [];
|
|
3160
3177
|
const warnings = [];
|
|
@@ -3194,12 +3211,12 @@ async function validatePluginRequirements(cwd, packageJson) {
|
|
|
3194
3211
|
console.warn("Plugin validation warnings:");
|
|
3195
3212
|
warnings.forEach((warning) => console.warn(` - ${warning}`));
|
|
3196
3213
|
console.warn("Your plugin may get rejected if you submit without addressing these issues.");
|
|
3197
|
-
const proceed = await
|
|
3214
|
+
const proceed = await clack6.confirm({
|
|
3198
3215
|
message: "Do you wish to continue anyway?",
|
|
3199
3216
|
initialValue: false
|
|
3200
3217
|
});
|
|
3201
|
-
if (
|
|
3202
|
-
|
|
3218
|
+
if (clack6.isCancel(proceed)) {
|
|
3219
|
+
clack6.cancel("Operation cancelled.");
|
|
3203
3220
|
process.exit(0);
|
|
3204
3221
|
}
|
|
3205
3222
|
if (!proceed) {
|
|
@@ -3276,7 +3293,7 @@ async function generatePackageMetadata(packageJson, cliVersion, username) {
|
|
|
3276
3293
|
|
|
3277
3294
|
// src/commands/publish/utils/authentication.ts
|
|
3278
3295
|
import { execa as execa3 } from "execa";
|
|
3279
|
-
import * as
|
|
3296
|
+
import * as clack7 from "@clack/prompts";
|
|
3280
3297
|
async function getNpmUsername() {
|
|
3281
3298
|
console.info(
|
|
3282
3299
|
"NPM authentication required for registry compliance (package name must match potential NPM package)."
|
|
@@ -3285,12 +3302,12 @@ async function getNpmUsername() {
|
|
|
3285
3302
|
const { stdout } = await execa3("npm", ["whoami"]);
|
|
3286
3303
|
const currentUser = stdout.trim();
|
|
3287
3304
|
console.info(`Found existing NPM login: ${currentUser}`);
|
|
3288
|
-
const useExisting = await
|
|
3305
|
+
const useExisting = await clack7.confirm({
|
|
3289
3306
|
message: `Use NPM account "${currentUser}" for package naming?`,
|
|
3290
3307
|
initialValue: true
|
|
3291
3308
|
});
|
|
3292
|
-
if (
|
|
3293
|
-
|
|
3309
|
+
if (clack7.isCancel(useExisting)) {
|
|
3310
|
+
clack7.cancel("Operation cancelled.");
|
|
3294
3311
|
process.exit(0);
|
|
3295
3312
|
}
|
|
3296
3313
|
if (useExisting) {
|
|
@@ -3323,7 +3340,7 @@ import { execa as execa7 } from "execa";
|
|
|
3323
3340
|
import { promises as fs7 } from "fs";
|
|
3324
3341
|
import path17 from "path";
|
|
3325
3342
|
import { fileURLToPath as fileURLToPath3 } from "url";
|
|
3326
|
-
import * as
|
|
3343
|
+
import * as clack9 from "@clack/prompts";
|
|
3327
3344
|
|
|
3328
3345
|
// src/commands/update/index.ts
|
|
3329
3346
|
import { logger as logger13 } from "@elizaos/core";
|
|
@@ -3444,9 +3461,18 @@ async function performCliUpdate(options = {}) {
|
|
|
3444
3461
|
}
|
|
3445
3462
|
}
|
|
3446
3463
|
}
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3464
|
+
try {
|
|
3465
|
+
await execa5("bun", ["add", "-g", `@elizaos/cli@${latestVersion}`], { stdio: "inherit" });
|
|
3466
|
+
console.log(`CLI updated successfully to version ${latestVersion} [\u2713]`);
|
|
3467
|
+
return true;
|
|
3468
|
+
} catch (bunError) {
|
|
3469
|
+
console.error("Bun installation not found. Please install bun first:");
|
|
3470
|
+
console.error(" curl -fsSL https://bun.sh/install | bash");
|
|
3471
|
+
console.error(" # or");
|
|
3472
|
+
console.error(" npm install -g bun");
|
|
3473
|
+
logger11.debug("Bun error:", bunError instanceof Error ? bunError.message : String(bunError));
|
|
3474
|
+
return false;
|
|
3475
|
+
}
|
|
3450
3476
|
} catch (error) {
|
|
3451
3477
|
console.error(`CLI update failed: ${error instanceof Error ? error.message : String(error)}`);
|
|
3452
3478
|
return false;
|
|
@@ -3454,7 +3480,7 @@ async function performCliUpdate(options = {}) {
|
|
|
3454
3480
|
}
|
|
3455
3481
|
|
|
3456
3482
|
// src/commands/update/actions/dependency-update.ts
|
|
3457
|
-
import * as
|
|
3483
|
+
import * as clack8 from "@clack/prompts";
|
|
3458
3484
|
import { promises as fs6 } from "fs";
|
|
3459
3485
|
import * as path16 from "path";
|
|
3460
3486
|
|
|
@@ -3541,12 +3567,12 @@ async function updateDependencies(cwd, isPlugin2, options = {}) {
|
|
|
3541
3567
|
([, { current, latest }]) => isMajorUpdate(current, latest)
|
|
3542
3568
|
);
|
|
3543
3569
|
if (hasMajorUpdates) {
|
|
3544
|
-
const confirmMajor = await
|
|
3570
|
+
const confirmMajor = await clack8.confirm({
|
|
3545
3571
|
message: "This update includes major version changes. Continue?",
|
|
3546
3572
|
initialValue: false
|
|
3547
3573
|
});
|
|
3548
|
-
if (
|
|
3549
|
-
|
|
3574
|
+
if (clack8.isCancel(confirmMajor)) {
|
|
3575
|
+
clack8.cancel("Operation cancelled.");
|
|
3550
3576
|
process.exit(0);
|
|
3551
3577
|
}
|
|
3552
3578
|
if (!confirmMajor) {
|
|
@@ -3595,8 +3621,11 @@ var update = new Command4().name("update").description("Update ElizaOS CLI and p
|
|
|
3595
3621
|
}
|
|
3596
3622
|
}).action(async (options) => {
|
|
3597
3623
|
try {
|
|
3624
|
+
const cwd = process.cwd();
|
|
3625
|
+
const directoryInfo = detectDirectoryType(cwd);
|
|
3626
|
+
const isInProject = directoryInfo && isValidForUpdates(directoryInfo);
|
|
3598
3627
|
const updateCli = options.cli || !options.cli && !options.packages;
|
|
3599
|
-
const updatePackages = options.packages || !options.cli && !options.packages;
|
|
3628
|
+
const updatePackages = options.packages || !options.cli && !options.packages && isInProject;
|
|
3600
3629
|
if (updateCli) {
|
|
3601
3630
|
const isNpx = await isRunningViaNpx();
|
|
3602
3631
|
const isBunx = await isRunningViaBunx();
|
|
@@ -3616,8 +3645,6 @@ var update = new Command4().name("update").description("Update ElizaOS CLI and p
|
|
|
3616
3645
|
}
|
|
3617
3646
|
}
|
|
3618
3647
|
if (updatePackages) {
|
|
3619
|
-
const cwd = process.cwd();
|
|
3620
|
-
const directoryInfo = detectDirectoryType(cwd);
|
|
3621
3648
|
if (!directoryInfo) {
|
|
3622
3649
|
console.error("Cannot update packages in this directory.");
|
|
3623
3650
|
console.info("This directory is not accessible or does not exist.");
|
|
@@ -3625,7 +3652,7 @@ var update = new Command4().name("update").description("Update ElizaOS CLI and p
|
|
|
3625
3652
|
return;
|
|
3626
3653
|
}
|
|
3627
3654
|
logger13.debug(`Detected ${directoryInfo.type}`);
|
|
3628
|
-
if (!
|
|
3655
|
+
if (!isInProject) {
|
|
3629
3656
|
handleInvalidDirectory(directoryInfo);
|
|
3630
3657
|
return;
|
|
3631
3658
|
}
|
|
@@ -3683,12 +3710,12 @@ async function checkCliVersion() {
|
|
|
3683
3710
|
}
|
|
3684
3711
|
if (latestVersion && latestVersion !== currentVersion) {
|
|
3685
3712
|
console.warn(`CLI update available: ${currentVersion} \u2192 ${latestVersion}`);
|
|
3686
|
-
const update2 = await
|
|
3713
|
+
const update2 = await clack9.confirm({
|
|
3687
3714
|
message: "Update CLI before publishing?",
|
|
3688
3715
|
initialValue: false
|
|
3689
3716
|
});
|
|
3690
|
-
if (
|
|
3691
|
-
|
|
3717
|
+
if (clack9.isCancel(update2)) {
|
|
3718
|
+
clack9.cancel("Operation cancelled.");
|
|
3692
3719
|
process.exit(0);
|
|
3693
3720
|
}
|
|
3694
3721
|
if (update2) {
|
|
@@ -3795,12 +3822,12 @@ var publish = new Command5().name("publish").description("Publish a plugin to np
|
|
|
3795
3822
|
console.warn(
|
|
3796
3823
|
"This doesn't appear to be an ElizaOS plugin. Package name should include 'plugin-'."
|
|
3797
3824
|
);
|
|
3798
|
-
const proceed = await
|
|
3825
|
+
const proceed = await clack10.confirm({
|
|
3799
3826
|
message: "Proceed anyway?",
|
|
3800
3827
|
initialValue: false
|
|
3801
3828
|
});
|
|
3802
|
-
if (
|
|
3803
|
-
|
|
3829
|
+
if (clack10.isCancel(proceed)) {
|
|
3830
|
+
clack10.cancel("Operation cancelled.");
|
|
3804
3831
|
process.exit(0);
|
|
3805
3832
|
}
|
|
3806
3833
|
if (!proceed) {
|
|
@@ -4556,7 +4583,12 @@ async function startAgents(options) {
|
|
|
4556
4583
|
logger18.warn(`Port ${desiredPort} is in use, using port ${serverPort} instead`);
|
|
4557
4584
|
}
|
|
4558
4585
|
process.env.SERVER_PORT = serverPort.toString();
|
|
4559
|
-
|
|
4586
|
+
try {
|
|
4587
|
+
await server.start(serverPort);
|
|
4588
|
+
} catch (error) {
|
|
4589
|
+
logger18.error(`Failed to start server on port ${serverPort}:`, error);
|
|
4590
|
+
throw error;
|
|
4591
|
+
}
|
|
4560
4592
|
if (options.projectAgents && options.projectAgents.length > 0) {
|
|
4561
4593
|
for (const projectAgent of options.projectAgents) {
|
|
4562
4594
|
await startAgent(
|
|
@@ -4750,7 +4782,7 @@ async function installPluginDependencies(projectInfo) {
|
|
|
4750
4782
|
};
|
|
4751
4783
|
await fs11.promises.writeFile(packageJsonPath, JSON.stringify(packageJsonContent, null, 2));
|
|
4752
4784
|
}
|
|
4753
|
-
const { installPlugin: installPlugin2 } = await import("./utils-
|
|
4785
|
+
const { installPlugin: installPlugin2 } = await import("./utils-QBGEZZ4I.js");
|
|
4754
4786
|
for (const dependency of project.pluginModule.dependencies) {
|
|
4755
4787
|
await installPlugin2(dependency, pluginsDir);
|
|
4756
4788
|
const dependencyPath = path23.join(pluginsDir, "node_modules", dependency);
|
|
@@ -5214,6 +5246,7 @@ import { logger as logger27 } from "@elizaos/core";
|
|
|
5214
5246
|
import { Command as Command11 } from "commander";
|
|
5215
5247
|
process.env.NODE_OPTIONS = "--no-deprecation";
|
|
5216
5248
|
process.env.NODE_NO_WARNINGS = "1";
|
|
5249
|
+
process.env.QUIET_MODE = process.env.QUIET_MODE || "true";
|
|
5217
5250
|
process.on("SIGINT", () => process.exit(0));
|
|
5218
5251
|
process.on("SIGTERM", () => process.exit(0));
|
|
5219
5252
|
async function main() {
|
|
@@ -28,8 +28,8 @@ import {
|
|
|
28
28
|
setEnvVar,
|
|
29
29
|
setGitHubToken,
|
|
30
30
|
validateDataDir
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-GILK2M6Z.js";
|
|
32
|
+
import "./chunk-7PPBVSWE.js";
|
|
33
33
|
import "./chunk-F24MS2YR.js";
|
|
34
34
|
import "./chunk-AQ6OMR2A.js";
|
|
35
35
|
export {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
|
|
2
|
+
import { createRequire } from 'module';
|
|
3
|
+
const require = createRequire(import.meta.url);
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
createProjectDirectories,
|
|
7
|
+
setupAIModelConfig,
|
|
8
|
+
setupEmbeddingModelConfig,
|
|
9
|
+
setupProjectEnvironment
|
|
10
|
+
} from "./chunk-77IXJDDC.js";
|
|
11
|
+
import "./chunk-GILK2M6Z.js";
|
|
12
|
+
import "./chunk-7PPBVSWE.js";
|
|
13
|
+
import "./chunk-F24MS2YR.js";
|
|
14
|
+
import "./chunk-AQ6OMR2A.js";
|
|
15
|
+
export {
|
|
16
|
+
createProjectDirectories,
|
|
17
|
+
setupAIModelConfig,
|
|
18
|
+
setupEmbeddingModelConfig,
|
|
19
|
+
setupProjectEnvironment
|
|
20
|
+
};
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@elizaos/cli": "1.0.
|
|
32
|
-
"@elizaos/core": "1.0.
|
|
33
|
-
"@elizaos/plugin-bootstrap": "1.0.
|
|
34
|
-
"@elizaos/plugin-sql": "1.0.
|
|
31
|
+
"@elizaos/cli": "1.0.19",
|
|
32
|
+
"@elizaos/core": "1.0.19",
|
|
33
|
+
"@elizaos/plugin-bootstrap": "1.0.19",
|
|
34
|
+
"@elizaos/plugin-sql": "1.0.19",
|
|
35
35
|
"@tanstack/react-query": "^5.29.0",
|
|
36
36
|
"clsx": "^2.1.1",
|
|
37
37
|
"react": "^18.3.1",
|
|
@@ -41,6 +41,7 @@ export const character: Character = {
|
|
|
41
41
|
],
|
|
42
42
|
settings: {
|
|
43
43
|
secrets: {},
|
|
44
|
+
avatar: 'https://elizaos.github.io/eliza-avatars/Eliza/portrait.png',
|
|
44
45
|
},
|
|
45
46
|
system:
|
|
46
47
|
'Respond to all messages in a helpful, conversational manner. Provide assistance on a wide range of topics, using knowledge when needed. Be concise but thorough, friendly but professional. Use humor when appropriate and be empathetic to user needs. Provide valuable information and insights when questions are asked.',
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"GUIDE.md"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@elizaos/cli": "1.0.
|
|
37
|
-
"@elizaos/core": "1.0.
|
|
36
|
+
"@elizaos/cli": "1.0.19",
|
|
37
|
+
"@elizaos/core": "1.0.19",
|
|
38
38
|
"@elizaos/plugin-redpill": "1.0.3",
|
|
39
|
-
"@elizaos/plugin-sql": "1.0.
|
|
39
|
+
"@elizaos/plugin-sql": "1.0.19",
|
|
40
40
|
"@phala/dstack-sdk": "0.1.11",
|
|
41
41
|
"@solana/web3.js": "1.98.2",
|
|
42
42
|
"viem": "2.30.1",
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
branchExists,
|
|
11
11
|
buildGitHubSpecifier,
|
|
12
12
|
buildProject,
|
|
13
|
+
buildProjectWithSpinner,
|
|
13
14
|
checkAndShowUpdateNotification,
|
|
14
15
|
checkServer,
|
|
15
16
|
configSchema,
|
|
@@ -21,6 +22,7 @@ import {
|
|
|
21
22
|
createBranch,
|
|
22
23
|
createGitHubRepository,
|
|
23
24
|
createPullRequest,
|
|
25
|
+
createTask,
|
|
24
26
|
detectPluginContext,
|
|
25
27
|
displayAgent,
|
|
26
28
|
displayBanner,
|
|
@@ -49,11 +51,14 @@ import {
|
|
|
49
51
|
getPackageVersion,
|
|
50
52
|
getVersion,
|
|
51
53
|
handleError,
|
|
54
|
+
installDependenciesWithSpinner,
|
|
52
55
|
installPlugin,
|
|
56
|
+
installPluginWithSpinner,
|
|
53
57
|
isBunAvailable,
|
|
54
58
|
isCliInstalledViaNpm,
|
|
55
59
|
isGlobalInstallation,
|
|
56
60
|
isPortFree,
|
|
61
|
+
isQuietMode,
|
|
57
62
|
isRunningFromNodeModules,
|
|
58
63
|
isRunningViaBunx,
|
|
59
64
|
isRunningViaNpx,
|
|
@@ -89,6 +94,9 @@ import {
|
|
|
89
94
|
resolveEnvFile,
|
|
90
95
|
resolveImport,
|
|
91
96
|
resolvePgliteDir,
|
|
97
|
+
runBunWithSpinner,
|
|
98
|
+
runCommandWithSpinner,
|
|
99
|
+
runTasks,
|
|
92
100
|
saveConfig,
|
|
93
101
|
saveGitHubCredentials,
|
|
94
102
|
setupEnvFile,
|
|
@@ -106,10 +114,10 @@ import {
|
|
|
106
114
|
updateFile,
|
|
107
115
|
validateGitHubToken,
|
|
108
116
|
writeEnvFile
|
|
109
|
-
} from "./chunk-
|
|
117
|
+
} from "./chunk-GILK2M6Z.js";
|
|
110
118
|
import {
|
|
111
119
|
runBunCommand
|
|
112
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-7PPBVSWE.js";
|
|
113
121
|
import "./chunk-F24MS2YR.js";
|
|
114
122
|
import "./chunk-AQ6OMR2A.js";
|
|
115
123
|
export {
|
|
@@ -120,6 +128,7 @@ export {
|
|
|
120
128
|
branchExists,
|
|
121
129
|
buildGitHubSpecifier,
|
|
122
130
|
buildProject,
|
|
131
|
+
buildProjectWithSpinner,
|
|
123
132
|
checkAndShowUpdateNotification,
|
|
124
133
|
checkServer,
|
|
125
134
|
configSchema,
|
|
@@ -131,6 +140,7 @@ export {
|
|
|
131
140
|
createBranch,
|
|
132
141
|
createGitHubRepository,
|
|
133
142
|
createPullRequest,
|
|
143
|
+
createTask,
|
|
134
144
|
detectPluginContext,
|
|
135
145
|
displayAgent,
|
|
136
146
|
displayBanner,
|
|
@@ -159,11 +169,14 @@ export {
|
|
|
159
169
|
getPackageVersion,
|
|
160
170
|
getVersion,
|
|
161
171
|
handleError,
|
|
172
|
+
installDependenciesWithSpinner,
|
|
162
173
|
installPlugin,
|
|
174
|
+
installPluginWithSpinner,
|
|
163
175
|
isBunAvailable,
|
|
164
176
|
isCliInstalledViaNpm,
|
|
165
177
|
isGlobalInstallation,
|
|
166
178
|
isPortFree,
|
|
179
|
+
isQuietMode,
|
|
167
180
|
isRunningFromNodeModules,
|
|
168
181
|
isRunningViaBunx,
|
|
169
182
|
isRunningViaNpx,
|
|
@@ -200,6 +213,9 @@ export {
|
|
|
200
213
|
resolveImport,
|
|
201
214
|
resolvePgliteDir,
|
|
202
215
|
runBunCommand,
|
|
216
|
+
runBunWithSpinner,
|
|
217
|
+
runCommandWithSpinner,
|
|
218
|
+
runTasks,
|
|
203
219
|
saveConfig,
|
|
204
220
|
saveGitHubCredentials,
|
|
205
221
|
setupEnvFile,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elizaos/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.20",
|
|
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": "627eaabb9a325876f8502a462aa00d0af234ff26",
|
|
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.0.
|
|
78
|
-
"@elizaos/plugin-sql": "1.0.
|
|
79
|
-
"@elizaos/server": "1.0.
|
|
77
|
+
"@elizaos/core": "1.0.20",
|
|
78
|
+
"@elizaos/plugin-sql": "1.0.20",
|
|
79
|
+
"@elizaos/server": "1.0.20",
|
|
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.0.
|
|
32
|
-
"@elizaos/core": "1.0.
|
|
33
|
-
"@elizaos/plugin-bootstrap": "1.0.
|
|
34
|
-
"@elizaos/plugin-sql": "1.0.
|
|
31
|
+
"@elizaos/cli": "1.0.19",
|
|
32
|
+
"@elizaos/core": "1.0.19",
|
|
33
|
+
"@elizaos/plugin-bootstrap": "1.0.19",
|
|
34
|
+
"@elizaos/plugin-sql": "1.0.19",
|
|
35
35
|
"@tanstack/react-query": "^5.29.0",
|
|
36
36
|
"clsx": "^2.1.1",
|
|
37
37
|
"react": "^18.3.1",
|
|
@@ -41,6 +41,7 @@ export const character: Character = {
|
|
|
41
41
|
],
|
|
42
42
|
settings: {
|
|
43
43
|
secrets: {},
|
|
44
|
+
avatar: 'https://elizaos.github.io/eliza-avatars/Eliza/portrait.png',
|
|
44
45
|
},
|
|
45
46
|
system:
|
|
46
47
|
'Respond to all messages in a helpful, conversational manner. Provide assistance on a wide range of topics, using knowledge when needed. Be concise but thorough, friendly but professional. Use humor when appropriate and be empathetic to user needs. Provide valuable information and insights when questions are asked.',
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"GUIDE.md"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@elizaos/cli": "1.0.
|
|
37
|
-
"@elizaos/core": "1.0.
|
|
36
|
+
"@elizaos/cli": "1.0.19",
|
|
37
|
+
"@elizaos/core": "1.0.19",
|
|
38
38
|
"@elizaos/plugin-redpill": "1.0.3",
|
|
39
|
-
"@elizaos/plugin-sql": "1.0.
|
|
39
|
+
"@elizaos/plugin-sql": "1.0.19",
|
|
40
40
|
"@phala/dstack-sdk": "0.1.11",
|
|
41
41
|
"@solana/web3.js": "1.98.2",
|
|
42
42
|
"viem": "2.30.1",
|
|
Binary file
|
|
Binary file
|