MCPcopy Create free account
hub / github.com/codeaashu/claude-code / companionUserId

Function companionUserId

src/buddy/companion.ts:119–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117}
118
119export 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,

Callers 1

getCompanionFunction · 0.85

Calls 1

getGlobalConfigFunction · 0.85

Tested by

no test coverage detected