@christianmaf80/agentic-workflow 1.26.0-beta.4 → 1.27.0-beta.11
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/README.es.md +13 -57
- package/README.md +14 -56
- package/bin/cli.js +33 -34
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/acceptance.md +0 -6
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/agent-scores.md +0 -6
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/agent-tasks/1-dev-agent-scaffold.md +0 -6
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/agent-tasks/2-dev-agent-manifest-command.md +0 -6
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/agent-tasks/3-dev-agent-marketplace-evidence.md +0 -6
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/agent-tasks/4-qa-agent-verify-build.md +0 -6
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/analysis.md +0 -6
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/architect/review.md +0 -6
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/metrics.md +0 -6
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/plan.md +0 -6
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/researcher/research.md +0 -6
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/results-acceptance.md +0 -6
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/task.md +0 -6
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/verification.md +0 -6
- package/dist/agent/artifacts/11-refinement-capas-constitution/analysis.md +24 -0
- package/dist/agent/artifacts/11-refinement-capas-constitution/roadmap-audit.md +34 -0
- package/dist/agent/artifacts/11-refinement-capas-constitution/task.md +58 -0
- package/dist/agent/artifacts/12-npm-workspaces/acceptance.md +78 -0
- package/dist/agent/artifacts/12-npm-workspaces/analysis.md +179 -0
- package/dist/agent/artifacts/12-npm-workspaces/plan.md +237 -0
- package/dist/agent/artifacts/12-npm-workspaces/researcher/research.md +186 -0
- package/dist/agent/artifacts/12-npm-workspaces/task.md +126 -0
- package/dist/agent/artifacts/13-implement-custom-chat-with-a2ui/acceptance.md +75 -0
- package/dist/agent/artifacts/13-implement-custom-chat-with-a2ui/researcher/research.md +121 -0
- package/dist/agent/artifacts/13-implement-custom-chat-with-a2ui/task.md +104 -0
- package/dist/agent/artifacts/14-re-implement-setup-config-d1/acceptance.md +75 -0
- package/dist/agent/artifacts/14-re-implement-setup-config-d1/architect/analysis.md +90 -0
- package/dist/agent/artifacts/14-re-implement-setup-config-d1/planner/implementation_plan.md +44 -0
- package/dist/agent/artifacts/14-re-implement-setup-config-d1/researcher/research.md +113 -0
- package/dist/agent/artifacts/14-re-implement-setup-config-d1/task.md +107 -0
- package/dist/agent/artifacts/14-re-implement-setup-config-d1/verification/walkthrough.md +37 -0
- package/dist/agent/artifacts/14-re-implement-setup-config-d1/verifier/walkthrough.md +0 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/acceptance.md +0 -6
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/task.md +0 -6
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/acceptance.md +0 -6
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/task.md +0 -6
- package/dist/agent/artifacts/4-copiar-estructura-agentic-cliente/acceptance.md +0 -6
- package/dist/agent/artifacts/4-copiar-estructura-agentic-cliente/architect/implementation.md +0 -6
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/acceptance.md +0 -6
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/agent-tasks/1-dev-agent-reestructurar-carpetas.md +1 -1
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/task.md +0 -6
- package/dist/agent/artifacts/6-release-beta-11/task.md +0 -6
- package/dist/agent/artifacts/7-extension-vscode-webview/acceptance.md +70 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/agent-scores.md +24 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/agent-tasks/1-vscode-specialist-scaffold-extension.md +99 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/agent-tasks/2-vscode-specialist-update-manifest.md +101 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/agent-tasks/3-vscode-specialist-webview-provider.md +96 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/agent-tasks/4-vscode-specialist-activitybar-icon.md +95 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/agent-tasks/5-qa-agent-manual-verify.md +97 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/analysis.md +195 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/architect/review.md +124 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/changelog.md +9 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/metrics.md +43 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/plan.md +181 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/researcher/research.md +118 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/results-acceptance.md +146 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/task.md +119 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/verification.md +81 -0
- package/dist/agent/artifacts/8-create-agentic-runtime-cli-first-as-the-single-execution-engine/task.md +126 -0
- package/dist/agent/artifacts/candidate/acceptance.md +23 -0
- package/dist/agent/artifacts/candidate/brief.md +39 -0
- package/dist/agent/artifacts/candidate/init.md +3 -9
- package/dist/agent/artifacts/candidate/task.md +4 -71
- package/dist/agent/artifacts/task-20260128-reorganize-structure/acceptance.md +0 -6
- package/dist/agent/artifacts/task-20260128-reorganize-structure/brief.md +1 -1
- package/dist/agent/artifacts/task-20260128-reorganize-structure/closure.md +3 -3
- package/dist/agent/artifacts/task-20260128-reorganize-structure/implementation.md +2 -2
- package/dist/agent/artifacts/task-20260128-reorganize-structure/task.md +0 -6
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/acceptance.md +65 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-scores.md +26 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/1-neo-agent-deps-chatkit.md +108 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/15-vscode-specialist-views-router.md +89 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/1b-vscode-specialist-review-deps.md +106 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/2-neo-agent-local-server.md +111 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/22-vscode-specialist-external-js.md +84 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/23-qa-agent-coverage-tests.md +85 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/24-vscode-specialist-class-refactor.md +84 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/25-vscode-specialist-external-html.md +88 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/26-vscode-specialist-template-js-html.md +110 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/27-vscode-specialist-fix-loading-setup.md +110 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/28-vscode-specialist-webview-debug-setup.md +107 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/29-vscode-specialist-webview-logging.md +109 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/3-neo-agent-webview-ui.md +107 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/30-vscode-specialist-csp-source.md +88 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/31-vscode-specialist-logging-prefix.md +83 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/32-vscode-specialist-logging-visibility.md +85 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/33-vscode-specialist-lit-setup.md +85 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/34-vscode-specialist-core-lit-base.md +89 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/35-vscode-specialist-lit-decorators-ts.md +88 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/36-vscode-specialist-lit-module-start.md +85 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/37-vscode-specialist-lit-ready-state.md +86 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/4-qa-agent-verification.md +106 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/5-vscode-specialist-api-key-ui.md +107 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/6-vscode-specialist-refactor-protocol.md +108 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/7-qa-agent-unit-tests.md +104 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-10-vscode-specialist-api-key-handshake.md +84 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-11-vscode-specialist-api-key-button-style.md +83 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-12-vscode-specialist-key-gate-view.md +84 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-13-vscode-specialist-status-timeout.md +83 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-14-vscode-specialist-init-flow.md +84 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-16-vscode-specialist-view-context.md +87 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-17-vscode-specialist-clear-key-command.md +85 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-18-vscode-specialist-context-sync.md +84 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-19-vscode-specialist-setup-visible.md +88 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-20-vscode-specialist-loading-state.md +83 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-21-vscode-specialist-loading-label.md +84 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-8-vscode-specialist-api-key-detect.md +89 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-9-vscode-specialist-api-key-state.md +84 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/analysis.md +156 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/architect/review.md +141 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/changelog.md +30 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/metrics.md +43 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/plan.md +151 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/research.md +115 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/results-acceptance.md +171 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/verification.md +87 -0
- package/dist/agent/artifacts/task-20260130-fix-mainview-provider/acceptance.md +64 -0
- package/dist/agent/artifacts/task-20260130-fix-mainview-provider/architect/implementation.md +30 -0
- package/dist/agent/artifacts/task-20260130-fix-mainview-provider/brief.md +102 -0
- package/dist/agent/artifacts/task-20260130-fix-mainview-provider/closure.md +95 -0
- package/dist/agent/artifacts/task-20260130-rol-vscode/acceptance.md +68 -0
- package/dist/agent/artifacts/task-20260130-rol-vscode/architect/implementation.md +33 -0
- package/dist/agent/artifacts/task-20260130-rol-vscode/brief.md +104 -0
- package/dist/agent/artifacts/task-20260130-rol-vscode/closure.md +100 -0
- package/dist/agent/artifacts/task-beta-release/acceptance.md +23 -0
- package/dist/agent/artifacts/task-beta-release/brief.md +39 -0
- package/dist/agent/artifacts/task-beta-release/closure.md +29 -0
- package/dist/agent/artifacts/task-beta-release/init.md +26 -0
- package/dist/agent/artifacts/task-beta-release/task.md +64 -0
- package/dist/agent/index.md +69 -30
- package/dist/agent/rules/constitution/agents-behavior.md +110 -100
- package/dist/agent/rules/constitution/backend.md +27 -0
- package/dist/agent/rules/constitution/background.md +30 -0
- package/dist/agent/rules/constitution/clean-code.md +5 -6
- package/dist/agent/rules/constitution/modular-architecture.md +66 -0
- package/dist/agent/rules/constitution/view.md +41 -0
- package/dist/agent/rules/constitution/vscode-extensions.md +32 -0
- package/dist/agent/rules/roles/architect.md +1 -2
- package/dist/agent/rules/roles/backend.md +21 -0
- package/dist/agent/rules/roles/background.md +20 -0
- package/dist/agent/rules/roles/devops.md +20 -0
- package/dist/agent/rules/roles/engine.md +26 -0
- package/dist/agent/rules/roles/neo.md +12 -13
- package/dist/agent/rules/roles/researcher.md +2 -2
- package/dist/agent/rules/roles/view.md +22 -0
- package/dist/agent/rules/roles/vscode-specialist.md +24 -0
- package/dist/agent/templates/acceptance.md +19 -25
- package/dist/agent/templates/agent-task.md +39 -39
- package/dist/agent/templates/analysis.md +92 -92
- package/dist/agent/templates/brief.md +43 -43
- package/dist/agent/templates/changelog.md +8 -8
- package/dist/agent/templates/closure.md +29 -29
- package/dist/agent/templates/coding/coding-integration-report.md +102 -0
- package/dist/agent/templates/coding/coding-layer-report.md +78 -0
- package/dist/agent/templates/init.md +0 -18
- package/dist/agent/templates/planning.md +73 -73
- package/dist/agent/templates/research.md +43 -43
- package/dist/agent/templates/results-acceptance.md +94 -94
- package/dist/agent/templates/review.md +59 -59
- package/dist/agent/templates/subtask-implementation.md +29 -29
- package/dist/agent/templates/supplemental-report.md +0 -6
- package/dist/agent/templates/task-metrics.md +14 -14
- package/dist/agent/templates/task.md +15 -15
- package/dist/agent/templates/todo-item.md +23 -23
- package/dist/agent/workflows/coding/coding-backend.md +147 -0
- package/dist/agent/workflows/coding/coding-background.md +149 -0
- package/dist/agent/workflows/coding/coding-integration.md +174 -0
- package/dist/agent/workflows/coding/coding-view.md +151 -0
- package/dist/agent/workflows/init.md +88 -108
- package/dist/agent/workflows/scaffold-module.md +38 -0
- package/dist/agent/workflows/tasklifecycle-long/phase-0-acceptance-criteria.md +124 -134
- package/dist/agent/workflows/tasklifecycle-long/phase-1-research.md +103 -97
- package/dist/agent/workflows/tasklifecycle-long/phase-2-analysis.md +107 -102
- package/dist/agent/workflows/tasklifecycle-long/phase-3-planning.md +125 -120
- package/dist/agent/workflows/tasklifecycle-long/phase-4-implementation.md +118 -118
- package/dist/agent/workflows/tasklifecycle-long/phase-5-verification.md +105 -101
- package/dist/agent/workflows/tasklifecycle-long/phase-6-results-acceptance.md +82 -78
- package/dist/agent/workflows/tasklifecycle-long/phase-7-evaluation.md +84 -75
- package/dist/agent/workflows/tasklifecycle-long/phase-8-commit-push.md +94 -89
- package/dist/agent/workflows/tasklifecycle-short/short-phase-1-brief.md +78 -71
- package/dist/agent/workflows/tasklifecycle-short/short-phase-2-implementation.md +79 -71
- package/dist/agent/workflows/tasklifecycle-short/short-phase-3-closure.md +73 -66
- package/dist/cli/commands/create.js +4 -29
- package/dist/cli/commands/create.js.map +1 -1
- package/dist/cli/commands/fork.js +45 -0
- package/dist/cli/commands/fork.js.map +1 -0
- package/dist/cli/commands/mcp.js +0 -6
- package/dist/cli/commands/mcp.js.map +1 -1
- package/dist/cli/commands/scaffold.js +57 -0
- package/dist/cli/commands/scaffold.js.map +1 -0
- package/dist/infrastructure/context/manager.js +0 -2
- package/dist/infrastructure/context/manager.js.map +1 -1
- package/dist/runtime/engine/emitter.js +0 -2
- package/dist/runtime/engine/emitter.js.map +1 -1
- package/dist/runtime/engine/engine.js +29 -59
- package/dist/runtime/engine/engine.js.map +1 -1
- package/dist/runtime/engine/service.js +1 -38
- package/dist/runtime/engine/service.js.map +1 -1
- package/dist/runtime/engine/state-store.js +0 -1
- package/dist/runtime/engine/state-store.js.map +1 -1
- package/dist/runtime/engine/task-loader.js +2 -3
- package/dist/runtime/engine/task-loader.js.map +1 -1
- package/dist/runtime/engine/workflow-loader.js +17 -34
- package/dist/runtime/engine/workflow-loader.js.map +1 -1
- package/dist/runtime/mcp/server.js +45 -384
- package/dist/runtime/mcp/server.js.map +1 -1
- package/media/agent-chat.svg +20 -0
- package/media/codicons/codicon.css +698 -0
- package/media/codicons/codicon.ttf +0 -0
- package/media/providers/claude.png +0 -0
- package/media/providers/gemini.png +0 -0
- package/media/providers/openai.png +0 -0
- package/package.json +128 -16
- package/dist/agent/artifacts/index.md +0 -25
- package/dist/agent/rules/constitution/index.md +0 -26
- package/dist/agent/rules/constitution/runtime-integration.md +0 -101
- package/dist/agent/rules/index.md +0 -70
- package/dist/agent/rules/roles/index.md +0 -44
- package/dist/agent/templates/index.md +0 -42
- package/dist/agent/workflows/index.md +0 -30
- package/dist/agent/workflows/tasklifecycle-long/index.md +0 -172
- package/dist/agent/workflows/tasklifecycle-short/index.md +0 -73
- package/dist/cli/commands/register-mcp.js +0 -116
- package/dist/cli/commands/register-mcp.js.map +0 -1
- package/dist/runtime/engine/logger.js +0 -74
- package/dist/runtime/engine/logger.js.map +0 -1
- package/dist/runtime/mcp/check-tools.js +0 -66
- package/dist/runtime/mcp/check-tools.js.map +0 -1
package/README.es.md
CHANGED
|
@@ -11,9 +11,8 @@
|
|
|
11
11
|
## ✨ Características Principales
|
|
12
12
|
|
|
13
13
|
- **Protocolo AHRP (Agentic Handover & Reasoning Protocol)**: Impone un flujo estricto de Triple-Puerta para cada tarea (Activación, Aprobación de Razonamiento y Aceptación de Resultados).
|
|
14
|
-
- **Gobernanza de Runtime y MCP**: Integración profunda con un servidor MCP para seguimiento de ciclos de vida, validación de puertas y logs a prueba de manipulaciones.
|
|
15
|
-
- **Skills Agénticos**: Capacidades modulares para los agentes, incluyendo habilidades de gobernanza localizadas (ej: `skill.runtime-governance`).
|
|
16
14
|
- **Arquitectura local**: Copia las reglas y workflows del core dentro de `.agent/` para evitar dependencias de acceso continuado a `node_modules`.
|
|
15
|
+
- **Gobernanza de Tolerancia Cero**: Penalizaciones automáticas de rendimiento por violaciones del protocolo.
|
|
17
16
|
- **Independiente y Portátil**: Funciona en cualquier proyecto, siempre que el agente del IDE pueda leer archivos Markdown.
|
|
18
17
|
|
|
19
18
|
## 📦 Instalación
|
|
@@ -41,69 +40,28 @@ Inicializa el sistema agéntico en el directorio actual.
|
|
|
41
40
|
npx agentic-workflow init
|
|
42
41
|
```
|
|
43
42
|
|
|
44
|
-
### `create <role|workflow
|
|
45
|
-
Genera el andamiaje (scaffolding) para un nuevo componente
|
|
43
|
+
### `create <role|workflow> <name>`
|
|
44
|
+
Genera el andamiaje (scaffolding) para un nuevo componente personalizado.
|
|
46
45
|
- **role**: Crea un nuevo rol de agente con reglas de identificación obligatorias.
|
|
47
46
|
- **workflow**: Crea una plantilla de ciclo de trabajo personalizado.
|
|
48
|
-
- **skill**: Crea una nueva habilidad modular con su propia plantilla `SKILL.md`.
|
|
49
47
|
```bash
|
|
50
48
|
npx agentic-workflow create role neo
|
|
51
49
|
```
|
|
52
50
|
|
|
53
51
|
### `restore`
|
|
54
|
-
|
|
52
|
+
Recupera la configuración de `.agent/` desde una copia de seguridad previa.
|
|
53
|
+
- Los backups se almacenan como `.agent.backup_<timestamp>` en la raíz del proyecto.
|
|
54
|
+
- Permite seleccionar versiones antes de un cambio destructivo.
|
|
55
55
|
```bash
|
|
56
56
|
npx agentic-workflow restore
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
-
### `clean`
|
|
60
|
-
Elimina archivos de configuración temporales o heredados (ej: configuraciones MCP obsoletas).
|
|
61
|
-
```bash
|
|
62
|
-
npx agentic-workflow clean
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
### `mcp`
|
|
66
|
-
Inicia el servidor local del Runtime MCP (modo stdio).
|
|
67
|
-
```bash
|
|
68
|
-
npx agentic-workflow mcp
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
### `register-mcp`
|
|
72
|
-
Registra automáticamente el servidor local en la configuración de Antigravity/Gemini.
|
|
73
|
-
```bash
|
|
74
|
-
npx agentic-workflow register-mcp
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
## ⚙️ Configuración Avanzada
|
|
78
|
-
|
|
79
|
-
### Integración de Runtime MCP
|
|
80
|
-
El sistema utiliza un servidor MCP para rastrear el estado del flujo. Para conectarlo con tu asistente de IDE:
|
|
81
|
-
1. Ejecuta `npx agentic-workflow register-mcp`.
|
|
82
|
-
2. Asegúrate de que `mcp_config.json` apunte al binario local del CLI.
|
|
83
|
-
3. Los logs de ejecución se guardan en `agentic-runtime.log` para auditoría y depuración.
|
|
84
|
-
|
|
85
59
|
## 🧠 Conceptos Core
|
|
86
60
|
|
|
87
61
|
### Ciclos de Vida
|
|
88
62
|
El framework soporta dos flujos principales según la complejidad de la tarea:
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
Diseñado para funcionalidades complejas, cambios arquitectónicos o tareas con alto riesgo. Garantiza el máximo razonamiento antes de escribir una sola línea de código.
|
|
92
|
-
- **Fase 0: Criterios de Aceptación**: Elimina la ambigüedad definiendo exactamente qué significa el éxito.
|
|
93
|
-
- **Fase 1: Investigación**: Recopilación de contexto. Necesaria para entender el código existente o APIs externas.
|
|
94
|
-
- **Fase 2: Análisis**: Evaluación de impacto. Identifica riesgos y restricciones arquitectónicas.
|
|
95
|
-
- **Fase 3: Planificación**: Plan de implementación detallado. Crucial para la alineación con el desarrollador.
|
|
96
|
-
- **Fase 4: Implementación**: El proceso de codificación propiamente dicho.
|
|
97
|
-
- **Fase 5: Verificación**: Pruebas rigurosas y validación de los cambios realizados.
|
|
98
|
-
- **Fase 6: Aceptación de Resultados**: Firma final del desarrollador sobre el valor entregado.
|
|
99
|
-
- **Fase 7: Evaluación**: Retrospectiva sobre el desempeño del agente y eficiencia del proceso.
|
|
100
|
-
- **Fase 8: Commit & Push**: Persistencia segura de los cambios en el repositorio.
|
|
101
|
-
|
|
102
|
-
#### 2. Ciclo de Vida Corto (3 Fases)
|
|
103
|
-
Optimizado para correcciones rápidas, actualizaciones simples de documentación o cambios de bajo riesgo.
|
|
104
|
-
- **Fase 1: Brief**: Fusiona Aceptación, Análisis y Planificación en un solo paso para mayor agilidad.
|
|
105
|
-
- **Fase 2: Implementación**: Codificación y verificación combinadas.
|
|
106
|
-
- **Fase 3: Cierre**: Aceptación de resultados y limpieza final.
|
|
63
|
+
1. **Ciclo de Vida Largo (9 Fases)**: Para funcionalidades complejas que requieren Investigación, Análisis, Planificación y Revisión Arquitectónica formal.
|
|
64
|
+
2. **Ciclo de Vida Corto (3 Fases)**: Para correcciones rápidas o actualizaciones simples, fusionando Aceptación, Implementación y Cierre.
|
|
107
65
|
|
|
108
66
|
### Protocolo AHRP
|
|
109
67
|
Cada tarea de un agente sigue el **Protocolo de Traspaso y Razonamiento Agéntico**:
|
|
@@ -114,14 +72,12 @@ Cada tarea de un agente sigue el **Protocolo de Traspaso y Razonamiento Agéntic
|
|
|
114
72
|
### Arquitectura por Instalación
|
|
115
73
|
Para garantizar la estabilidad, la lógica central del framework (reglas y workflows) se instala dentro de la carpeta `.agent` del proyecto. Esto ofrece una copia local limpia que se puede extender sin tocar el paquete publicado.
|
|
116
74
|
|
|
117
|
-
|
|
118
|
-
El sistema utiliza una **Arquitectura de Indexación en Cascada** para una trazabilidad absoluta:
|
|
119
|
-
1. **Root Index** (`.agent/index.md`): Declara los puntos de entrada para todos los dominios del sistema (reglas, workflows, templates, skills, artefactos).
|
|
120
|
-
2. **Índices de Dominio**: Cada carpeta contiene su propio `index.md` donde se asignan **alias** a los archivos.
|
|
121
|
-
3. **Modelo de Referencia**: Los agentes nunca utilizan rutas absolutas. Resuelven las referencias a través del sistema de alias (ej: `skill.runtime-governance` → `.agent/skills/runtime-governance/SKILL.md`), lo que garantiza que la lógica se pueda mover o actualizar sin romper los flujos de trabajo.
|
|
75
|
+
## ⚖️ Gobernanza
|
|
122
76
|
|
|
123
|
-
|
|
124
|
-
|
|
77
|
+
Este framework se basa en el principio de **Máxima Disciplina**. Los agentes deben:
|
|
78
|
+
1. Identificarse con un prefijo obligatorio.
|
|
79
|
+
2. Enviar un plan de razonamiento antes de cualquier modificación.
|
|
80
|
+
3. Obtener la aprobación explícita del desarrollador (`SI`) para cada transición.
|
|
125
81
|
|
|
126
82
|
## 📄 Licencia
|
|
127
83
|
|
package/README.md
CHANGED
|
@@ -11,10 +11,11 @@
|
|
|
11
11
|
## ✨ Key Features
|
|
12
12
|
|
|
13
13
|
- **AHRP (Agentic Handover & Reasoning Protocol)**: Enforces a strict Triple-Gate flow for every task (Activation, Reasoning Approval, and Results Acceptance).
|
|
14
|
-
- **Runtime Governance & MCP**: Deep integration with an MCP server for lifecycle tracking, gate validation, and tamper-proof logging.
|
|
15
|
-
- **Agentic Skills**: Modular capabilities for agents, including localized and specialized governance skills (e.g., `skill.runtime-governance`).
|
|
16
14
|
- **Local Core Snapshot**: Copies core rules and workflows into `.agent/` so runtime no longer depends on `node_modules` access.
|
|
15
|
+
- **Zero-Tolerance Governance**: Automatic performance penalties for protocol violations.
|
|
17
16
|
- **Standalone & Portable**: Works in any project provided the IDE agent can read Markdown files.
|
|
17
|
+
- **CLI-First**: Fully functional via command line, decoupling the agentic system from specific IDE extensions.
|
|
18
|
+
|
|
18
19
|
|
|
19
20
|
## 📦 Installation
|
|
20
21
|
|
|
@@ -41,69 +42,28 @@ Initializes the agentic system in the current directory.
|
|
|
41
42
|
npx agentic-workflow init
|
|
42
43
|
```
|
|
43
44
|
|
|
44
|
-
### `create <role|workflow
|
|
45
|
-
Scaffolds a new
|
|
45
|
+
### `create <role|workflow> <name>`
|
|
46
|
+
Scaffolds a new custom component.
|
|
46
47
|
- **role**: Creates a new agent role with mandatory identification rules.
|
|
47
48
|
- **workflow**: Creates a custom work cycle template.
|
|
48
|
-
- **skill**: Creates a new modular skill with its own `SKILL.md` template.
|
|
49
49
|
```bash
|
|
50
50
|
npx agentic-workflow create role neo
|
|
51
51
|
```
|
|
52
52
|
|
|
53
53
|
### `restore`
|
|
54
54
|
Recovers the `.agent/` configuration from a previous backup.
|
|
55
|
+
- Backups are stored as `.agent.backup_<timestamp>` in the project root.
|
|
56
|
+
- Allows selecting versions before a destructive change.
|
|
55
57
|
```bash
|
|
56
58
|
npx agentic-workflow restore
|
|
57
59
|
```
|
|
58
60
|
|
|
59
|
-
### `clean`
|
|
60
|
-
Removes legacy or temporary configuration files (e.g., outdated MCP setups).
|
|
61
|
-
```bash
|
|
62
|
-
npx agentic-workflow clean
|
|
63
|
-
```
|
|
64
|
-
|
|
65
|
-
### `mcp`
|
|
66
|
-
Starts the local MCP Runtime server (stdio mode).
|
|
67
|
-
```bash
|
|
68
|
-
npx agentic-workflow mcp
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
### `register-mcp`
|
|
72
|
-
Automatically registers the local server in the Antigravity/Gemini config.
|
|
73
|
-
```bash
|
|
74
|
-
npx agentic-workflow register-mcp
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
## ⚙️ Advanced Configuration
|
|
78
|
-
|
|
79
|
-
### MCP Runtime Integration
|
|
80
|
-
The system relies on an MCP server to track the workflow state. To connect it with your IDE assistant (like Antigravity):
|
|
81
|
-
1. Run `npx agentic-workflow register-mcp`.
|
|
82
|
-
2. Ensure `mcp_config.json` (or equivalent) points to the local CLI binary.
|
|
83
|
-
3. The Runtime logs are stored in `agentic-runtime.log` for debugging.
|
|
84
|
-
|
|
85
61
|
## 🧠 Core Concepts
|
|
86
62
|
|
|
87
63
|
### Lifecycles
|
|
88
64
|
The framework supports two main workflows depending on task complexity:
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
Designed for complex features, architectural changes, or tasks with high risk. It ensures maximum reasoning before a single line of code is written.
|
|
92
|
-
- **Phase 0: Acceptance Criteria**: Eliminates ambiguity by defining exactly what success looks like.
|
|
93
|
-
- **Phase 1: Research**: Context gathering. Necessary to understand existing code or external APIs.
|
|
94
|
-
- **Phase 2: Analysis**: Impact evaluation. Identifies risks and architectural constraints.
|
|
95
|
-
- **Phase 3: Planning**: Detailed implementation plan. Crucial for developer alignment before execution.
|
|
96
|
-
- **Phase 4: Implementation**: The actual coding process.
|
|
97
|
-
- **Phase 5: Verification**: Rigorous testing and validation of the implemented changes.
|
|
98
|
-
- **Phase 6: Results Acceptance**: Final developer sign-off on the delivered value.
|
|
99
|
-
- **Phase 7: Evaluation**: Retrospective on the agent's performance and process efficiency.
|
|
100
|
-
- **Phase 8: Commit & Push**: Safely persisting the changes to the repository.
|
|
101
|
-
|
|
102
|
-
#### 2. Short Lifecycle (3 Phases)
|
|
103
|
-
Optimized for quick fixes, simple documentation updates, or low-risk changes.
|
|
104
|
-
- **Phase 1: Brief**: Merges Acceptance, Analysis, and Planning into a single step for speed.
|
|
105
|
-
- **Phase 2: Implementation**: Combined coding and verification.
|
|
106
|
-
- **Phase 3: Closure**: Results acceptance and final cleanup.
|
|
65
|
+
1. **Long Lifecycle (9 Phases)**: For complex features requiring Research, Analysis, Planning, and formal Architectural Review.
|
|
66
|
+
2. **Short Lifecycle (3 Phases)**: For quick fixes or simple updates, merging Acceptance, Implementation, and Closure.
|
|
107
67
|
|
|
108
68
|
### AHRP Protocol
|
|
109
69
|
Every agent task follows the **Agentic Handover & Reasoning Protocol**:
|
|
@@ -114,14 +74,12 @@ Every agent task follows the **Agentic Handover & Reasoning Protocol**:
|
|
|
114
74
|
### Architecture by Install
|
|
115
75
|
To ensure stability, the framework's core logic (rules and workflows) is installed into your project's `.agent` folder. This provides a clean, local copy that can be extended without touching the published package.
|
|
116
76
|
|
|
117
|
-
|
|
118
|
-
The system uses a **Cascading Indexing Architecture** for absolute traceability:
|
|
119
|
-
1. **Root Index** (`.agent/index.md`): Declares the entry points for all system domains (rules, workflows, templates, skills, artifacts).
|
|
120
|
-
2. **Domain Indexes**: Each folder contains its own `index.md` where files are assigned **aliases**.
|
|
121
|
-
3. **Reference Model**: Agents never use absolute paths. They resolve references through the alias system (e.g., `skill.runtime-governance` → `.agent/skills/runtime-governance/SKILL.md`), ensuring that logic can be moved or updated without breaking workflows.
|
|
77
|
+
## ⚖️ Governance
|
|
122
78
|
|
|
123
|
-
|
|
124
|
-
|
|
79
|
+
This framework is built on the principle of **Maximum Discipline**. Agents are required to:
|
|
80
|
+
1. Identify themselves with a mandatory prefix.
|
|
81
|
+
2. Submit a reasoning plan before any modification.
|
|
82
|
+
3. Obtain explicit developer approval (`YES`) for every transition.
|
|
125
83
|
|
|
126
84
|
## 📄 License
|
|
127
85
|
|
package/bin/cli.js
CHANGED
|
@@ -1,59 +1,58 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { Command } from 'commander';
|
|
3
|
-
import { readFileSync } from 'fs';
|
|
4
|
-
import { fileURLToPath } from 'url';
|
|
5
|
-
import { dirname, join } from 'path';
|
|
6
3
|
import { initCommand } from '../dist/cli/commands/init.js';
|
|
4
|
+
import { scaffoldCommand } from '../dist/cli/commands/scaffold.js';
|
|
5
|
+
import { forkCommand } from '../dist/cli/commands/fork.js';
|
|
7
6
|
import { createCommand } from '../dist/cli/commands/create.js';
|
|
8
7
|
import { restoreCommand } from '../dist/cli/commands/restore.js';
|
|
9
8
|
import { cleanCommand } from '../dist/cli/commands/clean.js';
|
|
10
9
|
import { mcpCommand } from '../dist/cli/commands/mcp.js';
|
|
11
|
-
import { registerMcpCommand } from '../dist/cli/commands/register-mcp.js';
|
|
12
|
-
|
|
13
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
14
|
-
const __dirname = dirname(__filename);
|
|
15
|
-
const pkg = JSON.parse(readFileSync(join(__dirname, '..', 'package.json'), 'utf-8'));
|
|
16
10
|
|
|
17
11
|
const program = new Command();
|
|
18
12
|
|
|
19
13
|
program
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
.name('agentic-workflow')
|
|
15
|
+
.description('Portable agentic orchestration system')
|
|
16
|
+
.version('1.0.0');
|
|
23
17
|
|
|
24
18
|
program
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
19
|
+
.command('init')
|
|
20
|
+
.description('Initialize the agentic system in the current directory')
|
|
21
|
+
.option('--non-interactive', 'Run without prompts (assume YES)')
|
|
22
|
+
.option('--start-mcp', 'Start MCP server after initialization (foreground)')
|
|
23
|
+
.action((options) => initCommand(options));
|
|
30
24
|
|
|
31
25
|
program
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
26
|
+
.command('create')
|
|
27
|
+
.argument('<type>', 'The type of element to create (role, workflow)')
|
|
28
|
+
.argument('<name>', 'The name for the new element')
|
|
29
|
+
.description('Scaffold a new project-specific element')
|
|
30
|
+
.action(createCommand);
|
|
37
31
|
|
|
38
32
|
program
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
33
|
+
.command('scaffold <directory>')
|
|
34
|
+
.description('Scaffold the agentic system into a custom directory name (instead of .agent)')
|
|
35
|
+
.option('--non-interactive', 'Run without prompts (assume YES)')
|
|
36
|
+
.action((directory, options) => scaffoldCommand(directory, options));
|
|
42
37
|
|
|
43
38
|
program
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
39
|
+
.command('fork <directory>')
|
|
40
|
+
.description('Clone the entire Agentic Workflow framework source code to build an independent fork')
|
|
41
|
+
.action((directory) => forkCommand(directory));
|
|
47
42
|
|
|
48
43
|
program
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
44
|
+
.command('restore')
|
|
45
|
+
.description('Restore the agentic system from a backup')
|
|
46
|
+
.action(restoreCommand);
|
|
52
47
|
|
|
53
48
|
program
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
49
|
+
.command('clean')
|
|
50
|
+
.description('Remove legacy configuration files (e.g. MCP)')
|
|
51
|
+
.action(cleanCommand);
|
|
57
52
|
|
|
58
|
-
program
|
|
53
|
+
program
|
|
54
|
+
.command('mcp')
|
|
55
|
+
.description('Start MCP runtime server (stdio)')
|
|
56
|
+
.action(() => mcpCommand());
|
|
59
57
|
|
|
58
|
+
program.parse();
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Analysis Report — T11: Refinamiento de Constituciones
|
|
2
|
+
|
|
3
|
+
## 1. Contexto
|
|
4
|
+
La arquitectura actual modular (`src/extension/modules/*`) requiere reglas estrictas.
|
|
5
|
+
|
|
6
|
+
## 2. Propuesta de Reglas Constitucionales
|
|
7
|
+
|
|
8
|
+
### 2.1 Backend Layer (`constitution.backend`)
|
|
9
|
+
1. **Inheritance**: Extender `AbstractServer` (de `core/backend`).
|
|
10
|
+
2. **Isolation**: Sin dependencias de `vscode` ni `dom`.
|
|
11
|
+
3. **Transport Agnostic**.
|
|
12
|
+
|
|
13
|
+
### 2.2 Background Layer (`constitution.background`)
|
|
14
|
+
1. **Module Registration**: `App.register`.
|
|
15
|
+
2. **Messaging Bridge**: `Messaging` (de `core/messaging`) obligatorio.
|
|
16
|
+
3. **Gateway**: Único punto de acceso a `vscode`.
|
|
17
|
+
|
|
18
|
+
### 2.3 View Layer (`constitution.view`)
|
|
19
|
+
1. **Lit Framework**: LitElements obligatorios.
|
|
20
|
+
2. **Structure**: `index.ts`, `html.ts`, `styles.ts`.
|
|
21
|
+
3. **No Logic in View**.
|
|
22
|
+
|
|
23
|
+
## 3. Impacto en Roadmap
|
|
24
|
+
Reset masivo de tareas D1-D6.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Roadmap Audit Report — T11 (Revised)
|
|
2
|
+
|
|
3
|
+
## Identification
|
|
4
|
+
- id: audit-T11-rev2
|
|
5
|
+
- title: Roadmap vs Current Codebase Audit (Deep Dive)
|
|
6
|
+
- date: 2026-02-15
|
|
7
|
+
- owner: architect-agent
|
|
8
|
+
- related_task: 11
|
|
9
|
+
|
|
10
|
+
## Purpose
|
|
11
|
+
Determinar con precisión el estado de los entregables del Roadmap frente a la estructura actual del proyecto.
|
|
12
|
+
|
|
13
|
+
## Context
|
|
14
|
+
El usuario solicitó una re-evaluación profunda. Investigación confirma que la estructura `src/extension/modules` es la única fuente de verdad.
|
|
15
|
+
|
|
16
|
+
## Findings Details
|
|
17
|
+
|
|
18
|
+
### 🔴 DOMINIO D1: Setup/Config (Estado Real: NO INICIADO)
|
|
19
|
+
- **T002, T003, T004**: No existen implementaciones funcionales en `modules/setup`.
|
|
20
|
+
|
|
21
|
+
### 🟡 DOMINIO D3: Backend/Extension Host (Estado Real: PARCIAL)
|
|
22
|
+
- **T010**: No existe session endpoint.
|
|
23
|
+
- **T011**: Bridge básico en `core/messaging`.
|
|
24
|
+
- **T012**: Backend client es un mock.
|
|
25
|
+
|
|
26
|
+
### 🟡 DOMINIO D2, D4, D6 (Estado Real: PENDIENTE/RESTART)
|
|
27
|
+
- Se ha procedido a resetear el estado de estas tareas en el Roadmap para reflejar la realidad del código.
|
|
28
|
+
|
|
29
|
+
## Decisions & Recommendations
|
|
30
|
+
1. **Declarar Bancarrota Técnica del Roadmap Antiguo**.
|
|
31
|
+
2. **Re-Planificación Estricta**.
|
|
32
|
+
|
|
33
|
+
## References
|
|
34
|
+
- `ls src/extension/modules`
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "11"
|
|
3
|
+
title: "refinement-capas-constitution"
|
|
4
|
+
owner: "architect-agent"
|
|
5
|
+
strategy: "long"
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Task: Refinamiento de Constitución de Capas y Roadmap
|
|
9
|
+
|
|
10
|
+
## Current Phase: phase-6-commit
|
|
11
|
+
|
|
12
|
+
- [x] Phase 0: Acceptance Criteria
|
|
13
|
+
- [x] Formular preguntas aclaratorias
|
|
14
|
+
- [x] Consolidar respuestas del desarrollador
|
|
15
|
+
- [x] Crear artefactos de tarea y aceptación
|
|
16
|
+
- [x] Obtener aprobación de criterios de aceptación
|
|
17
|
+
- [x] Phase 1: Research
|
|
18
|
+
- [x] Auditoría del código actual vs Roadmap
|
|
19
|
+
- [x] Análisis de las constituciones existentes
|
|
20
|
+
- [x] Phase 2: Analysis
|
|
21
|
+
- [x] Definir reglas para Backend (AbstractServer, etc.)
|
|
22
|
+
- [x] Definir reglas para Background (Messaging, App)
|
|
23
|
+
- [x] Definir reglas para View (Lit, HTML)
|
|
24
|
+
- [x] Phase 3: Planning
|
|
25
|
+
- [x] Crear Implementation Plan (realizado en Phase 1)
|
|
26
|
+
- [x] Obtener aprobación del plan
|
|
27
|
+
- [x] Phase 4: Implementation
|
|
28
|
+
- [x] Actualizar constitution/backend.md
|
|
29
|
+
- [x] Actualizar constitution/background.md
|
|
30
|
+
- [x] Actualizar constitution/view.md
|
|
31
|
+
- [x] Actualizar ROADMAP-BACKLOG.md
|
|
32
|
+
- [x] Phase 5: Verification
|
|
33
|
+
- [x] Verificar existencia de archivos de constitución
|
|
34
|
+
- [x] Verificar integridad del Roadmap (Reset realizado)
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Task Identification
|
|
39
|
+
- **UUID**: 11
|
|
40
|
+
- **Strategy**: long
|
|
41
|
+
- **Implementation Owner**: architect-agent
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## Lifecycle History
|
|
46
|
+
| Phase | Action | Agent | Date | Result |
|
|
47
|
+
|-------|--------|-------|------|--------|
|
|
48
|
+
| phase-0-acceptance-criteria | Definition | architect-agent | 2026-02-15T16:22:00Z | YES |
|
|
49
|
+
| phase-1-research | Start | architect-agent | 2026-02-15T16:23:00Z | YES |
|
|
50
|
+
| phase-2-analysis | Analysis | architect-agent | 2026-02-15T16:24:00Z | YES |
|
|
51
|
+
| phase-3-planning | Plan | architect-agent | 2026-02-15T16:25:00Z | YES |
|
|
52
|
+
| phase-4-implementation | Coding | architect-agent | 2026-02-15T16:26:00Z | YES |
|
|
53
|
+
| phase-5-verification | Tests | architect-agent | 2026-02-15T16:28:00Z | YES |
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## 2. Definición y Alcance (Contrato)
|
|
58
|
+
- **Acceptance Criteria**: `acceptance.md`
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
🏛️ **architect-agent**: Acceptance criteria para la tarea T012 — npm-workspaces.
|
|
2
|
+
|
|
3
|
+
# Acceptance Criteria — 12-npm-workspaces
|
|
4
|
+
|
|
5
|
+
## 1. Definición Consolidada
|
|
6
|
+
Migrar el proyecto actual a npm workspaces convirtiendo los módulos `app`, `core` y `cli` en packages npm privados e independientes. Cada package tendrá su propio `package.json` con sus dependencias específicas. El proyecto root coordinará los workspaces y ofrecerá un build unificado. La estructura de extensión VSCode debe mantenerse funcional.
|
|
7
|
+
|
|
8
|
+
## 2. Respuestas a Preguntas de Clarificación
|
|
9
|
+
|
|
10
|
+
| # | Pregunta (formulada por architect) | Respuesta (del desarrollador) |
|
|
11
|
+
|---|-----------------------------------|-------------------------------|
|
|
12
|
+
| 1 | ¿Qué elementos deben convertirse en packages npm independientes? | `src/extension/modules/*` (app, core) + `src/cli` |
|
|
13
|
+
| 2 | ¿Qué convención de nombres usar para los packages? | `@agentic-workflow/app`, `@agentic-workflow/core`, `@agentic-workflow/cli` |
|
|
14
|
+
| 3 | ¿Packages públicos o privados? | Private (solo para uso interno del workspace) |
|
|
15
|
+
| 4 | ¿Cómo gestionar dependencias compartidas? | Cada package define sus propias dependencias |
|
|
16
|
+
| 5 | ¿Cómo deben funcionar los scripts de build? | Build unificado desde root |
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## 3. Criterios de Aceptación Verificables
|
|
21
|
+
|
|
22
|
+
1. **Alcance**:
|
|
23
|
+
- `src/extension/modules/app` → package `@agentic-workflow/app`
|
|
24
|
+
- `src/extension/modules/core` → package `@agentic-workflow/core`
|
|
25
|
+
- `src/cli` → package `@agentic-workflow/cli`
|
|
26
|
+
- Root `package.json` configura `workspaces`
|
|
27
|
+
|
|
28
|
+
2. **Entradas / Datos**:
|
|
29
|
+
- Código fuente actual en `src/extension/modules/app`, `src/extension/modules/core`, `src/cli`
|
|
30
|
+
- `package.json` root actual con todas las dependencias centralizadas
|
|
31
|
+
- `tsconfig.json` actual
|
|
32
|
+
|
|
33
|
+
3. **Salidas / Resultado esperado**:
|
|
34
|
+
- Cada package tiene su propio `package.json` con `"private": true`
|
|
35
|
+
- Root `package.json` incluye campo `"workspaces"` apuntando a los packages
|
|
36
|
+
- Dependencias distribuidas correctamente en cada package
|
|
37
|
+
- Build unificado funcional desde root (`npm run compile` / `npm run build`)
|
|
38
|
+
- La extensión VSCode sigue compilando y ejecutándose correctamente
|
|
39
|
+
|
|
40
|
+
4. **Restricciones**:
|
|
41
|
+
- Packages privados (no publicables)
|
|
42
|
+
- Cada package gestiona sus propias dependencias (sin hoisting forzado)
|
|
43
|
+
- La estructura de carpetas existente se mantiene (no mover archivos de sitio)
|
|
44
|
+
- Compatibilidad con el build de extensión VSCode
|
|
45
|
+
|
|
46
|
+
5. **Criterio de aceptación (Done)**:
|
|
47
|
+
> **Gate principal**: La tarea se da por terminada si los tests e2e siguen funcionando exactamente igual que antes de la migración.
|
|
48
|
+
- [ ] **Tests e2e pasan idénticamente** (`npm run test:e2e`) — criterio bloqueante
|
|
49
|
+
- [ ] `npm install` desde root instala todas las dependencias de todos los workspaces
|
|
50
|
+
- [ ] `npm run compile` desde root compila exitosamente todos los workspaces
|
|
51
|
+
- [ ] Cada package tiene `package.json` válido con `"private": true`
|
|
52
|
+
- [ ] Root `package.json` contiene campo `"workspaces"` correctamente configurado
|
|
53
|
+
- [ ] Las dependencias inter-package se resuelven vía workspace (ej: `"@agentic-workflow/core": "workspace:*"`)
|
|
54
|
+
- [ ] La extensión VSCode se ejecuta correctamente tras la migración
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Aprobación (Gate 0)
|
|
59
|
+
|
|
60
|
+
```yaml
|
|
61
|
+
approval:
|
|
62
|
+
developer:
|
|
63
|
+
decision: SI
|
|
64
|
+
date: "2026-02-16T07:32:24+01:00"
|
|
65
|
+
comments: "Tests e2e como gate principal bloqueante"
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## Historial de validaciones (Phase 0)
|
|
71
|
+
```yaml
|
|
72
|
+
history:
|
|
73
|
+
- phase: "phase-0-acceptance-criteria"
|
|
74
|
+
action: "created"
|
|
75
|
+
validated_by: "architect-agent"
|
|
76
|
+
timestamp: "2026-02-16T07:29:25+01:00"
|
|
77
|
+
notes: "Acceptance criteria definidos con 5 preguntas respondidas"
|
|
78
|
+
```
|