remove :storage-ksqlite (conversation/message) and related tests; decouple schema from journal
ci / JVM build + tests (push) Successful in 6m6s
ci / JVM build + tests (push) Successful in 6m6s
This commit is contained in:
@@ -33,8 +33,10 @@ data class Reflection(
|
||||
interface ReflectionStore : AutoCloseable {
|
||||
suspend fun insert(reflection: Reflection)
|
||||
suspend fun get(id: String): Reflection?
|
||||
|
||||
/** Самые свежие рефлексии (по всему агенту). */
|
||||
suspend fun listRecent(limit: Int = 10): List<Reflection>
|
||||
|
||||
/** Рефлексии для конкретного диалога. */
|
||||
suspend fun listForConversation(conversationId: String, limit: Int = 10): List<Reflection>
|
||||
suspend fun deleteOlderThan(cutoff: Instant)
|
||||
@@ -55,5 +57,5 @@ sealed interface ReflectionEvent {
|
||||
* БД-схемах было видно сразу.
|
||||
*/
|
||||
object Ids {
|
||||
fun new(): String = "refl-${kotlin.uuid.Uuid.random()}"
|
||||
fun new() = "refl-${kotlin.uuid.Uuid.random()}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user