feat(pcap): add bounded capture summaries through CLI and MCP
Summarize saved Wireshark4.x captures with enforced native resource limits, serialized admission, stable snapshot verification and retained fact/text pages. Preserve complete inventories within resource budgets and source uncertainty; report cleanup failure with partial Evidence and retained ownership. Verified six recorded corpora /13026 packets with independent Scapy/Python oracles, real CLI/MCP/schema parity,60 SNI names,132 DNS addresses and1000 URIs. Real TShark CI now exercises summary/paging. Actual Windows/Bun Wireshark remains unverified; macOS capture requires a separate enforceable-bound decision. Co-authored-by: 3QL <85309073+3QL@users.noreply.github.com> Co-authored-by: N0zoM1z0 <161784452+N0zoM1z0@users.noreply.github.com>
This commit is contained in:
@@ -74,7 +74,9 @@ const sourceFiles = [
|
||||
export const SWIFTC_INTERRUPT = "SIGINT";
|
||||
|
||||
/** Deadline for the one-shot helper compilation. */
|
||||
const COMPILER_TIMEOUT_MS = 60_000;
|
||||
// A fresh Swift SDK cache took 88 seconds on the supported Intel macOS VM.
|
||||
// Keep compilation bounded independently of short provider version probes.
|
||||
const COMPILER_TIMEOUT_MS = 120_000;
|
||||
|
||||
/** Bound on compiler diagnostics embedded in the inspection failure text. */
|
||||
const STDERR_EXCERPT_LIMIT = 512;
|
||||
@@ -253,7 +255,7 @@ export type DarwinProcessReaderCompiler =
|
||||
export const createDarwinProcessRunTokenReader = (
|
||||
options: {
|
||||
readonly compiler?: DarwinProcessReaderCompiler;
|
||||
/** Deadline for the helper compilation; the default keeps verification fast. */
|
||||
/** Deadline for helper compilation, independent of provider execution. */
|
||||
readonly compileTimeoutMs?: number;
|
||||
/**
|
||||
* Caller-owned directory holding the compiler's module cache. Unset keeps
|
||||
|
||||
Reference in New Issue
Block a user