@elizaos/cli 1.2.11-beta.9 → 1.3.0

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 (35) hide show
  1. package/dist/{chunk-3LVXQ7VC.js → chunk-2ALAPQLV.js} +3 -7
  2. package/dist/{chunk-TVVBQLSH.js → chunk-2CUIHNPL.js} +34 -1
  3. package/dist/{chunk-NS5R6Z74.js → chunk-I77ZRNYO.js} +2 -2
  4. package/dist/commands/agent/actions/index.js +1 -1
  5. package/dist/commands/agent/index.js +1 -1
  6. package/dist/commands/create/actions/index.js +2 -2
  7. package/dist/commands/create/index.js +3 -3
  8. package/dist/index.js +39 -6
  9. package/dist/{registry-NSUZGLOY.js → registry-N626N4VG.js} +1 -1
  10. package/dist/templates/plugin-quick-starter/package.json +1 -1
  11. package/dist/templates/plugin-quick-starter/src/plugin.ts +1 -1
  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/package.json +1 -1
  16. package/dist/templates/project-starter/CLAUDE.md +698 -0
  17. package/dist/templates/project-starter/package.json +4 -4
  18. package/dist/templates/project-tee-starter/package.json +3 -3
  19. package/dist/{utils-TV5USNZM.js → utils-H66532NB.js} +1 -1
  20. package/package.json +5 -5
  21. package/templates/plugin-quick-starter/package.json +2 -2
  22. package/templates/plugin-quick-starter/src/plugin.ts +1 -1
  23. package/templates/plugin-starter/CLAUDE.md +465 -0
  24. package/templates/plugin-starter/dist/.vite/manifest.json +1 -1
  25. package/templates/plugin-starter/dist/assets/{index-DUtsQhKX.js → index-D1cHX53P.js} +1 -1
  26. package/templates/plugin-starter/dist/index.html +1 -1
  27. package/templates/plugin-starter/package.json +2 -2
  28. package/templates/project-starter/CLAUDE.md +698 -0
  29. package/templates/project-starter/package.json +5 -5
  30. package/templates/project-tee-starter/package.json +4 -4
  31. package/dist/templates/plugin-quick-starter/dist/index.js +0 -195
  32. package/dist/templates/plugin-quick-starter/dist/index.js.map +0 -1
  33. package/templates/plugin-quick-starter/dist/index.d.ts +0 -13
  34. package/templates/plugin-quick-starter/dist/index.js +0 -195
  35. package/templates/plugin-quick-starter/dist/index.js.map +0 -1
@@ -2761,7 +2761,7 @@ async function getGitHubCredentials() {
2761
2761
  }
2762
2762
  logger10.warn("Invalid GitHub token found in environment variables");
2763
2763
  }
2764
- const { getGitHubToken: getGitHubToken2 } = await import("./registry-NSUZGLOY.js");
2764
+ const { getGitHubToken: getGitHubToken2 } = await import("./registry-N626N4VG.js");
2765
2765
  const token = await getGitHubToken2() || void 0;
2766
2766
  if (token) {
2767
2767
  const isValid2 = await validateGitHubToken(token);
@@ -4406,9 +4406,7 @@ var ModuleLoader = class {
4406
4406
  }
4407
4407
  const module = await import(pathToFileURL(modulePath).href);
4408
4408
  this.asyncCache.set(moduleName, module);
4409
- logger20.info(
4410
- `Loaded ${moduleName} from ${isLocalModule ? "local" : "global"} installation`
4411
- );
4409
+ logger20.info(`Loaded ${moduleName} from ${isLocalModule ? "local" : "global"} installation`);
4412
4410
  return module;
4413
4411
  } catch (error) {
4414
4412
  const errorMessage = error instanceof Error ? error.message : String(error);
@@ -4450,9 +4448,7 @@ Original error: ${errorMessage}`
4450
4448
  }
4451
4449
  const module = this.require(modulePath);
4452
4450
  this.syncCache.set(moduleName, module);
4453
- logger20.info(
4454
- `Loaded ${moduleName} from ${isLocalModule ? "local" : "global"} installation`
4455
- );
4451
+ logger20.info(`Loaded ${moduleName} from ${isLocalModule ? "local" : "global"} installation`);
4456
4452
  return module;
4457
4453
  } catch (error) {
4458
4454
  const errorMessage = error instanceof Error ? error.message : String(error);
@@ -15,7 +15,7 @@ import {
15
15
  promptAndStorePostgresUrl,
16
16
  runTasks,
17
17
  setupPgLite
18
- } from "./chunk-3LVXQ7VC.js";
18
+ } from "./chunk-2ALAPQLV.js";
19
19
 
20
20
  // src/characters/eliza.ts
21
21
  var baseCharacter = {
@@ -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
  };
@@ -856,6 +887,7 @@ To use this agent:`);
856
887
  console.info(` elizaos agent start --path ${agentFilePath}`);
857
888
  }
858
889
  async function createTEEProject(projectName, targetDir, database, aiModel, embeddingModel, isNonInteractive = false) {
890
+ delete process.env.PGLITE_DATA_DIR;
859
891
  const teeTargetDir = join(targetDir, projectName);
860
892
  const dirResult = await validateTargetDirectory(teeTargetDir);
861
893
  if (!dirResult.isValid) {
@@ -901,6 +933,7 @@ Next steps:`);
901
933
  });
902
934
  }
903
935
  async function createProject(projectName, targetDir, database, aiModel, embeddingModel, isNonInteractive = false) {
936
+ delete process.env.PGLITE_DATA_DIR;
904
937
  const projectTargetDir = projectName === "." ? targetDir : join(targetDir, projectName);
905
938
  const dirResult = await validateTargetDirectory(projectTargetDir);
906
939
  if (!dirResult.isValid) {
@@ -9,11 +9,11 @@ import {
9
9
  selectEmbeddingModel,
10
10
  validateCreateOptions,
11
11
  validateProjectName
12
- } from "./chunk-TVVBQLSH.js";
12
+ } from "./chunk-2CUIHNPL.js";
13
13
  import {
14
14
  displayBanner,
15
15
  handleError
16
- } from "./chunk-3LVXQ7VC.js";
16
+ } from "./chunk-2ALAPQLV.js";
17
17
 
18
18
  // src/commands/create/index.ts
19
19
  import { Command } from "commander";
@@ -5,7 +5,7 @@ import {
5
5
  setAgentConfig,
6
6
  startAgent,
7
7
  stopAgent
8
- } from "../../../chunk-3LVXQ7VC.js";
8
+ } from "../../../chunk-2ALAPQLV.js";
9
9
  import "../../../chunk-FDEDLANP.js";
10
10
  import "../../../chunk-4O6EZU37.js";
11
11
  import "../../../chunk-D3Q2UZLZ.js";
@@ -2,7 +2,7 @@ import {
2
2
  agent,
3
3
  getAgents,
4
4
  resolveAgentId
5
- } from "../../chunk-3LVXQ7VC.js";
5
+ } from "../../chunk-2ALAPQLV.js";
6
6
  import "../../chunk-FDEDLANP.js";
7
7
  import {
8
8
  getAgentRuntimeUrl,
@@ -8,8 +8,8 @@ import {
8
8
  setupAIModelConfig,
9
9
  setupEmbeddingModelConfig,
10
10
  setupProjectEnvironment
11
- } from "../../../chunk-TVVBQLSH.js";
12
- import "../../../chunk-3LVXQ7VC.js";
11
+ } from "../../../chunk-2CUIHNPL.js";
12
+ import "../../../chunk-2ALAPQLV.js";
13
13
  import "../../../chunk-FDEDLANP.js";
14
14
  import "../../../chunk-4O6EZU37.js";
15
15
  import "../../../chunk-D3Q2UZLZ.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  create
3
- } from "../../chunk-NS5R6Z74.js";
4
- import "../../chunk-TVVBQLSH.js";
5
- import "../../chunk-3LVXQ7VC.js";
3
+ } from "../../chunk-I77ZRNYO.js";
4
+ import "../../chunk-2CUIHNPL.js";
5
+ import "../../chunk-2ALAPQLV.js";
6
6
  import "../../chunk-FDEDLANP.js";
7
7
  import "../../chunk-4O6EZU37.js";
8
8
  import "../../chunk-D3Q2UZLZ.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-NS5R6Z74.js";
4
+ } from "./chunk-I77ZRNYO.js";
5
5
  import {
6
6
  getElizaCharacter
7
- } from "./chunk-TVVBQLSH.js";
7
+ } from "./chunk-2CUIHNPL.js";
8
8
  import {
9
9
  TestRunner,
10
10
  UserEnvironment,
@@ -43,7 +43,7 @@ import {
43
43
  testPublishToNpm,
44
44
  tryDelegateToLocalCli,
45
45
  validateDataDir
46
- } from "./chunk-3LVXQ7VC.js";
46
+ } from "./chunk-2ALAPQLV.js";
47
47
  import {
48
48
  configureEmojis,
49
49
  emoji,
@@ -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);
@@ -4981,7 +5014,7 @@ async function installPluginDependencies(projectInfo) {
4981
5014
  };
4982
5015
  await fs11.promises.writeFile(packageJsonPath, JSON.stringify(packageJsonContent, null, 2));
4983
5016
  }
4984
- const { installPlugin: installPlugin2 } = await import("./utils-TV5USNZM.js");
5017
+ const { installPlugin: installPlugin2 } = await import("./utils-H66532NB.js");
4985
5018
  for (const dependency of project.pluginModule.dependencies) {
4986
5019
  await installPlugin2(dependency, pluginsDir);
4987
5020
  const dependencyPath = path25.join(pluginsDir, "node_modules", dependency);
@@ -24,7 +24,7 @@ import {
24
24
  setEnvVar,
25
25
  setGitHubToken,
26
26
  validateDataDir
27
- } from "./chunk-3LVXQ7VC.js";
27
+ } from "./chunk-2ALAPQLV.js";
28
28
  import "./chunk-FDEDLANP.js";
29
29
  import "./chunk-4O6EZU37.js";
30
30
  import "./chunk-D3Q2UZLZ.js";
@@ -40,7 +40,7 @@
40
40
  "tsup.config.ts"
41
41
  ],
42
42
  "dependencies": {
43
- "@elizaos/core": "1.2.11-beta.8",
43
+ "@elizaos/core": "1.3.0",
44
44
  "zod": "^3.24.4"
45
45
  },
46
46
  "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;