| 3 | import type { WebviewToExtensionMessage } from "./protocol"; |
| 4 | |
| 5 | export interface VscodeBridge { |
| 6 | traceId: string; |
| 7 | startedAtMs: number; |
| 8 | postMessage: (payload: WebviewToExtensionMessage) => void; |
| 9 | onMessage: (handler: (data: unknown) => void) => () => void; |
| 10 | debugLog: (message: string, data?: unknown) => void; |
| 11 | } |
| 12 | |
| 13 | function safeStringify(value: unknown): string { |
| 14 | try { |
nothing calls this directly
no outgoing calls
no test coverage detected