MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / readBannerDisplayState

Function readBannerDisplayState

apps/kimi-code/src/tui/banner/state.ts:54–62  ·  view source on GitHub ↗
(
  filePath: string = getBannerStateFile(),
)

Source from the content-addressed store, hash-verified

52}
53
54export async function readBannerDisplayState(
55 filePath: string = getBannerStateFile(),
56): Promise<BannerDisplayState> {
57 try {
58 return await readJsonFile(filePath, BannerDisplayStateSchema, emptyBannerDisplayState());
59 } catch {
60 return emptyBannerDisplayState();
61 }
62}
63
64export async function writeBannerDisplayState(
65 value: BannerDisplayState,

Callers 3

state.test.tsFile · 0.90
loadBannerMethod · 0.90

Calls 3

getBannerStateFileFunction · 0.90
readJsonFileFunction · 0.90
emptyBannerDisplayStateFunction · 0.85

Tested by

no test coverage detected