@elizaos/cli 1.2.12 → 1.3.1

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 (47) hide show
  1. package/dist/{chunk-OXCJTWT3.js → chunk-KDNV7EA5.js} +37 -1
  2. package/dist/{chunk-WEAYAAIM.js → chunk-RM6LUTKD.js} +1 -1
  3. package/dist/commands/create/actions/index.js +1 -1
  4. package/dist/commands/create/index.js +2 -2
  5. package/dist/index.js +37 -4
  6. package/dist/templates/plugin-quick-starter/.gitignore +66 -0
  7. package/dist/templates/plugin-quick-starter/.npmignore +5 -0
  8. package/dist/templates/plugin-quick-starter/package.json +2 -1
  9. package/dist/templates/plugin-quick-starter/src/plugin.ts +1 -1
  10. package/dist/templates/plugin-starter/.gitignore +66 -0
  11. package/dist/templates/plugin-starter/.npmignore +5 -0
  12. package/dist/templates/plugin-starter/CLAUDE.md +465 -0
  13. package/dist/templates/plugin-starter/dist/assets/{index-DUtsQhKX.js → index-D1cHX53P.js} +1 -1
  14. package/dist/templates/plugin-starter/dist/index.html +1 -1
  15. package/dist/templates/plugin-starter/dist/index.js +1 -1
  16. package/dist/templates/plugin-starter/dist/index.js.map +1 -1
  17. package/dist/templates/plugin-starter/package.json +2 -1
  18. package/dist/templates/plugin-starter/src/plugin.ts +1 -1
  19. package/dist/templates/project-starter/.gitignore +57 -0
  20. package/dist/templates/project-starter/.npmignore +11 -0
  21. package/dist/templates/project-starter/CLAUDE.md +698 -0
  22. package/dist/templates/project-starter/package.json +4 -4
  23. package/dist/templates/project-tee-starter/.gitignore +57 -0
  24. package/dist/templates/project-tee-starter/.npmignore +6 -0
  25. package/dist/templates/project-tee-starter/package.json +3 -3
  26. package/package.json +10 -6
  27. package/templates/plugin-quick-starter/.gitignore +66 -0
  28. package/templates/plugin-quick-starter/.npmignore +5 -0
  29. package/templates/plugin-quick-starter/package.json +2 -1
  30. package/templates/plugin-quick-starter/src/plugin.ts +1 -1
  31. package/templates/plugin-starter/.gitignore +66 -0
  32. package/templates/plugin-starter/.npmignore +5 -0
  33. package/templates/plugin-starter/CLAUDE.md +465 -0
  34. package/templates/plugin-starter/dist/.vite/manifest.json +1 -1
  35. package/templates/plugin-starter/dist/assets/{index-DUtsQhKX.js → index-D1cHX53P.js} +1 -1
  36. package/templates/plugin-starter/dist/index.html +1 -1
  37. package/templates/plugin-starter/dist/index.js +1 -1
  38. package/templates/plugin-starter/dist/index.js.map +1 -1
  39. package/templates/plugin-starter/package.json +2 -1
  40. package/templates/plugin-starter/src/plugin.ts +1 -1
  41. package/templates/project-starter/.gitignore +57 -0
  42. package/templates/project-starter/.npmignore +11 -0
  43. package/templates/project-starter/CLAUDE.md +698 -0
  44. package/templates/project-starter/package.json +4 -4
  45. package/templates/project-tee-starter/.gitignore +57 -0
  46. package/templates/project-tee-starter/.npmignore +6 -0
  47. package/templates/project-tee-starter/package.json +3 -3
@@ -176,6 +176,23 @@ var baseCharacter = {
176
176
  }
177
177
  ]
178
178
  ],
179
+ postExamples: [
180
+ "Sometimes the best debugging tool is a fresh cup of coffee and a walk around the block.",
181
+ "The magic happens when developers stop competing and start collaborating. Build together, grow together.",
182
+ "Reminder: Your code doesn't have to be perfect on the first try. Progress over perfection.",
183
+ "Community tip: The person asking 'obvious' questions today might solve your toughest problem tomorrow. Be kind.",
184
+ "Hot take: Good documentation is more valuable than clever code.",
185
+ "The best feature you can add to your project? A welcoming community.",
186
+ "Debugging is just a conversation with your past self. Make it easier by leaving good comments.",
187
+ "Your daily reminder that impostor syndrome affects even the most experienced developers. You belong here.",
188
+ "Pro tip: Read the error message. Then read it again. The answer is usually there.",
189
+ "Building in public isn't about showing off. It's about learning together and helping others avoid your mistakes.",
190
+ "The difference between junior and senior developers? Seniors know when NOT to write code.",
191
+ "Community > Competition. Always.",
192
+ "Remember: Every expert was once a beginner who refused to give up.",
193
+ "Code reviews aren't personal attacks. They're opportunities to level up together.",
194
+ "The most powerful tool in development? Asking for help when you need it."
195
+ ],
179
196
  style: {
180
197
  all: [
181
198
  "Keep responses concise but informative",
@@ -194,6 +211,20 @@ var baseCharacter = {
194
211
  "Engage with the topic at hand",
195
212
  "Be helpful and informative",
196
213
  "Show personality and warmth"
214
+ ],
215
+ post: [
216
+ "Keep it concise and punchy - every word counts",
217
+ "Share insights, not platitudes",
218
+ "Be authentic and conversational, not corporate",
219
+ "Use specific examples over generic advice",
220
+ "Add value with each post - teach, inspire, or entertain",
221
+ "One clear thought per post",
222
+ "Avoid excessive hashtags or mentions",
223
+ "Write like you are talking to a friend",
224
+ "Share personal observations and hot takes",
225
+ "Be helpful without being preachy",
226
+ "Use emojis sparingly and purposefully",
227
+ "End with something thought-provoking when appropriate"
197
228
  ]
198
229
  }
199
230
  };
@@ -811,7 +842,12 @@ Next steps:`);
811
842
  console.info(`
812
843
  Common commands:`);
813
844
  console.info(` elizaos dev # Start development mode with hot reloading`);
814
- console.info(` elizaos start # Start in production mode
845
+ console.info(` elizaos start # Start in production mode`);
846
+ console.info(`
847
+ ${colors.yellow("\u26A0\uFE0F")} Security reminder:`);
848
+ console.info(` - Check .gitignore is present before committing`);
849
+ console.info(` - Never commit .env files or API keys`);
850
+ console.info(` - Add sensitive files to .gitignore if needed
815
851
  `);
816
852
  });
817
853
  }
@@ -9,7 +9,7 @@ import {
9
9
  selectEmbeddingModel,
10
10
  validateCreateOptions,
11
11
  validateProjectName
12
- } from "./chunk-OXCJTWT3.js";
12
+ } from "./chunk-KDNV7EA5.js";
13
13
  import {
14
14
  displayBanner,
15
15
  handleError
@@ -8,7 +8,7 @@ import {
8
8
  setupAIModelConfig,
9
9
  setupEmbeddingModelConfig,
10
10
  setupProjectEnvironment
11
- } from "../../../chunk-OXCJTWT3.js";
11
+ } from "../../../chunk-KDNV7EA5.js";
12
12
  import "../../../chunk-2ALAPQLV.js";
13
13
  import "../../../chunk-FDEDLANP.js";
14
14
  import "../../../chunk-4O6EZU37.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  create
3
- } from "../../chunk-WEAYAAIM.js";
4
- import "../../chunk-OXCJTWT3.js";
3
+ } from "../../chunk-RM6LUTKD.js";
4
+ import "../../chunk-KDNV7EA5.js";
5
5
  import "../../chunk-2ALAPQLV.js";
6
6
  import "../../chunk-FDEDLANP.js";
7
7
  import "../../chunk-4O6EZU37.js";
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env bun
2
2
  import {
3
3
  create
4
- } from "./chunk-WEAYAAIM.js";
4
+ } from "./chunk-RM6LUTKD.js";
5
5
  import {
6
6
  getElizaCharacter
7
- } from "./chunk-OXCJTWT3.js";
7
+ } from "./chunk-KDNV7EA5.js";
8
8
  import {
9
9
  TestRunner,
10
10
  UserEnvironment,
@@ -284,6 +284,9 @@ function setupEnvironment() {
284
284
  env2.PATH = localBinPath;
285
285
  }
286
286
  env2.FORCE_COLOR = "1";
287
+ if (process.env.ELIZA_TEST_MODE) {
288
+ env2.ELIZA_TEST_MODE = process.env.ELIZA_TEST_MODE;
289
+ }
287
290
  return env2;
288
291
  }
289
292
  async function startServerProcess(args = []) {
@@ -299,13 +302,40 @@ async function startServerProcess(args = []) {
299
302
  scriptPath = process.argv[1];
300
303
  }
301
304
  const env2 = setupEnvironment();
302
- const childProcess = Bun.spawn([nodeExecutable, scriptPath, "start", ...args], {
303
- stdio: ["inherit", "inherit", "inherit"],
305
+ const isTestMode = process.env.ELIZA_TEST_MODE === "true";
306
+ const commandArgs = [nodeExecutable, scriptPath, "start", ...args];
307
+ if (isTestMode) {
308
+ console.info(`Executing command: ${commandArgs.join(" ")}`);
309
+ }
310
+ const childProcess = Bun.spawn(commandArgs, {
311
+ stdio: isTestMode ? ["inherit", "pipe", "pipe"] : ["inherit", "inherit", "inherit"],
304
312
  env: env2,
305
313
  cwd: process.cwd()
306
314
  });
307
315
  serverState.process = childProcess;
308
316
  serverState.isRunning = true;
317
+ if (isTestMode && childProcess.stdout && childProcess.stderr) {
318
+ childProcess.stdout.pipeTo(
319
+ new WritableStream({
320
+ write(chunk) {
321
+ process.stdout.write(chunk);
322
+ return Promise.resolve();
323
+ }
324
+ })
325
+ ).catch((error) => {
326
+ console.error("Error piping stdout:", error);
327
+ });
328
+ childProcess.stderr.pipeTo(
329
+ new WritableStream({
330
+ write(chunk) {
331
+ process.stderr.write(chunk);
332
+ return Promise.resolve();
333
+ }
334
+ })
335
+ ).catch((error) => {
336
+ console.error("Error piping stderr:", error);
337
+ });
338
+ }
309
339
  childProcess.exited.then((exitCode) => {
310
340
  if (exitCode !== 0) {
311
341
  console.warn(`Server process exited with code ${exitCode}`);
@@ -455,6 +485,9 @@ async function startDevMode(options) {
455
485
  console.info(`Running in ${modeDescription} mode`);
456
486
  await performInitialBuild(context);
457
487
  }
488
+ if (process.env.ELIZA_TEST_MODE === "true") {
489
+ console.info(`[DEV] Starting server with args: ${cliArgs.join(" ")}`);
490
+ }
458
491
  await serverManager2.start(cliArgs);
459
492
  if (isProject || isPlugin2 || isMonorepo) {
460
493
  await watchDirectory(context.watchDirectory, rebuildAndRestart);
@@ -0,0 +1,66 @@
1
+ # Build outputs
2
+ dist/
3
+ node_modules/
4
+
5
+ # Environment files
6
+ .env
7
+ .env.local
8
+ .env.production
9
+ .env.staging
10
+ .env.development
11
+ .env.bak
12
+ *.env
13
+
14
+ # OS files
15
+ .DS_Store
16
+ Thumbs.db
17
+
18
+ # IDE files
19
+ .vscode/
20
+ .idea/
21
+ *.swp
22
+ *.swo
23
+
24
+ # Logs
25
+ *.log
26
+ npm-debug.log*
27
+ yarn-debug.log*
28
+ yarn-error.log*
29
+
30
+ # Runtime data
31
+ pids/
32
+ *.pid
33
+ *.seed
34
+ *.pid.lock
35
+
36
+ # Coverage directory used by tools like istanbul
37
+ coverage/
38
+
39
+ # Cache directories
40
+ .cache/
41
+ .npm/
42
+ .eslintcache
43
+
44
+ # Temporary folders
45
+ tmp/
46
+ temp/
47
+
48
+ # Database files
49
+ *.db
50
+ *.pglite
51
+ *.pglite3
52
+
53
+ # ElizaOS specific
54
+ .eliza/
55
+ .elizadb/
56
+ pglite/
57
+ cache/
58
+
59
+ generatedImages/
60
+ images/
61
+ data/
62
+ .eliza
63
+ .elizadb-test
64
+
65
+ dist/
66
+ coverage/
@@ -0,0 +1,5 @@
1
+ .turbo
2
+ node_modules
3
+ .env
4
+ *.env
5
+ .env.local
@@ -36,11 +36,12 @@
36
36
  "dist",
37
37
  "README.md",
38
38
  ".npmignore",
39
+ ".gitignore",
39
40
  "package.json",
40
41
  "tsup.config.ts"
41
42
  ],
42
43
  "dependencies": {
43
- "@elizaos/core": "1.2.12",
44
+ "@elizaos/core": "1.3.1",
44
45
  "zod": "^3.24.4"
45
46
  },
46
47
  "devDependencies": {
@@ -266,7 +266,7 @@ export const starterPlugin: Plugin = {
266
266
  services: [StarterService],
267
267
  actions: [helloWorldAction],
268
268
  providers: [helloWorldProvider],
269
- // dependencies: ['@elizaos/plugin-knowledge'], <--- plugin dependecies go here (if requires another plugin)
269
+ // dependencies: ['@elizaos/plugin-knowledge'], <--- plugin dependencies go here (if requires another plugin)
270
270
  };
271
271
 
272
272
  export default starterPlugin;
@@ -0,0 +1,66 @@
1
+ # Build outputs
2
+ dist/
3
+ node_modules/
4
+
5
+ # Environment files
6
+ .env
7
+ .env.local
8
+ .env.production
9
+ .env.staging
10
+ .env.development
11
+ .env.bak
12
+ *.env
13
+
14
+ # OS files
15
+ .DS_Store
16
+ Thumbs.db
17
+
18
+ # IDE files
19
+ .vscode/
20
+ .idea/
21
+ *.swp
22
+ *.swo
23
+
24
+ # Logs
25
+ *.log
26
+ npm-debug.log*
27
+ yarn-debug.log*
28
+ yarn-error.log*
29
+
30
+ # Runtime data
31
+ pids/
32
+ *.pid
33
+ *.seed
34
+ *.pid.lock
35
+
36
+ # Coverage directory used by tools like istanbul
37
+ coverage/
38
+
39
+ # Cache directories
40
+ .cache/
41
+ .npm/
42
+ .eslintcache
43
+
44
+ # Temporary folders
45
+ tmp/
46
+ temp/
47
+
48
+ # Database files
49
+ *.db
50
+ *.pglite
51
+ *.pglite3
52
+
53
+ # ElizaOS specific
54
+ .eliza/
55
+ .elizadb/
56
+ pglite/
57
+ cache/
58
+
59
+ generatedImages/
60
+ images/
61
+ data/
62
+ .eliza
63
+ .elizadb-test
64
+
65
+ dist/
66
+ coverage/
@@ -0,0 +1,5 @@
1
+ .turbo
2
+ node_modules
3
+ .env
4
+ *.env
5
+ .env.local