MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / normalizeCtxState

Method normalizeCtxState

deepwiki/deepwiki.ts:211–215  ·  view source on GitHub ↗
(state: CtxChatState)

Source from the content-addressed store, hash-verified

209 }
210
211 private normalizeCtxState(state: CtxChatState): CtxChatState {
212 state.contextEnabled = !!state.contextEnabled;
213 state.contextTurns ||= {};
214 return state;
215 }
216
217 private async ensureMainChat(chatKey: string): Promise<MainChatState> {
218 this.ensureReady();

Callers 1

ensureCtxChatMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected