Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
37
function
saveChoice(key) {
38
try {
39
mkdirSync(dirname(cacheFile), { recursive: true })
40
writeFileSync(cacheFile, key)
41
} catch {
42
// best-effort
43
}
44
}
45
46
let
selected = loadLastChoice()
47
Callers
1
run
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected