Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pm-stack/aggregator/src/analytics-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,10 @@ function computeActivity(db: Database, now: number): ActivityCounts {
const byName = new Map(named.map((r) => [r.name as string, r.c]));
const skillRows = db
.query(
`SELECT json_extract(j.value, '$.state.input.name') AS name, COUNT(*) AS c
// Skill name rides at state.input.id on live parts (verified
// 2026-11-13: {"input":{"id":"diagnosing-bugs"}}); input.name
// kept as a fallback for other part generations.
`SELECT COALESCE(json_extract(j.value, '$.state.input.id'), json_extract(j.value, '$.state.input.name')) AS name, COUNT(*) AS c
FROM session_message sm, json_each(sm.data, '$.content') j
WHERE sm.type = 'assistant' AND sm.time_created >= ?
AND json_extract(j.value, '$.type') = 'tool'
Expand Down
Loading