MCPcopy Create free account
hub / github.com/Work-Fisher/code-claw / readSecretStore

Function readSecretStore

desktop/main.mjs:160–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158}
159
160async function readSecretStore() {
161 try {
162 await ensureUserDataDir()
163 const raw = await readFile(secretStorePath(), 'utf8')
164 return JSON.parse(raw)
165 } catch {
166 return {}
167 }
168}
169
170async function writeSecretStore(store) {
171 await ensureUserDataDir()

Callers 2

getSecretFunction · 0.85
setSecretFunction · 0.85

Calls 4

ensureUserDataDirFunction · 0.85
readFileFunction · 0.85
secretStorePathFunction · 0.85
parseMethod · 0.45

Tested by

no test coverage detected