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

Function readWindowIDs

packages/desktop/src/main/windows.ts:229–233  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

227}
228
229function readWindowIDs() {
230 const value = getStore().get(WINDOW_IDS_KEY)
231 if (!Array.isArray(value)) return []
232 return value.filter((id): id is string => typeof id === "string" && id.length > 0)
233}
234
235function writeWindowIDs(ids: string[]) {
236 getStore().set(WINDOW_IDS_KEY, [...new Set(ids)])

Callers 3

restoreMainWindowsFunction · 0.85
persistWindowIDFunction · 0.85
removeWindowIDFunction · 0.85

Calls 2

getStoreFunction · 0.90
getMethod · 0.65

Tested by

no test coverage detected