Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Release v0.7.1 — consolidates 50+ commits from 20+ feature and fix PRs merged into
devsince v0.6.8. This release adds provider groups with cost multipliers, a public status page, IP geolocation and audit logging, K8s deployment manifests with health probes, 5h rate-limit reset modes, and numerous proxy/UX fixes.Major Features
Provider Groups & Cost Breakdown
provider_groupstable with name, cost multiplier, and descriptionPublic Status Page
/[locale]/statuspage with Redis-projected uptime data/[locale]/settings/status-pagefor model selection and configIP Recording, Audit Logs & IP Geolocation
audit_logtable tracking all admin operations (provider/key/user/config changes)K8s Deployment & Health Probes
/api/health/live,/api/health/ready) with DB/Redis/Proxy dependency checksscripts/deploy-k8s.sh) and management CLI (scripts/cch)5-Hour Rate Limit Reset Modes
limit_5h_reset_modefield on keys, providers, and users ("fixed"or"rolling")Leaderboard Enhancements
Session Message Detail
Bug Fixes
Database Migrations (7 files)
message_requestfor provider+created_ataudit_logandprovider_groupstables; addclient_ip,cost_breakdown,group_cost_multipliercolumns; updatefn_upsert_usage_ledgertriggerprovider_groupsNOT NULL constraints on timestampspublic_status_window_hoursandpublic_status_aggregation_interval_minutestosystem_settingslimit_5h_reset_modetokeys,providers,usersprovider_groups.descriptionfromvarchar(500)totextlimit_5h_cost_reset_attousersStats
0.6.8→0.7.0Test plan
bun run typecheckpassesbun run lintpassesbun run test— all unit tests pass/statusand verify public status page renders with data/api/health/live,/api/health/ready)Description enhanced by Claude AI
Greptile Summary
This is a large release PR consolidating 50+ commits into v0.7.1. Major additions include: provider groups with cost multipliers, a public status page backed by Redis projections, IP extraction and geolocation with audit logging, K8s deployment manifests, and a configurable 5h rate-limit reset mode (fixed/rolling). Seven sequential DB migrations bring schema to state 0094. The implementation is generally well-structured — fixed-5h Redis accounting uses atomic Lua scripts, the IP geo client validates and sanitises before caching, and the audit pipeline is wrapped in a fire-and-forget guard that swallows all failures.
Confidence Score: 5/5
Safe to merge — no P0/P1 issues found; all remaining findings are style or minor behavioural edge-case observations.
Extensive review of the security-sensitive paths (IP extraction, audit redaction, public status API, auth guard) shows correct implementation. The fixed-5h window Lua script is atomic and correct. DB migrations are sequential and coherent. The two P2 comments do not affect correctness today.
src/lib/rate-limit/service.ts — fixed-5h window counter reset on mode switch is worth a comment in docs or code.
Important Files Changed
Prompt To Fix All With AI
Reviews (2): Last reviewed commit: "fix: support all model types in public s..." | Re-trigger Greptile