toolmark-monorepo / @toolmark/core/bridge / BridgeOptions
Interface: BridgeOptions
Defined in: packages/core/src/bridge/bridge.ts:9
Options for bridge.
Properties
caller?
optionalcaller?:"inapp"|"mcp"
Defined in: packages/core/src/bridge/bridge.ts:24
The caller identity used for every registry access — the manifest on attach and on each revision, describe and call — so policy, exposure and confirmation follow that caller (default 'inapp'). 'mcp' is for the desktop MCP pairing (@toolmark/mcp/client): it never lists, describes or runs a tool the mcp caller may not use, and it confirms inline. Validated at runtime: anything else (notably 'human') throws.
maxMessageBytes?
optionalmaxMessageBytes?:number
Defined in: packages/core/src/bridge/bridge.ts:29
Largest accepted inbound message, in UTF-8 bytes of its JSON serialization (default 1048576). Larger messages are dropped with the error event invalid_message.
onChange?
optionalonChange?:"manifest"|"changed"
Defined in: packages/core/src/bridge/bridge.ts:16
What to send on each registry revision: a full summary manifest (default) or a bare changed message.
transport
transport:
BridgeTransport
Defined in: packages/core/src/bridge/bridge.ts:11
The channel to the agent.