@nxuss/lemma 0.7.6 → 0.7.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.
@@ -5,7 +5,7 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>lemma Dashboard - Agent Orchestration Hub</title>
8
- <script type="module" crossorigin src="/dashboard/assets/index-g8PDjjzD.js"></script>
8
+ <script type="module" crossorigin src="/dashboard/assets/index-CqS7YEGj.js"></script>
9
9
  <link rel="stylesheet" crossorigin href="/dashboard/assets/index-DtEKr0hI.css">
10
10
  </head>
11
11
  <body>
@@ -1 +1 @@
1
- {"version":3,"file":"lemma-proxy.d.ts","sourceRoot":"","sources":["../../../src/cli/lemma-proxy.ts"],"names":[],"mappings":";AA8RA,wBAAgB,+BAA+B,CAAC,OAAO,CAAC,EAAE;IAAE,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,IAAI,CA4DvF;AAmhED,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"}
1
+ {"version":3,"file":"lemma-proxy.d.ts","sourceRoot":"","sources":["../../../src/cli/lemma-proxy.ts"],"names":[],"mappings":";AA+YA,wBAAgB,+BAA+B,CAAC,OAAO,CAAC,EAAE;IAAE,SAAS,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,IAAI,CA4DvF;AAmhED,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"}
@@ -213,6 +213,127 @@ function autoConfigureAll(project, opts) {
213
213
  catch { }
214
214
  }
215
215
  }
216
+ // Register lemma MCP server in Windsurf config
217
+ const windsurfConfigDir = path_1.default.join(process.env.HOME || '~', '.codeium', 'windsurf');
218
+ const windsurfConfigFile = path_1.default.join(windsurfConfigDir, 'mcp_config.json');
219
+ if (fs_1.default.existsSync(windsurfConfigDir)) {
220
+ let windsurfConfig = { mcpServers: {} };
221
+ try {
222
+ if (fs_1.default.existsSync(windsurfConfigFile)) {
223
+ windsurfConfig = JSON.parse(fs_1.default.readFileSync(windsurfConfigFile, 'utf8'));
224
+ }
225
+ }
226
+ catch { }
227
+ if (!windsurfConfig.mcpServers)
228
+ windsurfConfig.mcpServers = {};
229
+ if (!windsurfConfig.mcpServers.lemma) {
230
+ windsurfConfig.mcpServers.lemma = {
231
+ command: 'lemma',
232
+ args: ['mcp'],
233
+ };
234
+ try {
235
+ fs_1.default.mkdirSync(windsurfConfigDir, { recursive: true });
236
+ fs_1.default.writeFileSync(windsurfConfigFile, JSON.stringify(windsurfConfig, null, 2));
237
+ console.log('✅ [Windsurf] Registered lemma MCP server');
238
+ }
239
+ catch { }
240
+ }
241
+ }
242
+ // Register lemma MCP server in Kiro config
243
+ const kiroDirs = [
244
+ path_1.default.join(process.env.HOME || '~', '.kiro', 'settings'),
245
+ path_1.default.join(process.cwd(), '.kiro', 'settings'),
246
+ ];
247
+ for (const kiroDir of kiroDirs) {
248
+ const kiroConfigFile = path_1.default.join(kiroDir, 'mcp.json');
249
+ if (fs_1.default.existsSync(kiroDir)) {
250
+ let kiroConfig = { mcpServers: {} };
251
+ try {
252
+ if (fs_1.default.existsSync(kiroConfigFile)) {
253
+ kiroConfig = JSON.parse(fs_1.default.readFileSync(kiroConfigFile, 'utf8'));
254
+ }
255
+ }
256
+ catch { }
257
+ if (!kiroConfig.mcpServers)
258
+ kiroConfig.mcpServers = {};
259
+ if (!kiroConfig.mcpServers.lemma) {
260
+ kiroConfig.mcpServers.lemma = {
261
+ command: 'lemma',
262
+ args: ['mcp'],
263
+ };
264
+ try {
265
+ fs_1.default.writeFileSync(kiroConfigFile, JSON.stringify(kiroConfig, null, 2));
266
+ console.log(`✅ [Kiro] Registered lemma MCP server (${kiroDir})`);
267
+ }
268
+ catch { }
269
+ }
270
+ }
271
+ }
272
+ // Register lemma MCP server in VS Code config (.vscode/mcp.json)
273
+ const vscodeConfigFile = path_1.default.join(process.cwd(), '.vscode', 'mcp.json');
274
+ const vscodeConfigDir = path_1.default.dirname(vscodeConfigFile);
275
+ if (fs_1.default.existsSync(vscodeConfigDir)) {
276
+ let vscodeConfig = { servers: {} };
277
+ try {
278
+ if (fs_1.default.existsSync(vscodeConfigFile)) {
279
+ vscodeConfig = JSON.parse(fs_1.default.readFileSync(vscodeConfigFile, 'utf8'));
280
+ }
281
+ }
282
+ catch { }
283
+ if (!vscodeConfig.servers)
284
+ vscodeConfig.servers = {};
285
+ if (!vscodeConfig.servers.lemma) {
286
+ vscodeConfig.servers.lemma = {
287
+ type: 'stdio',
288
+ command: 'lemma',
289
+ args: ['mcp'],
290
+ };
291
+ try {
292
+ fs_1.default.writeFileSync(vscodeConfigFile, JSON.stringify(vscodeConfig, null, 2));
293
+ console.log('✅ [VS Code] Registered lemma MCP server in .vscode/mcp.json');
294
+ }
295
+ catch { }
296
+ }
297
+ }
298
+ else {
299
+ try {
300
+ fs_1.default.mkdirSync(path_1.default.join(process.cwd(), '.vscode'), { recursive: true });
301
+ const vscodeConfig = {
302
+ servers: {
303
+ lemma: {
304
+ type: 'stdio',
305
+ command: 'lemma',
306
+ args: ['mcp'],
307
+ },
308
+ },
309
+ };
310
+ fs_1.default.writeFileSync(path_1.default.join(process.cwd(), '.vscode', 'mcp.json'), JSON.stringify(vscodeConfig, null, 2));
311
+ console.log('✅ [VS Code] Registered lemma MCP server in .vscode/mcp.json');
312
+ }
313
+ catch { }
314
+ }
315
+ // Register lemma MCP server in Codex CLI config (~/.codex/config.toml)
316
+ const codexConfigFile = path_1.default.join(process.env.HOME || '~', '.codex', 'config.toml');
317
+ const codexConfigDir = path_1.default.dirname(codexConfigFile);
318
+ if (fs_1.default.existsSync(codexConfigDir)) {
319
+ try {
320
+ let codexContent = '';
321
+ if (fs_1.default.existsSync(codexConfigFile)) {
322
+ codexContent = fs_1.default.readFileSync(codexConfigFile, 'utf8');
323
+ }
324
+ if (!codexContent.includes('[mcp_servers.lemma]')) {
325
+ const lemmaEntry = `
326
+ [mcp_servers.lemma]
327
+ command = "lemma"
328
+ args = ["mcp"]
329
+ enabled = true
330
+ `;
331
+ fs_1.default.appendFileSync(codexConfigFile, lemmaEntry);
332
+ console.log('✅ [Codex CLI] Registered lemma MCP server');
333
+ }
334
+ }
335
+ catch { }
336
+ }
216
337
  console.log(`✅ Auto-configured Lemma for [${project}]`);
217
338
  }
218
339
  const EVENT_LOG = [];