Package-level declarations
Types
Link copied to clipboard
interface AuditDao
Room DAO for ToolCallAuditEntity, backing RoomAuditSink's read/write/prune paths.
Link copied to clipboard
Link copied to clipboard
Room database backing RoomAuditSink. Single entity, version 1, no exported schema (the audit log is a private on-device cache, not a versioned data contract).
Link copied to clipboard
Link copied to clipboard
class RoomAuditSink(context: Context, retention: Duration = Duration.ofDays(7), scope: CoroutineScope = CoroutineScope(SupervisorJob() + Dispatchers.IO)) : AuditSink
Room-backed AuditSink persisting every HTTP tools/call to a private on-device database.
Link copied to clipboard
data class ToolCallAuditEntity(val id: Long = 0, val timestamp: Long, val toolName: String, val clientLabel: String?, val argumentsJson: String?, val success: Boolean, val errorMessage: String?, val durationMs: Long)
Room row for one audited tools/call. Mirrors ToolCallAudit plus an auto-incrementing primary key and an index on timestamp so retention pruning and recent-first browsing don't table-scan.