MCPcopy Create free account
hub / github.com/arctic-cli/interface / save

Function save

packages/arctic/src/cli/cmd/tui/context/local.tsx:148–156  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

146 const file = Bun.file(path.join(Global.Path.state, "model.json"))
147
148 function save() {
149 Bun.write(
150 file,
151 JSON.stringify({
152 recent: modelStore.recent,
153 favorite: modelStore.favorite,
154 }),
155 )
156 }
157
158 file
159 .json()

Callers 5

cycleFavoriteFunction · 0.70
setFunction · 0.70
toggleFavoriteFunction · 0.70
local.tsxFile · 0.70
cycleFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected