packages feed

opencode-0.1.0.1 / src / OpenCode.hs

{- |Module      : OpenCodeDescription : Haskell client library for OpenCode server APICopyright   : (c) 2026 Sridhar RatnakumarLicense     : MITMaintainer  : srid@srid.caStability   : experimentalThis library provides a type-safe Haskell client for the OpenCode server API.It uses servant-client for type-safe HTTP requests.==== Basic Usage@import OpenCodemain :: IO ()main = do  client <- mkClient "localhost" 4096  -- Check server health  health <- getHealth client  print health  -- Create a session and send a message  session <- createSession client Nothing (SessionCreateInput Nothing Nothing)  response <- sendMessage client session.id Nothing (MessageInput [textPartInput "Hello!"])  print response@-}module OpenCode (  module OpenCode.Types,  module OpenCode.Client,)whereimport OpenCode.Clientimport OpenCode.Types