@sysvv/ai-skill 1.7.1 → 1.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/dist/index.js CHANGED
@@ -166,9 +166,12 @@ async function installSkills(agent) {
166
166
  const mcpTarget = await writeMcp(agent, mcp);
167
167
  console.log(` ${GREEN}✔${ANSI.reset} MCP ${ANSI.bold}${mcpName}${ANSI.reset} ${ANSI.dim}→ ${mcpTarget}${ANSI.reset}`);
168
168
  // Coleta env vars do MCP
169
+ // Se o valor referencia ${VAR}, usa VAR como nome no .env
169
170
  if (mcp.env) {
170
- for (const key of Object.keys(mcp.env)) {
171
- envVarsNeeded.set(key, mcpName);
171
+ for (const [key, value] of Object.entries(mcp.env)) {
172
+ const refMatch = value.match(/^\$\{(.+)\}$/);
173
+ const envKey = refMatch ? refMatch[1] : key;
174
+ envVarsNeeded.set(envKey, mcpName);
172
175
  }
173
176
  }
174
177
  }
@@ -8,9 +8,10 @@
8
8
  "-y",
9
9
  "@azure-devops/mcp",
10
10
  "sysmanagerdevops",
11
- "-d", "core", "work", "work-items"
11
+ "--authentication",
12
+ "envvar"
12
13
  ],
13
14
  "env": {
14
- "AZURE_DEVOPS_PAT": "${AZURE_DEVOPS_PAT}"
15
+ "ADO_MCP_AUTH_TOKEN": "${AZURE_DEVOPS_PAT}"
15
16
  }
16
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sysvv/ai-skill",
3
- "version": "1.7.1",
3
+ "version": "1.7.3",
4
4
  "description": "Instale skills de IA direto no seu projeto. Escolha o agent, escolha as skills.",
5
5
  "type": "module",
6
6
  "bin": {