packages feed

shikumi-cache-postgres 0.1.3.1 → 0.1.3.2

raw patch · 3 files changed

+20/−4 lines, 3 filesdep +directorydep +unixdep ~ephemeral-pgdep ~shikumi-cache-postgresPVP ok

version bump matches the API change (PVP)

Dependencies added: directory, unix

Dependency ranges changed: ephemeral-pg, shikumi-cache-postgres

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -2,6 +2,13 @@  ## Unreleased +## 0.1.3.2 — 2026-10-06++### Fixed++- Use a stable short effective-uid temporary root for PostgreSQL backend tests, retaining default stale-instance sweeping across shell sessions; require ephemeral-pg >=0.3.1 && <0.4.++ ## 0.1.3.1 — 2026-10-05  - Tighten the `hasql` bound to `>=1.10 && <1.11`, matching the rest of the cohort (`mori://shinzui/keiro`, `mori://shinzui/kiroku`, `mori://shinzui/ephemeral-pg`). The old `>=1.9` floor was wrong: the backend already uses the 1.10-only API (`preparable`/`unpreparable`, `Hasql.Connection.Settings`). The test suite now bounds `mori://shinzui/ephemeral-pg/packages/ephemeral-pg` at `^>=0.3.1.0`. Bounds only; no source changed.
shikumi-cache-postgres.cabal view
@@ -1,6 +1,6 @@ cabal-version: 3.4 name: shikumi-cache-postgres-version: 0.1.3.1+version: 0.1.3.2 synopsis: Postgres-backed shikumi cache (EP-6) category: AI description:@@ -63,15 +63,17 @@   build-depends:     baikai >=0.7.1.0 && <0.8,     base,+    directory,     effectful,-    ephemeral-pg ^>=0.3.1.0,+    ephemeral-pg >=0.3.1 && <0.4,     generic-lens,     lens,     shikumi ^>=0.4.0.0,     shikumi-cache ^>=0.2.0.1,-    shikumi-cache-postgres ^>=0.1.3.1,+    shikumi-cache-postgres ^>=0.1.3.2,     tasty,     tasty-hunit,     text,     time,+    unix,     vector,
test/Main.hs view
@@ -16,6 +16,7 @@ import Control.Lens ((&), (.~)) import Data.Generics.Labels () import Data.IORef (IORef, modifyIORef', newIORef, readIORef)+import Data.Monoid (Last (..)) import Data.Text qualified as T import Data.Time.Clock (UTCTime) import Data.Vector qualified as V@@ -28,9 +29,11 @@ import Shikumi.Effect.Time (runTime) import Shikumi.Error (ShikumiError) import Shikumi.LLM (LLM (..), complete)+import System.Directory (createDirectoryIfMissing) import System.Environment (lookupEnv) import System.Exit (exitFailure, exitSuccess) import System.IO (hPutStrLn, stderr)+import System.Posix.User (getEffectiveUserID) import Test.Tasty (TestTree, defaultMain, testGroup) import Test.Tasty.HUnit (testCase, (@?=)) @@ -61,7 +64,11 @@  main :: IO () main = do-  started <- Pg.start Pg.defaultConfig+  uid <- getEffectiveUserID+  let root = "/tmp/ephpg-shikumi-" <> show uid+  createDirectoryIfMissing True root+  let config = Pg.defaultConfig {Pg.temporaryRoot = Last (Just root)}+  started <- Pg.start config   case started of     Left err -> skip (T.unpack (Pg.renderStartError err))     Right db -> do