feat(server): cache getPullRequestStatus with TTL and in-flight dedup

Adds @isaacs/ttlcache to avoid repeated gh CLI calls for the same
working directory. Concurrent lookups for the same cwd share a single
in-flight promise. Cache expires after 30s by default.
This commit is contained in:
Mohamed Boudra
2026-03-29 16:42:39 +07:00
parent b1d663557b
commit efb8c8f229
4 changed files with 249 additions and 1 deletions
+1
View File
@@ -65,6 +65,7 @@
"@deepgram/sdk": "^3.4.0",
"@getpaseo/highlight": "0.1.37",
"@getpaseo/relay": "0.1.37",
"@isaacs/ttlcache": "^2.1.4",
"@modelcontextprotocol/sdk": "^1.20.1",
"@opencode-ai/sdk": "1.2.6",
"@sctg/sentencepiece-js": "^1.1.0",