MCPcopy Index your code
hub / github.com/codeaashu/claude-code / read

Function read

src/utils/secureStorage/plainTextStorage.ts:21–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

getStoragePathFunction · 0.85
getFsImplementationFunction · 0.85
jsonParseFunction · 0.85

Tested by

no test coverage detected