@ancleto/spec 0.4.2 → 0.4.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cli/index.js +13 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ancleto/spec",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "Orquestador SDD liviano con subagentes optimizados para costo/tokens",
5
5
  "type": "module",
6
6
  "bin": {
package/src/cli/index.js CHANGED
@@ -13,6 +13,7 @@ const __dirname = dirname(fileURLToPath(import.meta.url))
13
13
  const ROOT = join(__dirname, '..', '..')
14
14
  const ASSETS = ['agents', 'commands', 'skills']
15
15
  const TEMPLATES = ['AGENTS.md', 'PRODUCT.md']
16
+ const AZURE_MCP_NOTICE = 'ancleto: MCP azure-devops habilitado — usa las variables de entorno AZURE_DEVOPS_ORG_URL y AZURE_DEVOPS_PAT'
16
17
 
17
18
  const HELP = `ancleto - orquestador SDD liviano con subagentes optimizados para costo/tokens
18
19
  (alias: aspec)
@@ -289,7 +290,7 @@ async function install(args) {
289
290
  const pi = args.indexOf('--project')
290
291
  const project = pi >= 0 ? args[pi + 1] : null
291
292
  const withMcp = !args.includes('--no-mcp')
292
- const mcpMap = withMcp ? buildDefaultMcp() : {}
293
+ let mcpMap = withMcp ? buildDefaultMcp() : {}
293
294
 
294
295
  const ti = args.indexOf('--tier')
295
296
  let tier = ti >= 0 ? args[ti + 1] : null
@@ -332,6 +333,15 @@ async function install(args) {
332
333
  await applyTier(join(target, 'agents'), tier)
333
334
  await writeFile(tierStatePath(target), tier + '\n')
334
335
 
336
+ let azureMcp = false
337
+ if (project && withMcp) {
338
+ const rc = await readAncletorc(resolve(project))
339
+ if (rc?.azure?.enabled) {
340
+ mcpMap['azure-devops'] = { type: 'local', enabled: true, command: ['npx', '-y', '@davstack/mcp-azure-devops'] }
341
+ azureMcp = true
342
+ }
343
+ }
344
+
335
345
  const res = await mergeMcp(target, mcpMap)
336
346
  const loc = project
337
347
  ? `${resolve(project)} (.opencode/ + templates en la raiz)`
@@ -341,6 +351,7 @@ async function install(args) {
341
351
  if (res.added.length) {
342
352
  console.log(`ancleto: MCP configurados: ${res.added.join(', ')} en ${res.file}`)
343
353
  }
354
+ if (azureMcp) console.log(AZURE_MCP_NOTICE)
344
355
  }
345
356
 
346
357
  async function initProject(args) {
@@ -352,6 +363,7 @@ async function initProject(args) {
352
363
  const discovery = existing?.discovery ?? { outputDir: 'docs/technical-discovery', exclude: [] }
353
364
  const manifest = await writeManifest(projectDir, { azure, discovery })
354
365
  await scaffoldOpenSpec(projectDir)
366
+ if (azure.enabled) console.log(AZURE_MCP_NOTICE)
355
367
  console.log(`ancleto: .ancletorc actualizado en ${projectDir} (v${manifest.version})${azure.enabled ? ' (Azure habilitado)' : ' (Azure desactivado)'}`)
356
368
  }
357
369