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

Method closeDiff

packages/core/src/ide/ide-client.ts:167–184  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

165 }
166
167 async closeDiff(filePath: string): Promise<string | undefined> {
168 try {
169 const result = await this.client?.callTool({
170 name: `closeDiff`,
171 arguments: {
172 filePath,
173 },
174 });
175
176 if (result) {
177 const parsed = CloseDiffResponseSchema.parse(result);
178 return parsed.content;
179 }
180 } catch (err) {
181 logger.debug(`callTool for ${filePath} failed:`, err);
182 }
183 return;
184 }
185
186 // Closes the diff. Instead of waiting for a notification,
187 // manually resolves the diff resolver as the desired outcome.

Callers 2

resolveDiffFromCliMethod · 0.95
disconnectMethod · 0.95

Calls 1

debugMethod · 0.80

Tested by

no test coverage detected