MCPcopy
hub / github.com/claude-code-best/claude-code / _addToIndex

Function _addToIndex

src/services/localVault/keychain.ts:117–124  ·  view source on GitHub ↗
(account: string)

Source from the content-addressed store, hash-verified

115 },
116
117 async _addToIndex(account: string): Promise<void> {
118 const mod = await loadModule()
119 const indexEntry = new mod.Entry(SERVICE_NAME, '__index__')
120 const existing = await this.list()
121 if (!existing.includes(account)) {
122 indexEntry.setPassword(JSON.stringify([...existing, account]))
123 }
124 },
125
126 async _removeFromIndex(account: string): Promise<void> {
127 const mod = await loadModule()

Callers

nothing calls this directly

Calls 3

listMethod · 0.80
setPasswordMethod · 0.80
loadModuleFunction · 0.70

Tested by

no test coverage detected