MCPcopy Index your code
hub / github.com/callstack/agent-device / stripDiagnosticMeta

Function stripDiagnosticMeta

src/kernel/errors.ts:136–145  ·  view source on GitHub ↗
(
  details: Record<string, unknown> | undefined,
)

Source from the content-addressed store, hash-verified

134}
135
136function stripDiagnosticMeta(
137 details: Record<string, unknown> | undefined,
138): Record<string, unknown> | undefined {
139 if (!details) return undefined;
140 const output = { ...details };
141 delete output.hint;
142 delete output.diagnosticId;
143 delete output.logPath;
144 return Object.keys(output).length > 0 ? output : undefined;
145}
146
147/**
148 * Conservative retriability policy for the Phase 2 typed-error graft. Returns

Callers 1

normalizeErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected