Scaffold and Phase 0-1

This commit is contained in:
2026-05-09 22:18:00 -05:00
parent 604a756c80
commit b4ac3b9968
26 changed files with 3181 additions and 37 deletions
+26
View File
@@ -0,0 +1,26 @@
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "sqlite"
url = "file:../data/events.db"
}
// One row per tool invocation. Used for usage analytics, debugging, and
// rate-limit accounting. Phase 5 wires the writes; Phase 0 only ships the schema.
model EventLog {
id Int @id @default(autoincrement())
ts DateTime @default(now())
agent String
pluginName String
toolName String
inputHash String
durationMs Int
success Boolean
errorMsg String?
@@index([ts])
@@index([agent])
@@index([pluginName, toolName])
}