packages feed

baikai-claude-0.1.1.0: baikai-claude.cabal

cabal-version: 3.4
name:          baikai-claude
version:       0.1.1.0
synopsis:      Anthropic Claude providers for the baikai abstraction
description:
  Wraps the claude Haskell package as a Baikai Provider for both the Anthropic API and the
  claude -p CLI.

category:      AI
license:       BSD-3-Clause
license-file:  LICENSE
author:        Nadeem Bitar
maintainer:    nadeem@gmail.com
copyright:     (c) 2026 Nadeem Bitar
build-type:    Simple

common common-options
  ghc-options:
    -Wall -Wcompat -Widentities -Wincomplete-uni-patterns
    -Wincomplete-record-updates -Wredundant-constraints
    -fhide-source-paths -Wmissing-export-lists -Wpartial-fields
    -Wmissing-deriving-strategies

  default-language:   GHC2024
  default-extensions:
    DeriveAnyClass
    DuplicateRecordFields
    OverloadedLabels
    OverloadedStrings

library
  import:          common-options
  hs-source-dirs:  src
  exposed-modules:
    Baikai.Provider.Claude.Api
    Baikai.Provider.Claude.Cli
    Baikai.Provider.Claude.Interactive

  build-depends:
    , aeson
    , baikai             ^>=0.1.1
    , base               >=4.20   && <5
    , base64-bytestring
    , bytestring
    , claude
    , containers
    , cradle
    , generic-lens
    , http-client
    , http-client-tls
    , lens               ^>=5.3
    , servant-client
    , streamly           >=0.11   && <0.13
    , streamly-core      >=0.3    && <0.5
    , text               ^>=2.1
    , time
    , vector

test-suite baikai-claude-test
  import:         common-options
  type:           exitcode-stdio-1.0
  hs-source-dirs: test
  main-is:        Main.hs

  -- cradle (used by Baikai.Provider.Claude.Interactive) requires the threaded RTS.
  ghc-options:    -threaded -with-rtsopts=-N
  build-depends:
    , aeson
    , baikai         ^>=0.1.1
    , baikai-claude
    , base           >=4.20   && <5
    , bytestring
    , claude
    , generic-lens
    , lens           ^>=5.3
    , streamly-core  >=0.3    && <0.5
    , tasty
    , tasty-hunit
    , text           ^>=2.1
    , vector