@nxuss/lemma 0.7.5 → 0.7.7

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-DOfIKHLn.js"></script>
8
+ <script type="module" crossorigin src="/dashboard/assets/index-DSYfE1bL.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":";AA8OA,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":";AAwWA,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"}
@@ -162,6 +162,135 @@ function autoConfigureAll(project, opts) {
162
162
  if (!fs_1.default.existsSync(mcpDir)) {
163
163
  fs_1.default.mkdirSync(mcpDir, { recursive: true });
164
164
  }
165
+ // Register lemma MCP server in Claude Desktop config
166
+ const claudeConfigDir = path_1.default.join(process.env.HOME || '~', 'Library', 'Application Support', 'Claude');
167
+ const claudeConfigFile = path_1.default.join(claudeConfigDir, 'claude_desktop_config.json');
168
+ if (fs_1.default.existsSync(claudeConfigDir)) {
169
+ let claudeConfig = { mcpServers: {} };
170
+ try {
171
+ if (fs_1.default.existsSync(claudeConfigFile)) {
172
+ claudeConfig = JSON.parse(fs_1.default.readFileSync(claudeConfigFile, 'utf8'));
173
+ }
174
+ }
175
+ catch { }
176
+ if (!claudeConfig.mcpServers)
177
+ claudeConfig.mcpServers = {};
178
+ if (!claudeConfig.mcpServers.lemma) {
179
+ claudeConfig.mcpServers.lemma = {
180
+ command: 'lemma',
181
+ args: ['mcp'],
182
+ };
183
+ try {
184
+ fs_1.default.mkdirSync(claudeConfigDir, { recursive: true });
185
+ fs_1.default.writeFileSync(claudeConfigFile, JSON.stringify(claudeConfig, null, 2));
186
+ console.log('✅ [Claude Desktop] Registered lemma MCP server');
187
+ }
188
+ catch { }
189
+ }
190
+ }
191
+ // Register lemma MCP server in Cursor config
192
+ const cursorConfigDir = path_1.default.join(process.env.HOME || '~', '.cursor');
193
+ const cursorConfigFile = path_1.default.join(cursorConfigDir, 'mcp.json');
194
+ if (fs_1.default.existsSync(cursorConfigDir)) {
195
+ let cursorConfig = { mcpServers: {} };
196
+ try {
197
+ if (fs_1.default.existsSync(cursorConfigFile)) {
198
+ cursorConfig = JSON.parse(fs_1.default.readFileSync(cursorConfigFile, 'utf8'));
199
+ }
200
+ }
201
+ catch { }
202
+ if (!cursorConfig.mcpServers)
203
+ cursorConfig.mcpServers = {};
204
+ if (!cursorConfig.mcpServers.lemma) {
205
+ cursorConfig.mcpServers.lemma = {
206
+ command: 'lemma',
207
+ args: ['mcp'],
208
+ };
209
+ try {
210
+ fs_1.default.writeFileSync(cursorConfigFile, JSON.stringify(cursorConfig, null, 2));
211
+ console.log('✅ [Cursor] Registered lemma MCP server');
212
+ }
213
+ catch { }
214
+ }
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 Codex CLI config (~/.codex/config.toml)
273
+ const codexConfigFile = path_1.default.join(process.env.HOME || '~', '.codex', 'config.toml');
274
+ const codexConfigDir = path_1.default.dirname(codexConfigFile);
275
+ if (fs_1.default.existsSync(codexConfigDir)) {
276
+ try {
277
+ let codexContent = '';
278
+ if (fs_1.default.existsSync(codexConfigFile)) {
279
+ codexContent = fs_1.default.readFileSync(codexConfigFile, 'utf8');
280
+ }
281
+ if (!codexContent.includes('[mcp_servers.lemma]')) {
282
+ const lemmaEntry = `
283
+ [mcp_servers.lemma]
284
+ command = "lemma"
285
+ args = ["mcp"]
286
+ enabled = true
287
+ `;
288
+ fs_1.default.appendFileSync(codexConfigFile, lemmaEntry);
289
+ console.log('✅ [Codex CLI] Registered lemma MCP server');
290
+ }
291
+ }
292
+ catch { }
293
+ }
165
294
  console.log(`✅ Auto-configured Lemma for [${project}]`);
166
295
  }
167
296
  const EVENT_LOG = [];