ai-agent-config 2.7.2 → 2.7.3
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/scripts/external-sync.js +0 -26
- package/scripts/platforms.js +3 -2
- package/scripts/postinstall.js +7 -8
package/package.json
CHANGED
package/scripts/external-sync.js
CHANGED
|
@@ -119,30 +119,6 @@ function copyDirRecursive(src, dest, excludePaths = []) {
|
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
-
/**
|
|
123
|
-
* Add attribution to SKILL.md file
|
|
124
|
-
*/
|
|
125
|
-
function addAttribution(skillPath, attribution) {
|
|
126
|
-
const skillFile = path.join(skillPath, "SKILL.md");
|
|
127
|
-
|
|
128
|
-
if (!fs.existsSync(skillFile)) {
|
|
129
|
-
return;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
let content = fs.readFileSync(skillFile, "utf-8");
|
|
133
|
-
|
|
134
|
-
// Check if attribution already exists
|
|
135
|
-
if (content.includes(attribution)) {
|
|
136
|
-
return;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
// Add attribution at the top
|
|
140
|
-
const attributionBlock = `---\nsource: external\nattribution: ${attribution}\n---\n\n`;
|
|
141
|
-
content = attributionBlock + content;
|
|
142
|
-
|
|
143
|
-
fs.writeFileSync(skillFile, content, "utf-8");
|
|
144
|
-
}
|
|
145
|
-
|
|
146
122
|
/**
|
|
147
123
|
* Sync all external skills
|
|
148
124
|
*/
|
|
@@ -203,8 +179,6 @@ function syncAll(options = {}) {
|
|
|
203
179
|
const result = copySkill(sourcePath, targetPath, true, excludePaths);
|
|
204
180
|
|
|
205
181
|
if (result.copied) {
|
|
206
|
-
// Skip attribution to save tokens - attribution is already in external-skills.json
|
|
207
|
-
// addAttribution(targetPath, src.attribution);
|
|
208
182
|
console.log(` ✓ ${skillDef.name}`);
|
|
209
183
|
results.copied++;
|
|
210
184
|
} else {
|
package/scripts/platforms.js
CHANGED
|
@@ -141,8 +141,9 @@ const SUPPORTED = [
|
|
|
141
141
|
return path.join(HOME, this.configDir, this.instructionsFile);
|
|
142
142
|
},
|
|
143
143
|
detect() {
|
|
144
|
-
// Copilot
|
|
145
|
-
|
|
144
|
+
// Check for actual Copilot instructions file, not just ~/.github directory
|
|
145
|
+
// (which is created by gh CLI for auth tokens, causing false positives)
|
|
146
|
+
return fs.existsSync(this.instructionsPath);
|
|
146
147
|
},
|
|
147
148
|
},
|
|
148
149
|
];
|
package/scripts/postinstall.js
CHANGED
|
@@ -67,14 +67,13 @@ function main() {
|
|
|
67
67
|
|
|
68
68
|
const fs = require("fs");
|
|
69
69
|
const path = require("path");
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
);
|
|
70
|
+
|
|
71
|
+
// Use platforms.js to get Antigravity MCP config path (avoid hardcoding)
|
|
72
|
+
const antigravityPlatform = platforms.getByName("antigravity");
|
|
73
|
+
if (!antigravityPlatform) {
|
|
74
|
+
return; // Antigravity platform not available
|
|
75
|
+
}
|
|
76
|
+
const antigravityMcpPath = antigravityPlatform.mcpConfigPath;
|
|
78
77
|
|
|
79
78
|
if (fs.existsSync(path.dirname(antigravityMcpPath))) {
|
|
80
79
|
try {
|