@nxuss/lemma 0.4.6 → 0.4.8

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.
Files changed (76) hide show
  1. package/README.md +21 -12
  2. package/dist/cjs/autopilot/AutopilotWatcher.d.ts +11 -0
  3. package/dist/cjs/autopilot/AutopilotWatcher.d.ts.map +1 -0
  4. package/dist/cjs/autopilot/AutopilotWatcher.js +119 -0
  5. package/dist/cjs/autopilot/AutopilotWatcher.js.map +1 -0
  6. package/dist/cjs/cli/lemma-proxy.d.ts +10 -0
  7. package/dist/cjs/cli/lemma-proxy.d.ts.map +1 -0
  8. package/dist/cjs/cli/lemma-proxy.js +1268 -0
  9. package/dist/cjs/cli/lemma-proxy.js.map +1 -0
  10. package/dist/cjs/cloud/CloudSyncClient.d.ts +10 -0
  11. package/dist/cjs/cloud/CloudSyncClient.d.ts.map +1 -0
  12. package/dist/cjs/cloud/CloudSyncClient.js +42 -0
  13. package/dist/cjs/cloud/CloudSyncClient.js.map +1 -0
  14. package/dist/cjs/mcp/index.d.ts +2 -0
  15. package/dist/cjs/mcp/index.d.ts.map +1 -0
  16. package/dist/cjs/mcp/index.js +260 -0
  17. package/dist/cjs/mcp/index.js.map +1 -0
  18. package/dist/cjs/observability/IdeContextSync.d.ts.map +1 -1
  19. package/dist/cjs/observability/IdeContextSync.js +7 -2
  20. package/dist/cjs/observability/IdeContextSync.js.map +1 -1
  21. package/dist/cjs/proxy/AgentMultiplexer.d.ts +9 -0
  22. package/dist/cjs/proxy/AgentMultiplexer.d.ts.map +1 -0
  23. package/dist/cjs/proxy/AgentMultiplexer.js +69 -0
  24. package/dist/cjs/proxy/AgentMultiplexer.js.map +1 -0
  25. package/dist/cjs/proxy/ComplexityRouter.d.ts +19 -0
  26. package/dist/cjs/proxy/ComplexityRouter.d.ts.map +1 -0
  27. package/dist/cjs/proxy/ComplexityRouter.js +79 -0
  28. package/dist/cjs/proxy/ComplexityRouter.js.map +1 -0
  29. package/dist/cjs/security/SemanticScrubber.d.ts +25 -0
  30. package/dist/cjs/security/SemanticScrubber.d.ts.map +1 -0
  31. package/dist/cjs/security/SemanticScrubber.js +99 -0
  32. package/dist/cjs/security/SemanticScrubber.js.map +1 -0
  33. package/dist/cjs/utils/ContextSqueezer.d.ts +44 -0
  34. package/dist/cjs/utils/ContextSqueezer.d.ts.map +1 -0
  35. package/dist/cjs/utils/ContextSqueezer.js +201 -0
  36. package/dist/cjs/utils/ContextSqueezer.js.map +1 -0
  37. package/dist/esm/autopilot/AutopilotWatcher.d.ts +11 -0
  38. package/dist/esm/autopilot/AutopilotWatcher.d.ts.map +1 -0
  39. package/dist/esm/autopilot/AutopilotWatcher.js +112 -0
  40. package/dist/esm/autopilot/AutopilotWatcher.js.map +1 -0
  41. package/dist/esm/cli/lemma-proxy.d.ts +10 -0
  42. package/dist/esm/cli/lemma-proxy.d.ts.map +1 -0
  43. package/dist/esm/cli/lemma-proxy.js +1262 -0
  44. package/dist/esm/cli/lemma-proxy.js.map +1 -0
  45. package/dist/esm/cloud/CloudSyncClient.d.ts +10 -0
  46. package/dist/esm/cloud/CloudSyncClient.d.ts.map +1 -0
  47. package/dist/esm/cloud/CloudSyncClient.js +35 -0
  48. package/dist/esm/cloud/CloudSyncClient.js.map +1 -0
  49. package/dist/esm/mcp/index.d.ts +2 -0
  50. package/dist/esm/mcp/index.d.ts.map +1 -0
  51. package/dist/esm/mcp/index.js +255 -0
  52. package/dist/esm/mcp/index.js.map +1 -0
  53. package/dist/esm/observability/IdeContextSync.d.ts.map +1 -1
  54. package/dist/esm/observability/IdeContextSync.js +7 -2
  55. package/dist/esm/observability/IdeContextSync.js.map +1 -1
  56. package/dist/esm/proxy/AgentMultiplexer.d.ts +9 -0
  57. package/dist/esm/proxy/AgentMultiplexer.d.ts.map +1 -0
  58. package/dist/esm/proxy/AgentMultiplexer.js +62 -0
  59. package/dist/esm/proxy/AgentMultiplexer.js.map +1 -0
  60. package/dist/esm/proxy/ComplexityRouter.d.ts +19 -0
  61. package/dist/esm/proxy/ComplexityRouter.d.ts.map +1 -0
  62. package/dist/esm/proxy/ComplexityRouter.js +75 -0
  63. package/dist/esm/proxy/ComplexityRouter.js.map +1 -0
  64. package/dist/esm/security/SemanticScrubber.d.ts +25 -0
  65. package/dist/esm/security/SemanticScrubber.d.ts.map +1 -0
  66. package/dist/esm/security/SemanticScrubber.js +92 -0
  67. package/dist/esm/security/SemanticScrubber.js.map +1 -0
  68. package/dist/esm/utils/ContextSqueezer.d.ts +44 -0
  69. package/dist/esm/utils/ContextSqueezer.d.ts.map +1 -0
  70. package/dist/esm/utils/ContextSqueezer.js +193 -0
  71. package/dist/esm/utils/ContextSqueezer.js.map +1 -0
  72. package/lemma-proxy.cjs +32 -732
  73. package/package.json +3 -2
  74. package/src/cloud/CloudSyncClient.js +0 -35
  75. package/src/proxy/ComplexityRouter.js +0 -37
  76. package/src/security/SemanticScrubber.js +0 -54
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Lemma v0.4.5
1
+ # Lemma v0.4.7
2
2
  > **The Intelligent AI Gateway — Privacy, Performance, and Precision for the Agentic Era.**
3
3
 
4
4
  Lemma is a high-performance orchestration layer that sits between your development environment and LLM providers. It transforms the way you build with AI by providing **Shared Semantic Memory**, **Autonomous Cost Optimization**, and **Privacy Guardrails**.
@@ -7,6 +7,12 @@ Lemma is a high-performance orchestration layer that sits between your developme
7
7
 
8
8
  ## ⚡ Killer Features
9
9
 
10
+ ### ✂️ Codebase Context Squeezer (AST Tree-Shaker)
11
+ **Unbelievable Prompt Compaction.** Stop wasting Claude Pro context limits and throttled Cursor speeds on repetitive codebase payloads. Lemma automatically tree-shakes outgoing prompts, recursively pruning heavy, irrelevant implementations while keeping structural declarations and symbols intact. Get ultra-fast answers under 1 second and enjoy 10x longer chats without ever hitting Claude's 5-hour usage caps.
12
+
13
+ ### 🛸 Local Cache-Augmented Response Synthesis (CARS)
14
+ **Zero-Cost Response Generation.** When you ask a query semantically similar to a previous question, Lemma avoids the cloud completely. Instead, it dynamically harnesses your local computational environment to adjust and synthesize the historical answer to fit your new requirements in less than a second. 0 Cloud Tokens, 0 Cloud API costs, and seamless offline fallback protection.
15
+
10
16
  ### 🛡️ Privacy Firewall (Semantic Scrubber)
11
17
  **Zero-Trust Prompts.** Stop leaking sensitive data. Lemma automatically detects API keys, PII, and credentials in your prompts, masking them with secure tokens before they reach the cloud. Responses are seamlessly reconstructed locally.
12
18
 
@@ -23,7 +29,7 @@ Lemma is a high-performance orchestration layer that sits between your developme
23
29
 
24
30
  ## 🚀 Smart CLI (Zero-Config)
25
31
 
26
- Lemma v0.4.5 introduces the **Smart CLI**, making it easier than ever to get started:
32
+ Lemma v0.4.7 introduces the **Smart CLI**, making it easier than ever to get started:
27
33
 
28
34
  ```bash
29
35
  # 1. Install
@@ -47,25 +53,28 @@ On startup, Lemma performs a **System Check** to detect dependencies like Ollama
47
53
  | :--- | :--- | :--- |
48
54
  | **Privacy Firewall** | ✅ Included | ✅ Advanced Masking |
49
55
  | **Complexity Router** | ✅ Included | ✅ Custom Routing Policies |
50
- | **Caching** | Exact Match | **Semantic Memory (ChromaDB)** |
56
+ | **Caching** | Exact Match | **Semantic Memory** |
51
57
  | **Hive Mind** | Local Only | **Cloud Sync (Team Memory)** |
52
58
  | **Telepathy** | Basic Sync | **Advanced State Injection** |
53
59
  | **Limits** | 300 requests/mo | **Unlimited Agentic Power** |
54
60
 
55
61
  ---
56
62
 
57
- ## 🛠️ Developer Integration
63
+ ## 🛠️ Integration: Power Up Your Favorite Tools
58
64
 
59
- ### Use as an Intelligent Proxy
60
- Simply swap your OpenAI/Anthropic base URL in your favorite tools (Cursor, Copilot, AutoGPT).
65
+ Lemma is compatible with **any** tool that allows you to configure a custom OpenAI Base URL. This means you can add Lemma's intelligence to your existing workflow in seconds.
61
66
 
62
- * **Base URL:** `http://localhost:8081/v1`
63
- * **Dashboard:** `http://localhost:8081/dashboard/`
67
+ ### 💬 Use it with AI Chats & IDEs
68
+ You don't need to change your habits. Just point your tool's "Base URL" to Lemma:
69
+ * **Cursor:** Go to `Settings > Models > OpenAI API > Override Base URL` and set it to `http://localhost:8081/v1`.
70
+ * **VS Code (Continue):** Update your `config.json` to use `http://localhost:8081/v1` as the `apiBase`.
71
+ * **AutoGPT / BabyAGI:** Set the `OPENAI_API_BASE` environment variable.
72
+ * **Custom Apps:** Replace `https://api.openai.com/v1` with `http://localhost:8081/v1` in your SDK initialization.
64
73
 
65
- ```bash
66
- # Point your configuration to:
67
- http://localhost:8081/v1
68
- ```
74
+ ### ⚡ Why use Lemma for Chat?
75
+ 1. **Privacy:** Your IDE won't leak your secrets to the cloud.
76
+ 2. **Context:** Lemma syncs your runtime crashes directly to your chat window.
77
+ 3. **Speed:** Instant responses for similar questions via Semantic Cache.
69
78
 
70
79
  ---
71
80
 
@@ -0,0 +1,11 @@
1
+ export declare class AutopilotWatcher {
2
+ private isRunning;
3
+ private watchDir;
4
+ private debounceTimer;
5
+ private activeBuildProcess;
6
+ constructor(watchDir?: string);
7
+ start(): void;
8
+ private triggerBuildAndHeal;
9
+ stop(): void;
10
+ }
11
+ //# sourceMappingURL=AutopilotWatcher.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutopilotWatcher.d.ts","sourceRoot":"","sources":["../../../src/autopilot/AutopilotWatcher.ts"],"names":[],"mappings":"AAKA,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,SAAS,CAAkB;IACnC,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,aAAa,CAA+B;IACpD,OAAO,CAAC,kBAAkB,CAAa;gBAE3B,QAAQ,GAAE,MAAc;IAIpC,KAAK;IAuBL,OAAO,CAAC,mBAAmB;IA+E3B,IAAI;CAML"}
@@ -0,0 +1,119 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.AutopilotWatcher = void 0;
7
+ const fs_1 = __importDefault(require("fs"));
8
+ const path_1 = __importDefault(require("path"));
9
+ const child_process_1 = require("child_process");
10
+ const lemma_proxy_1 = require("../cli/lemma-proxy");
11
+ class AutopilotWatcher {
12
+ constructor(watchDir = 'src') {
13
+ this.isRunning = false;
14
+ this.debounceTimer = null;
15
+ this.activeBuildProcess = null;
16
+ this.watchDir = path_1.default.resolve(process.cwd(), watchDir);
17
+ }
18
+ start() {
19
+ if (this.isRunning)
20
+ return;
21
+ this.isRunning = true;
22
+ console.log(`\n🛸 \x1b[35m[Autopilot]\x1b[0m Starting active background watcher on: ${this.watchDir}`);
23
+ console.log(`💡 \x1b[36mAutopilot is actively monitoring your saves. Make code errors and watch them heal!\x1b[0m\n`);
24
+ if (!fs_1.default.existsSync(this.watchDir)) {
25
+ console.log(`⚠️ Watch directory ${this.watchDir} does not exist. Creating it.`);
26
+ fs_1.default.mkdirSync(this.watchDir, { recursive: true });
27
+ }
28
+ // Watch files recursively natively (mac supports recursive natively)
29
+ fs_1.default.watch(this.watchDir, { recursive: true }, (eventType, filename) => {
30
+ if (!filename || filename.endsWith('.fixed') || filename.includes('.lemma'))
31
+ return;
32
+ // Debounce trigger
33
+ if (this.debounceTimer)
34
+ clearTimeout(this.debounceTimer);
35
+ this.debounceTimer = setTimeout(() => {
36
+ this.triggerBuildAndHeal(filename);
37
+ }, 1500);
38
+ });
39
+ }
40
+ triggerBuildAndHeal(modifiedFile) {
41
+ if (this.activeBuildProcess) {
42
+ this.activeBuildProcess.kill();
43
+ this.activeBuildProcess = null;
44
+ }
45
+ console.log(`\n📝 \x1b[33m[Autopilot]\x1b[0m Change detected in ${modifiedFile}. Running background compilation...`);
46
+ // Determine the project root as the parent of watchDir
47
+ const projectRoot = path_1.default.dirname(this.watchDir);
48
+ // Determine the build/validation command
49
+ let cmd = 'npx tsc --noEmit';
50
+ if (!fs_1.default.existsSync(path_1.default.join(projectRoot, 'tsconfig.json'))) {
51
+ cmd = 'npm run build';
52
+ }
53
+ this.activeBuildProcess = (0, child_process_1.exec)(cmd, { cwd: projectRoot }, async (error, stdout, stderr) => {
54
+ this.activeBuildProcess = null;
55
+ if (!error) {
56
+ console.log(`✨ \x1b[32m[Autopilot] Build compiled perfectly!\x1b[0m`);
57
+ return;
58
+ }
59
+ const output = stdout + '\n' + stderr;
60
+ console.log(`❌ \x1b[31m[Autopilot] Compilation error detected!\x1b[0m`);
61
+ // Parse TypeScript compiler output
62
+ // Standard format: src/utils/ContextSqueezer.ts:130:50 - error TS7006: Parameter 'match' implicitly has an 'any' type.
63
+ const tsErrorRegex = /([^\s\n]+\.ts)[\s\(:]+(\d+)[\s,:]+(\d+)?[\s\)]*[\s-:]+error\s+([^\n]+)/;
64
+ const match = output.match(tsErrorRegex);
65
+ if (match) {
66
+ const file = match[1];
67
+ const line = match[2];
68
+ const errorMsg = match[4];
69
+ console.log(`🩺 \x1b[35m[Autopilot] Parser details:\x1b[0m File: ${file}, Line: ${line}, Error: ${errorMsg}`);
70
+ // Write the crash state to both projectRoot/.lemma/live-context.md and process.cwd()/.lemma/live-context.md
71
+ const contextDirs = [
72
+ path_1.default.join(projectRoot, '.lemma'),
73
+ path_1.default.join(process.cwd(), '.lemma')
74
+ ];
75
+ for (const dir of contextDirs) {
76
+ if (!fs_1.default.existsSync(dir)) {
77
+ fs_1.default.mkdirSync(dir, { recursive: true });
78
+ }
79
+ const absoluteFile = path_1.default.resolve(projectRoot, file);
80
+ const liveContextContent = `# Autopilot Telemetry Crash Report
81
+ Timestamp: ${new Date().toISOString()}
82
+ Message: ${errorMsg} in ${absoluteFile}:${line}
83
+ Stack:
84
+ at ${absoluteFile}:${line}:0
85
+ `;
86
+ fs_1.default.writeFileSync(path_1.default.join(dir, 'live-context.md'), liveContextContent, 'utf8');
87
+ }
88
+ // Execute performAutoHeal in apply mode!
89
+ console.log(`⚡ \x1b[35m[Autopilot] Calling auto-healing agent...\x1b[0m`);
90
+ try {
91
+ const res = await (0, lemma_proxy_1.performAutoHeal)(true);
92
+ if (res.success) {
93
+ console.log(`✔ \x1b[32m[Autopilot] Auto-healed: ${res.message}\x1b[0m\n`);
94
+ }
95
+ else {
96
+ console.log(`⚠️ \x1b[33m[Autopilot] Healing agent failed: ${res.message}\x1b[0m\n`);
97
+ }
98
+ }
99
+ catch (err) {
100
+ console.log(`⚠️ \x1b[33m[Autopilot] Healing agent error: ${err.message}\x1b[0m\n`);
101
+ }
102
+ }
103
+ else {
104
+ console.log(`⚠️ \x1b[33m[Autopilot] Could not parse compile error layout automatically. Output:\x1b[0m`);
105
+ console.log(output.trim().substring(0, 300) + '...');
106
+ }
107
+ });
108
+ }
109
+ stop() {
110
+ this.isRunning = false;
111
+ if (this.debounceTimer)
112
+ clearTimeout(this.debounceTimer);
113
+ if (this.activeBuildProcess)
114
+ this.activeBuildProcess.kill();
115
+ console.log(`🛸 \x1b[35m[Autopilot]\x1b[0m Background watcher stopped.`);
116
+ }
117
+ }
118
+ exports.AutopilotWatcher = AutopilotWatcher;
119
+ //# sourceMappingURL=AutopilotWatcher.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutopilotWatcher.js","sourceRoot":"","sources":["../../../src/autopilot/AutopilotWatcher.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AACpB,gDAAwB;AACxB,iDAAqC;AACrC,oDAAqD;AAErD,MAAa,gBAAgB;IAM3B,YAAY,WAAmB,KAAK;QAL5B,cAAS,GAAY,KAAK,CAAC;QAE3B,kBAAa,GAA0B,IAAI,CAAC;QAC5C,uBAAkB,GAAQ,IAAI,CAAC;QAGrC,IAAI,CAAC,QAAQ,GAAG,cAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,QAAQ,CAAC,CAAC;IACxD,CAAC;IAED,KAAK;QACH,IAAI,IAAI,CAAC,SAAS;YAAE,OAAO;QAC3B,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,OAAO,CAAC,GAAG,CAAC,0EAA0E,IAAI,C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CAAC,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC;YACvD,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAED,IAAI;QACF,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QACvB,IAAI,IAAI,CAAC,aAAa;YAAE,YAAY,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACzD,IAAI,IAAI,CAAC,kBAAkB;YAAE,IAAI,CAAC,kBAAkB,CAAC,IAAI,EAAE,CAAC;QAC5D,OAAO,CAAC,GAAG,CAAC,2DAA2D,CAAC,CAAC;IAC3E,CAAC;CACF;AAtHD,4CAsHC"}
@@ -0,0 +1,10 @@
1
+ #!/usr/bin/env node
2
+ export declare function performAutoHeal(apply: boolean): Promise<{
3
+ success: boolean;
4
+ message: string;
5
+ patch?: string;
6
+ filePath?: string;
7
+ fileBefore?: string;
8
+ fileAfter?: string;
9
+ }>;
10
+ //# sourceMappingURL=lemma-proxy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lemma-proxy.d.ts","sourceRoot":"","sources":["../../../src/cli/lemma-proxy.ts"],"names":[],"mappings":";AAumCA,wBAAsB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CA6KhL"}