feat(sessions): indexação multi-fonte Hermes + OpenCode com fix TypeScript

- Novos indexadores hermes-indexer.ts e opencode-indexer.ts para unificar
  sessões Claude, Hermes Agent e OpenCode num único sessions.db
- SessionMeta alargado: source (obrigatório), model, input/output_tokens,
  estimated_cost; project_path/jsonl_path agora nullable
- Fix TS: tipos explícitos, guard jsonl_path null, dependências instaladas

Security Audit (Regra #47):
- npm audit executado — 0 vulnerabilities após fix
- vite 7→8.0.16 (breaking upgrade, resolve esbuild CVE GHSA-gv7w-rqvm-qjhr)
- vitest 4.0.18→4.1.9 (resolve esbuild interno CVE GHSA-gv7w-rqvm-qjhr)
- shell-quote override ^1.8.4 via package.json#overrides (CVE GHSA-w7jw-789q-3m8p)
- react-router, joi, qs, form-data, ip-address, js-yaml resolvidos via npm audit fix

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-15 19:41:32 +01:00
parent 9f3d14dc51
commit f733998945
18 changed files with 1475 additions and 678 deletions
+6 -3
View File
@@ -41,6 +41,9 @@
"tailwind-merge": "^3.4.0",
"zod": "^4.3.6"
},
"overrides": {
"shell-quote": "^1.8.4"
},
"devDependencies": {
"@eslint/js": "^9.39.1",
"@tailwindcss/postcss": "^4.1.18",
@@ -56,7 +59,7 @@
"@types/ssh2": "^1.15.5",
"@types/supertest": "^7.2.0",
"@vitejs/plugin-react": "^5.1.1",
"@vitest/ui": "^4.0.18",
"@vitest/ui": "^4.1.9",
"autoprefixer": "^10.4.24",
"concurrently": "^9.1.2",
"eslint": "^9.39.1",
@@ -70,7 +73,7 @@
"tsx": "^4.19.2",
"typescript": "~5.9.3",
"typescript-eslint": "^8.46.4",
"vite": "^7.2.4",
"vitest": "^4.0.18"
"vite": "^8.0.16",
"vitest": "^4.1.9"
}
}