MCPcopy
hub / github.com/claude-code-best/claude-code / clearBridgePointer

Function clearBridgePointer

src/bridge/bridgePointer.ts:190–202  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

188 * shut down clean previously.
189 */
190export async function clearBridgePointer(dir: string): Promise<void> {
191 const path = getBridgePointerPath(dir)
192 try {
193 await unlink(path)
194 logForDebugging(`[bridge:pointer] cleared ${path}`)
195 } catch (err: unknown) {
196 if (!isENOENT(err)) {
197 logForDebugging(`[bridge:pointer] clear failed: ${err}`, {
198 level: 'warn',
199 })
200 }
201 }
202}
203
204function safeJsonParse(raw: string): unknown {
205 try {

Callers 4

readBridgePointerFunction · 0.85
initBridgeCoreFunction · 0.85
runBridgeLoopFunction · 0.85
bridgeMainFunction · 0.85

Calls 4

getBridgePointerPathFunction · 0.85
unlinkFunction · 0.85
isENOENTFunction · 0.85
logForDebuggingFunction · 0.50

Tested by

no test coverage detected