mirror of
https://github.com/browseros-ai/BrowserOS.git
synced 2026-05-21 04:45:12 +00:00
* fix: biome lint issues * fix: code quality workflow * fix: all lint issues * chore: test lefthook pre-commit hook * chore: test lefthook with agent file * chore: revert test comment from lefthook verification * feat: setup tsgo for typechecking agent * fix: typecheck cli command * fix: early return to prevent errors
16 lines
426 B
TypeScript
16 lines
426 B
TypeScript
import { defineExtensionMessaging } from '@webext-core/messaging'
|
|
import type { McpTool } from '@/lib/mcp/client'
|
|
|
|
type ServerMessagesProtocol = {
|
|
checkHealth(): { healthy: boolean }
|
|
fetchMcpTools(): { tools: McpTool[]; error?: string }
|
|
}
|
|
|
|
/**
|
|
* @public
|
|
*/
|
|
const { sendMessage, onMessage } =
|
|
defineExtensionMessaging<ServerMessagesProtocol>()
|
|
|
|
export { onMessage as onServerMessage, sendMessage as sendServerMessage }
|