@elizaos/cli 1.0.6 → 1.0.8

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 (88) hide show
  1. package/README.md +12 -11
  2. package/dist/assets/{index-BlgsVC9v.js → index-CZAd5zm2.js} +17 -17
  3. package/dist/assets/index-CZAd5zm2.js.br +0 -0
  4. package/dist/assets/{index-BlgsVC9v.js.map → index-CZAd5zm2.js.map} +1 -1
  5. package/dist/assets/{index-TLtd8ntA.js → index-CaEsCLCC.js} +4155 -10851
  6. package/dist/assets/{index-TLtd8ntA.js.map → index-CaEsCLCC.js.map} +1 -1
  7. package/dist/assets/index-DyA-lndn.css +1 -0
  8. package/dist/assets/index-DyA-lndn.css.br +0 -0
  9. package/dist/assets/{vendor-BiCY-iVm.js → vendor-DSdxb8P-.js} +2 -2
  10. package/dist/assets/vendor-DSdxb8P-.js.br +0 -0
  11. package/dist/assets/{vendor-BiCY-iVm.js.map → vendor-DSdxb8P-.js.map} +1 -1
  12. package/dist/chunk-33BHGAF7.js +616 -0
  13. package/dist/{chunk-YTV6GDEJ.js → chunk-CVADLFW6.js} +100 -42
  14. package/dist/chunk-F24MS2YR.js +19 -0
  15. package/dist/{chunk-7HDCC22V.js → chunk-IEKLJDUU.js} +99 -0
  16. package/dist/chunk-MA2ZXPG6.js +260 -0
  17. package/dist/chunk-REBZFQYE.js +11728 -0
  18. package/dist/chunk-W3HS2NP6.js +154 -0
  19. package/dist/commands/agent/actions/index.d.ts +25 -0
  20. package/dist/commands/agent/actions/index.js +23 -0
  21. package/dist/commands/agent/index.d.ts +16 -0
  22. package/dist/commands/agent/index.js +24 -0
  23. package/dist/commands/create/actions/index.d.ts +35 -0
  24. package/dist/commands/create/actions/index.js +30 -0
  25. package/dist/commands/create/index.d.ts +5 -0
  26. package/dist/commands/create/index.js +17 -0
  27. package/dist/commands/shared/index.d.ts +35 -0
  28. package/dist/commands/shared/index.js +13 -0
  29. package/dist/index.html +3 -3
  30. package/dist/index.js +103836 -56
  31. package/dist/{prompts-I4LK5NKX.js → lib-NAGYZHVV.js} +3 -3
  32. package/dist/{migrator-BQMHMHSG.js → migrator-KZLCVEIH.js} +117 -117
  33. package/dist/{plugin-creator-EUJNDFIB.js → plugin-creator-IC42XOHG.js} +3 -4
  34. package/dist/{registry-A4UYBEET.js → registry-XFOSZFU4.js} +4 -5
  35. package/dist/utils-DIZZ3HNZ.js +218 -0
  36. package/package.json +19 -12
  37. package/templates/plugin-starter/README.md +26 -9
  38. package/templates/plugin-starter/package.json +6 -2
  39. package/templates/plugin-starter/tsconfig.build.json +1 -3
  40. package/templates/plugin-starter/tsconfig.json +1 -2
  41. package/templates/plugin-starter/tsup.config.ts +1 -1
  42. package/templates/project-starter/README.md +15 -16
  43. package/templates/project-starter/package.json +6 -6
  44. package/templates/project-tee-starter/e2e/project.test.ts +1 -1
  45. package/templates/project-tee-starter/e2e/starter-plugin.test.ts +1 -1
  46. package/templates/project-tee-starter/package.json +6 -5
  47. package/dist/assets/index-BlgsVC9v.js.br +0 -0
  48. package/dist/assets/index-fZleA996.css +0 -1
  49. package/dist/assets/index-fZleA996.css.br +0 -0
  50. package/dist/assets/vendor-BiCY-iVm.js.br +0 -0
  51. package/dist/chunk-335PGADS.js +0 -207
  52. package/dist/chunk-4QRJ6FQC.js +0 -295
  53. package/dist/chunk-5J7S2CSH.js +0 -2771
  54. package/dist/chunk-APFJCFC6.js +0 -78
  55. package/dist/chunk-CR5NR6A6.js +0 -458
  56. package/dist/chunk-KB3JDWUI.js +0 -106
  57. package/dist/chunk-L64NPCT6.js +0 -604
  58. package/dist/chunk-LRSU7IN6.js +0 -4862
  59. package/dist/chunk-LXYNBPDV.js +0 -570
  60. package/dist/chunk-MAGJ4VCL.js +0 -95
  61. package/dist/chunk-O64SGQGU.js +0 -90048
  62. package/dist/chunk-PHLX32YJ.js +0 -7889
  63. package/dist/chunk-RGI5263U.js +0 -7443
  64. package/dist/chunk-VWWF4TGX.js +0 -684
  65. package/dist/chunk-YMKISDXM.js +0 -247
  66. package/dist/commands/agent.d.ts +0 -27
  67. package/dist/commands/agent.js +0 -22
  68. package/dist/commands/create.d.ts +0 -15
  69. package/dist/commands/create.js +0 -18
  70. package/dist/commands/dev.d.ts +0 -8
  71. package/dist/commands/dev.js +0 -17
  72. package/dist/commands/env.d.ts +0 -16
  73. package/dist/commands/env.js +0 -21
  74. package/dist/commands/plugins.d.ts +0 -19
  75. package/dist/commands/plugins.js +0 -25
  76. package/dist/commands/publish.d.ts +0 -5
  77. package/dist/commands/publish.js +0 -18
  78. package/dist/commands/setup-monorepo.d.ts +0 -5
  79. package/dist/commands/setup-monorepo.js +0 -17
  80. package/dist/commands/start.d.ts +0 -198
  81. package/dist/commands/start.js +0 -25
  82. package/dist/commands/tee.d.ts +0 -5
  83. package/dist/commands/tee.js +0 -13
  84. package/dist/commands/test.d.ts +0 -6
  85. package/dist/commands/test.js +0 -24
  86. package/dist/commands/update.d.ts +0 -14
  87. package/dist/commands/update.js +0 -23
  88. package/dist/{chunk-NHI4RJD2.js → chunk-CEE6RKN5.js} +58 -58
@@ -0,0 +1,19 @@
1
+
2
+ import { createRequire } from 'module';
3
+ const require = createRequire(import.meta.url);
4
+
5
+
6
+ // src/commands/shared/url-utils.ts
7
+ function getAgentRuntimeUrl(opts) {
8
+ return opts.remoteUrl?.replace(/\/$/, "") || // Use the flag if provided
9
+ process.env.AGENT_RUNTIME_URL?.replace(/\/$/, "") || // Fallback to env var
10
+ `http://localhost:${opts.port || process.env.SERVER_PORT || "3000"}`;
11
+ }
12
+ function getAgentsBaseUrl(opts) {
13
+ return `${getAgentRuntimeUrl(opts)}/api/agents`;
14
+ }
15
+
16
+ export {
17
+ getAgentRuntimeUrl,
18
+ getAgentsBaseUrl
19
+ };
@@ -764,7 +764,106 @@ var require_src = __commonJS({
764
764
  }
765
765
  });
766
766
 
767
+ // src/utils/emoji-handler.ts
768
+ import { logger } from "@elizaos/core";
769
+ var config = {
770
+ enabled: true,
771
+ forceDisable: false
772
+ };
773
+ var EMOJIS = {
774
+ // Status indicators
775
+ success: { emoji: "\u2705", fallback: "[OK]" },
776
+ error: { emoji: "\u274C", fallback: "[ERROR]" },
777
+ warning: { emoji: "\u26A0\uFE0F", fallback: "[WARNING]" },
778
+ info: { emoji: "\u2139\uFE0F", fallback: "[INFO]" },
779
+ // Actions
780
+ rocket: { emoji: "\u{1F680}", fallback: ">>" },
781
+ sparkles: { emoji: "\u2728", fallback: "*" },
782
+ party: { emoji: "\u{1F389}", fallback: "[DONE]" },
783
+ // Objects/Tools
784
+ package: { emoji: "\u{1F4E6}", fallback: "[PKG]" },
785
+ link: { emoji: "\u{1F517}", fallback: "[LINK]" },
786
+ lightbulb: { emoji: "\u{1F4A1}", fallback: "[TIP]" },
787
+ clipboard: { emoji: "\u{1F4CB}", fallback: "[LIST]" },
788
+ // Platforms
789
+ penguin: { emoji: "\u{1F427}", fallback: "[LINUX]" },
790
+ globe: { emoji: "\u{1F310}", fallback: "[WEB]" },
791
+ // Arrows and pointers
792
+ rightArrow: { emoji: "\u2192", fallback: "->" },
793
+ bullet: { emoji: "\u2022", fallback: "*" }
794
+ };
795
+ function detectEmojiSupport() {
796
+ if (config.forceDisable) {
797
+ return false;
798
+ }
799
+ const term = process.env.TERM || "";
800
+ const termProgram = process.env.TERM_PROGRAM || "";
801
+ const colorTerm = process.env.COLORTERM;
802
+ const ciEnv = process.env.CI;
803
+ if (ciEnv === "true" || process.env.GITHUB_ACTIONS) {
804
+ return false;
805
+ }
806
+ if (process.platform === "win32") {
807
+ if (termProgram === "vscode" || process.env.WT_SESSION || process.env.WT_PROFILE_ID || termProgram === "Windows Terminal") {
808
+ return true;
809
+ }
810
+ if (process.env.PSModulePath && process.env.POWERSHELL_TELEMETRY_OPTOUT !== void 0) {
811
+ return true;
812
+ }
813
+ return false;
814
+ }
815
+ if (process.platform === "darwin" || process.platform === "linux") {
816
+ if (termProgram === "vscode" || termProgram === "iTerm.app" || termProgram === "Apple_Terminal" || term.includes("xterm") || term.includes("screen") || colorTerm) {
817
+ return true;
818
+ }
819
+ }
820
+ if (term.includes("256color") || term.includes("truecolor")) {
821
+ return true;
822
+ }
823
+ return false;
824
+ }
825
+ function getEmoji(key) {
826
+ const emojiDef = EMOJIS[key];
827
+ if (!emojiDef) {
828
+ logger.warn(`Unknown emoji key: ${key}`);
829
+ return "";
830
+ }
831
+ return config.enabled && detectEmojiSupport() ? emojiDef.emoji : emojiDef.fallback;
832
+ }
833
+ function configureEmojis(newConfig) {
834
+ config = { ...config, ...newConfig };
835
+ }
836
+ function withEmoji(key, message, spacing = true) {
837
+ const emoji2 = getEmoji(key);
838
+ const space = spacing && emoji2 ? " " : "";
839
+ return `${emoji2}${space}${message}`;
840
+ }
841
+ var emoji = {
842
+ success: (msg) => withEmoji("success", msg),
843
+ error: (msg) => withEmoji("error", msg),
844
+ warning: (msg) => withEmoji("warning", msg),
845
+ info: (msg) => withEmoji("info", msg),
846
+ rocket: (msg) => withEmoji("rocket", msg),
847
+ package: (msg) => withEmoji("package", msg),
848
+ link: (msg) => withEmoji("link", msg),
849
+ tip: (msg) => withEmoji("lightbulb", msg),
850
+ list: (msg) => withEmoji("clipboard", msg),
851
+ penguin: (msg) => withEmoji("penguin", msg),
852
+ bullet: (msg) => withEmoji("bullet", msg)
853
+ };
854
+ function initializeEmojiSupport() {
855
+ const supported = detectEmojiSupport();
856
+ if (process.env.DEBUG || process.env.ELIZA_DEBUG) {
857
+ logger.debug(
858
+ `Emoji support: ${supported ? "enabled" : "disabled"} (platform: ${process.platform}, term: ${process.env.TERM || "unknown"})`
859
+ );
860
+ }
861
+ }
862
+ initializeEmojiSupport();
863
+
767
864
  export {
865
+ configureEmojis,
866
+ emoji,
768
867
  require_ms,
769
868
  require_supports_color,
770
869
  require_src
@@ -0,0 +1,260 @@
1
+
2
+ import { createRequire } from 'module';
3
+ const require = createRequire(import.meta.url);
4
+
5
+ import {
6
+ __commonJS,
7
+ __require
8
+ } from "./chunk-567UPUC7.js";
9
+
10
+ // ../../node_modules/isexe/dist/cjs/posix.js
11
+ var require_posix = __commonJS({
12
+ "../../node_modules/isexe/dist/cjs/posix.js"(exports) {
13
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.sync = exports.isexe = void 0;
16
+ var fs_1 = __require("fs");
17
+ var promises_1 = __require("fs/promises");
18
+ var isexe = async (path, options = {}) => {
19
+ const { ignoreErrors = false } = options;
20
+ try {
21
+ return checkStat(await (0, promises_1.stat)(path), options);
22
+ } catch (e) {
23
+ const er = e;
24
+ if (ignoreErrors || er.code === "EACCES")
25
+ return false;
26
+ throw er;
27
+ }
28
+ };
29
+ exports.isexe = isexe;
30
+ var sync = (path, options = {}) => {
31
+ const { ignoreErrors = false } = options;
32
+ try {
33
+ return checkStat((0, fs_1.statSync)(path), options);
34
+ } catch (e) {
35
+ const er = e;
36
+ if (ignoreErrors || er.code === "EACCES")
37
+ return false;
38
+ throw er;
39
+ }
40
+ };
41
+ exports.sync = sync;
42
+ var checkStat = (stat, options) => stat.isFile() && checkMode(stat, options);
43
+ var checkMode = (stat, options) => {
44
+ const myUid = options.uid ?? process.getuid?.();
45
+ const myGroups = options.groups ?? process.getgroups?.() ?? [];
46
+ const myGid = options.gid ?? process.getgid?.() ?? myGroups[0];
47
+ if (myUid === void 0 || myGid === void 0) {
48
+ throw new Error("cannot get uid or gid");
49
+ }
50
+ const groups = /* @__PURE__ */ new Set([myGid, ...myGroups]);
51
+ const mod = stat.mode;
52
+ const uid = stat.uid;
53
+ const gid = stat.gid;
54
+ const u = parseInt("100", 8);
55
+ const g = parseInt("010", 8);
56
+ const o = parseInt("001", 8);
57
+ const ug = u | g;
58
+ return !!(mod & o || mod & g && groups.has(gid) || mod & u && uid === myUid || mod & ug && myUid === 0);
59
+ };
60
+ }
61
+ });
62
+
63
+ // ../../node_modules/isexe/dist/cjs/win32.js
64
+ var require_win32 = __commonJS({
65
+ "../../node_modules/isexe/dist/cjs/win32.js"(exports) {
66
+ "use strict";
67
+ Object.defineProperty(exports, "__esModule", { value: true });
68
+ exports.sync = exports.isexe = void 0;
69
+ var fs_1 = __require("fs");
70
+ var promises_1 = __require("fs/promises");
71
+ var isexe = async (path, options = {}) => {
72
+ const { ignoreErrors = false } = options;
73
+ try {
74
+ return checkStat(await (0, promises_1.stat)(path), path, options);
75
+ } catch (e) {
76
+ const er = e;
77
+ if (ignoreErrors || er.code === "EACCES")
78
+ return false;
79
+ throw er;
80
+ }
81
+ };
82
+ exports.isexe = isexe;
83
+ var sync = (path, options = {}) => {
84
+ const { ignoreErrors = false } = options;
85
+ try {
86
+ return checkStat((0, fs_1.statSync)(path), path, options);
87
+ } catch (e) {
88
+ const er = e;
89
+ if (ignoreErrors || er.code === "EACCES")
90
+ return false;
91
+ throw er;
92
+ }
93
+ };
94
+ exports.sync = sync;
95
+ var checkPathExt = (path, options) => {
96
+ const { pathExt = process.env.PATHEXT || "" } = options;
97
+ const peSplit = pathExt.split(";");
98
+ if (peSplit.indexOf("") !== -1) {
99
+ return true;
100
+ }
101
+ for (let i = 0; i < peSplit.length; i++) {
102
+ const p = peSplit[i].toLowerCase();
103
+ const ext = path.substring(path.length - p.length).toLowerCase();
104
+ if (p && ext === p) {
105
+ return true;
106
+ }
107
+ }
108
+ return false;
109
+ };
110
+ var checkStat = (stat, path, options) => stat.isFile() && checkPathExt(path, options);
111
+ }
112
+ });
113
+
114
+ // ../../node_modules/isexe/dist/cjs/options.js
115
+ var require_options = __commonJS({
116
+ "../../node_modules/isexe/dist/cjs/options.js"(exports) {
117
+ "use strict";
118
+ Object.defineProperty(exports, "__esModule", { value: true });
119
+ }
120
+ });
121
+
122
+ // ../../node_modules/isexe/dist/cjs/index.js
123
+ var require_cjs = __commonJS({
124
+ "../../node_modules/isexe/dist/cjs/index.js"(exports) {
125
+ "use strict";
126
+ var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
127
+ if (k2 === void 0) k2 = k;
128
+ var desc = Object.getOwnPropertyDescriptor(m, k);
129
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
130
+ desc = { enumerable: true, get: function() {
131
+ return m[k];
132
+ } };
133
+ }
134
+ Object.defineProperty(o, k2, desc);
135
+ } : function(o, m, k, k2) {
136
+ if (k2 === void 0) k2 = k;
137
+ o[k2] = m[k];
138
+ });
139
+ var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
140
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
141
+ } : function(o, v) {
142
+ o["default"] = v;
143
+ });
144
+ var __importStar = exports && exports.__importStar || function(mod) {
145
+ if (mod && mod.__esModule) return mod;
146
+ var result = {};
147
+ if (mod != null) {
148
+ for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
149
+ }
150
+ __setModuleDefault(result, mod);
151
+ return result;
152
+ };
153
+ var __exportStar = exports && exports.__exportStar || function(m, exports2) {
154
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
155
+ };
156
+ Object.defineProperty(exports, "__esModule", { value: true });
157
+ exports.sync = exports.isexe = exports.posix = exports.win32 = void 0;
158
+ var posix = __importStar(require_posix());
159
+ exports.posix = posix;
160
+ var win32 = __importStar(require_win32());
161
+ exports.win32 = win32;
162
+ __exportStar(require_options(), exports);
163
+ var platform = process.env._ISEXE_TEST_PLATFORM_ || process.platform;
164
+ var impl = platform === "win32" ? win32 : posix;
165
+ exports.isexe = impl.isexe;
166
+ exports.sync = impl.sync;
167
+ }
168
+ });
169
+
170
+ // ../../node_modules/which/lib/index.js
171
+ var require_lib = __commonJS({
172
+ "../../node_modules/which/lib/index.js"(exports, module) {
173
+ var { isexe, sync: isexeSync } = require_cjs();
174
+ var { join, delimiter, sep, posix } = __require("path");
175
+ var isWindows = process.platform === "win32";
176
+ var rSlash = new RegExp(`[${posix.sep}${sep === posix.sep ? "" : sep}]`.replace(/(\\)/g, "\\$1"));
177
+ var rRel = new RegExp(`^\\.${rSlash.source}`);
178
+ var getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
179
+ var getPathInfo = (cmd, {
180
+ path: optPath = process.env.PATH,
181
+ pathExt: optPathExt = process.env.PATHEXT,
182
+ delimiter: optDelimiter = delimiter
183
+ }) => {
184
+ const pathEnv = cmd.match(rSlash) ? [""] : [
185
+ // windows always checks the cwd first
186
+ ...isWindows ? [process.cwd()] : [],
187
+ ...(optPath || /* istanbul ignore next: very unusual */
188
+ "").split(optDelimiter)
189
+ ];
190
+ if (isWindows) {
191
+ const pathExtExe = optPathExt || [".EXE", ".CMD", ".BAT", ".COM"].join(optDelimiter);
192
+ const pathExt = pathExtExe.split(optDelimiter).flatMap((item) => [item, item.toLowerCase()]);
193
+ if (cmd.includes(".") && pathExt[0] !== "") {
194
+ pathExt.unshift("");
195
+ }
196
+ return { pathEnv, pathExt, pathExtExe };
197
+ }
198
+ return { pathEnv, pathExt: [""] };
199
+ };
200
+ var getPathPart = (raw, cmd) => {
201
+ const pathPart = /^".*"$/.test(raw) ? raw.slice(1, -1) : raw;
202
+ const prefix = !pathPart && rRel.test(cmd) ? cmd.slice(0, 2) : "";
203
+ return prefix + join(pathPart, cmd);
204
+ };
205
+ var which = async (cmd, opt = {}) => {
206
+ const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
207
+ const found = [];
208
+ for (const envPart of pathEnv) {
209
+ const p = getPathPart(envPart, cmd);
210
+ for (const ext of pathExt) {
211
+ const withExt = p + ext;
212
+ const is = await isexe(withExt, { pathExt: pathExtExe, ignoreErrors: true });
213
+ if (is) {
214
+ if (!opt.all) {
215
+ return withExt;
216
+ }
217
+ found.push(withExt);
218
+ }
219
+ }
220
+ }
221
+ if (opt.all && found.length) {
222
+ return found;
223
+ }
224
+ if (opt.nothrow) {
225
+ return null;
226
+ }
227
+ throw getNotFoundError(cmd);
228
+ };
229
+ var whichSync = (cmd, opt = {}) => {
230
+ const { pathEnv, pathExt, pathExtExe } = getPathInfo(cmd, opt);
231
+ const found = [];
232
+ for (const pathEnvPart of pathEnv) {
233
+ const p = getPathPart(pathEnvPart, cmd);
234
+ for (const ext of pathExt) {
235
+ const withExt = p + ext;
236
+ const is = isexeSync(withExt, { pathExt: pathExtExe, ignoreErrors: true });
237
+ if (is) {
238
+ if (!opt.all) {
239
+ return withExt;
240
+ }
241
+ found.push(withExt);
242
+ }
243
+ }
244
+ }
245
+ if (opt.all && found.length) {
246
+ return found;
247
+ }
248
+ if (opt.nothrow) {
249
+ return null;
250
+ }
251
+ throw getNotFoundError(cmd);
252
+ };
253
+ module.exports = which;
254
+ which.sync = whichSync;
255
+ }
256
+ });
257
+
258
+ export {
259
+ require_lib
260
+ };