Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

609 B
Raw Blame
import type { MobileRichMarkdownEditorMessage } from '../mobile-rich-markdown-editor-contract'
import type { RichMarkdownEditorScope } from './document-scope'

/** Every message the document sends its host goes through here, and through the seam below it. */
export function post(scope: RichMarkdownEditorScope, message: MobileRichMarkdownEditorMessage) {
  scope.postToHost(message)
}

// Send ready last, after listeners and keyboard measurement: host may synchronously set content/adjust bar in response.
export function startHostBridge(scope: RichMarkdownEditorScope) {
  post(scope, { type: 'ready' })
}