@opencode-channel/core
v0.2.1
Published
Shared runtime, bridge, and adapter contracts for opencode channel integrations.
Downloads
85
Readme
@opencode-channel/core
Shared runtime, bridge, storage, and type contracts for opencode channel adapters.
Install
npm install @opencode-channel/coreWhat it provides
ChannelAdaptercontracts for normalizing inbound platform events and sending outbound messages.ChannelRuntimefor binding channel threads to opencode sessions.MemorySessionStoreandJsonFileSessionStoreimplementations.OpencodeHttpBridgefor the REST/SSE surface exposed byopencode serve.- Unified config loading, environment merging, and secret redaction helpers.
Usage
import { ChannelRuntime, MemorySessionStore, OpencodeHttpBridge } from "@opencode-channel/core";Most users should install a concrete adapter package instead:
@opencode-channel/telegram@opencode-channel/discord@opencode-channel/feishu
License
MIT
