MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / writeReaderLevel

Function writeReaderLevel

graph-ui/src/twin/reader-level-store.ts:69–75  ·  view source on GitHub ↗
(store: KeyValueStore, level: DepthLevel)

Source from the content-addressed store, hash-verified

67 * about it would be making the reader's privacy setting into a fault.
68 */
69export function writeReaderLevel(store: KeyValueStore, level: DepthLevel): void {
70 try {
71 store.setItem(READER_LEVEL_KEY, String(level));
72 } catch {
73 // Nothing to do and nothing to say: the level still holds for this session.
74 }
75}
76
77/** The browser's own storage, when this build is running in one. */
78export function browserStore(): KeyValueStore | undefined {

Callers 2

TwinPanelFunction · 0.90

Calls 1

setItemMethod · 0.65

Tested by

no test coverage detected