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

Method setContextEnabled

deepwiki/deepwiki.ts:311–319  ·  view source on GitHub ↗
(chatKey: string, enabled: boolean)

Source from the content-addressed store, hash-verified

309 }
310
311 async setContextEnabled(chatKey: string, enabled: boolean): Promise<void> {
312 this.ensureReady();
313 const ctx = await this.ensureCtxChat(chatKey);
314 ctx.contextEnabled = !!enabled;
315
316 const key = this.gk(chatKey);
317 this.dbCtx.data!.chats[key] = ctx;
318 await this.dbCtx.write();
319 }
320
321 async clearContext(chatKey: string, tag?: string): Promise<void> {
322 this.ensureReady();

Callers 1

DeepWikiPluginClass · 0.80

Calls 4

ensureReadyMethod · 0.95
ensureCtxChatMethod · 0.95
gkMethod · 0.95
writeMethod · 0.80

Tested by

no test coverage detected