@nxuss/lemma 1.0.0 → 1.0.1

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 (39) hide show
  1. package/README.md +18 -2
  2. package/dist/cjs/autopilot/AutopilotWatcher.d.ts +3 -2
  3. package/dist/cjs/autopilot/AutopilotWatcher.d.ts.map +1 -1
  4. package/dist/cjs/autopilot/AutopilotWatcher.js +48 -54
  5. package/dist/cjs/autopilot/AutopilotWatcher.js.map +1 -1
  6. package/dist/cjs/autopilot/Notifier.d.ts +5 -0
  7. package/dist/cjs/autopilot/Notifier.d.ts.map +1 -0
  8. package/dist/cjs/autopilot/Notifier.js +59 -0
  9. package/dist/cjs/autopilot/Notifier.js.map +1 -0
  10. package/dist/cjs/autopilot/PatchStore.d.ts +26 -0
  11. package/dist/cjs/autopilot/PatchStore.d.ts.map +1 -0
  12. package/dist/cjs/autopilot/PatchStore.js +88 -0
  13. package/dist/cjs/autopilot/PatchStore.js.map +1 -0
  14. package/dist/cjs/cli/lemma-proxy.d.ts.map +1 -1
  15. package/dist/cjs/cli/lemma-proxy.js +121 -0
  16. package/dist/cjs/cli/lemma-proxy.js.map +1 -1
  17. package/dist/cjs/mcp/tools.d.ts.map +1 -1
  18. package/dist/cjs/mcp/tools.js +11 -6
  19. package/dist/cjs/mcp/tools.js.map +1 -1
  20. package/dist/esm/autopilot/AutopilotWatcher.d.ts +3 -2
  21. package/dist/esm/autopilot/AutopilotWatcher.d.ts.map +1 -1
  22. package/dist/esm/autopilot/AutopilotWatcher.js +48 -54
  23. package/dist/esm/autopilot/AutopilotWatcher.js.map +1 -1
  24. package/dist/esm/autopilot/Notifier.d.ts +5 -0
  25. package/dist/esm/autopilot/Notifier.d.ts.map +1 -0
  26. package/dist/esm/autopilot/Notifier.js +51 -0
  27. package/dist/esm/autopilot/Notifier.js.map +1 -0
  28. package/dist/esm/autopilot/PatchStore.d.ts +26 -0
  29. package/dist/esm/autopilot/PatchStore.d.ts.map +1 -0
  30. package/dist/esm/autopilot/PatchStore.js +77 -0
  31. package/dist/esm/autopilot/PatchStore.js.map +1 -0
  32. package/dist/esm/cli/lemma-proxy.d.ts.map +1 -1
  33. package/dist/esm/cli/lemma-proxy.js +121 -0
  34. package/dist/esm/cli/lemma-proxy.js.map +1 -1
  35. package/dist/esm/mcp/tools.d.ts.map +1 -1
  36. package/dist/esm/mcp/tools.js +11 -6
  37. package/dist/esm/mcp/tools.js.map +1 -1
  38. package/mcp-server.js +6 -6
  39. package/package.json +3 -2
package/mcp-server.js CHANGED
@@ -172,18 +172,18 @@ process.stdin.on('data', async (chunk) => {
172
172
  capabilities: { tools: {} }
173
173
  }
174
174
  };
175
- console.error(JSON.stringify(resp));
175
+ console.log(JSON.stringify(resp));
176
176
  } else if (msg.method === 'tools/list') {
177
177
  const resp = {
178
178
  jsonrpc: '2.0',
179
179
  id: msg.id,
180
180
  result: { tools: server.tools }
181
181
  };
182
- console.error(JSON.stringify(resp));
182
+ console.log(JSON.stringify(resp));
183
183
  } else if (msg.method === 'tools/call') {
184
184
  const handler = server.toolHandlers[msg.params.name];
185
185
  if (!handler) {
186
- console.error(JSON.stringify({
186
+ console.log(JSON.stringify({
187
187
  jsonrpc: '2.0',
188
188
  id: msg.id,
189
189
  error: { code: -32601, message: `Tool not found: ${msg.params.name}` }
@@ -192,9 +192,9 @@ process.stdin.on('data', async (chunk) => {
192
192
  }
193
193
  try {
194
194
  const result = await handler(msg.params.arguments || {});
195
- console.error(JSON.stringify({ jsonrpc: '2.0', id: msg.id, result }));
195
+ console.log(JSON.stringify({ jsonrpc: '2.0', id: msg.id, result }));
196
196
  } catch (e) {
197
- console.error(JSON.stringify({
197
+ console.log(JSON.stringify({
198
198
  jsonrpc: '2.0',
199
199
  id: msg.id,
200
200
  error: { code: -32000, message: e.message }
@@ -202,7 +202,7 @@ process.stdin.on('data', async (chunk) => {
202
202
  }
203
203
  } else if (msg.method === 'notifications/initialized') {
204
204
  } else if (msg.id) {
205
- console.error(JSON.stringify({
205
+ console.log(JSON.stringify({
206
206
  jsonrpc: '2.0',
207
207
  id: msg.id,
208
208
  error: { code: -32601, message: `Method not found: ${msg.method}` }
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@nxuss/lemma",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
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",
7
7
  "types": "./dist/esm/index.d.ts",
8
8
  "bin": {
9
- "lemma": "./lemma-proxy.cjs"
9
+ "lemma": "./lemma-proxy.cjs",
10
+ "lemma-mcp-server": "./mcp-server.js"
10
11
  },
11
12
  "exports": {
12
13
  ".": {