aef5083801
ci / JVM build + tests (push) Failing after 1m9s
- Replaced usages of `:message-store-api` and `:working-memory-api` with `:journal-api`, `:outbox-api`, and `:context-api`. - Deprecated legacy `EventStore` and `MessageStore` interfaces, added `typealias` for backward compatibility. - Updated imports across all modules with references to `:journal-api` and `:outbox-api`. - Introduced `journalRoutes` and `outboxRoutes` in `:server` for audit log and live event stream endpoints. - Adjusted `Agent` to expose read-only `journal` and `outbox` stores for improved modularity and clarity. - Removed legacy Event and AgentEvent definitions from `:proto`, migrated to `:outbox-api`. - Storage-related modules have been updated to support the new APIs consistently.
:storage-inmemory — in-memory реализация :storage-core (KMP, jvm + native)
Что это
In-memory реализация MessageStore / WorkingMemoryStore / ConversationStore / ReflectionStore. Все структуры держит в
ConcurrentHashMap + MutableList, фолотится на RAM
(никаких файлов).
Решает: дешёвая тестовая среда без поднятия SQLite. Позволяет
прогонять ChatAgentTest за миллисекунды и держать сценарии
детерминированными.
Где используется
- В тестах
:standalone(AbstractITTest). - В Android-имплементации (in-memory + Android-database микс).
- В любых юнит-тестах на агенте.
Как подключить
commonMain.dependencies {
api("pw.binom.agentik:storage-inmemory:0.1.0")
api("pw.binom.agentik:storage-core:0.1.0")
}
val storage = InMemoryStorageSystem()
val messages: MessageStore = storage.messages
val working: WorkingMemoryStore = storage.working
Версии
gradle/libs.versions.toml → [versions] agentik-storage-inmemory.
Тесты
./gradlew :storage-inmemory:allTests
Покрывают (через общие contract-tests): round-trip, paged flow, concurrent appends, working-memory replay, очистку.
Чего здесь НЕТ
- Никакого persistence. Перезапуск процесса — данные пропали. Это нормально для тестов и Android in-memory.
Текущий статус
Используется продакшеном (в режиме тестов). Контракт-совместима
с :storage-sqlite 1:1 — переключение AGENTIK_STORAGE_BACKEND=memory
в :standalone.