Skip to content

Commit 7359524

Browse files
committed
refactor: rename
1 parent 128f29f commit 7359524

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/McpResponse.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,8 @@ Call ${handleDialog.name} to handle it before continuing.`);
340340
}
341341
}
342342

343-
response.push(...this.#getIncludeNetworkRequestsData(context, data.bodies));
344-
response.push(...this.#getAttachedConsoleMessageData(data.consoleData));
343+
response.push(...this.#formatNetworkRequestData(context, data.bodies));
344+
response.push(...this.#formatConsoleData(data.consoleData));
345345

346346
if (this.#networkRequestsOptions?.include) {
347347
let requests = context.getNetworkRequests();
@@ -435,9 +435,7 @@ Call ${handleDialog.name} to handle it before continuing.`);
435435
};
436436
}
437437

438-
#getAttachedConsoleMessageData(
439-
data: ConsoleMessageData | undefined,
440-
): string[] {
438+
#formatConsoleData(data: ConsoleMessageData | undefined): string[] {
441439
const response: string[] = [];
442440
if (!data) {
443441
return response;
@@ -447,7 +445,7 @@ Call ${handleDialog.name} to handle it before continuing.`);
447445
return response;
448446
}
449447

450-
#getIncludeNetworkRequestsData(
448+
#formatNetworkRequestData(
451449
context: McpContext,
452450
data: {
453451
requestBody?: string;

0 commit comments

Comments
 (0)