@nxuss/lemma 1.0.3 → 1.0.5
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/bin/init.js +6 -12
- package/package.json +3 -3
package/bin/init.js
CHANGED
|
@@ -121,6 +121,7 @@ const LEMMA_MCP_TOOLS = [
|
|
|
121
121
|
// Workspace I/O — replaces native Read/Write/LS/Grep
|
|
122
122
|
'mcp__lemma__read_workspace_file',
|
|
123
123
|
'mcp__lemma__write_workspace_file',
|
|
124
|
+
'mcp__lemma__create_workspace_file',
|
|
124
125
|
'mcp__lemma__list_workspace_dir',
|
|
125
126
|
'mcp__lemma__search_workspace',
|
|
126
127
|
'mcp__lemma__apply_workspace_patch',
|
|
@@ -188,6 +189,7 @@ Tienes conectado el servidor MCP \`lemma\`. **NUNCA** uses herramientas nativas
|
|
|
188
189
|
|---|---|
|
|
189
190
|
| \`Read\` / \`cat\` / leer archivo | \`mcp__lemma__read_workspace_file\` |
|
|
190
191
|
| \`Write\` / escribir archivo | \`mcp__lemma__write_workspace_file\` |
|
|
192
|
+
| Crear archivo nuevo | \`mcp__lemma__create_workspace_file\` |
|
|
191
193
|
| \`LS\` / listar directorio | \`mcp__lemma__list_workspace_dir\` |
|
|
192
194
|
| \`Grep\` / buscar en archivos | \`mcp__lemma__search_workspace\` |
|
|
193
195
|
| Buscar en memoria propia | \`mcp__lemma__search_memory\` |
|
|
@@ -276,7 +278,7 @@ function configureClaudeCode() {
|
|
|
276
278
|
|
|
277
279
|
// ─── Short tool names (for non-Claude tools that don't use mcp__ prefix) ───────
|
|
278
280
|
const LEMMA_TOOL_NAMES = [
|
|
279
|
-
'read_workspace_file', 'write_workspace_file', 'list_workspace_dir',
|
|
281
|
+
'read_workspace_file', 'write_workspace_file', 'create_workspace_file', 'list_workspace_dir',
|
|
280
282
|
'search_workspace', 'apply_workspace_patch', 'run_workspace_command',
|
|
281
283
|
'search_memory', 'store_memory', 'smarter_cache',
|
|
282
284
|
'get_project_onboarding', 'get_telepathic_hints', 'get_ast_hologram',
|
|
@@ -305,6 +307,7 @@ The MCP server \`lemma\` is connected. NEVER use native tools when a Lemma equiv
|
|
|
305
307
|
|---|---|
|
|
306
308
|
| Read / cat / open file | \`read_workspace_file\` |
|
|
307
309
|
| Write / save file | \`write_workspace_file\` |
|
|
310
|
+
| Create new file | \`create_workspace_file\` |
|
|
308
311
|
| List / ls directory | \`list_workspace_dir\` |
|
|
309
312
|
| Search / grep in files | \`search_workspace\` |
|
|
310
313
|
| Search your own memory | \`search_memory\` |
|
|
@@ -413,7 +416,7 @@ function configureKiro() {
|
|
|
413
416
|
return true;
|
|
414
417
|
}
|
|
415
418
|
|
|
416
|
-
// OpenCode:
|
|
419
|
+
// OpenCode: register MCP server in opencode.json
|
|
417
420
|
function configureOpenCode() {
|
|
418
421
|
const cwd = process.cwd();
|
|
419
422
|
const opencodePath = path.join(cwd, 'opencode.json');
|
|
@@ -434,15 +437,6 @@ function configureOpenCode() {
|
|
|
434
437
|
};
|
|
435
438
|
}
|
|
436
439
|
|
|
437
|
-
// Add permissions block (opencode format)
|
|
438
|
-
if (!config.permissions) config.permissions = {};
|
|
439
|
-
if (!config.permissions.allow) config.permissions.allow = [];
|
|
440
|
-
const existingAllow = new Set(config.permissions.allow);
|
|
441
|
-
for (const t of LEMMA_TOOL_NAMES) {
|
|
442
|
-
existingAllow.add(`lemma:${t}`);
|
|
443
|
-
}
|
|
444
|
-
config.permissions.allow = Array.from(existingAllow);
|
|
445
|
-
|
|
446
440
|
// Add AGENTS.md instructions path if supported
|
|
447
441
|
if (!config.instructions) config.instructions = [];
|
|
448
442
|
if (!config.instructions.includes('AGENTS.md')) {
|
|
@@ -609,7 +603,7 @@ async function main() {
|
|
|
609
603
|
ok('Kiro configured (.kiro/steering/lemma.md + autoApprove in .mcp.json)');
|
|
610
604
|
|
|
611
605
|
configureOpenCode();
|
|
612
|
-
ok('OpenCode configured (opencode.json
|
|
606
|
+
ok('OpenCode configured (opencode.json MCP + instructions)');
|
|
613
607
|
|
|
614
608
|
const hasContinue = detectTool('Continue.dev', () => configureContinueDotDev());
|
|
615
609
|
if (hasContinue) ok('Continue.dev configured');
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nxuss/lemma",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
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": "
|
|
10
|
-
"lemma-mcp-server": "
|
|
9
|
+
"lemma": "lemma-proxy.cjs",
|
|
10
|
+
"lemma-mcp-server": "mcp-server.js"
|
|
11
11
|
},
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|