兩個角色 skill 空殼(sao-asuna、sao-suguha)、userConfig(預設角色、強度、稱呼)、 設定解析與測試,並登錄到 marketplace。 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
12 lines
449 B
TypeScript
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)
|
|
}
|