fix: Phase 1 - security & stability patches
- AuthMiddleware now requires auth on /v1/* routes (returns 401) - WebSocket origin check configurable via WSAllowedOrigin - Removed debug fmt.Printf leaks (config, ollama, server) - Registry access protected by sync.RWMutex (race condition fix) - Session cleanup goroutine runs every 15 min - RevokeSession returns error instead of silent no-op
This commit is contained in:
@@ -0,0 +1,81 @@
|
||||
{
|
||||
"version": 1,
|
||||
"files": {
|
||||
"../../../../.npm-packages/lib/node_modules/pi-lens/clients/lsp/index.ts": {
|
||||
"latest": {
|
||||
"commit": "da074f5",
|
||||
"timestamp": "2026-04-26T03:45:14.025Z",
|
||||
"mi": 12.6,
|
||||
"cognitive": 335,
|
||||
"nesting": 6,
|
||||
"lines": 910,
|
||||
"maxCyclomatic": 36,
|
||||
"entropy": 6.97
|
||||
},
|
||||
"history": [
|
||||
{
|
||||
"commit": "da074f5",
|
||||
"timestamp": "2026-04-26T03:45:14.025Z",
|
||||
"mi": 12.6,
|
||||
"cognitive": 335,
|
||||
"nesting": 6,
|
||||
"lines": 910,
|
||||
"maxCyclomatic": 36,
|
||||
"entropy": 6.97
|
||||
}
|
||||
],
|
||||
"trend": "stable"
|
||||
},
|
||||
"../../../../.npm-packages/lib/node_modules/pi-lens/clients/lsp/config.ts": {
|
||||
"latest": {
|
||||
"commit": "da074f5",
|
||||
"timestamp": "2026-04-26T03:45:32.901Z",
|
||||
"mi": 37.7,
|
||||
"cognitive": 49,
|
||||
"nesting": 6,
|
||||
"lines": 173,
|
||||
"maxCyclomatic": 8,
|
||||
"entropy": 6.39
|
||||
},
|
||||
"history": [
|
||||
{
|
||||
"commit": "da074f5",
|
||||
"timestamp": "2026-04-26T03:45:32.901Z",
|
||||
"mi": 37.7,
|
||||
"cognitive": 49,
|
||||
"nesting": 6,
|
||||
"lines": 173,
|
||||
"maxCyclomatic": 8,
|
||||
"entropy": 6.39
|
||||
}
|
||||
],
|
||||
"trend": "stable"
|
||||
},
|
||||
"../../../../.npm-packages/lib/node_modules/pi-lens/clients/lsp/server.ts": {
|
||||
"latest": {
|
||||
"commit": "da074f5",
|
||||
"timestamp": "2026-04-26T03:45:38.756Z",
|
||||
"mi": 3.9,
|
||||
"cognitive": 322,
|
||||
"nesting": 7,
|
||||
"lines": 1506,
|
||||
"maxCyclomatic": 28,
|
||||
"entropy": 7.47
|
||||
},
|
||||
"history": [
|
||||
{
|
||||
"commit": "da074f5",
|
||||
"timestamp": "2026-04-26T03:45:38.756Z",
|
||||
"mi": 3.9,
|
||||
"cognitive": 322,
|
||||
"nesting": 7,
|
||||
"lines": 1506,
|
||||
"maxCyclomatic": 28,
|
||||
"entropy": 7.47
|
||||
}
|
||||
],
|
||||
"trend": "stable"
|
||||
}
|
||||
},
|
||||
"capturedAt": "2026-04-26T03:45:43.756Z"
|
||||
}
|
||||
Reference in New Issue
Block a user