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

Function createInitialState

apps/kimi-web/src/api/daemon/eventReducer.ts:64–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62}
63
64export function createInitialState(): KimiClientState {
65 return {
66 sessions: [],
67 activeSessionId: undefined,
68 messagesBySession: {},
69 approvalsBySession: {},
70 planReviewByToolCallId: {},
71 questionsBySession: {},
72 tasksBySession: {},
73 goalBySession: {},
74 lastSeqBySession: {},
75 compactionBySession: {},
76 warnings: [],
77 };
78}
79
80// ---------------------------------------------------------------------------
81// Helpers

Callers 3

createStateFunction · 0.90

Calls

no outgoing calls

Tested by 1

createStateFunction · 0.72