@jmylchreest/aide-plugin 0.0.32 → 0.0.33
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/package.json +1 -1
- package/src/core/session-init.ts +27 -4
package/package.json
CHANGED
package/src/core/session-init.ts
CHANGED
|
@@ -76,6 +76,10 @@ worktrees/
|
|
|
76
76
|
memory/
|
|
77
77
|
code/
|
|
78
78
|
|
|
79
|
+
# MCP sync state - machine-specific
|
|
80
|
+
config/mcp.json
|
|
81
|
+
config/mcp-sync.journal.json
|
|
82
|
+
|
|
79
83
|
# Legacy top-level database
|
|
80
84
|
aide-memory.db
|
|
81
85
|
|
|
@@ -90,17 +94,36 @@ aide-memory.db
|
|
|
90
94
|
// Ignore
|
|
91
95
|
}
|
|
92
96
|
} else {
|
|
93
|
-
// Migrate old gitignore format
|
|
97
|
+
// Migrate old gitignore format
|
|
94
98
|
try {
|
|
95
|
-
|
|
99
|
+
let existingContent = readFileSync(gitignorePath, "utf-8");
|
|
100
|
+
let updated = false;
|
|
101
|
+
|
|
102
|
+
// Ensure shared/ is allowed
|
|
96
103
|
if (!existingContent.includes("!shared/")) {
|
|
97
|
-
|
|
104
|
+
existingContent =
|
|
98
105
|
existingContent.trimEnd() +
|
|
99
106
|
`\n
|
|
100
107
|
# Shared data IS committed (git-friendly markdown with frontmatter)
|
|
101
108
|
!shared/
|
|
102
109
|
`;
|
|
103
|
-
|
|
110
|
+
updated = true;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// Ensure MCP sync files are ignored
|
|
114
|
+
if (!existingContent.includes("config/mcp.json")) {
|
|
115
|
+
existingContent =
|
|
116
|
+
existingContent.trimEnd() +
|
|
117
|
+
`\n
|
|
118
|
+
# MCP sync state - machine-specific
|
|
119
|
+
config/mcp.json
|
|
120
|
+
config/mcp-sync.journal.json
|
|
121
|
+
`;
|
|
122
|
+
updated = true;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if (updated) {
|
|
126
|
+
writeFileSync(gitignorePath, existingContent);
|
|
104
127
|
}
|
|
105
128
|
} catch {
|
|
106
129
|
// Ignore
|