mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
feat: add session cleanup script with flexible filtering options
Add cleanup-sessions.ts script that enables deletion of sessions from the database with support for multiple filtering strategies: - Message count filtering (delete sessions with fewer than N messages) - Path pattern matching with glob support - Orphaned session detection (sessions whose path no longer exists) - Optional confirmation prompt with --force flag to skip Includes 'clean-session' npm script for convenient invocation.
This commit is contained in:
+2
-1
@@ -18,7 +18,8 @@
|
||||
"typecheck:cli": "cd cli && bun run typecheck",
|
||||
"typecheck:server": "cd server && bun run typecheck",
|
||||
"typecheck:web": "cd web && bun run typecheck",
|
||||
"test": "cd cli && bun run test"
|
||||
"test": "cd cli && bun run test",
|
||||
"clean-session": "bun run server/scripts/cleanup-sessions.ts"
|
||||
},
|
||||
"devDependencies": {
|
||||
"concurrently": "^9.2.1",
|
||||
|
||||
Reference in New Issue
Block a user