@elizaos/cli 1.6.2-alpha.9 → 1.6.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.
Files changed (63) hide show
  1. package/README.md +3 -3
  2. package/dist/characters/eliza.d.ts +8 -7
  3. package/dist/characters/eliza.d.ts.map +1 -1
  4. package/dist/commands/deploy/actions/deploy-ecs.d.ts +10 -0
  5. package/dist/commands/deploy/actions/deploy-ecs.d.ts.map +1 -0
  6. package/dist/commands/deploy/actions/deploy.d.ts +9 -0
  7. package/dist/commands/deploy/actions/deploy.d.ts.map +1 -0
  8. package/dist/commands/deploy/index.d.ts +7 -0
  9. package/dist/commands/deploy/index.d.ts.map +1 -0
  10. package/dist/commands/deploy/types.d.ts +156 -0
  11. package/dist/commands/deploy/types.d.ts.map +1 -0
  12. package/dist/commands/deploy/utils/api-client.d.ts +71 -0
  13. package/dist/commands/deploy/utils/api-client.d.ts.map +1 -0
  14. package/dist/commands/deploy/utils/docker-build.d.ts +58 -0
  15. package/dist/commands/deploy/utils/docker-build.d.ts.map +1 -0
  16. package/dist/commands/dev/actions/dev-server.d.ts.map +1 -1
  17. package/dist/commands/scenario/src/plugin-parser.d.ts.map +1 -1
  18. package/dist/commands/scenario/src/runtime-factory.d.ts.map +1 -1
  19. package/dist/commands/start/index.d.ts.map +1 -1
  20. package/dist/commands/tee/eigen-wrapper.d.ts +3 -0
  21. package/dist/commands/tee/eigen-wrapper.d.ts.map +1 -0
  22. package/dist/commands/tee/index.d.ts.map +1 -1
  23. package/dist/commands/test/actions/e2e-tests.d.ts.map +1 -1
  24. package/dist/commands/test/index.d.ts.map +1 -1
  25. package/dist/index.js +18400 -9839
  26. package/dist/index.js.map +200 -54
  27. package/dist/templates/plugin-quick-starter/package.json +2 -2
  28. package/dist/templates/plugin-quick-starter/src/__tests__/plugin.test.ts +54 -0
  29. package/dist/templates/plugin-quick-starter/src/plugin.ts +6 -5
  30. package/dist/templates/plugin-starter/README.md +1 -1
  31. package/dist/templates/plugin-starter/package.json +2 -2
  32. package/dist/templates/plugin-starter/src/plugin.ts +6 -4
  33. package/dist/templates/project-starter/README.md +1 -1
  34. package/dist/templates/project-starter/package.json +6 -6
  35. package/dist/templates/project-starter/src/character.ts +3 -0
  36. package/dist/templates/project-starter/src/plugin.ts +6 -4
  37. package/dist/templates/project-starter/tsconfig.json +1 -3
  38. package/dist/templates/project-tee-starter/package.json +4 -4
  39. package/dist/utils/copy-template.d.ts.map +1 -1
  40. package/dist/utils/index.d.ts +0 -2
  41. package/dist/utils/index.d.ts.map +1 -1
  42. package/dist/version.d.ts +2 -2
  43. package/dist/version.d.ts.map +1 -1
  44. package/dist/version.js +2 -2
  45. package/package.json +13 -7
  46. package/templates/plugin-quick-starter/package.json +2 -2
  47. package/templates/plugin-quick-starter/src/__tests__/plugin.test.ts +54 -0
  48. package/templates/plugin-quick-starter/src/plugin.ts +6 -5
  49. package/templates/plugin-starter/README.md +1 -1
  50. package/templates/plugin-starter/package.json +2 -2
  51. package/templates/plugin-starter/src/plugin.ts +6 -4
  52. package/templates/project-starter/README.md +1 -1
  53. package/templates/project-starter/package.json +6 -6
  54. package/templates/project-starter/src/character.ts +3 -0
  55. package/templates/project-starter/src/plugin.ts +6 -4
  56. package/templates/project-starter/tsconfig.json +1 -3
  57. package/templates/project-tee-starter/package.json +4 -4
  58. package/dist/utils/module-loader.d.ts +0 -71
  59. package/dist/utils/module-loader.d.ts.map +0 -1
  60. package/dist/utils/port-handling.d.ts +0 -15
  61. package/dist/utils/port-handling.d.ts.map +0 -1
  62. package/dist/utils/port-validation.d.ts +0 -6
  63. package/dist/utils/port-validation.d.ts.map +0 -1
@@ -1,71 +0,0 @@
1
- /**
2
- * ModuleLoader provides a clean way to load modules from the project's local node_modules
3
- * instead of the global CLI's bundled dependencies. This solves singleton pattern issues
4
- * and ensures consistent module instances across the application.
5
- */
6
- export declare class ModuleLoader {
7
- private require;
8
- private asyncCache;
9
- private syncCache;
10
- private projectPath;
11
- constructor(projectPath?: string);
12
- /**
13
- * Detect the appropriate project path, preferring monorepo root over current working directory
14
- */
15
- private detectProjectPath;
16
- /**
17
- * Load a module from the project's node_modules directory.
18
- * Uses caching to ensure the same instance is returned for repeated calls.
19
- *
20
- * @param moduleName - The name of the module to load (e.g., '@elizaos/server')
21
- * @returns The loaded module
22
- * @throws Error if the module cannot be found in the project
23
- */
24
- load<T = any>(moduleName: string): Promise<T>;
25
- /**
26
- * Synchronously load a module from the project's node_modules directory.
27
- * Uses caching to ensure the same instance is returned for repeated calls.
28
- *
29
- * @param moduleName - The name of the module to load (e.g., '@elizaos/server')
30
- * @returns The loaded module
31
- * @throws Error if the module cannot be found in the project
32
- */
33
- loadSync<T = any>(moduleName: string): T;
34
- /**
35
- * Set up environment with proper module resolution paths.
36
- * This ensures the same local-first guarantees as server-manager.ts.
37
- */
38
- private setupEnvironment;
39
- /**
40
- * Clear the module cache. Useful for testing or hot reloading scenarios.
41
- */
42
- clearCache(): void;
43
- /**
44
- * Get the resolved path for a module without loading it.
45
- * Useful for debugging or verification.
46
- *
47
- * @param moduleName - The name of the module to resolve
48
- * @returns The resolved file path
49
- */
50
- resolve(moduleName: string): string;
51
- }
52
- /**
53
- * Get the default module loader instance for the current project.
54
- * Creates a new instance if one doesn't exist.
55
- */
56
- export declare function getModuleLoader(): ModuleLoader;
57
- /**
58
- * Convenience function to load a module using the default loader.
59
- *
60
- * @param moduleName - The name of the module to load
61
- * @returns The loaded module
62
- */
63
- export declare function loadModule<T = any>(moduleName: string): Promise<T>;
64
- /**
65
- * Convenience function to synchronously load a module using the default loader.
66
- *
67
- * @param moduleName - The name of the module to load
68
- * @returns The loaded module
69
- */
70
- export declare function loadModuleSync<T = any>(moduleName: string): T;
71
- //# sourceMappingURL=module-loader.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"module-loader.d.ts","sourceRoot":"","sources":["../../src/utils/module-loader.ts"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,OAAO,CAAc;IAC7B,OAAO,CAAC,UAAU,CAA0B;IAC5C,OAAO,CAAC,SAAS,CAA0B;IAC3C,OAAO,CAAC,WAAW,CAAS;gBAEhB,WAAW,CAAC,EAAE,MAAM;IAWhC;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAazB;;;;;;;OAOG;IACG,IAAI,CAAC,CAAC,GAAG,GAAG,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC;IAgDnD;;;;;;;OAOG;IACH,QAAQ,CAAC,CAAC,GAAG,GAAG,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;IAgDxC;;;OAGG;IACH,OAAO,CAAC,gBAAgB;IAsBxB;;OAEG;IACH,UAAU,IAAI,IAAI;IAKlB;;;;;;OAMG;IACH,OAAO,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM;CAGpC;AAKD;;;GAGG;AACH,wBAAgB,eAAe,IAAI,YAAY,CAK9C;AAED;;;;;GAKG;AACH,wBAAsB,UAAU,CAAC,CAAC,GAAG,GAAG,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAExE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,CAAC,GAAG,GAAG,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC,CAE7D"}
@@ -1,15 +0,0 @@
1
- /**
2
- * Checks if a given port is free.
3
- * @param port The port number to check.
4
- * @param host The host to check on (defaults to 0.0.0.0 to match server behavior)
5
- * @returns Promise<boolean> indicating if the port is free.
6
- */
7
- export declare function isPortFree(port: number, host?: string): Promise<boolean>;
8
- /**
9
- * Finds the next available port starting from the given port.
10
- * @param startPort The initial port to check.
11
- * @param host The host to check on (defaults to 0.0.0.0)
12
- * @returns Promise<number> The next available port.
13
- */
14
- export declare function findNextAvailablePort(startPort: number, host?: string): Promise<number>;
15
- //# sourceMappingURL=port-handling.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"port-handling.d.ts","sourceRoot":"","sources":["../../src/utils/port-handling.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,MAAkB,GAAG,OAAO,CAAC,OAAO,CAAC,CAYnF;AAED;;;;;GAKG;AACH,wBAAsB,qBAAqB,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAM7F"}
@@ -1,6 +0,0 @@
1
- /**
2
- * Validates a port number and returns it as an integer.
3
- * Throws an error if the port is invalid.
4
- */
5
- export declare function validatePort(value: string): number;
6
- //# sourceMappingURL=port-validation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"port-validation.d.ts","sourceRoot":"","sources":["../../src/utils/port-validation.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAMlD"}