Skip to content

Commit 23103e0

Browse files
api-request-log: increase retention to 30 days, add admin download panel (#1745)
* feat(api-request-log): re-enable logging, increase retention to 30 days, add admin download panel - Uncomment handleRequestLogging call in openrouter proxy route - Increase cleanup cron retention from 7 to 30 days - Add admin page with user ID and date range filters - Stream zip file with formatted request/response JSON files - Add archiver dependency for server-side zip streaming * fix(api-request-log): address review feedback - validate dates, use direct URL download - Validate date params before building queries to return 400 instead of 500 - Use window.location.href for download to preserve end-to-end streaming - Add void to archive.finalize() to satisfy lint - Run oxfmt formatting * Use await connection instead of force dynamic * Prettiyfy --------- Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com> Co-authored-by: Christiaan Arnoldus <christiaan@kilocode.ai> Co-authored-by: Christiaan Arnoldus <christiaan.arnoldus@outlook.com>
1 parent f0b191e commit 23103e0

File tree

6 files changed

+378
-15
lines changed

6 files changed

+378
-15
lines changed

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
"@trpc/client": "catalog:",
9494
"@trpc/server": "catalog:",
9595
"@trpc/tanstack-react-query": "catalog:",
96+
"@types/archiver": "^7.0.0",
9697
"@types/js-cookie": "^3.0.6",
9798
"@types/js-yaml": "^4.0.9",
9899
"@types/mdx": "^2.0.13",
@@ -103,6 +104,7 @@
103104
"@xterm/addon-web-links": "^0.12.0",
104105
"@xterm/xterm": "^6.0.0",
105106
"ai": "^6.0.116",
107+
"archiver": "^7.0.1",
106108
"chat": "^4.20.1",
107109
"class-variance-authority": "^0.7.1",
108110
"clsx": "^2.1.1",

0 commit comments

Comments
 (0)