cntx-ui 3.0.6 → 3.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server.js +9 -8
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cntx-ui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.7",
|
|
5
5
|
"description": "Autonomous Repository Intelligence engine with web UI and MCP server. Unified semantic code understanding, local RAG, and agent working memory.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"repository-intelligence",
|
package/server.js
CHANGED
|
@@ -340,16 +340,19 @@ export class CntxServer {
|
|
|
340
340
|
// === Semantic Analysis (Legacy methods for compatibility) ===
|
|
341
341
|
|
|
342
342
|
async getSemanticAnalysis() {
|
|
343
|
+
// Return cached result if available
|
|
344
|
+
if (this.semanticCache) {
|
|
345
|
+
return this.semanticCache;
|
|
346
|
+
}
|
|
347
|
+
|
|
343
348
|
// 1. Try to load from SQLite first
|
|
344
349
|
try {
|
|
345
350
|
const dbChunks = this.databaseManager.db.prepare('SELECT * FROM semantic_chunks').all();
|
|
346
351
|
if (dbChunks.length > 0) {
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
};
|
|
352
|
-
}
|
|
352
|
+
this.semanticCache = {
|
|
353
|
+
chunks: dbChunks.map(row => this.databaseManager.mapChunkRow(row)),
|
|
354
|
+
summary: { totalChunks: dbChunks.length }
|
|
355
|
+
};
|
|
353
356
|
return this.semanticCache;
|
|
354
357
|
}
|
|
355
358
|
} catch (e) {
|
|
@@ -649,8 +652,6 @@ export async function initConfig(cwd = process.cwd()) {
|
|
|
649
652
|
}
|
|
650
653
|
|
|
651
654
|
console.log('Configuration initialized');
|
|
652
|
-
console.log('');
|
|
653
|
-
console.log('Run cntx-ui to start the server, then open http://localhost:3333');
|
|
654
655
|
}
|
|
655
656
|
|
|
656
657
|
export async function getStatus() {
|