feat: anime-companion 插件骨架與設定 (#3)

兩個角色 skill 空殼(sao-asuna、sao-suguha)、userConfig(預設角色、強度、稱呼)、
設定解析與測試,並登錄到 marketplace。

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Jeffery (jiantw83)
2026-10-14 17:06:12 +00:00
co-authored by Claude Sonnet 5.5
parent b0ed5efedf
commit 8db7181825
10 changed files with 196 additions and 1 deletions
@@ -0,0 +1,11 @@
// 角色清單:代號為 {作品代號}-{角色代號},與 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)
}