MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / read

Function read

source code/utils/secureStorage/plainTextStorage.ts:23–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21export const plainTextStorage = {
22 name: 'plaintext',
23 read(): SecureStorageData | null {
24 // sync IO: called from sync context (SecureStorage interface)
25 const { storagePath } = getStoragePath()
26 try {
27 const data = getFsImplementation().readFileSync(storagePath, {
28 encoding: 'utf8',
29 })
30 return jsonParse(data)
31 } catch {
32 return null
33 }
34 },
35 async readAsync(): Promise<SecureStorageData | null> {
36 const { storagePath } = getStoragePath()
37 try {

Callers

nothing calls this directly

Calls 3

getStoragePathFunction · 0.85
getFsImplementationFunction · 0.85
jsonParseFunction · 0.85

Tested by

no test coverage detected