MCPcopy Create free account
hub / github.com/codeaashu/claude-code / validateBridgeId

Function validateBridgeId

src/bridge/bridgeApi.ts:48–53  ·  view source on GitHub ↗
(id: string, label: string)

Source from the content-addressed store, hash-verified

46 * contain slashes, dots, or other special characters.
47 */
48export function validateBridgeId(id: string, label: string): string {
49 if (!id || !SAFE_ID_PATTERN.test(id)) {
50 throw new Error(`Invalid ${label}: contains unsafe characters`)
51 }
52 return id
53}
54
55/** Fatal bridge errors that should not be retried (e.g. auth failures). */
56export class BridgeFatalError extends Error {

Callers 11

pollForWorkFunction · 0.85
acknowledgeWorkFunction · 0.85
stopWorkFunction · 0.85
deregisterEnvironmentFunction · 0.85
archiveSessionFunction · 0.85
reconnectSessionFunction · 0.85
heartbeatWorkFunction · 0.85
startWorkPollLoopFunction · 0.85
runBridgeLoopFunction · 0.85
bridgeMainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected