Cotal TypeScript packages
    Preparing search index...

    Variable opencodeConnectorConst

    opencodeConnector: Connector = ...

    The OpenCode connector: launches a watchable opencode TUI bound to the agent's session, using OpenCode's client/server split (see launch.ts). The Cotal mesh bridge runs as an in-process plugin inside a headless opencode serve: it holds the MeshAgent, registers the cotal_* tools natively (from the shared specs, at parity with Claude Code), reports presence off the event bus, and owns ONE session it drives — injecting each incoming peer batch through the authenticated OpenCode server API on the same serve process the TUI attaches to. The shim then attaches a foreground TUI to that session, so a human watching sees the agent work and can type into it.

    Config rides in OPENCODE_CONFIG_CONTENT (inline JSON, the highest merge layer), so the operator's ~/.config/opencode is never written. permission:"allow" keeps a supervised agent from stalling on a tool approval the human may not be at the keyboard to grant, unless the launch asks first (askPermissions). Self-registers on import; the manager resolves it by type "opencode".