MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / saveChoice

Function saveChoice

scripts/dev-select.mjs:37–44  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

35}
36
37function saveChoice(key) {
38 try {
39 mkdirSync(dirname(cacheFile), { recursive: true })
40 writeFileSync(cacheFile, key)
41 } catch {
42 // best-effort
43 }
44}
45
46let selected = loadLastChoice()
47

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected