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

Function load

packages/arctic/src/session/counter.ts:13–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11 }
12
13 async function load(): Promise<FeedbackState> {
14 try {
15 const data = await file.json()
16 return {
17 feedbackShown: !!data.feedbackShown,
18 }
19 } catch {
20 return { feedbackShown: false }
21 }
22 }
23
24 async function save(data: FeedbackState): Promise<void> {
25 await Bun.write(file, JSON.stringify(data, null, 2))

Callers 1

shouldShowFeedbackFunction · 0.70

Calls 1

jsonMethod · 0.65

Tested by

no test coverage detected