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

Method setRepo

deepwiki/deepwiki.ts:266–276  ·  view source on GitHub ↗
(chatKey: string, entry: RepoEntry, makeCurrent: boolean = true)

Source from the content-addressed store, hash-verified

264 }
265
266 async setRepo(chatKey: string, entry: RepoEntry, makeCurrent: boolean = true): Promise<void> {
267 this.ensureReady();
268 const state = await this.ensureMainChat(chatKey);
269 state.repos ||= {};
270 state.repos[entry.tag] = entry;
271 if (makeCurrent) state.currentTag = entry.tag;
272
273 const key = this.gk(chatKey);
274 this.dbMain.data!.chats[key] = state;
275 await this.dbMain.write();
276 }
277
278 async deleteRepo(chatKey: string, tag: string): Promise<boolean> {
279 this.ensureReady();

Callers 1

DeepWikiPluginClass · 0.80

Calls 4

ensureReadyMethod · 0.95
ensureMainChatMethod · 0.95
gkMethod · 0.95
writeMethod · 0.80

Tested by

no test coverage detected