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

Function getDiagnosticsMeta

src/utils/diagnostics.ts:72–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70}
71
72export function getDiagnosticsMeta(): {
73 diagnosticId?: string;
74 requestId?: string;
75 session?: string;
76 command?: string;
77 debug?: boolean;
78 flushOnSuccess?: boolean;
79} {
80 const scope = diagnosticsStorage.getStore();
81 if (!scope) return {};
82 return {
83 diagnosticId: scope.diagnosticId,
84 requestId: scope.requestId,
85 session: scope.session,
86 command: scope.command,
87 debug: scope.debug,
88 flushOnSuccess: scope.flushOnSuccess,
89 };
90}
91
92/**
93 * Sum the number of diagnostic events emitted in the current scope whose phase

Callers 8

runCliFunction · 0.90
createExecTraceContextFunction · 0.90
finalizeDaemonResponseFunction · 0.90
contextFromFlagsFunction · 0.90
contextFromRequestFlagsFunction · 0.90
completeOpenCommandFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected