@elizaos/ui 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/ui",
3
- "version": "2.0.0-alpha.404",
3
+ "version": "2.0.0-alpha.405",
4
4
  "description": "Shared UI primitives, composites, and layout utilities for elizaOS apps.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -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
  }