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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-agent-config",
3
- "version": "2.7.2",
3
+ "version": "2.7.3",
4
4
  "description": "Universal skill & workflow manager for AI coding assistants with bi-directional GitHub sync",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -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 {
@@ -141,8 +141,9 @@ const SUPPORTED = [
141
141
  return path.join(HOME, this.configDir, this.instructionsFile);
142
142
  },
143
143
  detect() {
144
- // Copilot is usually detected via VS Code extensions
145
- return fs.existsSync(this.configPath);
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
  ];
@@ -67,14 +67,13 @@ function main() {
67
67
 
68
68
  const fs = require("fs");
69
69
  const path = require("path");
70
- const os = require("os");
71
-
72
- const antigravityMcpPath = path.join(
73
- os.homedir(),
74
- ".gemini",
75
- "antigravity",
76
- "mcp_config.json"
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 {