Files
jsc-plugins/plugins/anime-companion/hooks/characters.ts
T
Jeffery (jiantw83)andClaude Sonnet 5.5 8db7181825 feat: anime-companion 插件骨架與設定 (#3)
兩個角色 skill 空殼(sao-asuna、sao-suguha)、userConfig(預設角色、強度、稱呼)、
設定解析與測試,並登錄到 marketplace。

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 17:06:12 +00:00

12 lines
449 B
TypeScript

// 角色清單:代號為 {作品代號}-{角色代號},與 skills/ 下的資料夾同名。
export const CHARACTERS = {
'sao-asuna': { name: '亞絲娜', address: '桐人' },
'sao-suguha': { name: '直葉', address: '哥哥' },
} as const
export type CharacterCode = keyof typeof CHARACTERS
export function isCharacterCode(value: unknown): value is CharacterCode {
return typeof value === 'string' && Object.hasOwn(CHARACTERS, value)
}