ReplBridgeHandle Interface
- Entity ID:
ent-20260420-replbridgehan1 - Type:
concept - Scope:
shared - Status:
active - Aliases: ReplBridgeHandle, bridge REPL API
Description
The TypeScript interface the REPL uses to drive the bridge: write messages, send control requests (initialize/set_model/interrupt/set_permission_mode/set_max_thinking_tokens), and teardown. getReplBridgeHandle() returns null when the bridge is disabled, enabling unguarded static imports elsewhere in the codebase.
Key claims
- Bridge stub provides safe fallbacks when feature is off
- Bridge control_request has five defined sub-types
Relations
- /bridge-kick Command --[uses]--> ReplBridgeHandle Interface
- Bridge Stub (src/bridge/stub.ts) --[implements]--> ReplBridgeHandle Interface