@christianmaf80/agentic-workflow 1.14.0-beta.1 → 1.14.0-beta.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/artifacts/index.md +2 -26
- package/dist/bootstrap.md +204 -151
- package/dist/cli/commands/init.js +0 -5
- package/dist/core/mapping/resolver.js +1 -1
- package/dist/core/migration/detector.js +1 -1
- package/dist/index.md +0 -11
- package/dist/rules/constitution/agents-behavior.md +10 -19
- package/dist/rules/constitution/clean-code.md +10 -11
- package/dist/rules/constitution/index.md +0 -5
- package/dist/rules/index.md +1 -1
- package/dist/rules/roles/architect.md +47 -88
- package/dist/rules/roles/index.md +1 -4
- package/dist/rules/roles/qa.md +61 -136
- package/dist/rules/roles/researcher.md +34 -48
- package/dist/templates/agent-scores.md +6 -7
- package/dist/templates/analysis.md +6 -6
- package/dist/templates/changelog.md +1 -1
- package/dist/templates/closure.md +9 -1
- package/dist/templates/index.md +0 -6
- package/dist/templates/planning.md +10 -10
- package/dist/templates/research.md +1 -1
- package/dist/templates/results-acceptance.md +1 -1
- package/dist/templates/review.md +2 -2
- package/dist/templates/subtask-implementation.md +1 -1
- package/dist/templates/task.md +4 -32
- package/dist/templates/verification.md +3 -3
- package/dist/workflows/index.md +0 -2
- package/dist/workflows/init.md +26 -17
- package/dist/workflows/tasklifecycle-long/phase-0-acceptance-criteria.md +2 -2
- package/dist/workflows/tasklifecycle-long/phase-1-research.md +3 -3
- package/dist/workflows/tasklifecycle-long/phase-2-analysis.md +6 -21
- package/dist/workflows/tasklifecycle-long/phase-3-planning.md +5 -11
- package/dist/workflows/tasklifecycle-long/phase-4-implementation.md +2 -2
- package/dist/workflows/tasklifecycle-long/phase-5-verification.md +3 -3
- package/dist/workflows/tasklifecycle-long/phase-6-results-acceptance.md +1 -1
- package/dist/workflows/tasklifecycle-long/phase-7-evaluation.md +12 -19
- package/dist/workflows/tasklifecycle-long/phase-8-commit-push.md +3 -3
- package/dist/workflows/tasklifecycle-short/short-phase-1-brief.md +2 -2
- package/dist/workflows/tasklifecycle-short/short-phase-2-implementation.md +1 -1
- package/dist/workflows/tasklifecycle-short/short-phase-3-closure.md +5 -5
- package/package.json +2 -2
- package/dist/artifacts/1-mcp-server-extensio-cli/analysis.md +0 -480
- package/dist/artifacts/1-mcp-server-extensio-cli/architect/review.md +0 -285
- package/dist/artifacts/1-mcp-server-extensio-cli/changelog.md +0 -29
- package/dist/artifacts/1-mcp-server-extensio-cli/implementer-agent/subtask-implementation.md +0 -321
- package/dist/artifacts/1-mcp-server-extensio-cli/plan.md +0 -522
- package/dist/artifacts/1-mcp-server-extensio-cli/researcher/research.md +0 -270
- package/dist/artifacts/1-mcp-server-extensio-cli/results.md +0 -143
- package/dist/artifacts/1-mcp-server-extensio-cli/task-metrics.md +0 -33
- package/dist/artifacts/1-mcp-server-extensio-cli/task.md +0 -178
- package/dist/artifacts/1-mcp-server-extensio-cli/walkthrough.md +0 -69
- package/dist/artifacts/10-shard-build-plugin/analysis.md +0 -290
- package/dist/artifacts/10-shard-build-plugin/architect/subtask-implementation.md +0 -105
- package/dist/artifacts/10-shard-build-plugin/plan.md +0 -409
- package/dist/artifacts/10-shard-build-plugin/researcher/research.md +0 -109
- package/dist/artifacts/10-shard-build-plugin/task.md +0 -124
- package/dist/artifacts/11-revision-sistema-agentic/analysis.md +0 -43
- package/dist/artifacts/11-revision-sistema-agentic/cli-mcp-impact.md +0 -186
- package/dist/artifacts/11-revision-sistema-agentic/core-impact.md +0 -162
- package/dist/artifacts/11-revision-sistema-agentic/metrics.md +0 -82
- package/dist/artifacts/11-revision-sistema-agentic/modules-create-v2.md +0 -126
- package/dist/artifacts/11-revision-sistema-agentic/modules-v2.md +0 -250
- package/dist/artifacts/11-revision-sistema-agentic/pages-v2.md +0 -366
- package/dist/artifacts/11-revision-sistema-agentic/researcher/research.md +0 -131
- package/dist/artifacts/11-revision-sistema-agentic/results.md +0 -116
- package/dist/artifacts/11-revision-sistema-agentic/shards-v2.md +0 -424
- package/dist/artifacts/11-revision-sistema-agentic/task.md +0 -145
- package/dist/artifacts/11-revision-sistema-agentic/verification.md +0 -119
- package/dist/artifacts/12-adaptacion-core-cli-surfaces/analysis-architecture-change.md +0 -305
- package/dist/artifacts/12-adaptacion-core-cli-surfaces/analysis.md +0 -301
- package/dist/artifacts/12-adaptacion-core-cli-surfaces/error-analysis.md +0 -93
- package/dist/artifacts/12-adaptacion-core-cli-surfaces/implementation-summary.md +0 -111
- package/dist/artifacts/12-adaptacion-core-cli-surfaces/plan.md +0 -387
- package/dist/artifacts/12-adaptacion-core-cli-surfaces/researcher/research.md +0 -266
- package/dist/artifacts/12-adaptacion-core-cli-surfaces/task.md +0 -167
- package/dist/artifacts/13-dual-lifecycle-system/analysis.md +0 -173
- package/dist/artifacts/13-dual-lifecycle-system/architect/review.md +0 -67
- package/dist/artifacts/13-dual-lifecycle-system/plan.md +0 -230
- package/dist/artifacts/13-dual-lifecycle-system/researcher/research.md +0 -243
- package/dist/artifacts/13-dual-lifecycle-system/task.md +0 -130
- package/dist/artifacts/13-dual-lifecycle-system/verification.md +0 -84
- package/dist/artifacts/14-core-tests-refactor/analysis.md +0 -240
- package/dist/artifacts/14-core-tests-refactor/architect/review.md +0 -33
- package/dist/artifacts/14-core-tests-refactor/evaluation.md +0 -40
- package/dist/artifacts/14-core-tests-refactor/plan.md +0 -344
- package/dist/artifacts/14-core-tests-refactor/researcher/research.md +0 -258
- package/dist/artifacts/14-core-tests-refactor/results.md +0 -117
- package/dist/artifacts/14-core-tests-refactor/task.md +0 -163
- package/dist/artifacts/14-core-tests-refactor/verification.md +0 -87
- package/dist/artifacts/15-sistema-evaluacion-agentes/architect/implementation.md +0 -47
- package/dist/artifacts/15-sistema-evaluacion-agentes/brief.md +0 -100
- package/dist/artifacts/15-sistema-evaluacion-agentes/closure.md +0 -81
- package/dist/artifacts/15-sistema-evaluacion-agentes/task.md +0 -83
- package/dist/artifacts/16-refactorizacion-demo-core/analysis.md +0 -160
- package/dist/artifacts/16-refactorizacion-demo-core/architect/implementation.md +0 -180
- package/dist/artifacts/16-refactorizacion-demo-core/changelog.md +0 -15
- package/dist/artifacts/16-refactorizacion-demo-core/metrics.md +0 -17
- package/dist/artifacts/16-refactorizacion-demo-core/plan.md +0 -270
- package/dist/artifacts/16-refactorizacion-demo-core/researcher/research.md +0 -190
- package/dist/artifacts/16-refactorizacion-demo-core/task.md +0 -124
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/analysis.md +0 -108
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/architect/review-subtask-1.md +0 -98
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/architect/review.md +0 -192
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/architect/step-4-postponed.md +0 -41
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/module-agent/activation-fix-demo.md +0 -73
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/module-agent/activation-subtask-2.md +0 -80
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/module-agent/fix-demo-implementation.md +0 -113
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/module-agent/subtask-2-implementation.md +0 -133
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/module-agent/subtask-implementation.md +0 -130
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/plan.md +0 -188
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/qa-agent/activation-demo-build.md +0 -80
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/qa-agent/activation-phase-5.md +0 -73
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/qa-agent/activation-subtask-5-7.md +0 -97
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/qa-agent/issue-demo-integrity.md +0 -39
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/qa-agent/subtask-5-7-implementation.md +0 -188
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/qa-agent/verification.md +0 -207
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/researcher/research.md +0 -103
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/subtask-1-engine-refactor.md +0 -64
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/surface-agent/activation-subtask-3.md +0 -81
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/surface-agent/subtask-3-implementation.md +0 -148
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/task.md +0 -146
- package/dist/artifacts/18-refactor-phase-4-implementation/task.md +0 -140
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/agent-scores.md +0 -58
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/agent-tasks/1-architect-refactor-research-template.md +0 -78
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/agent-tasks/2-architect-refactor-analysis-template.md +0 -76
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/agent-tasks/3-architect-update-phase1-workflow.md +0 -77
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/agent-tasks/4-architect-update-phase2-workflow.md +0 -76
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/agent-tasks/5-architect-create-todo-structure.md +0 -77
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/agent-tasks/6-qa-validation.md +0 -95
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/analysis.md +0 -190
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/architect/review.md +0 -68
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/plan.md +0 -203
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/researcher/research.md +0 -296
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/task.md +0 -132
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/verification.md +0 -104
- package/dist/artifacts/2-review-mcp-agent-system/analysis.md +0 -133
- package/dist/artifacts/2-review-mcp-agent-system/architect/infrastructure-migration.md +0 -58
- package/dist/artifacts/2-review-mcp-agent-system/architect/mcp-server-refactor.md +0 -57
- package/dist/artifacts/2-review-mcp-agent-system/architect/review.md +0 -83
- package/dist/artifacts/2-review-mcp-agent-system/changelog.md +0 -22
- package/dist/artifacts/2-review-mcp-agent-system/metrics.md +0 -33
- package/dist/artifacts/2-review-mcp-agent-system/plan.md +0 -141
- package/dist/artifacts/2-review-mcp-agent-system/qa/mcp-test-validation.md +0 -60
- package/dist/artifacts/2-review-mcp-agent-system/researcher/research.md +0 -77
- package/dist/artifacts/2-review-mcp-agent-system/results-acceptance.md +0 -115
- package/dist/artifacts/2-review-mcp-agent-system/task.md +0 -127
- package/dist/artifacts/2-review-mcp-agent-system/verification.md +0 -72
- package/dist/artifacts/20-anadir-seccion-reasoning-agent-task/analysis.md +0 -139
- package/dist/artifacts/20-anadir-seccion-reasoning-agent-task/plan.md +0 -146
- package/dist/artifacts/20-anadir-seccion-reasoning-agent-task/researcher/research.md +0 -142
- package/dist/artifacts/20-anadir-seccion-reasoning-agent-task/task.md +0 -143
- package/dist/artifacts/20-anadir-seccion-reasoning-agent-task/verification.md +0 -53
- package/dist/artifacts/2026-01-19-orchestration-init/brief.md +0 -88
- package/dist/artifacts/2026-01-19-orchestration-init/closure.md +0 -80
- package/dist/artifacts/2026-01-19-orchestration-init/implementation.md +0 -20
- package/dist/artifacts/21-portable-agentic-system/researcher/research.md +0 -121
- package/dist/artifacts/21-portable-agentic-system/task.md +0 -115
- package/dist/artifacts/22-standardize-phase-0-artifact/architect/analysis.md +0 -113
- package/dist/artifacts/22-standardize-phase-0-artifact/architect/plan.md +0 -124
- package/dist/artifacts/22-standardize-phase-0-artifact/researcher/research.md +0 -76
- package/dist/artifacts/22-standardize-phase-0-artifact/results.md +0 -36
- package/dist/artifacts/22-standardize-phase-0-artifact/task.md +0 -115
- package/dist/artifacts/22-standardize-phase-0-artifact/verification.md +0 -41
- package/dist/artifacts/23-auditoria-de-indexes-y-alias/acceptance.md +0 -62
- package/dist/artifacts/23-auditoria-de-indexes-y-alias/architect/analysis.md +0 -90
- package/dist/artifacts/23-auditoria-de-indexes-y-alias/architect/plan.md +0 -85
- package/dist/artifacts/23-auditoria-de-indexes-y-alias/audit-report.md +0 -52
- package/dist/artifacts/23-auditoria-de-indexes-y-alias/researcher/research.md +0 -52
- package/dist/artifacts/23-auditoria-de-indexes-y-alias/results.md +0 -31
- package/dist/artifacts/23-auditoria-de-indexes-y-alias/task.md +0 -90
- package/dist/artifacts/23-auditoria-de-indexes-y-alias/verification.md +0 -42
- package/dist/artifacts/24-revision-priorizacion-todo-backlog/analysis.md +0 -64
- package/dist/artifacts/24-revision-priorizacion-todo-backlog/candidate/acceptance.md +0 -68
- package/dist/artifacts/24-revision-priorizacion-todo-backlog/planning.md +0 -79
- package/dist/artifacts/24-revision-priorizacion-todo-backlog/portable-roadmap.md +0 -25
- package/dist/artifacts/24-revision-priorizacion-todo-backlog/researcher/research.md +0 -91
- package/dist/artifacts/24-revision-priorizacion-todo-backlog/task.md +0 -89
- package/dist/artifacts/24-revision-priorizacion-todo-backlog/verification.md +0 -59
- package/dist/artifacts/25-auditoria-omision-gates/acceptance.md +0 -57
- package/dist/artifacts/25-auditoria-omision-gates/brief.md +0 -89
- package/dist/artifacts/25-auditoria-omision-gates/closure.md +0 -88
- package/dist/artifacts/25-auditoria-omision-gates/rca.md +0 -49
- package/dist/artifacts/25-auditoria-omision-gates/task.md +0 -64
- package/dist/artifacts/26-portable-agentic-system/acceptance.md +0 -41
- package/dist/artifacts/26-portable-agentic-system/agent-tasks/1-architect-scaffolding.md +0 -113
- package/dist/artifacts/26-portable-agentic-system/agent-tasks/2-architect-core-migration.md +0 -117
- package/dist/artifacts/26-portable-agentic-system/agent-tasks/3-architect-cli-implementation.md +0 -109
- package/dist/artifacts/26-portable-agentic-system/agent-tasks/4-architect-linking-and-verification.md +0 -104
- package/dist/artifacts/26-portable-agentic-system/analysis.md +0 -117
- package/dist/artifacts/26-portable-agentic-system/architect/review.md +0 -41
- package/dist/artifacts/26-portable-agentic-system/plan.md +0 -146
- package/dist/artifacts/26-portable-agentic-system/researcher/research.md +0 -96
- package/dist/artifacts/26-portable-agentic-system/task.md +0 -50
- package/dist/artifacts/26-portable-agentic-system/verification.md +0 -67
- package/dist/artifacts/27-update-portable-module-agent-identity/acceptance.md +0 -74
- package/dist/artifacts/27-update-portable-module-agent-identity/agent-tasks/1-module-agent-update-templates.md +0 -86
- package/dist/artifacts/27-update-portable-module-agent-identity/agent-tasks/2-module-agent-update-workflows-long.md +0 -88
- package/dist/artifacts/27-update-portable-module-agent-identity/agent-tasks/3-module-agent-update-workflows-short-init.md +0 -89
- package/dist/artifacts/27-update-portable-module-agent-identity/agent-tasks/4-module-agent-update-roles.md +0 -85
- package/dist/artifacts/27-update-portable-module-agent-identity/agent-tasks/5-module-agent-update-version-manifests.md +0 -84
- package/dist/artifacts/27-update-portable-module-agent-identity/analysis.md +0 -90
- package/dist/artifacts/27-update-portable-module-agent-identity/architect/review.md +0 -44
- package/dist/artifacts/27-update-portable-module-agent-identity/changelog.md +0 -17
- package/dist/artifacts/27-update-portable-module-agent-identity/metrics.md +0 -52
- package/dist/artifacts/27-update-portable-module-agent-identity/plan.md +0 -122
- package/dist/artifacts/27-update-portable-module-agent-identity/researcher/research.md +0 -73
- package/dist/artifacts/27-update-portable-module-agent-identity/results-acceptance.md +0 -51
- package/dist/artifacts/27-update-portable-module-agent-identity/task.md +0 -115
- package/dist/artifacts/27-update-portable-module-agent-identity/verification.md +0 -66
- package/dist/artifacts/28-agent-system-update-conversion/acceptance.md +0 -67
- package/dist/artifacts/28-agent-system-update-conversion/agent-tasks/1-tooling-agent-migration-infrastructure.md +0 -88
- package/dist/artifacts/28-agent-system-update-conversion/agent-tasks/2-tooling-agent-content-transformer.md +0 -87
- package/dist/artifacts/28-agent-system-update-conversion/agent-tasks/3-tooling-agent-cli-wizard-integration.md +0 -86
- package/dist/artifacts/28-agent-system-update-conversion/analysis.md +0 -153
- package/dist/artifacts/28-agent-system-update-conversion/architect/review.md +0 -93
- package/dist/artifacts/28-agent-system-update-conversion/metrics.md +0 -43
- package/dist/artifacts/28-agent-system-update-conversion/plan.md +0 -153
- package/dist/artifacts/28-agent-system-update-conversion/researcher/research.md +0 -66
- package/dist/artifacts/28-agent-system-update-conversion/results-acceptance.md +0 -125
- package/dist/artifacts/28-agent-system-update-conversion/task.md +0 -103
- package/dist/artifacts/28-agent-system-update-conversion/verification.md +0 -60
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/acceptance.md +0 -38
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/agent-tasks/1-tooling-agent-core-resolver.md +0 -85
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/agent-tasks/2-tooling-agent-init-refactor.md +0 -90
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/agent-tasks/3-tooling-agent-scaffolding-system.md +0 -92
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/agent-tasks/4-architect-agents-md-trail.md +0 -84
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/agent-tasks/5-tooling-agent-mcp-server.md +0 -92
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/agent-tasks/6-architect-neo-agent-birth.md +0 -85
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/analysis.md +0 -119
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/architect/review.md +0 -46
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/plan.md +0 -95
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/researcher/research.md +0 -68
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/results-acceptance.md +0 -59
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/task.md +0 -99
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/verification.md +0 -54
- package/dist/artifacts/3-developer-feedback-gate/acceptance-criteria.md +0 -18
- package/dist/artifacts/3-developer-feedback-gate/analysis.md +0 -27
- package/dist/artifacts/3-developer-feedback-gate/changelog.md +0 -10
- package/dist/artifacts/3-developer-feedback-gate/implementation_plan.md +0 -32
- package/dist/artifacts/3-developer-feedback-gate/init.md +0 -13
- package/dist/artifacts/3-developer-feedback-gate/metrics.md +0 -34
- package/dist/artifacts/3-developer-feedback-gate/research.md +0 -28
- package/dist/artifacts/3-developer-feedback-gate/results-acceptance.md +0 -17
- package/dist/artifacts/3-developer-feedback-gate/task.md +0 -17
- package/dist/artifacts/3-developer-feedback-gate/verification.md +0 -35
- package/dist/artifacts/30-task-execution-protocol-gates/acceptance.md +0 -46
- package/dist/artifacts/30-task-execution-protocol-gates/researcher/research.md +0 -34
- package/dist/artifacts/30-task-execution-protocol-gates/task.md +0 -77
- package/dist/artifacts/4-adr-workflows-modulos/adr.md +0 -380
- package/dist/artifacts/4-adr-workflows-modulos/analysis.md +0 -353
- package/dist/artifacts/4-adr-workflows-modulos/plan.md +0 -301
- package/dist/artifacts/4-adr-workflows-modulos/researcher/research.md +0 -253
- package/dist/artifacts/4-adr-workflows-modulos/results.md +0 -202
- package/dist/artifacts/4-adr-workflows-modulos/task.md +0 -143
- package/dist/artifacts/4-adr-workflows-modulos/verification.md +0 -123
- package/dist/artifacts/5-implementar-adr-crear-modulo/analysis.md +0 -169
- package/dist/artifacts/5-implementar-adr-crear-modulo/architect/review.md +0 -105
- package/dist/artifacts/5-implementar-adr-crear-modulo/architect/subtask-implementation.md +0 -90
- package/dist/artifacts/5-implementar-adr-crear-modulo/changelog.md +0 -7
- package/dist/artifacts/5-implementar-adr-crear-modulo/metrics.md +0 -34
- package/dist/artifacts/5-implementar-adr-crear-modulo/plan.md +0 -163
- package/dist/artifacts/5-implementar-adr-crear-modulo/researcher/research.md +0 -105
- package/dist/artifacts/5-implementar-adr-crear-modulo/results-acceptance.md +0 -153
- package/dist/artifacts/5-implementar-adr-crear-modulo/task.md +0 -147
- package/dist/artifacts/5-implementar-adr-crear-modulo/verification.md +0 -79
- package/dist/artifacts/6-exportar-ciclo-agent-zip/analysis.md +0 -153
- package/dist/artifacts/6-exportar-ciclo-agent-zip/architect/review.md +0 -103
- package/dist/artifacts/6-exportar-ciclo-agent-zip/architect/subtask-implementation.md +0 -79
- package/dist/artifacts/6-exportar-ciclo-agent-zip/changelog.md +0 -8
- package/dist/artifacts/6-exportar-ciclo-agent-zip/metrics.md +0 -34
- package/dist/artifacts/6-exportar-ciclo-agent-zip/plan.md +0 -131
- package/dist/artifacts/6-exportar-ciclo-agent-zip/researcher/research.md +0 -86
- package/dist/artifacts/6-exportar-ciclo-agent-zip/results-acceptance.md +0 -108
- package/dist/artifacts/6-exportar-ciclo-agent-zip/task.md +0 -147
- package/dist/artifacts/6-exportar-ciclo-agent-zip/verification.md +0 -74
- package/dist/artifacts/6-exportar-ciclo-agent-zip/whitelist.txt +0 -33
- package/dist/artifacts/7-modules-globals-constants/analysis.md +0 -205
- package/dist/artifacts/7-modules-globals-constants/architect/review.md +0 -110
- package/dist/artifacts/7-modules-globals-constants/metrics.md +0 -45
- package/dist/artifacts/7-modules-globals-constants/plan.md +0 -276
- package/dist/artifacts/7-modules-globals-constants/researcher/research.md +0 -247
- package/dist/artifacts/7-modules-globals-constants/task.md +0 -112
- package/dist/artifacts/7-modules-globals-constants/verification.md +0 -76
- package/dist/artifacts/8-module-workflow-refactor/analysis.md +0 -131
- package/dist/artifacts/8-module-workflow-refactor/changelog.md +0 -24
- package/dist/artifacts/8-module-workflow-refactor/metrics.md +0 -37
- package/dist/artifacts/8-module-workflow-refactor/plan.md +0 -193
- package/dist/artifacts/8-module-workflow-refactor/researcher/research.md +0 -222
- package/dist/artifacts/8-module-workflow-refactor/results.md +0 -112
- package/dist/artifacts/8-module-workflow-refactor/review.md +0 -76
- package/dist/artifacts/8-module-workflow-refactor/task.md +0 -154
- package/dist/artifacts/8-module-workflow-refactor/verification.md +0 -76
- package/dist/artifacts/8-module-workflow-refactor/walkthrough.md +0 -64
- package/dist/artifacts/9-build-stabilization/analysis.md +0 -62
- package/dist/artifacts/9-build-stabilization/metrics.md +0 -11
- package/dist/artifacts/9-build-stabilization/plan.md +0 -82
- package/dist/artifacts/9-build-stabilization/researcher/research.md +0 -102
- package/dist/artifacts/9-build-stabilization/task.md +0 -23
- package/dist/artifacts/9-build-stabilization/walkthrough.md +0 -56
- package/dist/artifacts/candidate/init.md +0 -34
- package/dist/artifacts/candidate/task.md +0 -24
- package/dist/metrics/agent-scores.md +0 -30
- package/dist/metrics/agents.json +0 -106
- package/dist/metrics/index.md +0 -23
- package/dist/rules/constitution/drivers.md +0 -294
- package/dist/rules/constitution/extensio-architecture.md +0 -131
- package/dist/rules/constitution/modules.md +0 -280
- package/dist/rules/constitution/pages.md +0 -454
- package/dist/rules/constitution/shards.md +0 -484
- package/dist/rules/roles/driver.md +0 -172
- package/dist/rules/roles/module.md +0 -175
- package/dist/rules/roles/surface.md +0 -60
- package/dist/rules/roles/tooling.md +0 -68
- package/dist/skills/extensio-build/SKILL.md +0 -161
- package/dist/skills/extensio-create-driver/SKILL.md +0 -89
- package/dist/skills/extensio-create-module/SKILL.md +0 -91
- package/dist/skills/extensio-demo/SKILL.md +0 -84
- package/dist/skills/extensio-test/SKILL.md +0 -96
- package/dist/skills/extensio-validate-code/SKILL.md +0 -262
- package/dist/skills/index.md +0 -79
- package/dist/templates/driver-create.md +0 -116
- package/dist/templates/driver-delete.md +0 -84
- package/dist/templates/driver-refactor.md +0 -94
- package/dist/templates/module-create.md +0 -117
- package/dist/templates/module-delete.md +0 -79
- package/dist/templates/module-refactor.md +0 -87
- package/dist/todo/001-anadir-seccion-reasoning.md +0 -42
- package/dist/todo/002-anadir-ejemplos-few-shot.md +0 -46
- package/dist/todo/003-explorar-paralelizacion-phase4.md +0 -46
- package/dist/todo/004-portable-agentic-system.md +0 -44
- package/dist/todo/README.md +0 -58
- package/dist/todo/index.md +0 -27
- package/dist/tools/extensio-cli.md +0 -76
- package/dist/tools/index.md +0 -14
- package/dist/tools/run-command.md +0 -42
- package/dist/workflows/drivers/create.md +0 -139
- package/dist/workflows/drivers/delete.md +0 -124
- package/dist/workflows/drivers/index.md +0 -25
- package/dist/workflows/drivers/refactor.md +0 -125
- package/dist/workflows/modules/create.md +0 -160
- package/dist/workflows/modules/delete.md +0 -121
- package/dist/workflows/modules/index.md +0 -27
- package/dist/workflows/modules/pages.create.md +0 -234
- package/dist/workflows/modules/refactor.md +0 -122
- package/dist/workflows/modules/shards.create.md +0 -215
|
@@ -1,522 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
artifact: plan
|
|
3
|
-
phase: phase-3-planning
|
|
4
|
-
owner: architect-agent
|
|
5
|
-
status: approved
|
|
6
|
-
related_task: 1-mcp-server-extensio-cli
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# Implementation Plan — 1-mcp-server-extensio-cli
|
|
10
|
-
|
|
11
|
-
## 1. Resumen del plan
|
|
12
|
-
|
|
13
|
-
**Contexto:**
|
|
14
|
-
Crear un servidor MCP (Model Context Protocol) que exponga las capacidades del CLI de Extensio (`@extensio/cli`) para que Google Antigravity y otros clientes AI puedan automatizar la creación de drivers, módulos y proyectos mediante agentes.
|
|
15
|
-
|
|
16
|
-
**Resultado esperado:**
|
|
17
|
-
Al finalizar este plan, existirá:
|
|
18
|
-
- Paquete `@extensio/mcp-server` ubicado en `tools/mcp-server/`
|
|
19
|
-
- Servidor MCP funcional con 4 tools (`extensio_create`, `extensio_build`, `extensio_test`, `extensio_demo`)
|
|
20
|
-
- Resources MCP (`extensio://drivers`, `extensio://modules`)
|
|
21
|
-
- README.md con guía de integración para Google Antigravity
|
|
22
|
-
- Tests automatizados (unitarios + integración, coverage >80%)
|
|
23
|
-
- Demo funcional con agente real + evidencia visual
|
|
24
|
-
|
|
25
|
-
**Alcance:**
|
|
26
|
-
- **Incluye:**
|
|
27
|
-
- Implementación completa del servidor MCP con stdio transport
|
|
28
|
-
- Validación de inputs con JSON Schema
|
|
29
|
-
- Manejo estructurado de errores
|
|
30
|
-
- Documentación para agentes AI
|
|
31
|
-
- Tests automatizados
|
|
32
|
-
- Demo con Google Antigravity
|
|
33
|
-
|
|
34
|
-
- **Excluye:**
|
|
35
|
-
- HTTP SSE transport (fuera de scope para MVP)
|
|
36
|
-
- Modificaciones al CLI existente (`@extensio/cli`)
|
|
37
|
-
- Creación de nuevos drivers o módulos (solo herramienta)
|
|
38
|
-
- Publicación a npm (preparación sí, publicación manual post-task)
|
|
39
|
-
|
|
40
|
-
---
|
|
41
|
-
|
|
42
|
-
## 2. Inputs contractuales
|
|
43
|
-
|
|
44
|
-
**Task:** `.agent/artifacts/1-mcp-server-extensio-cli/task.md`
|
|
45
|
-
**Analysis:** `.agent/artifacts/1-mcp-server-extensio-cli/analysis.md`
|
|
46
|
-
**Research:** `.agent/artifacts/1-mcp-server-extensio-cli/researcher/research.md`
|
|
47
|
-
|
|
48
|
-
**Acceptance Criteria relevantes:**
|
|
49
|
-
- AC-1 a AC-11 (todos cubiertos en analysis.md)
|
|
50
|
-
|
|
51
|
-
**Dispatch de dominios:**
|
|
52
|
-
|
|
53
|
-
```yaml
|
|
54
|
-
plan:
|
|
55
|
-
workflows:
|
|
56
|
-
drivers:
|
|
57
|
-
action: none
|
|
58
|
-
workflow: null
|
|
59
|
-
|
|
60
|
-
dispatch:
|
|
61
|
-
- domain: tools
|
|
62
|
-
action: create
|
|
63
|
-
workflow: null # No existe workflow específico para tools/, es implementación directa
|
|
64
|
-
justification: "Creación de nueva herramienta MCP server en tools/mcp-server/"
|
|
65
|
-
|
|
66
|
-
- domain: qa
|
|
67
|
-
action: verify
|
|
68
|
-
workflow: null # QA agent ejecuta verificación según constitution.qa.md
|
|
69
|
-
justification: "Verificación de tests y cobertura en Fase 5"
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
---
|
|
73
|
-
|
|
74
|
-
## 3. Desglose de implementación (pasos)
|
|
75
|
-
|
|
76
|
-
### Paso 1: Setup del proyecto MCP server
|
|
77
|
-
**Descripción:**
|
|
78
|
-
Crear estructura de carpetas `tools/mcp-server/` con package.json, tsconfig.json y estructura de src/.
|
|
79
|
-
|
|
80
|
-
**Dependencias:** Ninguna
|
|
81
|
-
|
|
82
|
-
**Entregables:**
|
|
83
|
-
- `tools/mcp-server/package.json` (configurado con name, bin, dependencies)
|
|
84
|
-
- `tools/mcp-server/tsconfig.json`
|
|
85
|
-
- `tools/mcp-server/src/index.ts` (entry point vacío)
|
|
86
|
-
- Workspace del monorepo actualizado (`package.json` raíz)
|
|
87
|
-
|
|
88
|
-
**Agente responsable:** Implementer Agent
|
|
89
|
-
|
|
90
|
-
---
|
|
91
|
-
|
|
92
|
-
### Paso 2: Implementar servidor MCP base
|
|
93
|
-
**Descripción:**
|
|
94
|
-
Configurar servidor MCP con TypeScript SDK (`@modelcontextprotocol/sdk`), handshake, metadatos y transporte stdio.
|
|
95
|
-
|
|
96
|
-
**Dependencias:** Paso 1
|
|
97
|
-
|
|
98
|
-
**Entregables:**
|
|
99
|
-
- `tools/mcp-server/src/index.ts` (servidor MCP funcional básico)
|
|
100
|
-
- `tools/mcp-server/src/server.ts` (lógica del servidor)
|
|
101
|
-
|
|
102
|
-
**Agente responsable:** Implementer Agent
|
|
103
|
-
|
|
104
|
-
---
|
|
105
|
-
|
|
106
|
-
### Paso 3: Implementar MCP Tools (CLI commands)
|
|
107
|
-
**Descripción:**
|
|
108
|
-
Crear 4 tools MCP que mapeen a comandos del CLI:
|
|
109
|
-
- `extensio_create`
|
|
110
|
-
- `extensio_build`
|
|
111
|
-
- `extensio_test`
|
|
112
|
-
- `extensio_demo`
|
|
113
|
-
|
|
114
|
-
Cada tool debe:
|
|
115
|
-
- Definir `inputSchema` (JSON Schema)
|
|
116
|
-
- Validar inputs
|
|
117
|
-
- Ejecutar comando CLI mediante child_process
|
|
118
|
-
- Capturar stdout/stderr
|
|
119
|
-
- Retornar resultado estructurado
|
|
120
|
-
|
|
121
|
-
**Dependencias:** Paso 2
|
|
122
|
-
|
|
123
|
-
**Entregables:**
|
|
124
|
-
- `tools/mcp-server/src/tools/extensio-create.ts`
|
|
125
|
-
- `tools/mcp-server/src/tools/extensio-build.ts`
|
|
126
|
-
- `tools/mcp-server/src/tools/extensio-test.ts`
|
|
127
|
-
- `tools/mcp-server/src/tools/extensio-demo.ts`
|
|
128
|
-
- `tools/mcp-server/src/schemas/` (JSON Schemas para cada tool)
|
|
129
|
-
|
|
130
|
-
**Agente responsable:** Implementer Agent
|
|
131
|
-
|
|
132
|
-
---
|
|
133
|
-
|
|
134
|
-
### Paso 4: Implementar MCP Resources
|
|
135
|
-
**Descripción:**
|
|
136
|
-
Crear resources para permitir a agentes explorar el estado del monorepo:
|
|
137
|
-
- `extensio://drivers` → Lista drivers en `packages/drivers/`
|
|
138
|
-
- `extensio://modules` → Lista modules en `packages/modules/`
|
|
139
|
-
|
|
140
|
-
**Dependencias:** Paso 2
|
|
141
|
-
|
|
142
|
-
**Entregables:**
|
|
143
|
-
- `tools/mcp-server/src/resources/list-drivers.ts`
|
|
144
|
-
- `tools/mcp-server/src/resources/list-modules.ts`
|
|
145
|
-
|
|
146
|
-
**Agente responsable:** Implementer Agent
|
|
147
|
-
|
|
148
|
-
---
|
|
149
|
-
|
|
150
|
-
### Paso 5: Manejo de errores y validación
|
|
151
|
-
**Descripción:**
|
|
152
|
-
Implementar capa de manejo de errores estructurado con validación de paths, timeouts, y captura de errores del CLI.
|
|
153
|
-
|
|
154
|
-
**Dependencias:** Paso 3
|
|
155
|
-
|
|
156
|
-
**Entregables:**
|
|
157
|
-
- `tools/mcp-server/src/utils/error-handler.ts`
|
|
158
|
-
- `tools/mcp-server/src/utils/path-validator.ts`
|
|
159
|
-
- `tools/mcp-server/src/utils/cli-executor.ts` (wrapper para child_process con timeout)
|
|
160
|
-
|
|
161
|
-
**Agente responsable:** Implementer Agent
|
|
162
|
-
|
|
163
|
-
---
|
|
164
|
-
|
|
165
|
-
### Paso 6: Crear documentación (README.md)
|
|
166
|
-
**Descripción:**
|
|
167
|
-
Documentar instalación, configuración en Google Antigravity (`mcp_config.json`), ejemplos de uso y troubleshooting.
|
|
168
|
-
|
|
169
|
-
**Dependencias:** Paso 5 (implementación completa)
|
|
170
|
-
|
|
171
|
-
**Entregables:**
|
|
172
|
-
- `tools/mcp-server/README.md`
|
|
173
|
-
|
|
174
|
-
**Agente responsable:** Implementer Agent
|
|
175
|
-
|
|
176
|
-
---
|
|
177
|
-
|
|
178
|
-
### Paso 7: Implementar tests unitarios e integración
|
|
179
|
-
**Descripción:**
|
|
180
|
-
QA Agent diseña e implementa tests con Vitest:
|
|
181
|
-
- Unitarios: Mockear CLI, validar schemas, error handling
|
|
182
|
-
- Integración: Ejecutar CLI real, verificar outputs
|
|
183
|
-
|
|
184
|
-
**Dependencias:** Paso 6
|
|
185
|
-
|
|
186
|
-
**Entregables:**
|
|
187
|
-
- `tools/mcp-server/tests/unit/` (tests unitarios)
|
|
188
|
-
- `tools/mcp-server/tests/integration/` (tests integración)
|
|
189
|
-
- Coverage report >80%
|
|
190
|
-
|
|
191
|
-
**Agente responsable:** QA Agent
|
|
192
|
-
|
|
193
|
-
---
|
|
194
|
-
|
|
195
|
-
### Paso 8: Crear demo con agente real
|
|
196
|
-
**Descripción:**
|
|
197
|
-
Configurar Google Antigravity con el servidor MCP y ejecutar workflow completo:
|
|
198
|
-
1. Crear driver con `extensio_create`
|
|
199
|
-
2. Compilar con `extensio_build`
|
|
200
|
-
3. Ejecutar tests con `extensio_test`
|
|
201
|
-
|
|
202
|
-
Documentar con screenshots/video.
|
|
203
|
-
|
|
204
|
-
**Dependencias:** Paso 6
|
|
205
|
-
|
|
206
|
-
**Entregables:**
|
|
207
|
-
- `.agent/artifacts/1-mcp-server-extensio-cli/demo/walkthrough.md`
|
|
208
|
-
- Screenshots/video del demo
|
|
209
|
-
|
|
210
|
-
**Agente responsable:** Implementer Agent (con soporte de QA para validación)
|
|
211
|
-
|
|
212
|
-
---
|
|
213
|
-
|
|
214
|
-
**Orden de ejecución:**
|
|
215
|
-
Paso 1 → Paso 2 → (Paso 3, Paso 4) en paralelo → Paso 5 → Paso 6 → (Paso 7, Paso 8) en paralelo
|
|
216
|
-
|
|
217
|
-
---
|
|
218
|
-
|
|
219
|
-
## 4. Asignación de responsabilidades (Agentes)
|
|
220
|
-
|
|
221
|
-
### Architect-Agent
|
|
222
|
-
**Responsabilidades:**
|
|
223
|
-
- Validar coherencia arquitectónica de la implementación
|
|
224
|
-
- Revisar que el servidor MCP no viola constitución de Extensio
|
|
225
|
-
- Aprobar ubicación `tools/mcp-server/` como apropiada
|
|
226
|
-
- Generar `architect/review.md` en Fase 4
|
|
227
|
-
|
|
228
|
-
**Entregables:** `architect/review.md`
|
|
229
|
-
|
|
230
|
-
---
|
|
231
|
-
|
|
232
|
-
### Implementer-Agent
|
|
233
|
-
**Responsabilidades:**
|
|
234
|
-
- Crear estructura completa de `tools/mcp-server/`
|
|
235
|
-
- Implementar servidor MCP con TypeScript SDK
|
|
236
|
-
- Implementar 4 tools + 2 resources
|
|
237
|
-
- Crear JSON Schemas para validación
|
|
238
|
-
- Generar README.md
|
|
239
|
-
- Crear demo funcional con Google Antigravity
|
|
240
|
-
|
|
241
|
-
**Entregables:**
|
|
242
|
-
- `tools/mcp-server/src/**` (código fuente)
|
|
243
|
-
- `tools/mcp-server/README.md`
|
|
244
|
-
- `.agent/artifacts/1-mcp-server-extensio-cli/demo/`
|
|
245
|
-
|
|
246
|
-
---
|
|
247
|
-
|
|
248
|
-
### QA-Agent
|
|
249
|
-
**Responsabilidades:**
|
|
250
|
-
- Diseñar estrategia de testing (unitarios + integración)
|
|
251
|
-
- Implementar tests con Vitest
|
|
252
|
-
- Ejecutar tests y reportar coverage
|
|
253
|
-
- Validar demo funcional
|
|
254
|
-
|
|
255
|
-
**Entregables:**
|
|
256
|
-
- `tools/mcp-server/tests/**`
|
|
257
|
-
- Coverage report
|
|
258
|
-
- Test execution report en `verification.md`
|
|
259
|
-
|
|
260
|
-
---
|
|
261
|
-
|
|
262
|
-
**Handoffs:**
|
|
263
|
-
1. **Implementer → Architect:** Tras completar Paso 6, architect revisa implementación
|
|
264
|
-
2. **Architect → QA:** Tras aprobación arquitectónica, QA ejecuta tests (Paso 7)
|
|
265
|
-
3. **QA → Implementer:** QA reporta bugs (si existen), implementer corrige
|
|
266
|
-
4. **Implementer → Developer:** Tras demo (Paso 8), presenta walkthrough al desarrollador
|
|
267
|
-
|
|
268
|
-
---
|
|
269
|
-
|
|
270
|
-
**Componentes (herramientas)**
|
|
271
|
-
|
|
272
|
-
| Componente | Acción | Responsable | Herramienta | Justificación |
|
|
273
|
-
|------------|--------|-------------|-------------|---------------|
|
|
274
|
-
| `tools/mcp-server/` | CREATE | Implementer | Manual (TypeScript) | No existe tool para scaffolding de MCP servers |
|
|
275
|
-
| Tests | CREATE | QA | Vitest | constitution.extensio_architecture.PERMANENT §8 |
|
|
276
|
-
| Demo | CREATE | Implementer | Manual + `tools.extensio_cli` | Demo usa CLI para mostrar funcionalidad |
|
|
277
|
-
|
|
278
|
-
**Nota:** No existe workflow específico para creación de herramientas en `tools/`. Es implementación directa siguiendo estructura de npm package estándar.
|
|
279
|
-
|
|
280
|
-
---
|
|
281
|
-
|
|
282
|
-
**Demo**
|
|
283
|
-
|
|
284
|
-
**Estructura esperada:**
|
|
285
|
-
```
|
|
286
|
-
.agent/artifacts/1-mcp-server-extensio-cli/demo/
|
|
287
|
-
├── walkthrough.md # Documentación paso a paso
|
|
288
|
-
├── screenshots/ # Evidencia visual
|
|
289
|
-
│ ├── antigravity-config.png
|
|
290
|
-
│ ├── agent-create.png
|
|
291
|
-
│ ├── agent-build.png
|
|
292
|
-
│ └── agent-test.png
|
|
293
|
-
└── demo-driver/ # Driver creado por el agente (opcional)
|
|
294
|
-
```
|
|
295
|
-
|
|
296
|
-
**Tool obligatorio:**
|
|
297
|
-
El demo ejecutará `tools.extensio_cli` mediante el servidor MCP para demostrar funcionalidad real.
|
|
298
|
-
|
|
299
|
-
**Alineación con `constitution.extensio_architecture`:**
|
|
300
|
-
El demo NO es parte del framework Extensio. Es evidencia de uso del servidor MCP. No viola ningún principio arquitectónico.
|
|
301
|
-
|
|
302
|
-
---
|
|
303
|
-
|
|
304
|
-
## 5. Estrategia de testing y validación
|
|
305
|
-
|
|
306
|
-
### Unit tests (Vitest)
|
|
307
|
-
**Alcance:**
|
|
308
|
-
- Validación de JSON Schemas (inputs tools)
|
|
309
|
-
- Parsing de stdout/stderr del CLI
|
|
310
|
-
- Error handling (exit codes, timeouts)
|
|
311
|
-
- Path validation (prohibir `..`, paths fuera de monorepo)
|
|
312
|
-
|
|
313
|
-
**Herramienta:** Vitest (per `constitution.extensio_architecture` §8)
|
|
314
|
-
|
|
315
|
-
**Cobertura esperada:** >80%
|
|
316
|
-
|
|
317
|
-
---
|
|
318
|
-
|
|
319
|
-
### Integration tests (Vitest + CLI real)
|
|
320
|
-
**Flujos cubiertos:**
|
|
321
|
-
- Ejecutar `extensio_create` con flags válidos → Verificar carpeta creada
|
|
322
|
-
- Ejecutar `extensio_build` con browser inválido → Verificar error estructurado
|
|
323
|
-
- Ejecutar `extensio_test` en módulo sin tests → Verificar resultado
|
|
324
|
-
|
|
325
|
-
**Herramienta:** Vitest con ejecución real del CLI
|
|
326
|
-
|
|
327
|
-
**Cobertura esperada:** Comandos prioritarios (`create`, `build`, `test`) al 100%
|
|
328
|
-
|
|
329
|
-
---
|
|
330
|
-
|
|
331
|
-
### E2E / Manual
|
|
332
|
-
**Escenarios clave:**
|
|
333
|
-
- Configurar Antigravity con `mcp_config.json`
|
|
334
|
-
- Agente crea driver completo
|
|
335
|
-
- Agente compila driver para Chrome
|
|
336
|
-
- Agente ejecuta tests del driver
|
|
337
|
-
|
|
338
|
-
**Herramienta:** Manual (Google Antigravity)
|
|
339
|
-
|
|
340
|
-
**Evidencia:** Screenshots/video en walkthrough.md
|
|
341
|
-
|
|
342
|
-
---
|
|
343
|
-
|
|
344
|
-
**Trazabilidad tests ↔ acceptance criteria:**
|
|
345
|
-
|
|
346
|
-
| AC | Test Type | Descripción |
|
|
347
|
-
|----|-----------|-------------|
|
|
348
|
-
| AC-1 | Unit | Servidor registra 4 tools |
|
|
349
|
-
| AC-2 | Integration | Comandos `build`, `create`, `test` con todas las opciones |
|
|
350
|
-
| AC-4 | Unit | Handshake MCP retorna metadatos correctos |
|
|
351
|
-
| AC-7 | Unit | Validación de inputs con JSON Schema |
|
|
352
|
-
| AC-8 | Integration | Captura de errores del CLI |
|
|
353
|
-
| AC-9 | Manual | Demo con agente real |
|
|
354
|
-
| AC-10 | Unit + Integration | Coverage >80% |
|
|
355
|
-
|
|
356
|
-
---
|
|
357
|
-
|
|
358
|
-
## 6. Plan de demo (si aplica)
|
|
359
|
-
|
|
360
|
-
**Objetivo de la demo:**
|
|
361
|
-
Demostrar que un agente AI (Google Antigravity) puede usar el servidor MCP para crear, compilar y testear un driver de Extensio sin intervención manual.
|
|
362
|
-
|
|
363
|
-
**Escenario:**
|
|
364
|
-
1. Configurar servidor MCP en Antigravity (`mcp_config.json`)
|
|
365
|
-
2. Agente solicita: "Create a new driver called 'demo-mcp' with multi-browser support"
|
|
366
|
-
3. Servidor MCP ejecuta `extensio_create --type driver --name demo-mcp`
|
|
367
|
-
4. Agente solicita: "Build the demo-mcp driver for Chrome"
|
|
368
|
-
5. Servidor MCP ejecuta `extensio_build --browsers chrome` en `packages/drivers/demo-mcp/`
|
|
369
|
-
6. Agente solicita: "Run tests for demo-mcp"
|
|
370
|
-
7. Servidor MCP ejecuta `extensio_test` en `packages/drivers/demo-mcp/`
|
|
371
|
-
|
|
372
|
-
**Datos de ejemplo:**
|
|
373
|
-
- Driver name: `demo-mcp`
|
|
374
|
-
- Target browser: Chrome
|
|
375
|
-
- Test type: Unit
|
|
376
|
-
|
|
377
|
-
**Criterios de éxito de la demo:**
|
|
378
|
-
- ✅ Agente completa workflow sin errores
|
|
379
|
-
- ✅ Driver `demo-mcp` existe en `packages/drivers/`
|
|
380
|
-
- ✅ Driver compila correctamente para Chrome
|
|
381
|
-
- ✅ Tests se ejecutan (aunque fallen por ser demo vacío)
|
|
382
|
-
- ✅ Screenshots documentan cada paso
|
|
383
|
-
|
|
384
|
-
---
|
|
385
|
-
|
|
386
|
-
## 7. Estimaciones y pesos de implementación
|
|
387
|
-
|
|
388
|
-
| Paso | Descripción | Esfuerzo | Justificación |
|
|
389
|
-
|------|-------------|----------|---------------|
|
|
390
|
-
| 1 | Setup proyecto | Bajo | Scaffolding estándar de npm package |
|
|
391
|
-
| 2 | Servidor MCP base | Medio | Usar SDK oficial, configuración straightforward |
|
|
392
|
-
| 3 | Implementar 4 tools | Alto | Núcleo del servidor, requiere validación + child_process |
|
|
393
|
-
| 4 | Implementar resources | Bajo | Leer filesystem, retornar JSON |
|
|
394
|
-
| 5 | Error handling | Medio | Casos edge (timeouts, paths, stderr) |
|
|
395
|
-
| 6 | Documentación | Medio | README completo con ejemplos |
|
|
396
|
-
| 7 | Tests | Alto | Unitarios + integración, coverage >80% |
|
|
397
|
-
| 8 | Demo | Medio | Configurar Antigravity + documentar |
|
|
398
|
-
|
|
399
|
-
**Estimación total:** ~80-100 tool calls (dependiendo de bugs encontrados)
|
|
400
|
-
|
|
401
|
-
**Timeline aproximado:**
|
|
402
|
-
Asumiendo ejecución secuencial: 1-2 horas de trabajo de agente
|
|
403
|
-
|
|
404
|
-
**Suposiciones:**
|
|
405
|
-
- No hay breaking changes en MCP SDK durante implementación
|
|
406
|
-
- Google Antigravity disponible para testing
|
|
407
|
-
- CLI de Extensio funciona correctamente
|
|
408
|
-
|
|
409
|
-
---
|
|
410
|
-
|
|
411
|
-
## 8. Puntos críticos y resolución
|
|
412
|
-
|
|
413
|
-
### Punto crítico 1: Child process management (CLI hangs)
|
|
414
|
-
**Riesgo:**
|
|
415
|
-
El CLI puede colgarse en prompts interactivos o builds largos, bloqueando el servidor MCP.
|
|
416
|
-
|
|
417
|
-
**Impacto:** Alto - bloquea agente, mala UX
|
|
418
|
-
|
|
419
|
-
**Estrategia de resolución:**
|
|
420
|
-
1. Siempre usar flag `--non-interactive` en comandos del CLI
|
|
421
|
-
2. Implementar timeout de 5 minutos para todos los comandos
|
|
422
|
-
3. Enviar SIGTERM → esperar 5s → SIGKILL si no responde
|
|
423
|
-
4. Implementar MCP progress notifications para builds largos (AC-2)
|
|
424
|
-
|
|
425
|
-
---
|
|
426
|
-
|
|
427
|
-
### Punto crítico 2: Path security (path traversal attacks)
|
|
428
|
-
**Riesgo:**
|
|
429
|
-
Agente malicioso o bug podría intentar acceder a paths fuera del monorepo (`../../../etc/passwd`).
|
|
430
|
-
|
|
431
|
-
**Impacto:** Alto - vulnerabilidad de seguridad
|
|
432
|
-
|
|
433
|
-
**Estrategia de resolución:**
|
|
434
|
-
1. Validar todos los paths con `path.resolve()` y verificar que inician con monorepo root
|
|
435
|
-
2. Prohibir `..` en inputs de usuario
|
|
436
|
-
3. JSON Schema con pattern regex para nombres válidos (`^[a-z0-9-]+$`)
|
|
437
|
-
4. Test de seguridad explícito con path traversal attempt
|
|
438
|
-
|
|
439
|
-
---
|
|
440
|
-
|
|
441
|
-
### Punto crítico 3: JSON Schema out-of-sync con CLI
|
|
442
|
-
**Riesgo:**
|
|
443
|
-
Si el CLI añade flags nuevos, los schemas quedan obsoletos.
|
|
444
|
-
|
|
445
|
-
**Impacto:** Medio - agentes no pueden usar nuevas features
|
|
446
|
-
|
|
447
|
-
**Estrategia de resolución:**
|
|
448
|
-
1. Comentarios en código señalando sincronización manual
|
|
449
|
-
2. Test de integración que ejecuta `--help` del CLI y extrae flags
|
|
450
|
-
3. Documentar en README necesidad de sync manual en cada release de CLI
|
|
451
|
-
4. Futuro: Generar schemas automáticamente desde CLI source code (fuera de scope MVP)
|
|
452
|
-
|
|
453
|
-
---
|
|
454
|
-
|
|
455
|
-
### Punto crítico 4: Buffering de stdio (servidor MCP)
|
|
456
|
-
**Riesgo:**
|
|
457
|
-
Outputs largos del CLI pueden causar buffering issues en stdio transport.
|
|
458
|
-
|
|
459
|
-
**Impacto:** Medio - pérdida de datos, respuestas incompletas
|
|
460
|
-
|
|
461
|
-
**Estrategia de resolución:**
|
|
462
|
-
1. Usar `child_process.spawn()` con streams (no `exec`)
|
|
463
|
-
2. Acumular stdout/stderr en chunks
|
|
464
|
-
3. Line-buffered parsing para progress updates
|
|
465
|
-
4. Test con build largo (compilar para 3 browsers) verificando output completo
|
|
466
|
-
|
|
467
|
-
---
|
|
468
|
-
|
|
469
|
-
## 9. Dependencias y compatibilidad
|
|
470
|
-
|
|
471
|
-
**Dependencias internas:**
|
|
472
|
-
- `@extensio/cli` (consume vía child_process, NO como dependency npm)
|
|
473
|
-
|
|
474
|
-
**Dependencias externas:**
|
|
475
|
-
- `@modelcontextprotocol/sdk` (TypeScript SDK oficial de MCP)
|
|
476
|
-
- `zod` (validación JSON Schema)
|
|
477
|
-
- `commander` (ya usado por CLI, compatible)
|
|
478
|
-
|
|
479
|
-
**Compatibilidad entre navegadores:**
|
|
480
|
-
N/A - El servidor MCP es Node.js server-side, agnóstico de navegador.
|
|
481
|
-
|
|
482
|
-
**Restricciones arquitectónicas relevantes:**
|
|
483
|
-
- `constitution.extensio_architecture.PERMANENT §8`: Tests con Vitest/Playwright
|
|
484
|
-
- `constitution.clean_code`: Funciones pequeñas (<6 líneas recomendado)
|
|
485
|
-
- No viola ningún principio de drivers.md (no es un driver)
|
|
486
|
-
|
|
487
|
-
---
|
|
488
|
-
|
|
489
|
-
## 10. Criterios de finalización
|
|
490
|
-
|
|
491
|
-
Checklist para considerar implementación "Done":
|
|
492
|
-
|
|
493
|
-
- [ ] Existe `tools/mcp-server/` con estructura completa
|
|
494
|
-
- [ ] `package.json` raíz incluye workspace `tools/**/*`
|
|
495
|
-
- [ ] Servidor MCP funcional con 4 tools + 2 resources
|
|
496
|
-
- [ ] README.md completo con guía de integración Antigravity
|
|
497
|
-
- [ ] Tests unitarios + integración con coverage >80%
|
|
498
|
-
- [ ] Demo funcional ejecutado con Google Antigravity
|
|
499
|
-
- [ ] Screenshots/video del demo en walkthrough.md
|
|
500
|
-
- [ ] Architect review aprueba coherencia arquitectónica
|
|
501
|
-
- [ ] QA agent confirma tests passing
|
|
502
|
-
- [ ] Todos los 11 acceptance criteria cubiertos
|
|
503
|
-
|
|
504
|
-
**Verificaciones obligatorias:**
|
|
505
|
-
1. Ejecutar `npm test` en `tools/mcp-server/` → Todos pasan
|
|
506
|
-
2. Ejecutar demo completo según walkthrough → Funciona sin errores
|
|
507
|
-
3. Configurar Antigravity con `mcp_config.json` → Servidor se descubre correctamente
|
|
508
|
-
4. Architect review → Aprobado (SI)
|
|
509
|
-
|
|
510
|
-
---
|
|
511
|
-
|
|
512
|
-
## 11. Aprobación del desarrollador (OBLIGATORIA)
|
|
513
|
-
|
|
514
|
-
Este plan **requiere aprobación explícita y binaria**.
|
|
515
|
-
|
|
516
|
-
```yaml
|
|
517
|
-
approval:
|
|
518
|
-
developer:
|
|
519
|
-
decision: SI
|
|
520
|
-
date: 2026-01-06T21:14:54+01:00
|
|
521
|
-
comments: "Plan aprobado. Proceder con implementación en Fase 4."
|
|
522
|
-
```
|