MCPcopy
hub / github.com/garrytan/gstack / summary

Method summary

browse/src/network-capture.ts:77–83  ·  view source on GitHub ↗

Summary of captured responses (URL, status, size).

()

Source from the content-addressed store, hash-verified

75
76 /** Summary of captured responses (URL, status, size). */
77 summary(): string {
78 if (this.entries.length === 0) return 'No captured responses.';
79 const lines = this.entries.map((e, i) =>
80 ` [${i + 1}] ${e.status} ${e.url.slice(0, 100)} (${Math.round(e.size / 1024)}KB${e.bodyTruncated ? ', truncated' : ''})`
81 );
82 return `${this.entries.length} responses (${Math.round(this.totalSize / 1024)}KB total):\n${lines.join('\n')}`;
83 }
84}
85
86/** Global capture state. */

Callers 2

handleReadCommandFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected