@elizaos/cli 1.0.9 → 1.0.11
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 +9 -16
- package/dist/assets/{index-Cxd2b7is.js → index-Cuyjmso1.js} +1434 -13725
- package/dist/assets/{index-Cxd2b7is.js.map → index-Cuyjmso1.js.map} +1 -1
- package/dist/assets/index-Df1AFSuJ.css +1 -0
- package/dist/assets/index-Df1AFSuJ.css.br +0 -0
- package/dist/assets/{index-CCyz05Yl.js → index-poChVCDJ.js} +72 -89
- package/dist/assets/index-poChVCDJ.js.br +0 -0
- package/dist/assets/index-poChVCDJ.js.map +1 -0
- package/dist/assets/vendor-DSdxb8P-.js.map +1 -1
- package/dist/{chunk-Z6GVELRX.js → chunk-HBV76MGW.js} +58 -29
- package/dist/{chunk-CVADLFW6.js → chunk-LQ6XHF53.js} +4543 -3043
- package/dist/{chunk-Y755OOSP.js → chunk-QLKBXRME.js} +883 -1553
- package/dist/{chunk-JWONHNLD.js → chunk-RIAWNDYI.js} +2 -9
- package/dist/{chunk-HZQCHL3J.js → chunk-TPLM6M7M.js} +13 -18
- package/dist/{chunk-IEKLJDUU.js → chunk-WS4DWCDZ.js} +54 -32
- package/dist/commands/agent/actions/index.d.ts +5 -1
- package/dist/commands/agent/actions/index.js +5 -3
- package/dist/commands/agent/index.js +3 -3
- package/dist/commands/create/actions/index.js +4 -4
- package/dist/commands/create/index.js +5 -5
- package/dist/{fileFromPath-DCRQMDLJ.js → fileFromPath-KB6XMTJ4.js} +1 -0
- package/dist/index.html +2 -2
- package/dist/index.js +9351 -102236
- package/dist/{migrator-KZLCVEIH.js → migrator-JREQPDN3.js} +42 -220
- package/dist/pglite.data +0 -0
- package/dist/pglite.wasm +0 -0
- package/dist/plugin-creator-T4K2673C.js +910 -0
- package/dist/{registry-W7CIK4O2.js → registry-PTOPJQEB.js} +3 -3
- package/dist/templates/plugin-starter/README.md +255 -0
- package/dist/templates/plugin-starter/bunfig.toml +6 -0
- package/dist/templates/plugin-starter/cypress.config.ts +18 -0
- package/dist/templates/plugin-starter/index.html +13 -0
- package/dist/templates/plugin-starter/package.json +95 -0
- package/dist/templates/plugin-starter/postcss.config.js +3 -0
- package/dist/templates/plugin-starter/scripts/test-e2e-manual.js +201 -0
- package/dist/templates/plugin-starter/src/__tests__/cypress/component/ExampleRoute.cy.tsx +404 -0
- package/dist/templates/plugin-starter/src/__tests__/cypress/component/PanelComponent.cy.tsx +287 -0
- package/dist/templates/plugin-starter/src/__tests__/cypress/support/commands.ts +38 -0
- package/dist/templates/plugin-starter/src/__tests__/cypress/support/component-index.html +11 -0
- package/dist/templates/plugin-starter/src/__tests__/cypress/support/component.ts +33 -0
- package/dist/templates/plugin-starter/src/__tests__/cypress/support/e2e.ts +11 -0
- package/dist/templates/plugin-starter/src/__tests__/cypress/tsconfig.json +10 -0
- package/dist/templates/plugin-starter/src/__tests__/e2e/README.md +47 -0
- package/dist/templates/plugin-starter/src/__tests__/e2e/starter-plugin.ts +320 -0
- package/{templates/plugin-starter → dist/templates/plugin-starter/src}/__tests__/integration.test.ts +22 -17
- package/{templates/plugin-starter → dist/templates/plugin-starter/src}/__tests__/plugin.test.ts +8 -8
- package/{templates/plugin-starter → dist/templates/plugin-starter/src}/__tests__/test-utils.ts +17 -17
- package/dist/templates/plugin-starter/src/frontend/index.css +77 -0
- package/dist/templates/plugin-starter/src/frontend/index.tsx +164 -0
- package/dist/templates/plugin-starter/src/frontend/utils.ts +6 -0
- package/dist/templates/plugin-starter/src/index.ts +274 -0
- package/dist/templates/plugin-starter/src/tests.ts +6 -0
- package/dist/templates/plugin-starter/tailwind.config.js +62 -0
- package/dist/templates/plugin-starter/tsconfig.build.json +11 -0
- package/dist/templates/plugin-starter/tsconfig.json +28 -0
- package/dist/templates/plugin-starter/tsup.config.ts +20 -0
- package/dist/templates/plugin-starter/vite.config.ts +20 -0
- package/dist/templates/project-starter/.env.example +153 -0
- package/dist/templates/project-starter/README.md +109 -0
- package/dist/templates/project-starter/bunfig.toml +6 -0
- package/dist/templates/project-starter/cypress.config.ts +31 -0
- package/dist/templates/project-starter/index.html +13 -0
- package/dist/templates/project-starter/package.json +83 -0
- package/dist/templates/project-starter/postcss.config.js +3 -0
- package/dist/templates/project-starter/scripts/test-all.sh +101 -0
- package/{templates/project-starter → dist/templates/project-starter/src}/__tests__/actions.test.ts +6 -6
- package/{templates/project-starter → dist/templates/project-starter/src}/__tests__/character.test.ts +3 -3
- package/{templates/project-starter → dist/templates/project-starter/src}/__tests__/config.test.ts +18 -18
- package/dist/templates/project-starter/src/__tests__/cypress/component/Accessibility.cy.tsx +271 -0
- package/dist/templates/project-starter/src/__tests__/cypress/component/ApiIntegration.cy.tsx +220 -0
- package/dist/templates/project-starter/src/__tests__/cypress/component/ExampleRoute.cy.tsx +146 -0
- package/dist/templates/project-starter/src/__tests__/cypress/component/PanelComponent.cy.tsx +51 -0
- package/dist/templates/project-starter/src/__tests__/cypress/e2e/agent-chat.cy.ts +235 -0
- package/dist/templates/project-starter/src/__tests__/cypress/e2e/dashboard.cy.ts +146 -0
- package/dist/templates/project-starter/src/__tests__/cypress/e2e/user-workflow.cy.ts +257 -0
- package/dist/templates/project-starter/src/__tests__/cypress/support/commands.ts +44 -0
- package/dist/templates/project-starter/src/__tests__/cypress/support/component-index.html +11 -0
- package/dist/templates/project-starter/src/__tests__/cypress/support/component.ts +33 -0
- package/dist/templates/project-starter/src/__tests__/cypress/support/e2e.ts +179 -0
- package/dist/templates/project-starter/src/__tests__/e2e/index.ts +14 -0
- package/dist/templates/project-starter/src/__tests__/e2e/natural-language.test.ts +246 -0
- package/dist/templates/project-starter/src/__tests__/e2e/project.test.ts +155 -0
- package/dist/templates/project-starter/src/__tests__/e2e/starter-plugin.test.ts +421 -0
- package/{templates/project-starter → dist/templates/project-starter/src}/__tests__/env.test.ts +2 -2
- package/{templates/project-starter → dist/templates/project-starter/src}/__tests__/error-handling.test.ts +17 -17
- package/{templates/project-starter → dist/templates/project-starter/src}/__tests__/events.test.ts +7 -7
- package/dist/templates/project-starter/src/__tests__/file-structure.test.ts +135 -0
- package/{templates/project-starter → dist/templates/project-starter/src}/__tests__/integration.test.ts +25 -25
- package/{templates/project-starter → dist/templates/project-starter/src}/__tests__/models.test.ts +6 -6
- package/{templates/project-starter → dist/templates/project-starter/src}/__tests__/plugin.test.ts +9 -9
- package/{templates/project-starter → dist/templates/project-starter/src}/__tests__/provider.test.ts +7 -7
- package/{templates/project-starter → dist/templates/project-starter/src}/__tests__/routes.test.ts +3 -3
- package/{templates/project-starter → dist/templates/project-starter/src}/__tests__/test-utils.ts +17 -17
- package/{templates/project-starter → dist/templates/project-starter/src}/__tests__/utils/core-test-utils.ts +3 -3
- package/dist/templates/project-starter/src/frontend/index.css +77 -0
- package/dist/templates/project-starter/src/frontend/index.html +19 -0
- package/dist/templates/project-starter/src/frontend/index.tsx +98 -0
- package/dist/templates/project-starter/src/frontend/utils.ts +6 -0
- package/dist/templates/project-starter/src/index.ts +153 -0
- package/dist/templates/project-starter/src/plugin.ts +255 -0
- package/dist/templates/project-starter/tailwind.config.js +62 -0
- package/dist/templates/project-starter/tsconfig.build.json +20 -0
- package/dist/templates/project-starter/tsconfig.json +39 -0
- package/dist/templates/project-starter/tsup.config.ts +19 -0
- package/dist/templates/project-starter/vite.config.ts +39 -0
- package/dist/templates/project-tee-starter/.dockerignore +20 -0
- package/dist/templates/project-tee-starter/.env.example +55 -0
- package/dist/templates/project-tee-starter/Dockerfile +66 -0
- package/dist/templates/project-tee-starter/GUIDE.md +235 -0
- package/dist/templates/project-tee-starter/README.md +173 -0
- package/dist/templates/project-tee-starter/__tests__/actions.test.ts +9 -0
- package/dist/templates/project-tee-starter/__tests__/character.test.ts +86 -0
- package/dist/templates/project-tee-starter/__tests__/config.test.ts +31 -0
- package/dist/templates/project-tee-starter/__tests__/env.test.ts +87 -0
- package/dist/templates/project-tee-starter/__tests__/error-handling.test.ts +30 -0
- package/dist/templates/project-tee-starter/__tests__/events.test.ts +21 -0
- package/{templates/project-starter → dist/templates/project-tee-starter}/__tests__/file-structure.test.ts +6 -6
- package/dist/templates/project-tee-starter/__tests__/integration.test.ts +205 -0
- package/dist/templates/project-tee-starter/__tests__/models.test.ts +22 -0
- package/dist/templates/project-tee-starter/__tests__/plugin.test.ts +38 -0
- package/dist/templates/project-tee-starter/__tests__/provider.test.ts +189 -0
- package/dist/templates/project-tee-starter/__tests__/routes.test.ts +21 -0
- package/dist/templates/project-tee-starter/__tests__/test-utils.ts +121 -0
- package/dist/templates/project-tee-starter/__tests__/utils/core-test-utils.ts +167 -0
- package/dist/templates/project-tee-starter/assets/mr-tee-portrait.jpg +0 -0
- package/dist/templates/project-tee-starter/bunfig.toml +6 -0
- package/dist/templates/project-tee-starter/docker-compose.yaml +57 -0
- package/dist/templates/project-tee-starter/e2e/project.test.ts +38 -0
- package/dist/templates/project-tee-starter/e2e/starter-plugin.test.ts +92 -0
- package/dist/templates/project-tee-starter/package.json +74 -0
- package/dist/templates/project-tee-starter/src/character.ts +257 -0
- package/dist/templates/project-tee-starter/src/index.ts +33 -0
- package/dist/templates/project-tee-starter/src/plugin.ts +169 -0
- package/dist/templates/project-tee-starter/tsconfig.build.json +13 -0
- package/dist/templates/project-tee-starter/tsconfig.json +30 -0
- package/dist/templates/project-tee-starter/tsup.config.ts +19 -0
- package/dist/{utils-2G2QVMW3.js → utils-TDE6Y3CB.js} +9 -7
- package/package.json +28 -9
- package/templates/plugin-starter/README.md +38 -13
- package/templates/plugin-starter/bunfig.toml +6 -0
- package/templates/plugin-starter/cypress.config.ts +18 -0
- package/templates/plugin-starter/index.html +13 -0
- package/templates/plugin-starter/package.json +19 -7
- package/templates/plugin-starter/postcss.config.js +3 -0
- package/templates/plugin-starter/scripts/test-e2e-manual.js +201 -0
- package/templates/plugin-starter/src/__tests__/cypress/component/ExampleRoute.cy.tsx +404 -0
- package/templates/plugin-starter/src/__tests__/cypress/component/PanelComponent.cy.tsx +287 -0
- package/templates/plugin-starter/src/__tests__/cypress/support/commands.ts +38 -0
- package/templates/plugin-starter/src/__tests__/cypress/support/component-index.html +11 -0
- package/templates/plugin-starter/src/__tests__/cypress/support/component.ts +33 -0
- package/templates/plugin-starter/src/__tests__/cypress/support/e2e.ts +11 -0
- package/templates/plugin-starter/src/__tests__/cypress/tsconfig.json +10 -0
- package/templates/plugin-starter/src/__tests__/e2e/README.md +47 -0
- package/templates/plugin-starter/src/__tests__/e2e/starter-plugin.ts +320 -0
- package/templates/plugin-starter/src/__tests__/integration.test.ts +138 -0
- package/templates/plugin-starter/src/__tests__/plugin.test.ts +182 -0
- package/templates/plugin-starter/src/__tests__/test-utils.ts +162 -0
- package/templates/plugin-starter/src/frontend/index.css +77 -0
- package/templates/plugin-starter/src/frontend/index.tsx +164 -0
- package/templates/plugin-starter/src/frontend/utils.ts +6 -0
- package/templates/plugin-starter/src/index.ts +30 -7
- package/templates/plugin-starter/src/tests.ts +6 -0
- package/templates/plugin-starter/tailwind.config.js +62 -0
- package/templates/plugin-starter/tsconfig.json +8 -8
- package/templates/plugin-starter/vite.config.ts +20 -0
- package/templates/project-starter/bunfig.toml +6 -0
- package/templates/project-starter/cypress.config.ts +31 -0
- package/templates/project-starter/index.html +13 -0
- package/templates/project-starter/package.json +37 -14
- package/templates/project-starter/postcss.config.js +3 -0
- package/templates/project-starter/scripts/test-all.sh +101 -0
- package/templates/project-starter/src/__tests__/actions.test.ts +155 -0
- package/templates/project-starter/src/__tests__/character.test.ts +86 -0
- package/templates/project-starter/src/__tests__/config.test.ts +193 -0
- package/templates/project-starter/src/__tests__/cypress/component/Accessibility.cy.tsx +271 -0
- package/templates/project-starter/src/__tests__/cypress/component/ApiIntegration.cy.tsx +220 -0
- package/templates/project-starter/src/__tests__/cypress/component/ExampleRoute.cy.tsx +146 -0
- package/templates/project-starter/src/__tests__/cypress/component/PanelComponent.cy.tsx +51 -0
- package/templates/project-starter/src/__tests__/cypress/e2e/agent-chat.cy.ts +235 -0
- package/templates/project-starter/src/__tests__/cypress/e2e/dashboard.cy.ts +146 -0
- package/templates/project-starter/src/__tests__/cypress/e2e/user-workflow.cy.ts +257 -0
- package/templates/project-starter/src/__tests__/cypress/support/commands.ts +44 -0
- package/templates/project-starter/src/__tests__/cypress/support/component-index.html +11 -0
- package/templates/project-starter/src/__tests__/cypress/support/component.ts +33 -0
- package/templates/project-starter/src/__tests__/cypress/support/e2e.ts +179 -0
- package/templates/project-starter/src/__tests__/e2e/index.ts +14 -0
- package/templates/project-starter/src/__tests__/e2e/natural-language.test.ts +246 -0
- package/templates/project-starter/src/__tests__/e2e/project.test.ts +155 -0
- package/templates/project-starter/src/__tests__/e2e/starter-plugin.test.ts +421 -0
- package/templates/project-starter/src/__tests__/env.test.ts +87 -0
- package/templates/project-starter/src/__tests__/error-handling.test.ts +177 -0
- package/templates/project-starter/src/__tests__/events.test.ts +144 -0
- package/templates/project-starter/src/__tests__/file-structure.test.ts +135 -0
- package/templates/project-starter/src/__tests__/integration.test.ts +209 -0
- package/templates/project-starter/src/__tests__/models.test.ts +152 -0
- package/templates/project-starter/src/__tests__/plugin.test.ts +393 -0
- package/templates/project-starter/src/__tests__/provider.test.ts +325 -0
- package/templates/project-starter/src/__tests__/routes.test.ts +79 -0
- package/templates/project-starter/src/__tests__/test-utils.ts +121 -0
- package/templates/project-starter/src/__tests__/utils/core-test-utils.ts +180 -0
- package/templates/project-starter/src/frontend/index.css +77 -0
- package/templates/project-starter/src/frontend/index.html +19 -0
- package/templates/project-starter/src/frontend/index.tsx +98 -0
- package/templates/project-starter/src/frontend/utils.ts +6 -0
- package/templates/project-starter/src/index.ts +3 -0
- package/templates/project-starter/tailwind.config.js +62 -0
- package/templates/project-starter/tsconfig.build.json +9 -2
- package/templates/project-starter/tsconfig.json +15 -6
- package/templates/project-starter/tsup.config.ts +1 -1
- package/templates/project-starter/vite.config.ts +39 -0
- package/templates/project-tee-starter/__tests__/actions.test.ts +1 -1
- package/templates/project-tee-starter/__tests__/character.test.ts +1 -1
- package/templates/project-tee-starter/__tests__/config.test.ts +1 -1
- package/templates/project-tee-starter/__tests__/env.test.ts +2 -2
- package/templates/project-tee-starter/__tests__/error-handling.test.ts +1 -1
- package/templates/project-tee-starter/__tests__/events.test.ts +1 -1
- package/templates/project-tee-starter/__tests__/file-structure.test.ts +5 -5
- package/templates/project-tee-starter/__tests__/integration.test.ts +22 -26
- package/templates/project-tee-starter/__tests__/models.test.ts +1 -1
- package/templates/project-tee-starter/__tests__/plugin.test.ts +6 -12
- package/templates/project-tee-starter/__tests__/provider.test.ts +6 -6
- package/templates/project-tee-starter/__tests__/routes.test.ts +1 -1
- package/templates/project-tee-starter/__tests__/test-utils.ts +15 -15
- package/templates/project-tee-starter/__tests__/utils/core-test-utils.ts +3 -3
- package/templates/project-tee-starter/bunfig.toml +6 -0
- package/templates/project-tee-starter/package.json +10 -12
- package/dist/assets/index-CCyz05Yl.js.br +0 -0
- package/dist/assets/index-CCyz05Yl.js.map +0 -1
- package/dist/assets/index-DeXwJbtm.css +0 -1
- package/dist/assets/index-DeXwJbtm.css.br +0 -0
- package/dist/chunk-CEE6RKN5.js +0 -2746
- package/dist/chunk-TUAYJIF2.js +0 -3649
- package/dist/plugin-creator-IK6H4LVZ.js +0 -29165
- package/templates/plugin-starter/e2e/starter-plugin.test.ts +0 -171
- package/templates/plugin-starter/images/README.md +0 -24
- package/templates/plugin-starter/vitest.config.ts +0 -16
- package/templates/project-starter/e2e/project.test.ts +0 -34
- package/templates/project-starter/e2e/starter-plugin.test.ts +0 -217
- package/templates/project-starter/vitest.config.ts +0 -16
- package/templates/project-tee-starter/vitest.config.ts +0 -19
|
@@ -18,22 +18,15 @@ function displayBunInstallationTipCompact() {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
// src/utils/run-bun.ts
|
|
21
|
-
async function runBunCommand(args, cwd
|
|
21
|
+
async function runBunCommand(args, cwd) {
|
|
22
22
|
const finalArgs = [...args];
|
|
23
|
-
const isInstallCommand = args[0] === "install"
|
|
23
|
+
const isInstallCommand = args[0] === "install";
|
|
24
24
|
const isCI = process.env.CI || process.env.ELIZA_TEST_MODE === "true";
|
|
25
|
-
console.log(
|
|
26
|
-
`[DEBUG] runBunCommand: args=${JSON.stringify(args)}, isInstallCommand=${isInstallCommand}, isCI=${isCI}, CI=${process.env.CI}, ELIZA_TEST_MODE=${process.env.ELIZA_TEST_MODE}`
|
|
27
|
-
);
|
|
28
25
|
if (isCI && isInstallCommand) {
|
|
29
26
|
if (!finalArgs.includes("--frozen-lockfile")) {
|
|
30
27
|
finalArgs.push("--frozen-lockfile");
|
|
31
28
|
}
|
|
32
|
-
if (!finalArgs.includes("--no-install")) {
|
|
33
|
-
finalArgs.push("--no-install");
|
|
34
|
-
}
|
|
35
29
|
console.info("\u2705 Using CI-optimized flags for faster installation...");
|
|
36
|
-
console.log(`[DEBUG] Final args: ${JSON.stringify(finalArgs)}`);
|
|
37
30
|
}
|
|
38
31
|
try {
|
|
39
32
|
await execa("bun", finalArgs, { cwd, stdio: "inherit" });
|
|
@@ -11,21 +11,16 @@ import {
|
|
|
11
11
|
selectDatabase,
|
|
12
12
|
validateCreateOptions,
|
|
13
13
|
validateProjectName
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HBV76MGW.js";
|
|
15
15
|
import {
|
|
16
16
|
Command,
|
|
17
|
-
Ie,
|
|
18
|
-
Se,
|
|
19
17
|
base_exports,
|
|
20
18
|
displayBanner,
|
|
21
|
-
handleError
|
|
22
|
-
|
|
23
|
-
pD,
|
|
24
|
-
ve,
|
|
25
|
-
xe
|
|
26
|
-
} from "./chunk-Y755OOSP.js";
|
|
19
|
+
handleError
|
|
20
|
+
} from "./chunk-QLKBXRME.js";
|
|
27
21
|
|
|
28
22
|
// src/commands/create/index.ts
|
|
23
|
+
import * as clack from "@clack/prompts";
|
|
29
24
|
import { logger } from "@elizaos/core";
|
|
30
25
|
var create = new Command("create").description("Create a new ElizaOS project, plugin, agent, or TEE project").argument("[name]", "name of the project/plugin/agent to create").option("--dir <dir>", "directory to create the project in", ".").option("--yes, -y", "skip prompts and use defaults").option("--type <type>", "type of project to create (project, plugin, agent, tee)", "project").action(async (name, opts) => {
|
|
31
26
|
try {
|
|
@@ -40,13 +35,13 @@ var create = new Command("create").description("Create a new ElizaOS project, pl
|
|
|
40
35
|
const isNonInteractive = options.yes;
|
|
41
36
|
if (!isNonInteractive) {
|
|
42
37
|
await displayBanner();
|
|
43
|
-
|
|
38
|
+
clack.intro(base_exports.inverse(" Creating ElizaOS Project "));
|
|
44
39
|
}
|
|
45
40
|
let projectType = options.type;
|
|
46
41
|
let projectName = name;
|
|
47
42
|
if (!projectName) {
|
|
48
43
|
if (!isNonInteractive) {
|
|
49
|
-
const selectedType = await
|
|
44
|
+
const selectedType = await clack.select({
|
|
50
45
|
message: "What would you like to create?",
|
|
51
46
|
options: [
|
|
52
47
|
{
|
|
@@ -72,14 +67,14 @@ var create = new Command("create").description("Create a new ElizaOS project, pl
|
|
|
72
67
|
],
|
|
73
68
|
initialValue: "project"
|
|
74
69
|
});
|
|
75
|
-
if (
|
|
76
|
-
|
|
70
|
+
if (clack.isCancel(selectedType)) {
|
|
71
|
+
clack.cancel("Operation cancelled.");
|
|
77
72
|
process.exit(0);
|
|
78
73
|
}
|
|
79
74
|
projectType = selectedType;
|
|
80
75
|
}
|
|
81
76
|
if (!isNonInteractive) {
|
|
82
|
-
const nameInput = await
|
|
77
|
+
const nameInput = await clack.text({
|
|
83
78
|
message: `What is the name of your ${projectType}?`,
|
|
84
79
|
placeholder: `my-${projectType}`,
|
|
85
80
|
validate: (value) => {
|
|
@@ -91,8 +86,8 @@ var create = new Command("create").description("Create a new ElizaOS project, pl
|
|
|
91
86
|
return validation.isValid ? void 0 : validation.error;
|
|
92
87
|
}
|
|
93
88
|
});
|
|
94
|
-
if (
|
|
95
|
-
|
|
89
|
+
if (clack.isCancel(nameInput)) {
|
|
90
|
+
clack.cancel("Operation cancelled.");
|
|
96
91
|
process.exit(0);
|
|
97
92
|
}
|
|
98
93
|
projectName = nameInput;
|
|
@@ -137,11 +132,11 @@ var create = new Command("create").description("Create a new ElizaOS project, pl
|
|
|
137
132
|
}
|
|
138
133
|
}
|
|
139
134
|
if (!isNonInteractive) {
|
|
140
|
-
|
|
135
|
+
clack.outro(base_exports.green("Project created successfully! \u{1F389}"));
|
|
141
136
|
}
|
|
142
137
|
} catch (error) {
|
|
143
138
|
if (!opts?.yes) {
|
|
144
|
-
|
|
139
|
+
clack.cancel("Failed to create project.");
|
|
145
140
|
}
|
|
146
141
|
logger.error("Create command failed:", error);
|
|
147
142
|
handleError(error);
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
// ../../node_modules/ms/index.js
|
|
11
11
|
var require_ms = __commonJS({
|
|
12
12
|
"../../node_modules/ms/index.js"(exports, module) {
|
|
13
|
+
"use strict";
|
|
13
14
|
var s = 1e3;
|
|
14
15
|
var m = s * 60;
|
|
15
16
|
var h = m * 60;
|
|
@@ -126,6 +127,7 @@ var require_ms = __commonJS({
|
|
|
126
127
|
// ../../node_modules/debug/src/common.js
|
|
127
128
|
var require_common = __commonJS({
|
|
128
129
|
"../../node_modules/debug/src/common.js"(exports, module) {
|
|
130
|
+
"use strict";
|
|
129
131
|
function setup(env) {
|
|
130
132
|
createDebug.debug = createDebug;
|
|
131
133
|
createDebug.default = createDebug;
|
|
@@ -303,6 +305,7 @@ var require_common = __commonJS({
|
|
|
303
305
|
// ../../node_modules/debug/src/browser.js
|
|
304
306
|
var require_browser = __commonJS({
|
|
305
307
|
"../../node_modules/debug/src/browser.js"(exports, module) {
|
|
308
|
+
"use strict";
|
|
306
309
|
exports.formatArgs = formatArgs;
|
|
307
310
|
exports.save = save;
|
|
308
311
|
exports.load = load;
|
|
@@ -474,12 +477,11 @@ var require_browser = __commonJS({
|
|
|
474
477
|
var require_has_flag = __commonJS({
|
|
475
478
|
"../../node_modules/has-flag/index.js"(exports, module) {
|
|
476
479
|
"use strict";
|
|
477
|
-
module.exports = (flag, argv) => {
|
|
478
|
-
argv = argv || process.argv;
|
|
480
|
+
module.exports = (flag, argv = process.argv) => {
|
|
479
481
|
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
480
|
-
const
|
|
481
|
-
const
|
|
482
|
-
return
|
|
482
|
+
const position = argv.indexOf(prefix + flag);
|
|
483
|
+
const terminatorPosition = argv.indexOf("--");
|
|
484
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
483
485
|
};
|
|
484
486
|
}
|
|
485
487
|
});
|
|
@@ -489,16 +491,25 @@ var require_supports_color = __commonJS({
|
|
|
489
491
|
"../../node_modules/supports-color/index.js"(exports, module) {
|
|
490
492
|
"use strict";
|
|
491
493
|
var os = __require("os");
|
|
494
|
+
var tty = __require("tty");
|
|
492
495
|
var hasFlag = require_has_flag();
|
|
493
|
-
var env = process
|
|
494
|
-
var
|
|
495
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false")) {
|
|
496
|
-
|
|
496
|
+
var { env } = process;
|
|
497
|
+
var flagForceColor;
|
|
498
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
499
|
+
flagForceColor = 0;
|
|
497
500
|
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
498
|
-
|
|
501
|
+
flagForceColor = 1;
|
|
499
502
|
}
|
|
500
|
-
|
|
501
|
-
|
|
503
|
+
function envForceColor() {
|
|
504
|
+
if ("FORCE_COLOR" in env) {
|
|
505
|
+
if (env.FORCE_COLOR === "true") {
|
|
506
|
+
return 1;
|
|
507
|
+
}
|
|
508
|
+
if (env.FORCE_COLOR === "false") {
|
|
509
|
+
return 0;
|
|
510
|
+
}
|
|
511
|
+
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
512
|
+
}
|
|
502
513
|
}
|
|
503
514
|
function translateLevel(level) {
|
|
504
515
|
if (level === 0) {
|
|
@@ -511,29 +522,39 @@ var require_supports_color = __commonJS({
|
|
|
511
522
|
has16m: level >= 3
|
|
512
523
|
};
|
|
513
524
|
}
|
|
514
|
-
function supportsColor(
|
|
515
|
-
|
|
516
|
-
|
|
525
|
+
function supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
526
|
+
const noFlagForceColor = envForceColor();
|
|
527
|
+
if (noFlagForceColor !== void 0) {
|
|
528
|
+
flagForceColor = noFlagForceColor;
|
|
517
529
|
}
|
|
518
|
-
|
|
519
|
-
|
|
530
|
+
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
531
|
+
if (forceColor === 0) {
|
|
532
|
+
return 0;
|
|
520
533
|
}
|
|
521
|
-
if (
|
|
522
|
-
|
|
534
|
+
if (sniffFlags) {
|
|
535
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
536
|
+
return 3;
|
|
537
|
+
}
|
|
538
|
+
if (hasFlag("color=256")) {
|
|
539
|
+
return 2;
|
|
540
|
+
}
|
|
523
541
|
}
|
|
524
|
-
if (
|
|
542
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
525
543
|
return 0;
|
|
526
544
|
}
|
|
527
|
-
const min = forceColor
|
|
545
|
+
const min = forceColor || 0;
|
|
546
|
+
if (env.TERM === "dumb") {
|
|
547
|
+
return min;
|
|
548
|
+
}
|
|
528
549
|
if (process.platform === "win32") {
|
|
529
550
|
const osRelease = os.release().split(".");
|
|
530
|
-
if (Number(
|
|
551
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
531
552
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
532
553
|
}
|
|
533
554
|
return 1;
|
|
534
555
|
}
|
|
535
556
|
if ("CI" in env) {
|
|
536
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
557
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE", "DRONE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
|
|
537
558
|
return 1;
|
|
538
559
|
}
|
|
539
560
|
return min;
|
|
@@ -545,7 +566,7 @@ var require_supports_color = __commonJS({
|
|
|
545
566
|
return 3;
|
|
546
567
|
}
|
|
547
568
|
if ("TERM_PROGRAM" in env) {
|
|
548
|
-
const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
569
|
+
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
549
570
|
switch (env.TERM_PROGRAM) {
|
|
550
571
|
case "iTerm.app":
|
|
551
572
|
return version >= 3 ? 3 : 2;
|
|
@@ -562,19 +583,19 @@ var require_supports_color = __commonJS({
|
|
|
562
583
|
if ("COLORTERM" in env) {
|
|
563
584
|
return 1;
|
|
564
585
|
}
|
|
565
|
-
if (env.TERM === "dumb") {
|
|
566
|
-
return min;
|
|
567
|
-
}
|
|
568
586
|
return min;
|
|
569
587
|
}
|
|
570
|
-
function getSupportLevel(stream) {
|
|
571
|
-
const level = supportsColor(stream
|
|
588
|
+
function getSupportLevel(stream, options = {}) {
|
|
589
|
+
const level = supportsColor(stream, {
|
|
590
|
+
streamIsTTY: stream && stream.isTTY,
|
|
591
|
+
...options
|
|
592
|
+
});
|
|
572
593
|
return translateLevel(level);
|
|
573
594
|
}
|
|
574
595
|
module.exports = {
|
|
575
596
|
supportsColor: getSupportLevel,
|
|
576
|
-
stdout: getSupportLevel(
|
|
577
|
-
stderr: getSupportLevel(
|
|
597
|
+
stdout: getSupportLevel({ isTTY: tty.isatty(1) }),
|
|
598
|
+
stderr: getSupportLevel({ isTTY: tty.isatty(2) })
|
|
578
599
|
};
|
|
579
600
|
}
|
|
580
601
|
});
|
|
@@ -582,6 +603,7 @@ var require_supports_color = __commonJS({
|
|
|
582
603
|
// ../../node_modules/debug/src/node.js
|
|
583
604
|
var require_node = __commonJS({
|
|
584
605
|
"../../node_modules/debug/src/node.js"(exports, module) {
|
|
606
|
+
"use strict";
|
|
585
607
|
var tty = __require("tty");
|
|
586
608
|
var util = __require("util");
|
|
587
609
|
exports.init = init;
|
|
@@ -756,6 +778,7 @@ var require_node = __commonJS({
|
|
|
756
778
|
// ../../node_modules/debug/src/index.js
|
|
757
779
|
var require_src = __commonJS({
|
|
758
780
|
"../../node_modules/debug/src/index.js"(exports, module) {
|
|
781
|
+
"use strict";
|
|
759
782
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
760
783
|
module.exports = require_browser();
|
|
761
784
|
} else {
|
|
@@ -865,6 +888,5 @@ export {
|
|
|
865
888
|
configureEmojis,
|
|
866
889
|
emoji,
|
|
867
890
|
require_ms,
|
|
868
|
-
require_supports_color,
|
|
869
891
|
require_src
|
|
870
892
|
};
|
|
@@ -8,6 +8,10 @@ declare function getAgent(opts: OptionValues): Promise<void>;
|
|
|
8
8
|
* Remove command implementation - deletes an agent
|
|
9
9
|
*/
|
|
10
10
|
declare function removeAgent(opts: OptionValues): Promise<void>;
|
|
11
|
+
/**
|
|
12
|
+
* Clear memories command implementation - clears all memories for an agent
|
|
13
|
+
*/
|
|
14
|
+
declare function clearAgentMemories(opts: OptionValues): Promise<void>;
|
|
11
15
|
/**
|
|
12
16
|
* Set command implementation - updates agent configuration
|
|
13
17
|
*/
|
|
@@ -22,4 +26,4 @@ declare function startAgent(options: OptionValues): Promise<void>;
|
|
|
22
26
|
*/
|
|
23
27
|
declare function stopAgent(opts: OptionValues): Promise<void>;
|
|
24
28
|
|
|
25
|
-
export { getAgent, removeAgent, setAgentConfig, startAgent, stopAgent };
|
|
29
|
+
export { clearAgentMemories, getAgent, removeAgent, setAgentConfig, startAgent, stopAgent };
|
|
@@ -3,17 +3,19 @@ import { createRequire } from 'module';
|
|
|
3
3
|
const require = createRequire(import.meta.url);
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
+
clearAgentMemories,
|
|
6
7
|
getAgent,
|
|
7
8
|
removeAgent,
|
|
8
9
|
setAgentConfig,
|
|
9
10
|
startAgent,
|
|
10
11
|
stopAgent
|
|
11
|
-
} from "../../../chunk-
|
|
12
|
-
import "../../../chunk-
|
|
13
|
-
import "../../../chunk-
|
|
12
|
+
} from "../../../chunk-QLKBXRME.js";
|
|
13
|
+
import "../../../chunk-RIAWNDYI.js";
|
|
14
|
+
import "../../../chunk-WS4DWCDZ.js";
|
|
14
15
|
import "../../../chunk-F24MS2YR.js";
|
|
15
16
|
import "../../../chunk-567UPUC7.js";
|
|
16
17
|
export {
|
|
18
|
+
clearAgentMemories,
|
|
17
19
|
getAgent,
|
|
18
20
|
removeAgent,
|
|
19
21
|
setAgentConfig,
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
agent,
|
|
7
7
|
getAgents,
|
|
8
8
|
resolveAgentId
|
|
9
|
-
} from "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
9
|
+
} from "../../chunk-QLKBXRME.js";
|
|
10
|
+
import "../../chunk-RIAWNDYI.js";
|
|
11
|
+
import "../../chunk-WS4DWCDZ.js";
|
|
12
12
|
import {
|
|
13
13
|
getAgentRuntimeUrl,
|
|
14
14
|
getAgentsBaseUrl
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
installDependencies,
|
|
12
12
|
setupAIModelConfig,
|
|
13
13
|
setupProjectEnvironment
|
|
14
|
-
} from "../../../chunk-
|
|
15
|
-
import "../../../chunk-
|
|
16
|
-
import "../../../chunk-
|
|
17
|
-
import "../../../chunk-
|
|
14
|
+
} from "../../../chunk-HBV76MGW.js";
|
|
15
|
+
import "../../../chunk-QLKBXRME.js";
|
|
16
|
+
import "../../../chunk-RIAWNDYI.js";
|
|
17
|
+
import "../../../chunk-WS4DWCDZ.js";
|
|
18
18
|
import "../../../chunk-F24MS2YR.js";
|
|
19
19
|
import "../../../chunk-567UPUC7.js";
|
|
20
20
|
export {
|
|
@@ -4,11 +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-
|
|
11
|
-
import "../../chunk-
|
|
7
|
+
} from "../../chunk-TPLM6M7M.js";
|
|
8
|
+
import "../../chunk-HBV76MGW.js";
|
|
9
|
+
import "../../chunk-QLKBXRME.js";
|
|
10
|
+
import "../../chunk-RIAWNDYI.js";
|
|
11
|
+
import "../../chunk-WS4DWCDZ.js";
|
|
12
12
|
import "../../chunk-F24MS2YR.js";
|
|
13
13
|
import "../../chunk-567UPUC7.js";
|
|
14
14
|
export {
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
// ../../node_modules/node-domexception/index.js
|
|
16
16
|
var require_node_domexception = __commonJS({
|
|
17
17
|
"../../node_modules/node-domexception/index.js"(exports, module) {
|
|
18
|
+
"use strict";
|
|
18
19
|
if (!globalThis.DOMException) {
|
|
19
20
|
try {
|
|
20
21
|
const { MessageChannel } = __require("worker_threads"), port = new MessageChannel().port1, ab = new ArrayBuffer();
|
package/dist/index.html
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
|
7
7
|
<title>ElizaOS - Client</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-Cuyjmso1.js"></script>
|
|
9
9
|
<link rel="modulepreload" crossorigin href="/assets/vendor-DSdxb8P-.js">
|
|
10
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
10
|
+
<link rel="stylesheet" crossorigin href="/assets/index-Df1AFSuJ.css">
|
|
11
11
|
</head>
|
|
12
12
|
<body>
|
|
13
13
|
<div id="root"></div>
|