packages feed

baikai-kit-0.1.0.2: baikai-kit.cabal

cabal-version: 3.4
name:          baikai-kit
version:       0.1.0.2
synopsis:      Shared kit installer for AI-agent skills and subagents
description:
  Shared implementation of kit listing, installation, update, uninstall,
  status, and discovery helpers for command-line tools that install local
  AI-agent skills and subagents.

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.Kit
    Baikai.Kit.Command
    Baikai.Kit.Config
    Baikai.Kit.Install
    Baikai.Kit.Manifest
    Baikai.Kit.Path
    Baikai.Kit.Repo
    Baikai.Kit.Session
    Baikai.Kit.Sidecar
    Baikai.Kit.Status

  build-depends:
    , aeson                 ^>=2.2
    , baikai                ^>=0.3.0
    , base                  >=4.20   && <5
    , binary                ^>=0.8
    , bytestring            ^>=0.12
    , crypton               ^>=1.0
    , directory             ^>=1.3
    , filepath              ^>=1.5
    , optparse-applicative  ^>=0.19
    , process               ^>=1.6
    , text                  ^>=2.1
    , time                  ^>=1.14

test-suite baikai-kit-test
  import:         common-options
  type:           exitcode-stdio-1.0
  hs-source-dirs: test
  main-is:        Main.hs
  ghc-options:    -threaded -with-rtsopts=-N
  build-depends:
    , aeson
    , baikai
    , baikai-kit
    , base
    , bytestring
    , directory
    , filepath
    , tasty
    , tasty-hunit
    , temporary
    , text