()
| 117 | } |
| 118 | |
| 119 | export function companionUserId(): string { |
| 120 | const config = getGlobalConfig() |
| 121 | return config.oauthAccount?.accountUuid ?? config.userID ?? 'anon' |
| 122 | } |
| 123 | |
| 124 | // Regenerate bones from userId, merge with stored soul. Bones never persist |
| 125 | // so species renames and SPECIES-array edits can't break stored companions, |
no test coverage detected