@nxuss/lemma 1.0.1 → 1.0.2
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/lemma-proxy.cjs +13 -3
- package/package.json +1 -1
package/lemma-proxy.cjs
CHANGED
|
@@ -42,9 +42,19 @@ if (cmd === 'init') {
|
|
|
42
42
|
if (fs.existsSync(cliPath)) require(cliPath);
|
|
43
43
|
else { console.error('stats not found. Run npm run build first.'); process.exit(1); }
|
|
44
44
|
} else if (cmd === 'mcp') {
|
|
45
|
-
const
|
|
46
|
-
if (fs.existsSync(
|
|
47
|
-
|
|
45
|
+
const fullMcpPath = path.join(__dirname, 'dist', 'cjs', 'mcp', 'index.js');
|
|
46
|
+
if (fs.existsSync(fullMcpPath)) {
|
|
47
|
+
require(fullMcpPath);
|
|
48
|
+
} else {
|
|
49
|
+
const legacyPath = path.join(__dirname, 'mcp-server.js');
|
|
50
|
+
if (fs.existsSync(legacyPath)) {
|
|
51
|
+
console.error('[lemma] ⚠️ dist/cjs/mcp/index.js not found. Falling back to mcp-server.js (limited tools). Run "npm run build" to fix.');
|
|
52
|
+
require(legacyPath);
|
|
53
|
+
} else {
|
|
54
|
+
console.error('mcp-server not found. Run npm run build first.');
|
|
55
|
+
process.exit(1);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
48
58
|
} else if (cmd === 'proxy') {
|
|
49
59
|
const proxyPath = path.join(__dirname, 'cache-proxy.js');
|
|
50
60
|
if (fs.existsSync(proxyPath)) require(proxyPath);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nxuss/lemma",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Intelligent AI Gateway for IDEs & Agents — Semantic cache, Privacy Firewall, and Autonomous Cost-Optimization.",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|