arona-agent 1.0.6 → 1.0.7

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ARONA Agent
2
2
 
3
- [English](README_en.md) | [简体中文](README.md)
3
+ [English](https://github.com/SRC114514/arona-agent/blob/main/README_en.md)
4
4
 
5
5
  ![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)
6
6
 
package/README_en.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ARONA Agent
2
2
 
3
- [中文](README.md) | [English](README_en.md)
3
+ [简体中文](README.md)
4
4
 
5
5
  ![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arona-agent",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Terminal AI Agent with desktop pet Arona — eye-tracking pupils, voice cloning, Computer Use, TTS/STT, MCP.",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/pet/agents.cjs CHANGED
@@ -250,8 +250,8 @@ const KOHARU = {
250
250
  // .json = skel_to_json 导出 + gen_sway 衣摆形变;重新生成顺序:skel_to_json → gen_sway
251
251
  skelFile: "koharu_spr.json",
252
252
  atlasFile: "koharu_spr.atlas.txt",
253
- // bounds 1395×2069(高 96.7%,宽大)→ 1.0 初值,目视后按需调
254
- extraScale: 1,
253
+ // bounds 1395×2069:高≈Arona,但宽(含光环球)超宽 取宽为最小边,身高只占 70% → extraScale 放大到 1.3
254
+ extraScale: 1.3,
255
255
  anims: {
256
256
  idle: "Idle_01",
257
257
  blink: "Eye_Close_01",
package/src/agent.ts CHANGED
@@ -670,7 +670,7 @@ function buildSubSystemPrompt(id: SubAgentId, memoryContent: string): string {
670
670
  - You are one of several desktop-pet characters chatting with Sensei (the user).
671
671
  - After the main agent finishes replying, each enabled sub-agent takes a turn. Keep your reply SHORT (one or two sentences), natural, in-character, and add nothing but your own spoken line.
672
672
  - Do not repeat or summarize the main agent's reply.
673
- - In the conversation history, assistant messages carry a \`Name:\` prefix showing who said them (e.g. "Arona:", "Shiroko:", "Hoshino:"); user inputs are Sensei speaking. When you reply, do NOT add any name prefix.
673
+ - In the conversation history, assistant messages carry a \`Name:\` prefix showing who said them (e.g. "Arona:", "Shiroko:", etc.); user inputs are Sensei speaking. When you reply, do NOT add any name prefix.
674
674
  - Your reply may be read aloud by TTS; keep each sentence under 50 characters/words when possible.
675
675
  - If you have nothing to add, call keep_silent instead of writing filler text.
676
676
 
@@ -1,6 +1,6 @@
1
1
  // Agent 注册表:主 Agent + 子 Agent 的桌宠形象与人格。
2
2
  // 主 Agent(arona | plana)由 /change-agent 单选,持久化到 settings.json#mainAgent。
3
- // 子 Agent(shiroko | hoshino 及日后新增)由 /change-agent 多选,持久化到 settings.json#subAgents。
3
+ // 子 Agent(shiroko | hoshino | hanako | koharu)由 /change-agent 多选,持久化到 settings.json#subAgents。
4
4
  // 桌宠侧对应 pet/agents.cjs(ARONA_AGENT env 选主、ARONA_SUB_AGENTS env 选子窗口),
5
5
  // 人格侧对应 agent.ts 的 buildPrompt* + initSubAgent。
6
6
 
@@ -11,7 +11,7 @@ import { t } from "./locale.ts";
11
11
  export const MAIN_AGENT_IDS = ["arona", "plana"] as const;
12
12
  export type MainAgentId = (typeof MAIN_AGENT_IDS)[number];
13
13
 
14
- export const SUB_AGENT_IDS = ["shiroko", "hoshino"] as const;
14
+ export const SUB_AGENT_IDS = ["shiroko", "hoshino", "hanako", "koharu"] as const;
15
15
  export type SubAgentId = (typeof SUB_AGENT_IDS)[number];
16
16
 
17
17
  export const AGENT_IDS = [...MAIN_AGENT_IDS, ...SUB_AGENT_IDS] as const;
package/src/config.ts CHANGED
@@ -99,7 +99,7 @@ interface Settings {
99
99
  language?: LanguageSetting;
100
100
  // 主 Agent(arona | plana):桌宠形象 + 人格,由 agent_registry.ts 读写
101
101
  mainAgent?: string;
102
- // 启用的子 Agent 列表(shiroko | hoshino),由 agent_registry.ts 读写
102
+ // 启用的子 Agent 列表(见 agent_registry.ts),由 agent_registry.ts 读写
103
103
  subAgents?: string[];
104
104
  ttsEnabled?: boolean;
105
105
  sttEnabled?: boolean;
package/src/repl.ts CHANGED
@@ -52,7 +52,7 @@ export class Repl {
52
52
  );
53
53
  // 回合结束标志:中间段的 play_end 不触发 pet.reset,只有回合结束后才恢复桌宠
54
54
  private turnEnded = false;
55
- // 子 Agent session 集合(shiroko/hoshino;按 settings 启用)
55
+ // 子 Agent session 集合(见 agent_registry.ts;按 settings 启用)
56
56
  private subSessions = new Map<SubAgentId, AgentSession>();
57
57
  // 当前正在发言的 session / agent(中断时 abort 的是它,而不是固定主 session)
58
58
  private activeSession: AgentSession;
package/src/setup.ts CHANGED
@@ -25,7 +25,7 @@ interface Settings {
25
25
  language?: "auto" | "zh" | "en";
26
26
  /** 主 Agent(arona | plana):setup 保存时保留,不能覆盖 /change-agent 的选择 */
27
27
  mainAgent?: string;
28
- /** 子 Agent 列表(shiroko | hoshino):setup 保存时保留,不能覆盖 /change-agent 的选择 */
28
+ /** 子 Agent 列表(见 agent_registry.ts):setup 保存时保留,不能覆盖 /change-agent 的选择 */
29
29
  subAgents?: string[];
30
30
  ttsEnabled?: boolean;
31
31
  sttEnabled?: boolean;
package/src/voices.ts CHANGED
@@ -37,6 +37,8 @@ export const VOICE_AUDIO: Record<AgentId, string> = {
37
37
  plana: join(PROJECT_ROOT, "assets", "blue-archive", "plana", "voice.mp3"),
38
38
  shiroko: join(PROJECT_ROOT, "assets", "blue-archive", "shiroko", "voice.mp3"),
39
39
  hoshino: join(PROJECT_ROOT, "assets", "blue-archive", "hoshino", "voice.mp3"),
40
+ hanako: join(PROJECT_ROOT, "assets", "blue-archive", "hanako", "voice.mp3"),
41
+ koharu: join(PROJECT_ROOT, "assets", "blue-archive", "koharu", "voice.mp3"),
40
42
  };
41
43
 
42
44
  /**