@lnai/core 0.6.8 → 0.6.91
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 +2 -1
- package/dist/index.js +12 -4
- package/package.json +1 -1
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
|
|
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) {
|
|
@@ -1607,7 +1611,11 @@ async function updateGitignore(rootDir, paths) {
|
|
|
1607
1611
|
);
|
|
1608
1612
|
content = content.replace(markerRegex, "");
|
|
1609
1613
|
const baseContent = content.trimEnd();
|
|
1610
|
-
const uniquePaths = [
|
|
1614
|
+
const uniquePaths = [
|
|
1615
|
+
...new Set(
|
|
1616
|
+
paths.map((p) => p.replace(/\\/g, "/")).map((p) => p.includes("/") || p.startsWith(".") ? p : `/${p}`)
|
|
1617
|
+
)
|
|
1618
|
+
].sort();
|
|
1611
1619
|
if (uniquePaths.length === 0) {
|
|
1612
1620
|
if (!hasManagedSection && !hasExistingFile) {
|
|
1613
1621
|
return;
|