fix: companion 指令 status 改名 info,避免與內建 /status 撞名

撞名使 session.start 例外中斷,companion 無法初始化。
註冊失敗改為略過單一指令,版本號改為 0.0.3。

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
root
2026-10-14 09:48:12 +00:00
co-authored by Claude Sonnet 5.5
parent 4aba330877
commit fe2ccb619b
5 changed files with 16 additions and 12 deletions
@@ -201,7 +201,7 @@ export function createCompanion({ fs, clock, root, builtins = [FUBUKI] }: Compan
const lines = [`${v.kaomoji} ${v.core.name}|${v.label}`]
lines.push(`心情 PAD:P ${bar(v.mood.p)} A ${bar(v.mood.a)} D ${bar(v.mood.d)}`)
const dims = ranked(v.emotions)
lines.push(all ? '情緒(完整):' : '情緒(前 3 強,/status --all 看完整):')
lines.push(all ? '情緒(完整):' : '情緒(前 3 強,/jsc-mod-companion:info --all 看完整):')
for (const d of all ? dims : dims.slice(0, 3)) lines.push(` ${gauge(d, v.emotions)}`)
lines.push(`好感:${v.stage}(${v.relation.affection.toFixed(1)})`)
lines.push(`關係:好感 ${v.relation.affection.toFixed(1)} 信賴 ${v.relation.trust.toFixed(1)} 親密 ${v.relation.intimacy.toFixed(1)} 依賴 ${v.relation.dependence.toFixed(1)}`)
@@ -275,7 +275,7 @@ export function createCompanion({ fs, clock, root, builtins = [FUBUKI] }: Compan
if (sub === 'todo') return todoCommand(rest)
if (sub === 'quiet') return quietCommand(rest)
if (sub === 'materials') return materialsCommand(rest)
return '用法:/jsc-mod-companion:status | :switch <角色> | :disable | :setup [key=value…] | :todo … | :quiet [分鐘] | :materials [list]'
return '用法:/jsc-mod-companion:info | :switch <角色> | :disable | :setup [key=value…] | :todo … | :quiet [分鐘] | :materials [list]'
}
const CARE_STAGES: CareProfile['stage'][] = ['stranger', 'familiar', 'close', 'special']