@elizaos/app-core 2.0.0-alpha.404 → 2.0.0-alpha.405

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elizaos/app-core",
3
- "version": "2.0.0-alpha.404",
3
+ "version": "2.0.0-alpha.405",
4
4
  "description": "Shared application core for elizaOS white-label agent apps.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -464,7 +464,7 @@
464
464
  "@capacitor/preferences": "^8.0.1",
465
465
  "@capacitor/push-notifications": "^8.0.0",
466
466
  "@clack/prompts": "^1.0.0",
467
- "@elizaos/agent": "^2.0.0-alpha.404",
467
+ "@elizaos/agent": "^2.0.0-alpha.405",
468
468
  "@elizaos/app-companion": "^0.0.0",
469
469
  "@elizaos/app-elizamaker": "^0.0.0",
470
470
  "@elizaos/app-lifeops": "^0.0.0",
@@ -473,12 +473,12 @@
473
473
  "@elizaos/app-task-coordinator": "^0.0.0",
474
474
  "@elizaos/app-training": "^0.0.1",
475
475
  "@elizaos/app-vincent": "^0.0.0",
476
- "@elizaos/core": "^2.0.0-alpha.404",
476
+ "@elizaos/core": "^2.0.0-alpha.405",
477
477
  "@elizaos/plugin-browser-bridge": "^0.1.0",
478
478
  "@elizaos/plugin-sql": "^2.0.0-alpha.19",
479
479
  "@elizaos/plugin-wechat": "^0.1.0",
480
- "@elizaos/shared": "^2.0.0-alpha.404",
481
- "@elizaos/ui": "^2.0.0-alpha.404",
480
+ "@elizaos/shared": "^2.0.0-alpha.405",
481
+ "@elizaos/ui": "^2.0.0-alpha.405",
482
482
  "@node-rs/argon2": "^2.0.2",
483
483
  "@radix-ui/react-checkbox": "^1.3.3",
484
484
  "@radix-ui/react-dialog": "^1.1.15",
@@ -1,11 +1,11 @@
1
1
  /**
2
- * Shared pool of Japanese agent names for onboarding.
2
+ * Shared pool of agent names for onboarding.
3
3
  *
4
4
  * Used by both the CLI first-run flow (eliza.ts) and the
5
5
  * web UI API server (api/server.ts).
6
6
  */
7
- /** Pool of Japanese names to randomly sample from during onboarding. */
7
+ export declare const DEFAULT_AGENT_NAME = "Eliza";
8
8
  export declare const AGENT_NAME_POOL: readonly string[];
9
- /** Pick `count` unique random names from the pool using Fisher-Yates shuffle. */
9
+ /** Pick `count` unique names, keeping the default agent name first. */
10
10
  export declare function pickRandomNames(count: number): string[];
11
11
  //# sourceMappingURL=onboarding-names.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"onboarding-names.d.ts","sourceRoot":"","sources":["../../../../../../agent/src/runtime/onboarding-names.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,wEAAwE;AACxE,eAAO,MAAM,eAAe,EAAE,SAAS,MAAM,EAwD5C,CAAC;AAEF,iFAAiF;AACjF,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAQvD"}
1
+ {"version":3,"file":"onboarding-names.d.ts","sourceRoot":"","sources":["../../../../../../agent/src/runtime/onboarding-names.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,kBAAkB,UAAU,CAAC;AA4D1C,eAAO,MAAM,eAAe,EAAE,SAAS,MAAM,EAG5C,CAAC;AAEF,uEAAuE;AACvE,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAYvD"}
@@ -1,11 +1,12 @@
1
1
  /**
2
- * Shared pool of Japanese agent names for onboarding.
2
+ * Shared pool of agent names for onboarding.
3
3
  *
4
4
  * Used by both the CLI first-run flow (eliza.ts) and the
5
5
  * web UI API server (api/server.ts).
6
6
  */
7
- /** Pool of Japanese names to randomly sample from during onboarding. */
8
- export const AGENT_NAME_POOL = [
7
+ export const DEFAULT_AGENT_NAME = "Eliza";
8
+ /** Pool of names to sample from during onboarding after the default option. */
9
+ const RANDOM_AGENT_NAME_POOL = [
9
10
  "Reimu",
10
11
  "Sakuya",
11
12
  "Yukari",
@@ -20,7 +21,6 @@ export const AGENT_NAME_POOL = [
20
21
  "Suika",
21
22
  "Koishi",
22
23
  "Nue",
23
- "Chen",
24
24
  "Mokou",
25
25
  "Satori",
26
26
  "Remilia",
@@ -62,13 +62,20 @@ export const AGENT_NAME_POOL = [
62
62
  "Miku",
63
63
  "Kira",
64
64
  ];
65
- /** Pick `count` unique random names from the pool using Fisher-Yates shuffle. */
65
+ export const AGENT_NAME_POOL = [
66
+ DEFAULT_AGENT_NAME,
67
+ ...RANDOM_AGENT_NAME_POOL,
68
+ ];
69
+ /** Pick `count` unique names, keeping the default agent name first. */
66
70
  export function pickRandomNames(count) {
67
71
  const clamped = Math.max(0, Math.min(count, AGENT_NAME_POOL.length));
68
- const pool = [...AGENT_NAME_POOL];
72
+ if (clamped === 0) {
73
+ return [];
74
+ }
75
+ const pool = [...RANDOM_AGENT_NAME_POOL];
69
76
  for (let i = pool.length - 1; i > 0; i--) {
70
77
  const j = Math.floor(Math.random() * (i + 1));
71
78
  [pool[i], pool[j]] = [pool[j], pool[i]];
72
79
  }
73
- return pool.slice(0, clamped);
80
+ return [DEFAULT_AGENT_NAME, ...pool.slice(0, clamped - 1)];
74
81
  }