awc-zns-mtd 2.1.0 → 2.2.0
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/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,82 @@ y este proyecto adhiere a [Semantic Versioning](https://semver.org/lang/es/).
|
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
+
## [2.2.0] - 2026-01-08
|
|
11
|
+
|
|
12
|
+
### 🚀 CONFIGURACIÓN 100% AUTOMÁTICA
|
|
13
|
+
|
|
14
|
+
#### ✨ Añadido
|
|
15
|
+
|
|
16
|
+
**Carga Automática de Agentes y Workflows**
|
|
17
|
+
- ✅ `.vscode/settings.json` creado automáticamente
|
|
18
|
+
- ✅ `.vscode/extensions.json` con extensiones recomendadas
|
|
19
|
+
- ✅ `[proyecto].code-workspace` generado
|
|
20
|
+
- ✅ Copilot detecta fase automáticamente (01-comercial → 08-support)
|
|
21
|
+
- ✅ Agentes se cargan según contexto sin intervención manual
|
|
22
|
+
|
|
23
|
+
**Mejoras en copilot-instructions.md**
|
|
24
|
+
- 🤖 Detección automática de fase del proyecto
|
|
25
|
+
- 🎯 Respuestas contextuales por directorio
|
|
26
|
+
- 💡 Sugerencias proactivas sin que el usuario pregunte
|
|
27
|
+
- 📋 Templates sugeridos automáticamente
|
|
28
|
+
|
|
29
|
+
**Experiencia Zero-Config**
|
|
30
|
+
```bash
|
|
31
|
+
# Solo esto es necesario
|
|
32
|
+
npm install -g awc-zns-mtd
|
|
33
|
+
awc new mi-proyecto
|
|
34
|
+
|
|
35
|
+
# Abrir VS Code
|
|
36
|
+
code mi-proyecto
|
|
37
|
+
|
|
38
|
+
# GitHub Copilot ya está configurado con:
|
|
39
|
+
# - Agentes AWC cargados
|
|
40
|
+
# - Workflows activos
|
|
41
|
+
# - Templates disponibles
|
|
42
|
+
# - Detección de fase automática
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
#### 🎯 Comportamiento Automático
|
|
46
|
+
|
|
47
|
+
**Al abrir proyecto en carpeta `01-comercial/`:**
|
|
48
|
+
```
|
|
49
|
+
🎯 Fase Comercial detectada automáticamente
|
|
50
|
+
|
|
51
|
+
Agente activo: Product Owner + Cost Estimator
|
|
52
|
+
Templates disponibles:
|
|
53
|
+
• discovery-notes.md
|
|
54
|
+
• viabilidad.md
|
|
55
|
+
• oferta-comercial.md
|
|
56
|
+
|
|
57
|
+
¿En qué te ayudo?
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
**Al abrir proyecto en carpeta `05-development/`:**
|
|
61
|
+
```
|
|
62
|
+
💻 Modo Desarrollo (TDD) activo
|
|
63
|
+
|
|
64
|
+
Workflow: development-flow
|
|
65
|
+
Agente: DEVELOPER PRO
|
|
66
|
+
|
|
67
|
+
¿Qué feature implementamos?
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
#### 📦 Archivos Generados Automáticamente
|
|
71
|
+
|
|
72
|
+
Por cada `awc new [proyecto]`:
|
|
73
|
+
- `.vscode/settings.json` - Configuración de workspace
|
|
74
|
+
- `.vscode/extensions.json` - Extensiones recomendadas
|
|
75
|
+
- `.github/copilot-instructions.md` - Instrucciones automáticas
|
|
76
|
+
- `[proyecto].code-workspace` - Workspace de VS Code
|
|
77
|
+
|
|
78
|
+
### 🔧 Mejoras
|
|
79
|
+
|
|
80
|
+
- **UX**: Cero configuración manual
|
|
81
|
+
- **DX**: Copilot contextual desde el primer momento
|
|
82
|
+
- **Automatización**: Todo se carga al abrir el proyecto
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
10
86
|
## [2.1.0] - 2026-01-08
|
|
11
87
|
|
|
12
88
|
### ✨ Añadido
|
package/package.json
CHANGED
|
@@ -1,8 +1,53 @@
|
|
|
1
1
|
# GitHub Copilot - Instrucciones del Proyecto
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> **IMPORTANTE**: Este archivo se carga AUTOMÁTICAMENTE por GitHub Copilot.
|
|
4
|
+
> No necesitas hacer nada, solo abre el chat de Copilot y comienza a trabajar.
|
|
4
5
|
|
|
5
|
-
##
|
|
6
|
+
## 🎯 Rol Activo
|
|
7
|
+
|
|
8
|
+
Eres el **ZEN MASTER** del método AWC ZNS-MTD, asistiendo en todas las fases del proyecto.
|
|
9
|
+
|
|
10
|
+
### Comportamiento Automático
|
|
11
|
+
|
|
12
|
+
Cuando el usuario abra el chat de Copilot:
|
|
13
|
+
|
|
14
|
+
1. **Detecta automáticamente** en qué fase del proyecto está (01-comercial, 02-inception, etc.)
|
|
15
|
+
2. **Carga el workflow apropiado** desde `.awc/workflows/`
|
|
16
|
+
3. **Aplica el agente correspondiente** desde `.awc/agents/`
|
|
17
|
+
4. **Ofrece ayuda contextual** sin que el usuario lo pida
|
|
18
|
+
|
|
19
|
+
### Ejemplo de Interacción Automática
|
|
20
|
+
|
|
21
|
+
**Usuario abre Copilot en `01-comercial/`:**
|
|
22
|
+
```
|
|
23
|
+
🎯 Detecté que estás en la Fase Comercial.
|
|
24
|
+
|
|
25
|
+
Puedo ayudarte con:
|
|
26
|
+
• Crear discovery notes (.awc/templates/discovery-notes.md)
|
|
27
|
+
• Análisis de viabilidad (.awc/templates/viabilidad.md)
|
|
28
|
+
• Generar oferta comercial (.awc/templates/oferta-comercial.md)
|
|
29
|
+
• Preparar cotización (.awc/templates/cotizacion.md)
|
|
30
|
+
|
|
31
|
+
¿En qué te ayudo?
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
**Usuario abre Copilot en `05-development/`:**
|
|
35
|
+
```
|
|
36
|
+
💻 Modo Desarrollo Activo (TDD)
|
|
37
|
+
|
|
38
|
+
Workflow cargado: development-flow
|
|
39
|
+
Agente activo: DEVELOPER PRO
|
|
40
|
+
|
|
41
|
+
Puedo ayudarte con:
|
|
42
|
+
• Implementar feature con TDD (Red → Green → Refactor)
|
|
43
|
+
• Code review de PRs
|
|
44
|
+
• Refactorización guiada
|
|
45
|
+
• Debugging avanzado
|
|
46
|
+
|
|
47
|
+
¿Qué feature implementamos?
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## 🧘 Filosofía ZNS (Aplicar SIEMPRE)
|
|
6
51
|
|
|
7
52
|
Sigue estos principios en todas las interacciones:
|
|
8
53
|
|
|
@@ -26,7 +71,54 @@ Sigue estos principios en todas las interacciones:
|
|
|
26
71
|
└── config.yaml # Configuración del método
|
|
27
72
|
```
|
|
28
73
|
|
|
29
|
-
##
|
|
74
|
+
## 🤖 Detección Automática de Contexto
|
|
75
|
+
|
|
76
|
+
Antes de responder CUALQUIER pregunta, ejecuta mentalmente:
|
|
77
|
+
|
|
78
|
+
```javascript
|
|
79
|
+
// Detectar fase actual
|
|
80
|
+
const currentPath = getCurrentWorkingDirectory();
|
|
81
|
+
const phase = detectPhase(currentPath); // 01-comercial, 02-inception, etc.
|
|
82
|
+
const workflow = loadWorkflow(phase); // .awc/workflows/{phase}-flow/
|
|
83
|
+
const agent = loadAgent(phase); // .awc/agents/
|
|
84
|
+
const templates = loadTemplates(phase); // .awc/templates/
|
|
85
|
+
|
|
86
|
+
// Cargar contexto
|
|
87
|
+
const projectConfig = readFile('.awc/config.json');
|
|
88
|
+
const projectType = projectConfig.project.type;
|
|
89
|
+
const teamSize = projectConfig.project.teamSize;
|
|
90
|
+
|
|
91
|
+
// Responder con contexto cargado
|
|
92
|
+
respondWithContext(phase, workflow, agent, templates);
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## 📋 Respuestas Contextuales por Fase
|
|
96
|
+
|
|
97
|
+
### Fase 01-comercial/
|
|
98
|
+
**Agente activo**: Product Owner + Cost Estimator
|
|
99
|
+
**Templates disponibles**: discovery-notes.md, viabilidad.md, oferta-comercial.md, cotizacion.md
|
|
100
|
+
**Acciones sugeridas**:
|
|
101
|
+
- "Ayúdame a completar discovery notes"
|
|
102
|
+
- "Genera análisis de viabilidad"
|
|
103
|
+
- "Crea oferta comercial para [cliente]"
|
|
104
|
+
|
|
105
|
+
### Fase 02-inception/
|
|
106
|
+
**Agente activo**: Product Owner + Solution Architect
|
|
107
|
+
**Templates disponibles**: kickoff-agenda.md, PRD-template.md
|
|
108
|
+
**Acciones sugeridas**:
|
|
109
|
+
- "Genera agenda de kickoff"
|
|
110
|
+
- "Ayúdame a crear el PRD"
|
|
111
|
+
- "Descomponer requisitos en user stories"
|
|
112
|
+
|
|
113
|
+
### Fase 05-development/
|
|
114
|
+
**Agente activo**: Developer Pro
|
|
115
|
+
**Workflow**: TDD (Red → Green → Refactor)
|
|
116
|
+
**Acciones sugeridas**:
|
|
117
|
+
- "Implementar [feature] con TDD"
|
|
118
|
+
- "Revisar código de [archivo]"
|
|
119
|
+
- "Refactorizar [componente]"
|
|
120
|
+
|
|
121
|
+
## 🎯 Comandos Rápidos (Usuario puede invocar)
|
|
30
122
|
|
|
31
123
|
### ZEN MASTER (Orquestador)
|
|
32
124
|
**Cuándo usar**: Coordinación estratégica, toma de decisiones, análisis de complejidad.
|
|
@@ -225,6 +225,19 @@ async function newProjectCommand(projectName, options = {}) {
|
|
|
225
225
|
await createPhaseGuides(projectPath);
|
|
226
226
|
spinner.text = 'Guías de fase creadas';
|
|
227
227
|
|
|
228
|
+
// 9.1. Crear configuración de VS Code
|
|
229
|
+
await createVSCodeConfig(projectPath);
|
|
230
|
+
spinner.text = 'Configuración VS Code creada';
|
|
231
|
+
|
|
232
|
+
// 9.2. Copiar copilot-instructions.md
|
|
233
|
+
const githubDir = path.join(projectPath, '.github');
|
|
234
|
+
await fs.ensureDir(githubDir);
|
|
235
|
+
const templateCopilotPath = path.join(__dirname, '../../../templates/.github/copilot-instructions.md');
|
|
236
|
+
if (await fs.pathExists(templateCopilotPath)) {
|
|
237
|
+
await fs.copy(templateCopilotPath, path.join(githubDir, 'copilot-instructions.md'));
|
|
238
|
+
spinner.text = 'GitHub Copilot instructions creadas';
|
|
239
|
+
}
|
|
240
|
+
|
|
228
241
|
// 10. Inicializar Git si se solicitó
|
|
229
242
|
if (answers.gitInit) {
|
|
230
243
|
const { execSync } = require('child_process');
|
|
@@ -626,4 +639,86 @@ Una vez features completas → **06-qa/**
|
|
|
626
639
|
}
|
|
627
640
|
}
|
|
628
641
|
|
|
642
|
+
/**
|
|
643
|
+
* Crea configuración de VS Code para cargar AWC automáticamente
|
|
644
|
+
*/
|
|
645
|
+
async function createVSCodeConfig(projectPath) {
|
|
646
|
+
const vscodeDir = path.join(projectPath, '.vscode');
|
|
647
|
+
await fs.ensureDir(vscodeDir);
|
|
648
|
+
|
|
649
|
+
// settings.json - Configuración de workspace
|
|
650
|
+
const settings = {
|
|
651
|
+
"github.copilot.enable": {
|
|
652
|
+
"*": true
|
|
653
|
+
},
|
|
654
|
+
"github.copilot.advanced": {},
|
|
655
|
+
"files.associations": {
|
|
656
|
+
"*.agent.yaml": "yaml",
|
|
657
|
+
"copilot-instructions.md": "markdown"
|
|
658
|
+
},
|
|
659
|
+
"files.exclude": {
|
|
660
|
+
"**/.git": true,
|
|
661
|
+
"**/.DS_Store": true,
|
|
662
|
+
"**/node_modules": true
|
|
663
|
+
},
|
|
664
|
+
"search.exclude": {
|
|
665
|
+
"**/node_modules": true,
|
|
666
|
+
"**/bower_components": true,
|
|
667
|
+
"**/*.code-search": true
|
|
668
|
+
},
|
|
669
|
+
"awc-zns-mtd.enabled": true,
|
|
670
|
+
"awc-zns-mtd.autoLoadInstructions": true
|
|
671
|
+
};
|
|
672
|
+
|
|
673
|
+
await fs.writeJson(
|
|
674
|
+
path.join(vscodeDir, 'settings.json'),
|
|
675
|
+
settings,
|
|
676
|
+
{ spaces: 2 }
|
|
677
|
+
);
|
|
678
|
+
|
|
679
|
+
// extensions.json - Extensiones recomendadas
|
|
680
|
+
const extensions = {
|
|
681
|
+
"recommendations": [
|
|
682
|
+
"github.copilot",
|
|
683
|
+
"github.copilot-chat",
|
|
684
|
+
"redhat.vscode-yaml",
|
|
685
|
+
"yzhang.markdown-all-in-one"
|
|
686
|
+
]
|
|
687
|
+
};
|
|
688
|
+
|
|
689
|
+
await fs.writeJson(
|
|
690
|
+
path.join(vscodeDir, 'extensions.json'),
|
|
691
|
+
extensions,
|
|
692
|
+
{ spaces: 2 }
|
|
693
|
+
);
|
|
694
|
+
|
|
695
|
+
// AWC-ZNS-MTD.code-workspace - Workspace file
|
|
696
|
+
const workspace = {
|
|
697
|
+
"folders": [
|
|
698
|
+
{
|
|
699
|
+
"path": ".",
|
|
700
|
+
"name": path.basename(projectPath)
|
|
701
|
+
}
|
|
702
|
+
],
|
|
703
|
+
"settings": {
|
|
704
|
+
"github.copilot.enable": {
|
|
705
|
+
"*": true
|
|
706
|
+
},
|
|
707
|
+
"awc-zns-mtd.enabled": true
|
|
708
|
+
},
|
|
709
|
+
"extensions": {
|
|
710
|
+
"recommendations": [
|
|
711
|
+
"github.copilot",
|
|
712
|
+
"github.copilot-chat"
|
|
713
|
+
]
|
|
714
|
+
}
|
|
715
|
+
};
|
|
716
|
+
|
|
717
|
+
await fs.writeJson(
|
|
718
|
+
path.join(projectPath, `${path.basename(projectPath)}.code-workspace`),
|
|
719
|
+
workspace,
|
|
720
|
+
{ spaces: 2 }
|
|
721
|
+
);
|
|
722
|
+
}
|
|
723
|
+
|
|
629
724
|
module.exports = { newProjectCommand };
|