mytheclipsebotreview
|
2b6ec59286
|
refactor(ai): remove semantic embedding cache + Qdrant vector store
Hapus seluruh fitur embedding/Qdrant (tidak dipakai lagi):
- gateway: drop embeddingClient.ts, qdrantClient.ts, archiveEmbedder.ts
dan tes qdrantEnsure.test.ts; moderationOrchestrator kembali ke
exact-hash cache -> LLM (tanpa phase-2 semantic lookup); textCacheStore
kehilangan findSimilarTextModeration / parseQdrantVerdict /
isSemanticBandAccepted / upsertBareKeyToQdrant; cache-prune hanya
menyapu Postgres.
- backend: drop embed.ts + qdrant.ts, endpoint messages.semanticSearch
dan schema/type terkait; kolom embedding dilepas dari schema
text_analysis_cache.
- frontend: hapus toggle EXACT/SEMANTIC, hook useSemanticSearch,
API client + tipe SemanticSearchResult.
- config: buang AI_LLM_EMBEDDING_* dan QDRANT_* (env + .env.example).
- docs: ARCHITECTURE.md / AGENTS.md / README.md / diagram arsitektur
disesuaikan (LLM caller - vision, cache = exact-hash saja).
Verifikasi: tsc 0 (backend, gateway, frontend); bun test 135 pass +
37 pass, 0 fail; biome 0 error.
|
2026-09-25 01:38:51 +07:00 |
|
![git-migration[bot]](/avatar/cb683b5fc3e3596c718c9476e6caf31e?size=40) mytheclipsebotreviewandgit-migration[bot]
|
7be069d73f
|
chore: migrate monorepo toolchain pnpm+vitest → bun (bun test, bunfig preload, bun.lock)
- Gateway + backend + frontend: pnpm/vitest fully removed → bun 1.3.14
(bun install, bun test tests/, bunfig.toml [test] preload, bun.lock).
- vitest configs deleted; vitest→bun facade (jest/mock/spyOn/waitForCompat)
keeps the vitest-style assertions working under bun:test.
- flake.nix: bunInstall switch; pruned prod-pass now removes post-pnpm
dev-toolchain trees; frontend builds Next standalone via bun's next.
- CI: deploy.yml installs with bun + runs bun test tests/ per service.
- 190 tests green (146 gateway + 37 backend pass, 14 skip), 0 fail;
tsc + biome across all 3 services clean.
Co-authored-by: git-migration[bot] <noreply@gmw.local>
|
2026-09-24 23:50:30 +07:00 |
|