MCPcopy Create free account
hub / github.com/anus-dev/ANUS / addDirectoryContext

Method addDirectoryContext

packages/core/src/core/client.ts:217–226  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

215 }
216
217 async addDirectoryContext(): Promise<void> {
218 if (!this.chat) {
219 return;
220 }
221
222 this.getChat().addHistory({
223 role: 'user',
224 parts: [{ text: await getDirectoryContextString(this.config) }],
225 });
226 }
227
228 async startChat(extraHistory?: Content[]): Promise<AnusChat> {
229 this.forceFullIdeContext = true;

Callers 1

Calls 3

getChatMethod · 0.95
addHistoryMethod · 0.45

Tested by

no test coverage detected