@lnai/core 0.6.7 → 0.6.9

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/dist/index.d.ts CHANGED
@@ -272,7 +272,8 @@ interface Plugin {
272
272
  * - .claude/CLAUDE.md (symlink -> ../.ai/AGENTS.md)
273
273
  * - .claude/rules/ (symlink -> ../.ai/rules)
274
274
  * - .claude/skills/<name>/ (symlink -> ../../.ai/skills/<name>)
275
- * - .claude/settings.json (generated settings merged with .ai/.claude/settings.json)
275
+ * - .claude/settings.json (generated permissions, merged with .ai/.claude/settings.json)
276
+ * - .mcp.json (generated mcpServers at project root)
276
277
  * - .claude/<path> (symlink -> ../.ai/.claude/<path>) for other override files
277
278
  */
278
279
  declare const claudeCodePlugin: Plugin;
package/dist/index.js CHANGED
@@ -522,9 +522,6 @@ var claudeCodePlugin = {
522
522
  if (state.settings?.permissions) {
523
523
  settings["permissions"] = state.settings.permissions;
524
524
  }
525
- if (state.settings?.mcpServers) {
526
- settings["mcpServers"] = state.settings.mcpServers;
527
- }
528
525
  if (Object.keys(settings).length > 0) {
529
526
  files.push({
530
527
  path: `${OUTPUT_DIR}/settings.json`,
@@ -532,6 +529,13 @@ var claudeCodePlugin = {
532
529
  content: settings
533
530
  });
534
531
  }
532
+ if (state.settings?.mcpServers && Object.keys(state.settings.mcpServers).length > 0) {
533
+ files.push({
534
+ path: ".mcp.json",
535
+ type: "json",
536
+ content: { mcpServers: state.settings.mcpServers }
537
+ });
538
+ }
535
539
  return applyFileOverrides(files, rootDir, "claudeCode");
536
540
  },
537
541
  validate(state) {
@@ -1754,6 +1758,7 @@ async function runSyncPipeline(options) {
1754
1758
  if (!dryRun) {
1755
1759
  await writeManifest(rootDir, manifest);
1756
1760
  const pathsToIgnore = computePathsToIgnore(manifest, state.config.tools);
1761
+ pathsToIgnore.push(`${UNIFIED_DIR}/${MANIFEST_FILENAME}`);
1757
1762
  await updateGitignore(rootDir, pathsToIgnore);
1758
1763
  }
1759
1764
  return results;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lnai/core",
3
- "version": "0.6.7",
3
+ "version": "0.6.9",
4
4
  "description": "Core library for LNAI - unified AI config management",
5
5
  "type": "module",
6
6
  "license": "MIT",