@elizaos/cli 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/assets/{index-BQEpBB33.js → index-BVDHmgOL.js} +65713 -67371
- package/dist/assets/{index-BQEpBB33.js.map → index-BVDHmgOL.js.map} +1 -1
- package/dist/assets/{index-eRnFTOEM.js → index-DICIhtqv.js} +2 -2
- package/dist/assets/index-DICIhtqv.js.br +0 -0
- package/dist/assets/{index-eRnFTOEM.js.map → index-DICIhtqv.js.map} +1 -1
- package/dist/{chunk-QC5MM66L.js → chunk-246Q3Y5O.js} +3 -3
- package/dist/chunk-2GXSCVA2.js +2057 -0
- package/dist/chunk-67L4I5S7.js +80 -0
- package/dist/chunk-7HDCC22V.js +771 -0
- package/dist/{chunk-F3WZNGHX.js → chunk-BZIUA2KE.js} +6 -0
- package/dist/{chunk-QU55ROKN.js → chunk-GE5HMHU5.js} +12 -6
- package/dist/{chunk-URANH3OS.js → chunk-JT3O6PBU.js} +3867 -529
- package/dist/{chunk-XVN7DK3U.js → chunk-KNZMV4HH.js} +4 -4
- package/dist/{chunk-QPXAVEMR.js → chunk-NQ5HAYUQ.js} +40 -2
- package/dist/{chunk-XF2FQZM2.js → chunk-OF5WHPTG.js} +105 -798
- package/dist/{chunk-ENUVIKE2.js → chunk-OG4OJUNA.js} +2 -2
- package/dist/{chunk-SOL3WRAY.js → chunk-OJMVYUOU.js} +1 -1
- package/dist/{chunk-XLCI6Y5F.js → chunk-QGZZVGE5.js} +2 -2
- package/dist/{chunk-PJJS5DFB.js → chunk-WAJ5RHPK.js} +1 -1
- package/dist/commands/agent.js +2 -1
- package/dist/commands/create.js +4 -3
- package/dist/commands/dev.js +4 -3
- package/dist/commands/env.js +3 -2
- package/dist/commands/plugins.js +4 -3
- package/dist/commands/publish.js +5 -4
- package/dist/commands/setup-monorepo.js +3 -2
- package/dist/commands/start.js +7 -5
- package/dist/commands/test.js +8 -6
- package/dist/commands/update.js +4 -3
- package/dist/fileFromPath-DCRQMDLJ.js +132 -0
- package/dist/index.html +1 -1
- package/dist/index.js +14 -12
- package/dist/migrator-7EYGXTDW.js +29035 -0
- package/dist/{registry-YU4WBPLU.js → registry-RGSXW4LO.js} +2 -1
- package/package.json +9 -5
- package/templates/plugin-starter/package.json +1 -1
- package/templates/project-starter/.env.example +1 -0
- package/templates/project-starter/package.json +4 -4
- package/templates/project-tee-starter/.dockerignore +20 -0
- package/templates/project-tee-starter/.env.example +55 -0
- package/templates/project-tee-starter/Dockerfile +66 -0
- package/templates/project-tee-starter/GUIDE.md +235 -0
- package/templates/project-tee-starter/README.md +173 -0
- package/templates/project-tee-starter/__tests__/actions.test.ts +9 -0
- package/templates/project-tee-starter/__tests__/character.test.ts +86 -0
- package/templates/project-tee-starter/__tests__/config.test.ts +31 -0
- package/templates/project-tee-starter/__tests__/env.test.ts +87 -0
- package/templates/project-tee-starter/__tests__/error-handling.test.ts +30 -0
- package/templates/project-tee-starter/__tests__/events.test.ts +21 -0
- package/templates/project-tee-starter/__tests__/file-structure.test.ts +135 -0
- package/templates/project-tee-starter/__tests__/integration.test.ts +209 -0
- package/templates/project-tee-starter/__tests__/models.test.ts +22 -0
- package/templates/project-tee-starter/__tests__/plugin.test.ts +44 -0
- package/templates/project-tee-starter/__tests__/provider.test.ts +189 -0
- package/templates/project-tee-starter/__tests__/routes.test.ts +21 -0
- package/templates/project-tee-starter/__tests__/test-utils.ts +121 -0
- package/templates/project-tee-starter/__tests__/utils/core-test-utils.ts +167 -0
- package/templates/project-tee-starter/assets/mr-tee-portrait.jpg +0 -0
- package/templates/project-tee-starter/docker-compose.yaml +57 -0
- package/templates/project-tee-starter/e2e/project.test.ts +38 -0
- package/templates/project-tee-starter/e2e/starter-plugin.test.ts +92 -0
- package/templates/project-tee-starter/package.json +76 -0
- package/templates/project-tee-starter/src/character.ts +257 -0
- package/templates/project-tee-starter/src/index.ts +33 -0
- package/templates/project-tee-starter/src/plugin.ts +169 -0
- package/templates/project-tee-starter/tsconfig.build.json +13 -0
- package/templates/project-tee-starter/tsconfig.json +30 -0
- package/templates/project-tee-starter/tsup.config.ts +19 -0
- package/templates/project-tee-starter/vitest.config.ts +19 -0
- package/dist/assets/index-eRnFTOEM.js.br +0 -0
- package/dist/eliza-J3ANDQXN.js +0 -13
- /package/dist/{chunk-YX7JHUJ5.js → chunk-BDPGXNHU.js} +0 -0
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
loadCharacterTryPath,
|
|
9
9
|
startAgent,
|
|
10
10
|
v4_default
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JT3O6PBU.js";
|
|
12
12
|
import {
|
|
13
13
|
character,
|
|
14
14
|
getElizaCharacter
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BDPGXNHU.js";
|
|
16
16
|
import {
|
|
17
17
|
detectDirectoryType
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-BZIUA2KE.js";
|
|
19
19
|
import {
|
|
20
20
|
TestRunner,
|
|
21
21
|
UserEnvironment,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
promptForEnvVars,
|
|
24
24
|
require_main,
|
|
25
25
|
resolvePgliteDir
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-OF5WHPTG.js";
|
|
27
27
|
import {
|
|
28
28
|
Command,
|
|
29
29
|
Option
|
|
@@ -5,14 +5,14 @@ const require = createRequire(import.meta.url);
|
|
|
5
5
|
import {
|
|
6
6
|
detectDirectoryType,
|
|
7
7
|
getDirectoryTypeDescription
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BZIUA2KE.js";
|
|
9
9
|
import {
|
|
10
10
|
fetchPluginRegistry,
|
|
11
11
|
handleError,
|
|
12
12
|
installPlugin,
|
|
13
13
|
logHeader,
|
|
14
14
|
normalizePluginName
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-OF5WHPTG.js";
|
|
16
16
|
import {
|
|
17
17
|
Command
|
|
18
18
|
} from "./chunk-5J7S2CSH.js";
|
|
@@ -314,6 +314,44 @@ plugins.command("remove").aliases(["delete", "del", "rm"]).description("Remove a
|
|
|
314
314
|
process.exit(1);
|
|
315
315
|
}
|
|
316
316
|
});
|
|
317
|
+
plugins.command("upgrade").description("Upgrade a plugin from version 0.x to 1.x using AI-powered migration").argument("<path>", "GitHub repository URL or local folder path").option("--api-key <key>", "Anthropic API key (or use ANTHROPIC_API_KEY env var)").option("--skip-tests", "Skip test validation loop").option("--skip-validation", "Skip production readiness validation").action(async (pluginPath, opts) => {
|
|
318
|
+
try {
|
|
319
|
+
const { PluginMigrator } = await import("./migrator-7EYGXTDW.js");
|
|
320
|
+
if (opts.apiKey) {
|
|
321
|
+
process.env.ANTHROPIC_API_KEY = opts.apiKey;
|
|
322
|
+
}
|
|
323
|
+
if (!process.env.ANTHROPIC_API_KEY) {
|
|
324
|
+
logger.error("ANTHROPIC_API_KEY is required for plugin upgrade.");
|
|
325
|
+
console.log("\nPlease set ANTHROPIC_API_KEY environment variable or use --api-key option.");
|
|
326
|
+
process.exit(1);
|
|
327
|
+
}
|
|
328
|
+
const migrator = new PluginMigrator({
|
|
329
|
+
skipTests: opts.skipTests,
|
|
330
|
+
skipValidation: opts.skipValidation
|
|
331
|
+
});
|
|
332
|
+
console.log(`
|
|
333
|
+
\u{1F680} Starting plugin upgrade for: ${pluginPath}
|
|
334
|
+
`);
|
|
335
|
+
const result = await migrator.migrate(pluginPath);
|
|
336
|
+
if (result.success) {
|
|
337
|
+
console.log(`
|
|
338
|
+
\u2705 Plugin successfully upgraded!`);
|
|
339
|
+
console.log(` Branch: ${result.branchName}`);
|
|
340
|
+
console.log(` Repository: ${result.repoPath}`);
|
|
341
|
+
console.log(`
|
|
342
|
+
Next steps:`);
|
|
343
|
+
console.log(`1. Review the changes in the ${result.branchName} branch`);
|
|
344
|
+
console.log(`2. Test the upgraded plugin thoroughly`);
|
|
345
|
+
console.log(`3. Create a pull request when ready`);
|
|
346
|
+
} else {
|
|
347
|
+
logger.error(`Plugin upgrade failed: ${result.error?.message}`);
|
|
348
|
+
process.exit(1);
|
|
349
|
+
}
|
|
350
|
+
} catch (error) {
|
|
351
|
+
handleError(error);
|
|
352
|
+
process.exit(1);
|
|
353
|
+
}
|
|
354
|
+
});
|
|
317
355
|
|
|
318
356
|
export {
|
|
319
357
|
normalizePluginNameForDisplay,
|