MCPcopy Index your code
hub / github.com/anomalyco/opencode / getItem

Method getItem

packages/app/src/utils/persist.test.ts:25–30  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

23 }
24
25 getItem(key: string) {
26 this.calls.get += 1
27 this.events.push(`get:${key}`)
28 if (key.startsWith("opencode.throw")) throw new Error("storage get failed")
29 return this.values.get(key) ?? null
30 }
31
32 setItem(key: string, value: string) {
33 this.calls.set += 1

Callers 15

getLastActiveUrlFunction · 0.80
loadLocaleFunction · 0.80
getStorageFunction · 0.80
evictFunction · 0.80
readCurrentFunction · 0.80
migrateLegacyFunction · 0.80
readCurrentAsyncFunction · 0.80
migrateLegacyAsyncFunction · 0.80
localStorageWithPrefixFunction · 0.80

Calls 2

pushMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected