@jmylchreest/aide-plugin 0.0.32 → 0.0.34
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
CHANGED
package/src/core/mcp-sync.ts
CHANGED
|
@@ -624,7 +624,7 @@ function syncScope(
|
|
|
624
624
|
Object.fromEntries(Object.entries(finalServers).map(([k, v]) => [k, v])),
|
|
625
625
|
);
|
|
626
626
|
|
|
627
|
-
if (aideChanged
|
|
627
|
+
if (aideChanged) {
|
|
628
628
|
writeAideConfig(aidePath, finalServers);
|
|
629
629
|
result.modified = true;
|
|
630
630
|
}
|
|
@@ -637,7 +637,7 @@ function syncScope(
|
|
|
637
637
|
const assistantChanged =
|
|
638
638
|
JSON.stringify(existingAssistant) !== JSON.stringify(finalServers);
|
|
639
639
|
|
|
640
|
-
if (assistantChanged
|
|
640
|
+
if (assistantChanged) {
|
|
641
641
|
writeAssistantConfig(platform, p, finalServers);
|
|
642
642
|
result.modified = true;
|
|
643
643
|
}
|
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
|
|
@@ -29,6 +29,7 @@ import {
|
|
|
29
29
|
mkdirSync,
|
|
30
30
|
readdirSync,
|
|
31
31
|
copyFileSync,
|
|
32
|
+
unlinkSync,
|
|
32
33
|
} from "fs";
|
|
33
34
|
import { join, basename } from "path";
|
|
34
35
|
import { homedir } from "os";
|
|
@@ -245,7 +246,7 @@ export function uninstallSkill(cwd: string, name: string): boolean {
|
|
|
245
246
|
const skillPath = join(cwd, SKILLS_DIR, `${name}.md`);
|
|
246
247
|
if (existsSync(skillPath)) {
|
|
247
248
|
try {
|
|
248
|
-
|
|
249
|
+
unlinkSync(skillPath);
|
|
249
250
|
} catch {
|
|
250
251
|
// Ignore
|
|
251
252
|
}
|