@christianmaf80/agentic-workflow 1.8.0-beta.1 → 1.11.0-beta.1
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/1-mcp-server-extensio-cli/analysis.md +480 -0
- package/dist/artifacts/1-mcp-server-extensio-cli/architect/review.md +285 -0
- package/dist/artifacts/1-mcp-server-extensio-cli/changelog.md +29 -0
- package/dist/artifacts/1-mcp-server-extensio-cli/implementer-agent/subtask-implementation.md +321 -0
- package/dist/artifacts/1-mcp-server-extensio-cli/plan.md +522 -0
- package/dist/artifacts/1-mcp-server-extensio-cli/researcher/research.md +270 -0
- package/dist/artifacts/1-mcp-server-extensio-cli/results.md +143 -0
- package/dist/artifacts/1-mcp-server-extensio-cli/task-metrics.md +33 -0
- package/dist/artifacts/1-mcp-server-extensio-cli/task.md +178 -0
- package/dist/artifacts/1-mcp-server-extensio-cli/walkthrough.md +69 -0
- package/dist/artifacts/10-shard-build-plugin/analysis.md +290 -0
- package/dist/artifacts/10-shard-build-plugin/architect/subtask-implementation.md +105 -0
- package/dist/artifacts/10-shard-build-plugin/plan.md +409 -0
- package/dist/artifacts/10-shard-build-plugin/researcher/research.md +109 -0
- package/dist/artifacts/10-shard-build-plugin/task.md +124 -0
- package/dist/artifacts/11-revision-sistema-agentic/analysis.md +43 -0
- package/dist/artifacts/11-revision-sistema-agentic/cli-mcp-impact.md +186 -0
- package/dist/artifacts/11-revision-sistema-agentic/core-impact.md +162 -0
- package/dist/artifacts/11-revision-sistema-agentic/metrics.md +82 -0
- package/dist/artifacts/11-revision-sistema-agentic/modules-create-v2.md +126 -0
- package/dist/artifacts/11-revision-sistema-agentic/modules-v2.md +250 -0
- package/dist/artifacts/11-revision-sistema-agentic/pages-v2.md +366 -0
- package/dist/artifacts/11-revision-sistema-agentic/researcher/research.md +131 -0
- package/dist/artifacts/11-revision-sistema-agentic/results.md +116 -0
- package/dist/artifacts/11-revision-sistema-agentic/shards-v2.md +424 -0
- package/dist/artifacts/11-revision-sistema-agentic/task.md +145 -0
- package/dist/artifacts/11-revision-sistema-agentic/verification.md +119 -0
- package/dist/artifacts/12-adaptacion-core-cli-surfaces/analysis-architecture-change.md +305 -0
- package/dist/artifacts/12-adaptacion-core-cli-surfaces/analysis.md +301 -0
- package/dist/artifacts/12-adaptacion-core-cli-surfaces/error-analysis.md +93 -0
- package/dist/artifacts/12-adaptacion-core-cli-surfaces/implementation-summary.md +111 -0
- package/dist/artifacts/12-adaptacion-core-cli-surfaces/plan.md +387 -0
- package/dist/artifacts/12-adaptacion-core-cli-surfaces/researcher/research.md +266 -0
- package/dist/artifacts/12-adaptacion-core-cli-surfaces/task.md +167 -0
- package/dist/artifacts/13-dual-lifecycle-system/analysis.md +173 -0
- package/dist/artifacts/13-dual-lifecycle-system/architect/review.md +67 -0
- package/dist/artifacts/13-dual-lifecycle-system/plan.md +230 -0
- package/dist/artifacts/13-dual-lifecycle-system/researcher/research.md +243 -0
- package/dist/artifacts/13-dual-lifecycle-system/task.md +130 -0
- package/dist/artifacts/13-dual-lifecycle-system/verification.md +84 -0
- package/dist/artifacts/14-core-tests-refactor/analysis.md +240 -0
- package/dist/artifacts/14-core-tests-refactor/architect/review.md +33 -0
- package/dist/artifacts/14-core-tests-refactor/evaluation.md +40 -0
- package/dist/artifacts/14-core-tests-refactor/plan.md +344 -0
- package/dist/artifacts/14-core-tests-refactor/researcher/research.md +258 -0
- package/dist/artifacts/14-core-tests-refactor/results.md +117 -0
- package/dist/artifacts/14-core-tests-refactor/task.md +163 -0
- package/dist/artifacts/14-core-tests-refactor/verification.md +87 -0
- package/dist/artifacts/15-sistema-evaluacion-agentes/architect/implementation.md +47 -0
- package/dist/artifacts/15-sistema-evaluacion-agentes/brief.md +100 -0
- package/dist/artifacts/15-sistema-evaluacion-agentes/closure.md +81 -0
- package/dist/artifacts/15-sistema-evaluacion-agentes/task.md +83 -0
- package/dist/artifacts/16-refactorizacion-demo-core/analysis.md +160 -0
- package/dist/artifacts/16-refactorizacion-demo-core/architect/implementation.md +180 -0
- package/dist/artifacts/16-refactorizacion-demo-core/changelog.md +15 -0
- package/dist/artifacts/16-refactorizacion-demo-core/metrics.md +17 -0
- package/dist/artifacts/16-refactorizacion-demo-core/plan.md +270 -0
- package/dist/artifacts/16-refactorizacion-demo-core/researcher/research.md +190 -0
- package/dist/artifacts/16-refactorizacion-demo-core/task.md +124 -0
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/analysis.md +108 -0
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/architect/review-subtask-1.md +98 -0
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/architect/review.md +192 -0
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/architect/step-4-postponed.md +41 -0
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/module-agent/activation-fix-demo.md +73 -0
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/module-agent/activation-subtask-2.md +80 -0
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/module-agent/fix-demo-implementation.md +113 -0
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/module-agent/subtask-2-implementation.md +133 -0
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/module-agent/subtask-implementation.md +130 -0
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/plan.md +188 -0
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/qa-agent/activation-demo-build.md +80 -0
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/qa-agent/activation-phase-5.md +73 -0
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/qa-agent/activation-subtask-5-7.md +97 -0
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/qa-agent/issue-demo-integrity.md +39 -0
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/qa-agent/subtask-5-7-implementation.md +188 -0
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/qa-agent/verification.md +207 -0
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/researcher/research.md +103 -0
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/subtask-1-engine-refactor.md +64 -0
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/surface-agent/activation-subtask-3.md +81 -0
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/surface-agent/subtask-3-implementation.md +148 -0
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/task.md +146 -0
- package/dist/artifacts/18-refactor-phase-4-implementation/task.md +140 -0
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/agent-scores.md +58 -0
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/agent-tasks/1-architect-refactor-research-template.md +78 -0
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/agent-tasks/2-architect-refactor-analysis-template.md +76 -0
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/agent-tasks/3-architect-update-phase1-workflow.md +77 -0
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/agent-tasks/4-architect-update-phase2-workflow.md +76 -0
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/agent-tasks/5-architect-create-todo-structure.md +77 -0
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/agent-tasks/6-qa-validation.md +95 -0
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/analysis.md +190 -0
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/architect/review.md +68 -0
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/plan.md +203 -0
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/researcher/research.md +296 -0
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/task.md +132 -0
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/verification.md +104 -0
- package/dist/artifacts/2-review-mcp-agent-system/analysis.md +133 -0
- package/dist/artifacts/2-review-mcp-agent-system/architect/infrastructure-migration.md +58 -0
- package/dist/artifacts/2-review-mcp-agent-system/architect/mcp-server-refactor.md +57 -0
- package/dist/artifacts/2-review-mcp-agent-system/architect/review.md +83 -0
- package/dist/artifacts/2-review-mcp-agent-system/changelog.md +22 -0
- package/dist/artifacts/2-review-mcp-agent-system/metrics.md +33 -0
- package/dist/artifacts/2-review-mcp-agent-system/plan.md +141 -0
- package/dist/artifacts/2-review-mcp-agent-system/qa/mcp-test-validation.md +60 -0
- package/dist/artifacts/2-review-mcp-agent-system/researcher/research.md +77 -0
- package/dist/artifacts/2-review-mcp-agent-system/results-acceptance.md +115 -0
- package/dist/artifacts/2-review-mcp-agent-system/task.md +127 -0
- package/dist/artifacts/2-review-mcp-agent-system/verification.md +72 -0
- package/dist/artifacts/20-anadir-seccion-reasoning-agent-task/analysis.md +139 -0
- package/dist/artifacts/20-anadir-seccion-reasoning-agent-task/plan.md +146 -0
- package/dist/artifacts/20-anadir-seccion-reasoning-agent-task/researcher/research.md +142 -0
- package/dist/artifacts/20-anadir-seccion-reasoning-agent-task/task.md +143 -0
- package/dist/artifacts/20-anadir-seccion-reasoning-agent-task/verification.md +53 -0
- package/dist/artifacts/2026-01-19-orchestration-init/brief.md +88 -0
- package/dist/artifacts/2026-01-19-orchestration-init/closure.md +80 -0
- package/dist/artifacts/2026-01-19-orchestration-init/implementation.md +20 -0
- package/dist/artifacts/21-portable-agentic-system/researcher/research.md +121 -0
- package/dist/artifacts/21-portable-agentic-system/task.md +115 -0
- package/dist/artifacts/22-standardize-phase-0-artifact/architect/analysis.md +113 -0
- package/dist/artifacts/22-standardize-phase-0-artifact/architect/plan.md +124 -0
- package/dist/artifacts/22-standardize-phase-0-artifact/researcher/research.md +76 -0
- package/dist/artifacts/22-standardize-phase-0-artifact/results.md +36 -0
- package/dist/artifacts/22-standardize-phase-0-artifact/task.md +115 -0
- package/dist/artifacts/22-standardize-phase-0-artifact/verification.md +41 -0
- package/dist/artifacts/23-auditoria-de-indexes-y-alias/acceptance.md +62 -0
- package/dist/artifacts/23-auditoria-de-indexes-y-alias/architect/analysis.md +90 -0
- package/dist/artifacts/23-auditoria-de-indexes-y-alias/architect/plan.md +85 -0
- package/dist/artifacts/23-auditoria-de-indexes-y-alias/audit-report.md +52 -0
- package/dist/artifacts/23-auditoria-de-indexes-y-alias/researcher/research.md +52 -0
- package/dist/artifacts/23-auditoria-de-indexes-y-alias/results.md +31 -0
- package/dist/artifacts/23-auditoria-de-indexes-y-alias/task.md +90 -0
- package/dist/artifacts/23-auditoria-de-indexes-y-alias/verification.md +42 -0
- package/dist/artifacts/24-revision-priorizacion-todo-backlog/analysis.md +64 -0
- package/dist/artifacts/24-revision-priorizacion-todo-backlog/candidate/acceptance.md +68 -0
- package/dist/artifacts/24-revision-priorizacion-todo-backlog/planning.md +79 -0
- package/dist/artifacts/24-revision-priorizacion-todo-backlog/portable-roadmap.md +25 -0
- package/dist/artifacts/24-revision-priorizacion-todo-backlog/researcher/research.md +91 -0
- package/dist/artifacts/24-revision-priorizacion-todo-backlog/task.md +89 -0
- package/dist/artifacts/24-revision-priorizacion-todo-backlog/verification.md +59 -0
- package/dist/artifacts/25-auditoria-omision-gates/acceptance.md +57 -0
- package/dist/artifacts/25-auditoria-omision-gates/brief.md +89 -0
- package/dist/artifacts/25-auditoria-omision-gates/closure.md +88 -0
- package/dist/artifacts/25-auditoria-omision-gates/rca.md +49 -0
- package/dist/artifacts/25-auditoria-omision-gates/task.md +64 -0
- package/dist/artifacts/26-portable-agentic-system/acceptance.md +41 -0
- package/dist/artifacts/26-portable-agentic-system/agent-tasks/1-architect-scaffolding.md +113 -0
- package/dist/artifacts/26-portable-agentic-system/agent-tasks/2-architect-core-migration.md +117 -0
- package/dist/artifacts/26-portable-agentic-system/agent-tasks/3-architect-cli-implementation.md +109 -0
- package/dist/artifacts/26-portable-agentic-system/agent-tasks/4-architect-linking-and-verification.md +104 -0
- package/dist/artifacts/26-portable-agentic-system/analysis.md +117 -0
- package/dist/artifacts/26-portable-agentic-system/architect/review.md +41 -0
- package/dist/artifacts/26-portable-agentic-system/plan.md +146 -0
- package/dist/artifacts/26-portable-agentic-system/researcher/research.md +96 -0
- package/dist/artifacts/26-portable-agentic-system/task.md +50 -0
- package/dist/artifacts/26-portable-agentic-system/verification.md +67 -0
- package/dist/artifacts/27-update-portable-module-agent-identity/acceptance.md +74 -0
- package/dist/artifacts/27-update-portable-module-agent-identity/agent-tasks/1-module-agent-update-templates.md +86 -0
- package/dist/artifacts/27-update-portable-module-agent-identity/agent-tasks/2-module-agent-update-workflows-long.md +88 -0
- package/dist/artifacts/27-update-portable-module-agent-identity/agent-tasks/3-module-agent-update-workflows-short-init.md +89 -0
- package/dist/artifacts/27-update-portable-module-agent-identity/agent-tasks/4-module-agent-update-roles.md +85 -0
- package/dist/artifacts/27-update-portable-module-agent-identity/agent-tasks/5-module-agent-update-version-manifests.md +84 -0
- package/dist/artifacts/27-update-portable-module-agent-identity/analysis.md +90 -0
- package/dist/artifacts/27-update-portable-module-agent-identity/architect/review.md +44 -0
- package/dist/artifacts/27-update-portable-module-agent-identity/changelog.md +17 -0
- package/dist/artifacts/27-update-portable-module-agent-identity/metrics.md +52 -0
- package/dist/artifacts/27-update-portable-module-agent-identity/plan.md +122 -0
- package/dist/artifacts/27-update-portable-module-agent-identity/researcher/research.md +73 -0
- package/dist/artifacts/27-update-portable-module-agent-identity/results-acceptance.md +51 -0
- package/dist/artifacts/27-update-portable-module-agent-identity/task.md +115 -0
- package/dist/artifacts/27-update-portable-module-agent-identity/verification.md +66 -0
- package/dist/artifacts/28-agent-system-update-conversion/acceptance.md +67 -0
- package/dist/artifacts/28-agent-system-update-conversion/agent-tasks/1-tooling-agent-migration-infrastructure.md +88 -0
- package/dist/artifacts/28-agent-system-update-conversion/agent-tasks/2-tooling-agent-content-transformer.md +87 -0
- package/dist/artifacts/28-agent-system-update-conversion/agent-tasks/3-tooling-agent-cli-wizard-integration.md +86 -0
- package/dist/artifacts/28-agent-system-update-conversion/analysis.md +153 -0
- package/dist/artifacts/28-agent-system-update-conversion/architect/review.md +93 -0
- package/dist/artifacts/28-agent-system-update-conversion/metrics.md +43 -0
- package/dist/artifacts/28-agent-system-update-conversion/plan.md +153 -0
- package/dist/artifacts/28-agent-system-update-conversion/researcher/research.md +66 -0
- package/dist/artifacts/28-agent-system-update-conversion/results-acceptance.md +125 -0
- package/dist/artifacts/28-agent-system-update-conversion/task.md +103 -0
- package/dist/artifacts/28-agent-system-update-conversion/verification.md +60 -0
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/acceptance.md +38 -0
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/agent-tasks/1-tooling-agent-core-resolver.md +85 -0
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/agent-tasks/2-tooling-agent-init-refactor.md +90 -0
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/agent-tasks/3-tooling-agent-scaffolding-system.md +92 -0
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/agent-tasks/4-architect-agents-md-trail.md +84 -0
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/agent-tasks/5-tooling-agent-mcp-server.md +92 -0
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/agent-tasks/6-architect-neo-agent-birth.md +85 -0
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/analysis.md +119 -0
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/architect/review.md +46 -0
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/plan.md +95 -0
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/researcher/research.md +68 -0
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/results-acceptance.md +59 -0
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/task.md +99 -0
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/verification.md +54 -0
- package/dist/artifacts/3-developer-feedback-gate/acceptance-criteria.md +18 -0
- package/dist/artifacts/3-developer-feedback-gate/analysis.md +27 -0
- package/dist/artifacts/3-developer-feedback-gate/changelog.md +10 -0
- package/dist/artifacts/3-developer-feedback-gate/implementation_plan.md +32 -0
- package/dist/artifacts/3-developer-feedback-gate/init.md +13 -0
- package/dist/artifacts/3-developer-feedback-gate/metrics.md +34 -0
- package/dist/artifacts/3-developer-feedback-gate/research.md +28 -0
- package/dist/artifacts/3-developer-feedback-gate/results-acceptance.md +17 -0
- package/dist/artifacts/3-developer-feedback-gate/task.md +17 -0
- package/dist/artifacts/3-developer-feedback-gate/verification.md +35 -0
- package/dist/artifacts/30-task-execution-protocol-gates/acceptance.md +46 -0
- package/dist/artifacts/30-task-execution-protocol-gates/researcher/research.md +34 -0
- package/dist/artifacts/30-task-execution-protocol-gates/task.md +77 -0
- package/dist/artifacts/4-adr-workflows-modulos/adr.md +380 -0
- package/dist/artifacts/4-adr-workflows-modulos/analysis.md +353 -0
- package/dist/artifacts/4-adr-workflows-modulos/plan.md +301 -0
- package/dist/artifacts/4-adr-workflows-modulos/researcher/research.md +253 -0
- package/dist/artifacts/4-adr-workflows-modulos/results.md +202 -0
- package/dist/artifacts/4-adr-workflows-modulos/task.md +143 -0
- package/dist/artifacts/4-adr-workflows-modulos/verification.md +123 -0
- package/dist/artifacts/5-implementar-adr-crear-modulo/analysis.md +169 -0
- package/dist/artifacts/5-implementar-adr-crear-modulo/architect/review.md +105 -0
- package/dist/artifacts/5-implementar-adr-crear-modulo/architect/subtask-implementation.md +90 -0
- package/dist/artifacts/5-implementar-adr-crear-modulo/changelog.md +7 -0
- package/dist/artifacts/5-implementar-adr-crear-modulo/metrics.md +34 -0
- package/dist/artifacts/5-implementar-adr-crear-modulo/plan.md +163 -0
- package/dist/artifacts/5-implementar-adr-crear-modulo/researcher/research.md +105 -0
- package/dist/artifacts/5-implementar-adr-crear-modulo/results-acceptance.md +153 -0
- package/dist/artifacts/5-implementar-adr-crear-modulo/task.md +147 -0
- package/dist/artifacts/5-implementar-adr-crear-modulo/verification.md +79 -0
- package/dist/artifacts/6-exportar-ciclo-agent-zip/analysis.md +153 -0
- package/dist/artifacts/6-exportar-ciclo-agent-zip/architect/review.md +103 -0
- package/dist/artifacts/6-exportar-ciclo-agent-zip/architect/subtask-implementation.md +79 -0
- package/dist/artifacts/6-exportar-ciclo-agent-zip/changelog.md +8 -0
- package/dist/artifacts/6-exportar-ciclo-agent-zip/metrics.md +34 -0
- package/dist/artifacts/6-exportar-ciclo-agent-zip/plan.md +131 -0
- package/dist/artifacts/6-exportar-ciclo-agent-zip/researcher/research.md +86 -0
- package/dist/artifacts/6-exportar-ciclo-agent-zip/results-acceptance.md +108 -0
- package/dist/artifacts/6-exportar-ciclo-agent-zip/task.md +147 -0
- package/dist/artifacts/6-exportar-ciclo-agent-zip/verification.md +74 -0
- package/dist/artifacts/6-exportar-ciclo-agent-zip/whitelist.txt +33 -0
- package/dist/artifacts/7-modules-globals-constants/analysis.md +205 -0
- package/dist/artifacts/7-modules-globals-constants/architect/review.md +110 -0
- package/dist/artifacts/7-modules-globals-constants/metrics.md +45 -0
- package/dist/artifacts/7-modules-globals-constants/plan.md +276 -0
- package/dist/artifacts/7-modules-globals-constants/researcher/research.md +247 -0
- package/dist/artifacts/7-modules-globals-constants/task.md +112 -0
- package/dist/artifacts/7-modules-globals-constants/verification.md +76 -0
- package/dist/artifacts/8-module-workflow-refactor/analysis.md +131 -0
- package/dist/artifacts/8-module-workflow-refactor/changelog.md +24 -0
- package/dist/artifacts/8-module-workflow-refactor/metrics.md +37 -0
- package/dist/artifacts/8-module-workflow-refactor/plan.md +193 -0
- package/dist/artifacts/8-module-workflow-refactor/researcher/research.md +222 -0
- package/dist/artifacts/8-module-workflow-refactor/results.md +112 -0
- package/dist/artifacts/8-module-workflow-refactor/review.md +76 -0
- package/dist/artifacts/8-module-workflow-refactor/task.md +154 -0
- package/dist/artifacts/8-module-workflow-refactor/verification.md +76 -0
- package/dist/artifacts/8-module-workflow-refactor/walkthrough.md +64 -0
- package/dist/artifacts/9-build-stabilization/analysis.md +62 -0
- package/dist/artifacts/9-build-stabilization/metrics.md +11 -0
- package/dist/artifacts/9-build-stabilization/plan.md +82 -0
- package/dist/artifacts/9-build-stabilization/researcher/research.md +102 -0
- package/dist/artifacts/9-build-stabilization/task.md +23 -0
- package/dist/artifacts/9-build-stabilization/walkthrough.md +56 -0
- package/dist/artifacts/candidate/init.md +34 -0
- package/dist/artifacts/candidate/task.md +24 -0
- package/dist/artifacts/index.md +31 -10
- package/dist/cli/commands/init.js +31 -137
- package/dist/cli/commands/restore.js +4 -11
- package/dist/core/migration/backup.js +2 -3
- package/dist/core/utils/backup.js +3 -24
- package/dist/index.md +57 -0
- package/dist/metrics/agent-scores.md +30 -0
- package/dist/metrics/agents.json +106 -0
- package/dist/metrics/index.md +23 -0
- package/dist/rules/constitution/GEMINI.location.md +17 -14
- package/dist/rules/constitution/agents-behavior.md +111 -107
- package/dist/rules/constitution/clean-code.md +65 -13
- package/dist/rules/constitution/drivers.md +294 -0
- package/dist/rules/constitution/extensio-architecture.md +131 -0
- package/dist/rules/constitution/index.md +20 -17
- package/dist/rules/constitution/modules.md +280 -0
- package/dist/rules/constitution/pages.md +454 -0
- package/dist/rules/constitution/shards.md +484 -0
- package/dist/rules/index.md +57 -12
- package/dist/rules/roles/architect.md +128 -28
- package/dist/rules/roles/driver.md +172 -0
- package/dist/rules/roles/index.md +20 -18
- package/dist/rules/roles/module.md +175 -0
- package/dist/rules/roles/neo.md +6 -18
- package/dist/rules/roles/qa.md +195 -8
- package/dist/rules/roles/researcher.md +75 -10
- package/dist/rules/roles/surface.md +60 -0
- package/dist/rules/roles/tooling.md +55 -9
- package/dist/skills/extensio-build/SKILL.md +161 -0
- package/dist/skills/extensio-create-driver/SKILL.md +89 -0
- package/dist/skills/extensio-create-module/SKILL.md +91 -0
- package/dist/skills/extensio-demo/SKILL.md +84 -0
- package/dist/skills/extensio-test/SKILL.md +96 -0
- package/dist/skills/extensio-validate-code/SKILL.md +262 -0
- package/dist/skills/index.md +79 -0
- package/dist/templates/acceptance.md +20 -20
- package/dist/templates/agent-scores.md +7 -11
- package/dist/templates/agent-task.md +60 -63
- package/dist/templates/analysis.md +92 -92
- package/dist/templates/brief.md +49 -49
- package/dist/templates/changelog.md +8 -12
- package/dist/templates/closure.md +28 -28
- package/dist/templates/driver-create.md +116 -0
- package/dist/templates/driver-delete.md +84 -0
- package/dist/templates/driver-refactor.md +94 -0
- package/dist/templates/index.md +14 -11
- package/dist/templates/init.md +0 -12
- package/dist/templates/module-create.md +117 -0
- package/dist/templates/module-delete.md +79 -0
- package/dist/templates/module-refactor.md +87 -0
- package/dist/templates/planning.md +76 -78
- package/dist/templates/research.md +44 -56
- package/dist/templates/results-acceptance.md +94 -106
- package/dist/templates/review.md +61 -62
- package/dist/templates/subtask-implementation.md +30 -35
- package/dist/templates/supplemental-report.md +8 -12
- package/dist/templates/task-metrics.md +14 -15
- package/dist/templates/task.md +15 -19
- package/dist/templates/todo-item.md +23 -27
- package/dist/templates/verification.md +33 -33
- package/dist/todo/001-anadir-seccion-reasoning.md +42 -0
- package/dist/todo/002-anadir-ejemplos-few-shot.md +46 -0
- package/dist/todo/003-explorar-paralelizacion-phase4.md +46 -0
- package/dist/todo/004-portable-agentic-system.md +44 -0
- package/dist/todo/README.md +58 -0
- package/dist/todo/index.md +27 -0
- package/dist/tools/extensio-cli.md +76 -0
- package/dist/tools/index.md +14 -0
- package/dist/tools/run-command.md +42 -0
- package/dist/workflows/drivers/create.md +139 -0
- package/dist/workflows/drivers/delete.md +124 -0
- package/dist/workflows/drivers/index.md +25 -0
- package/dist/workflows/drivers/refactor.md +125 -0
- package/dist/workflows/index.md +17 -29
- package/dist/workflows/init.md +103 -43
- package/dist/workflows/modules/create.md +160 -0
- package/dist/workflows/modules/delete.md +121 -0
- package/dist/workflows/modules/index.md +27 -0
- package/dist/workflows/modules/pages.create.md +234 -0
- package/dist/workflows/modules/refactor.md +122 -0
- package/dist/workflows/modules/shards.create.md +215 -0
- package/dist/workflows/tasklifecycle-long/index.md +86 -90
- package/dist/workflows/tasklifecycle-long/phase-0-acceptance-criteria.md +130 -118
- package/dist/workflows/tasklifecycle-long/phase-1-research.md +104 -105
- package/dist/workflows/tasklifecycle-long/phase-2-analysis.md +120 -97
- package/dist/workflows/tasklifecycle-long/phase-3-planning.md +136 -75
- package/dist/workflows/tasklifecycle-long/phase-4-implementation.md +163 -73
- package/dist/workflows/tasklifecycle-long/phase-5-verification.md +136 -45
- package/dist/workflows/tasklifecycle-long/phase-6-results-acceptance.md +106 -46
- package/dist/workflows/tasklifecycle-long/phase-7-evaluation.md +96 -51
- package/dist/workflows/tasklifecycle-long/phase-8-commit-push.md +108 -51
- package/dist/workflows/tasklifecycle-short/index.md +30 -27
- package/dist/workflows/tasklifecycle-short/short-phase-1-brief.md +80 -39
- package/dist/workflows/tasklifecycle-short/short-phase-2-implementation.md +78 -44
- package/dist/workflows/tasklifecycle-short/short-phase-3-closure.md +81 -44
- package/package.json +3 -3
- package/dist/bootstrap.md +0 -591
- package/dist/rules/constitution/agent-system.md +0 -77
- package/dist/rules/constitution/project-architecture.md +0 -57
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
---
|
|
2
|
+
artifact: verification
|
|
3
|
+
phase: phase-5-verification
|
|
4
|
+
owner: qa-agent
|
|
5
|
+
status: completed
|
|
6
|
+
related_task: 7-modules-globals-constants
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Verification Report — 7-modules-globals-constants
|
|
10
|
+
|
|
11
|
+
## 1. Resumen
|
|
12
|
+
|
|
13
|
+
**Objetivo:** Verificar implementación de namespace `Extensio` y patrón de globals/constants para módulos.
|
|
14
|
+
|
|
15
|
+
**Estado:** ✅ VERIFICADO
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## 2. Verificaciones ejecutadas
|
|
20
|
+
|
|
21
|
+
### Build TypeScript
|
|
22
|
+
- **Comando:** `npx tsc --noEmit --skipLibCheck`
|
|
23
|
+
- **Resultado:** ✅ Sin errores propios
|
|
24
|
+
- **Notas:** Errores pre-existentes en node_modules (no relacionados)
|
|
25
|
+
|
|
26
|
+
### Tests unitarios
|
|
27
|
+
- **Comando:** `ext test --type unit`
|
|
28
|
+
- **Resultado:** ⚠️ No hay vitest.config (skip)
|
|
29
|
+
- **Notas:** El módulo test-globals es minimal, sin lógica de negocio
|
|
30
|
+
|
|
31
|
+
### Verificación de namespace
|
|
32
|
+
- **global.d.mts:** ✅ Usa `namespace Extensio`
|
|
33
|
+
- **CLI module generator:** ✅ Genera con `Extensio`
|
|
34
|
+
- **CLI driver generator:** ✅ Genera con `Extensio`
|
|
35
|
+
|
|
36
|
+
### Verificación de módulo test-globals
|
|
37
|
+
- **Estructura:** ✅ Completa (engine, types, constants, tests)
|
|
38
|
+
- **Integración globals:** ✅ `Extensio.TestGlobals.ModuleType`
|
|
39
|
+
- **Clase:** ✅ `TestGlobalsEngine`
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## 3. Cobertura de Acceptance Criteria
|
|
44
|
+
|
|
45
|
+
| AC | Verificación | Estado |
|
|
46
|
+
|----|--------------|--------|
|
|
47
|
+
| AC-1 | No hay módulos legacy | ✅ |
|
|
48
|
+
| AC-2 | Namespace `Extensio.TestGlobals` | ✅ |
|
|
49
|
+
| AC-3 | Solo `ModuleType` en globals | ✅ |
|
|
50
|
+
| AC-4 | Workflow create.md con verificación | ✅ |
|
|
51
|
+
| AC-5 | CLI crea módulo correctamente | ✅ |
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## 4. Métricas
|
|
56
|
+
|
|
57
|
+
| Métrica | Valor |
|
|
58
|
+
|---------|-------|
|
|
59
|
+
| Archivos modificados | 7 |
|
|
60
|
+
| Archivos creados | 6 (módulo test-globals) |
|
|
61
|
+
| Errores TypeScript propios | 0 |
|
|
62
|
+
| Tests ejecutados | 0 (no aplica) |
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## 5. Decisión
|
|
67
|
+
|
|
68
|
+
**Estado:** ✅ **VERIFICACIÓN APROBADA**
|
|
69
|
+
|
|
70
|
+
```yaml
|
|
71
|
+
verification:
|
|
72
|
+
qa:
|
|
73
|
+
decision: APROBADO
|
|
74
|
+
date: 2026-01-07T21:18:00+01:00
|
|
75
|
+
notes: "Implementación verificada sin errores"
|
|
76
|
+
```
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
---
|
|
2
|
+
artifact: analysis
|
|
3
|
+
phase: phase-2-analysis
|
|
4
|
+
owner: architect-agent
|
|
5
|
+
status: draft
|
|
6
|
+
related_task: 8-module-workflow-refactor
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Analysis — 8-module-workflow-refactor
|
|
10
|
+
|
|
11
|
+
## 1. Resumen ejecutivo
|
|
12
|
+
**Problema**
|
|
13
|
+
El workflow actual de creación de módulos es inconsistente con el patrón de drivers y carece de automatización en naming y estructura de surfaces, lo que genera deuda técnica y fricción.
|
|
14
|
+
|
|
15
|
+
**Objetivo**
|
|
16
|
+
Consolidar el sistema de creación de módulos (generator, MCP tool y constitution) para garantizar consistencia arquitectónica, naming automatizado y demos funcionales por defecto.
|
|
17
|
+
|
|
18
|
+
**Criterio de éxito**
|
|
19
|
+
Un generator que produce módulos compliant con la arquitectura Extensio, integrados automáticamente en globals/constants, con demo funcional y soporte de shards/pages separados.
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## 2. Estado del proyecto (As-Is)
|
|
24
|
+
|
|
25
|
+
- **Generator (`ModuleGenerator`)**: Ya implementa la transformación de naming (`_camelize`, `_getKebaName`) y la integración de globals/constants. Sin embargo, no incluye demo por defecto y el template de shards está incompleto (falta registro).
|
|
26
|
+
- **MCP Tool (`extensio-create.ts`)**: Usa el flag legacy `--withSurface` y no expone `--withShards` / `--withPages` de forma granular.
|
|
27
|
+
- **Constitution (`modules.md`)**: No define explícitamente las reglas de naming para clases ni el mecanismo de registro de Shards.
|
|
28
|
+
- **Workflow (`modules/create.md`)**: No refleja la separación de surfaces.
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## 3. Cobertura de Acceptance Criteria
|
|
33
|
+
|
|
34
|
+
### AC-1: Refactorizar `constitution.modules`
|
|
35
|
+
- **Interpretación**: Añadir reglas de naming (CamelCase clases) y registro de Shards.
|
|
36
|
+
- **Verificación**: Revisión del md actualizado.
|
|
37
|
+
- **Riesgos**: Ninguno.
|
|
38
|
+
|
|
39
|
+
### AC-2: Refactorizar workflow `modules/create.md`
|
|
40
|
+
- **Interpretación**: Actualizar inputs/outputs y pasos para incluir flags separados.
|
|
41
|
+
- **Verificación**: Revisión del md actualizado.
|
|
42
|
+
|
|
43
|
+
### AC-3: Generator transforma naming automáticamente
|
|
44
|
+
- **Interpretación**: Input "session-manager" debe generar clase `SessionManagerEngine`.
|
|
45
|
+
- **Verificación**: Test unitario del generator y visual en demo.
|
|
46
|
+
- **Estado**: Ya implementado en lógica interna, requiere validación E2E.
|
|
47
|
+
|
|
48
|
+
### AC-4: Flags `--withShards` y `--withPages` separados
|
|
49
|
+
- **Interpretación**: El MCP debe exponer estos flags y el generator debe honrarlos.
|
|
50
|
+
- **Verificación**: Ejecutar `ext create module --name test --withShards` y verificar que NO se crea estructura de pages.
|
|
51
|
+
|
|
52
|
+
### AC-5: Estructura y Registro de Shards
|
|
53
|
+
- **Interpretación**: `src/surfaces/shards/index.mts` debe existir e incluir `Shard.register()`. Además, debe generarse un shard de ejemplo (`example.mts`) y registrarse para ilustrar el patrón. Debe incluir comentarios sobre cómo registrar shards externos (NPM).
|
|
54
|
+
- **Verificación**: Inspección del código generado y ejecución en navegador.
|
|
55
|
+
|
|
56
|
+
### AC-6: Integración Globals/Constants
|
|
57
|
+
- **Interpretación**: Mismo patrón que drivers (`Extensio.<Modulo>`).
|
|
58
|
+
- **Verificación**: Comprobar `global.d.mts` y `constants.mts` tras generación.
|
|
59
|
+
- **Estado**: Ya implementado, requiere validación E2E.
|
|
60
|
+
|
|
61
|
+
### AC-7: Demo funcional incluido
|
|
62
|
+
- **Interpretación**: `--includeDemo` debe ser true por defecto.
|
|
63
|
+
- **Verificación**: Ejecutar creación por defecto y verificar carpeta `demo/`.
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## 4. Research técnico
|
|
68
|
+
|
|
69
|
+
**Registro de Shards**
|
|
70
|
+
Se opta por **Registro Estático en index** (Investigación Phase 1, Refactor Phase 2).
|
|
71
|
+
- **Ventajas**: Explícito, sigue patrón WebComponents estandard, no requiere magia en runtime.
|
|
72
|
+
- **Implementación**: Modificar template `surface/shards/index.mts.ejs` para incluir llamadas a `Shard.register()`.
|
|
73
|
+
|
|
74
|
+
**Naming**
|
|
75
|
+
La lógica actual `_camelize` es correcta y se mantendrá. Se debe documentar en Constitution como regla estricta.
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## 5. Agentes participantes
|
|
80
|
+
|
|
81
|
+
- **Module Agent**
|
|
82
|
+
- Implementación de cambios en generator y templates.
|
|
83
|
+
- Actualización de `constitution.modules`.
|
|
84
|
+
- Actualización de workflow `modules/create.md`.
|
|
85
|
+
|
|
86
|
+
- **Architect Agent**
|
|
87
|
+
- Validación de cambios en constitution y workflows.
|
|
88
|
+
- Revisión de PRs.
|
|
89
|
+
|
|
90
|
+
- **Developer**
|
|
91
|
+
- Aprobación de demo funcional.
|
|
92
|
+
|
|
93
|
+
**Componentes necesarios**
|
|
94
|
+
- Modificar: `packages/cli/src/generators/module` (index.mts + templates)
|
|
95
|
+
- Modificar: `tools/mcp-server/src/tools/extensio-create.ts`
|
|
96
|
+
- Modificar: `.agent/rules/constitution/modules.md`
|
|
97
|
+
- Modificar: `.agent/workflows/modules/create.md`
|
|
98
|
+
|
|
99
|
+
**Demo**
|
|
100
|
+
La tarea implica que **cada módulo generado incluya un demo**. Esto es un cambio estructural en el output del generator, alineado con la arquitectura de drivers.
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
## 6. Impacto de la tarea
|
|
105
|
+
|
|
106
|
+
- **Arquitectura**: Estandarización de módulos al nivel de drivers. Mayor robustez en componentes UI (Shards).
|
|
107
|
+
- **APIs**: Cambio en argumentos de CLI (`ext create module`). Backwards compatibility para `--withSurface` (mapeado a both).
|
|
108
|
+
- **Compatibilidad**: Módulos existentes no se ven afectados (solo afecta a nueva creación).
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
## 7. Riesgos y mitigaciones
|
|
113
|
+
|
|
114
|
+
- **Riesgo**: `Shard.register` podría fallar si el tag name ya existe.
|
|
115
|
+
- **Mitigación**: El generator usa naming basado en el nombre del módulo para garantizar unicidad (`<module-name>-shard`).
|
|
116
|
+
|
|
117
|
+
- **Riesgo**: El demo aumenta el tamaño del paquete.
|
|
118
|
+
- **Mitigación**: El demo está en carpeta separada y se excluye del build de producción del módulo (se gestiona vía exports condicionales o patterns de exclusión).
|
|
119
|
+
|
|
120
|
+
---
|
|
121
|
+
|
|
122
|
+
## 8. Aprobación
|
|
123
|
+
Este análisis **requiere aprobación explícita del desarrollador**.
|
|
124
|
+
|
|
125
|
+
```yaml
|
|
126
|
+
approval:
|
|
127
|
+
developer:
|
|
128
|
+
decision: SI
|
|
129
|
+
date: 2026-01-07T21:48:46+01:00
|
|
130
|
+
comments: Aprobado con refactor de Shard.register()
|
|
131
|
+
```
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
artifact: changelog
|
|
3
|
+
phase: phase-8-commit-push
|
|
4
|
+
owner: architect-agent
|
|
5
|
+
status: pending
|
|
6
|
+
related_task: 8-module-workflow-refactor
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Changelog — 8-module-workflow-refactor
|
|
10
|
+
|
|
11
|
+
## Added
|
|
12
|
+
- New `Shard.register(tagName, Class)` pattern in `generator/module/templates`.
|
|
13
|
+
- `--withShards` and `--withPages` flags to `extensio_create` MCP tool and CLI.
|
|
14
|
+
- Automatic functional demo generation for modules (`includeDemo: true` by default).
|
|
15
|
+
- Example shard (`example.mts`) and registry (`index.mts`) in new module scaffolding.
|
|
16
|
+
- New rules in `constitution.modules` for naming conventions and `Shard.register` usage.
|
|
17
|
+
|
|
18
|
+
## Changed
|
|
19
|
+
- Refactored `module-create` workflow to support new flags.
|
|
20
|
+
- Updated `generators/module/index.mts` logic to handle legacy `withSurface` flag mapping.
|
|
21
|
+
- Updated `tools/mcp-server` definition to include new boolean flags.
|
|
22
|
+
|
|
23
|
+
## Fixed
|
|
24
|
+
- Fixed CLI boolean flags definition in `packages/cli/src/index.mts` (removed mandatory `<boolean>` argument).
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
artifact: task_metrics
|
|
3
|
+
phase: phase-7-evaluation
|
|
4
|
+
owner: architect-agent
|
|
5
|
+
status: pending
|
|
6
|
+
related_task: 8-module-workflow-refactor
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Task Metrics — 8-module-workflow-refactor
|
|
10
|
+
|
|
11
|
+
## 1. Agentes evaluados
|
|
12
|
+
- **architect-agent**: Responsable de análisis, plan y revisión.
|
|
13
|
+
- **module-agent**: Responsable de la implementación del generator y cli.
|
|
14
|
+
- **qa-agent**: Responsable de la verificación E2E.
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## 2. Puntuacion por agente (0-10)
|
|
19
|
+
- **architect-agent**: 10
|
|
20
|
+
- Justificacion: Plan sólido, detección temprana de necesidades (shards registry).
|
|
21
|
+
- **module-agent**: 9
|
|
22
|
+
- Justificacion: Implementación rápida y limpia, pequeño bug en CLI inputs corregido on-the-fly.
|
|
23
|
+
- **qa-agent**: 10
|
|
24
|
+
- Justificacion: Pruebas manuales exhaustivas y limpieza correcta.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## 3. Puntuacion global de la tarea
|
|
29
|
+
- Promedio ponderado: 9.6
|
|
30
|
+
- Observaciones: Tarea completada con éxito, cumpliendo todos los AC y mejorando la consistencia del ecosistema.
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## 4. Validación del Desarrollador
|
|
35
|
+
- Aprobado: SI
|
|
36
|
+
- Puntuación del desarrollador (0-5): 3
|
|
37
|
+
- Comentarios: se salto un workflow. todos son muy importantes
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
---
|
|
2
|
+
artifact: plan
|
|
3
|
+
phase: phase-3-planning
|
|
4
|
+
owner: architect-agent
|
|
5
|
+
status: draft
|
|
6
|
+
related_task: 8-module-workflow-refactor
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Implementation Plan — 8-module-workflow-refactor
|
|
10
|
+
|
|
11
|
+
## 1. Resumen del plan
|
|
12
|
+
- **Contexto**: El workflow actual de creación de módulos está desalineado con la arquitectura de drivers y carece de funcionalidades críticas (naming auto, demo, registro shards).
|
|
13
|
+
- **Resultado esperado**: Un sistema de creación de módulos (Generator + MCP + Workflow) robusto, consistente, con demo funcional por defecto y soporte granular de surfaces.
|
|
14
|
+
- **Alcance**:
|
|
15
|
+
- Modificación de `ModuleGenerator` y templates.
|
|
16
|
+
- Modificación de `extensio-create` MCP tool.
|
|
17
|
+
- Actualización de `constitution.modules` y `modules/create.md`.
|
|
18
|
+
- Validación mediante creación de módulo test.
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## 2. Inputs contractuales
|
|
23
|
+
- **Task**: `.agent/artifacts/8-module-workflow-refactor/task.md`
|
|
24
|
+
- **Analysis**: `.agent/artifacts/8-module-workflow-refactor/analysis.md`
|
|
25
|
+
- **Acceptance Criteria**: AC-1 a AC-7 definidos en task.md.
|
|
26
|
+
|
|
27
|
+
**Dispatch de dominios (OBLIGATORIO)**
|
|
28
|
+
```yaml
|
|
29
|
+
plan:
|
|
30
|
+
workflows:
|
|
31
|
+
modules:
|
|
32
|
+
action: refactor
|
|
33
|
+
workflow: workflow.modules.create # Se refactoriza el workflow de create
|
|
34
|
+
|
|
35
|
+
dispatch:
|
|
36
|
+
- domain: modules
|
|
37
|
+
action: refactor
|
|
38
|
+
workflow: workflow.modules.create
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## 3. Desglose de implementación (pasos)
|
|
44
|
+
|
|
45
|
+
### Paso 1: Actualización de Constitution
|
|
46
|
+
- **Descripción**: Incorporar reglas de naming (CamelCase) y registro estático de Shards (`Shard.register()`) en `constitution.modules`.
|
|
47
|
+
- **Dependencias**: Ninguna.
|
|
48
|
+
- **Entregables**: `.agent/rules/constitution/modules.md` actualizado.
|
|
49
|
+
- **Agente responsable**: module-agent.
|
|
50
|
+
|
|
51
|
+
### Paso 2: Refactorización de Templates
|
|
52
|
+
- **Descripción**:
|
|
53
|
+
- Crear template `surface/shards/example.mts.ejs` (Shard de ejemplo).
|
|
54
|
+
- Actualizar `surface/shards/index.mts.ejs` para:
|
|
55
|
+
- Importar y registrar `ExampleShard` localmente usando `Shard.register()`.
|
|
56
|
+
- Incluir comentarios explicativos para registro de Shards externos (NPM).
|
|
57
|
+
- Asegurar que demo template (copia de estructura) funcione correctamente con este ejemplo.
|
|
58
|
+
- **Dependencias**: Paso 1.
|
|
59
|
+
- **Entregables**: Archivos `.ejs` en `packages/cli/src/generators/module/templates/` actualizados.
|
|
60
|
+
- **Agente responsable**: module-agent.
|
|
61
|
+
|
|
62
|
+
### Paso 3: Lógica del Generator
|
|
63
|
+
- **Descripción**:
|
|
64
|
+
- Cambiar default `includeDemo` a `true` en `ModuleGenerator`.
|
|
65
|
+
- Verificar lógica de naming (ya existente, asegurar consistencia).
|
|
66
|
+
- Verificar lógica de `_extendGlobalTypes` y `_extendRootConstants`.
|
|
67
|
+
- **Dependencias**: Paso 2.
|
|
68
|
+
- **Entregables**: `packages/cli/src/generators/module/index.mts` actualizado.
|
|
69
|
+
- **Agente responsable**: module-agent.
|
|
70
|
+
|
|
71
|
+
### Paso 4: Actualización MCP Tool
|
|
72
|
+
- **Descripción**:
|
|
73
|
+
- Añadir flags `withShards` y `withPages` al esquema Zod.
|
|
74
|
+
- Marcar `withSurface` como deprecated (mapping a ambos para compatibilidad).
|
|
75
|
+
- Mapear nuevos flags a argumentos del CLI yeoman.
|
|
76
|
+
- **Dependencias**: Paso 3.
|
|
77
|
+
- **Entregables**: `tools/mcp-server/src/tools/extensio-create.ts` actualizado.
|
|
78
|
+
- **Agente responsable**: module-agent.
|
|
79
|
+
|
|
80
|
+
### Paso 5: Actualización de Workflow Doc
|
|
81
|
+
- **Descripción**: Reflejar los nuevos inputs y pasos en el workflow de documentación.
|
|
82
|
+
- **Dependencias**: Paso 4.
|
|
83
|
+
- **Entregables**: `.agent/workflows/modules/create.md` actualizado.
|
|
84
|
+
- **Agente responsable**: module-agent.
|
|
85
|
+
|
|
86
|
+
### Paso 6: Validación
|
|
87
|
+
- **Descripción**:
|
|
88
|
+
- Build del CLI y MCP.
|
|
89
|
+
- Ejecutar `ext create module` con diferentes flags.
|
|
90
|
+
- Verificar estructura generada, types globales, constants y demo.
|
|
91
|
+
- **Dependencias**: Paso 5.
|
|
92
|
+
- **Entregables**: Reporte de walkthrough.
|
|
93
|
+
- **Agente responsable**: module-agent.
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## 4. Asignación de responsabilidades (Agentes)
|
|
98
|
+
|
|
99
|
+
- **Architect-Agent**
|
|
100
|
+
- Validación del plan y del resultado final.
|
|
101
|
+
- Auditoría de coherencia con Constitution. y Analysis.
|
|
102
|
+
|
|
103
|
+
- **Module-Agent**
|
|
104
|
+
- Ejecución integral de los Pasos 1 a 6.
|
|
105
|
+
- Responsable de código, templates y documentación.
|
|
106
|
+
|
|
107
|
+
**Componentes**
|
|
108
|
+
- **Generator**: Se modifica `ModuleGenerator`. Herramienta: typescript compiler (build CLI).
|
|
109
|
+
- **MCP Tool**: Se modifica `extensio-create`. Herramienta: typescript compiler (build MCP).
|
|
110
|
+
|
|
111
|
+
**Demo**
|
|
112
|
+
- Se generará un módulo "dummy" (`refactor-test`) usando el nuevo MCP para validar.
|
|
113
|
+
- Estructura alineada con arquitectura por definición del generator.
|
|
114
|
+
|
|
115
|
+
---
|
|
116
|
+
|
|
117
|
+
## 5. Estrategia de testing y validación
|
|
118
|
+
|
|
119
|
+
- **Unit tests**:
|
|
120
|
+
- Tests existentes del generator deben pasar.
|
|
121
|
+
|
|
122
|
+
- **Integration / Manual**:
|
|
123
|
+
- **Prueba 1**: Crear módulo full (`--withShards --withPages`). Verificar `demo/` y registro de shards.
|
|
124
|
+
- **Prueba 2**: Crear módulo solo engine. Verificar ausencia de surfaces.
|
|
125
|
+
- **Prueba 3**: Validar `global.d.mts` y `constants.mts` actualizados correctamente.
|
|
126
|
+
- **Prueba 4**: Levantar demo generada y comprobar que funciona sin errores.
|
|
127
|
+
|
|
128
|
+
**Trazabilidad**
|
|
129
|
+
- AC-1 -> Paso 1
|
|
130
|
+
- AC-2 -> Paso 5
|
|
131
|
+
- AC-3 -> Paso 3
|
|
132
|
+
- AC-4 -> Paso 4
|
|
133
|
+
- AC-5 -> Paso 2
|
|
134
|
+
- AC-6 -> Paso 3
|
|
135
|
+
- AC-7 -> Paso 3
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
## 6. Plan de demo
|
|
140
|
+
- **Objetivo**: Demostrar que el nuevo generator crea módulos funcionales "out of the box".
|
|
141
|
+
- **Escenario**: Generar módulo `demo-module`, buildearlo y cargarlo.
|
|
142
|
+
- **Criterios**:
|
|
143
|
+
- No errores de compilación.
|
|
144
|
+
- Shards registrados correctamente.
|
|
145
|
+
- Demo navegable.
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## 7. Estimaciones y pesos de implementación
|
|
150
|
+
- **Paso 1 (Constitution)**: Bajo (Doc).
|
|
151
|
+
- **Paso 2 (Templates)**: Medio (Código EJS cuidado).
|
|
152
|
+
- **Paso 3 (Generator)**: Bajo (Lógica simple).
|
|
153
|
+
- **Paso 4 (MCP)**: Medio (Zod + Argument mapping).
|
|
154
|
+
- **Paso 5 (Workflow)**: Bajo (Doc).
|
|
155
|
+
- **Paso 6 (Validación)**: Medio (Build + Test manual).
|
|
156
|
+
|
|
157
|
+
**Timeline**: ~2-3 horas estimadas de agente.
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## 8. Puntos críticos y resolución
|
|
162
|
+
- **Punto crítico 1**: Conflicto de flags en mapping de MCP.
|
|
163
|
+
- **Resolución**: Lógica clara: si viene legacy `withSurface`, activa ambos. Si vienen específicos, usan específicos.
|
|
164
|
+
|
|
165
|
+
- **Punto crítico 2**: Error de sintaxis en template EJS al inyectar `Shard.register`.
|
|
166
|
+
- **Resolución**: Validación cuidadosa de la sintaxis generada.
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
## 9. Dependencias y compatibilidad
|
|
171
|
+
- **Compatible** con todos los navegadores (agnóstico).
|
|
172
|
+
- **Compatible** hacia atrás (flag legacy).
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
## 10. Criterios de finalización
|
|
177
|
+
1. `extensio create module` soporta `--withShards` y `--withPages`.
|
|
178
|
+
2. Módulos generados compilan y ejecutan demo.
|
|
179
|
+
3. Shards se registran estáticamente.
|
|
180
|
+
4. Constitution y Workflow docs están actualizados.
|
|
181
|
+
5. `walkthrough.md` documenta la verificación exitosa.
|
|
182
|
+
|
|
183
|
+
---
|
|
184
|
+
|
|
185
|
+
## 11. Aprobación del desarrollador (OBLIGATORIA)
|
|
186
|
+
|
|
187
|
+
```yaml
|
|
188
|
+
approval:
|
|
189
|
+
developer:
|
|
190
|
+
decision: SI
|
|
191
|
+
date: 2026-01-07T21:56:02+01:00
|
|
192
|
+
comments: Aprobado con requerimiento de example shard y comentarios NPM
|
|
193
|
+
```
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
---
|
|
2
|
+
artifact: research
|
|
3
|
+
phase: phase-1-research
|
|
4
|
+
owner: researcher-agent
|
|
5
|
+
status: draft
|
|
6
|
+
related_task: 8-module-workflow-refactor
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Research Report — 8-module-workflow-refactor
|
|
10
|
+
|
|
11
|
+
## 1. Resumen ejecutivo
|
|
12
|
+
|
|
13
|
+
### Problema investigado
|
|
14
|
+
Refactorizar el sistema de creación de módulos para garantizar:
|
|
15
|
+
- Naming automático (kebab-case → CamelCase)
|
|
16
|
+
- Flags separados para Shards/Pages
|
|
17
|
+
- Registro de Shards en fichero dedicado
|
|
18
|
+
- Integración de globals/constants siguiendo patrón de drivers
|
|
19
|
+
- Demo funcional incluido por defecto
|
|
20
|
+
|
|
21
|
+
### Objetivo de la investigación
|
|
22
|
+
Identificar el estado actual del generator, workflow y constitution de módulos, y documentar las brechas respecto a los acceptance criteria.
|
|
23
|
+
|
|
24
|
+
### Principales hallazgos
|
|
25
|
+
|
|
26
|
+
| Área | Estado Actual | Brecha Detectada |
|
|
27
|
+
|------|---------------|------------------|
|
|
28
|
+
| **Naming** | ✅ Implementado (`_camelize`, `_getKebaName`) | Naming de clases ya funciona (ej: `session-manager` → `SessionManager`) |
|
|
29
|
+
| **Flags** | ✅ Implementado | `--withPage` y `--withShard` ya son flags separados |
|
|
30
|
+
| **Registro Shards** | ⚠️ Parcial | Template `shards/index.mts.ejs` existe pero NO incluye `Shard.registerShard()` |
|
|
31
|
+
| **Globals** | ✅ Implementado | `_extendGlobalTypes()` actualiza `global.d.mts` correctamente |
|
|
32
|
+
| **Constants** | ✅ Implementado | `_extendRootConstants()` actualiza `constants.mts` |
|
|
33
|
+
| **Demo** | ⚠️ Opcional | Demo existe pero `--includeDemo` default es `false` |
|
|
34
|
+
| **MCP Tool** | ⚠️ Desactualizado | `extensio-create.ts` no refleja `--withShards`/`--withPages` separados |
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## 2. Necesidades detectadas
|
|
39
|
+
|
|
40
|
+
### 2.1 Estructura del Generator (`packages/cli/src/generators/module/index.mts`)
|
|
41
|
+
|
|
42
|
+
**Archivos clave analizados:**
|
|
43
|
+
- [index.mts](file:///Users/milos/Documents/workspace/extensio/packages/cli/src/generators/module/index.mts) (884 líneas)
|
|
44
|
+
- [engine.engine.ts.ejs](file:///Users/milos/Documents/workspace/extensio/packages/cli/src/generators/module/templates/engine.engine.ts.ejs)
|
|
45
|
+
- [shards/index.mts.ejs](file:///Users/milos/Documents/workspace/extensio/packages/cli/src/generators/module/templates/surface/shards/index.mts.ejs)
|
|
46
|
+
|
|
47
|
+
**Métodos existentes:**
|
|
48
|
+
```typescript
|
|
49
|
+
_getKebaName() // Convierte nombre a kebab-case
|
|
50
|
+
_camelize(str) // Convierte a camelCase
|
|
51
|
+
_capitalizeFirstLetter(str) // Primera letra mayúscula
|
|
52
|
+
_extendGlobalTypes() // Actualiza global.d.mts
|
|
53
|
+
_extendRootConstants() // Actualiza constants.mts
|
|
54
|
+
_createDemoFolder() // Crea demo
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### 2.2 Brechas identificadas
|
|
58
|
+
|
|
59
|
+
1. **Template de Shards sin registro WebComponent**
|
|
60
|
+
- El template actual NO incluye `Shard.registerShard(tagName, ElementClass)`
|
|
61
|
+
- Debe agregarse patrón de registro automático
|
|
62
|
+
|
|
63
|
+
2. **Demo no incluido por defecto**
|
|
64
|
+
- `includeDemo: false` en defaults
|
|
65
|
+
- Según acceptance criteria, debe ser `true`
|
|
66
|
+
|
|
67
|
+
3. **MCP Tool desactualizado**
|
|
68
|
+
- `extensio-create.ts` usa `--withSurface` (legacy)
|
|
69
|
+
- No refleja `--withShards`/`--withPages` correctamente
|
|
70
|
+
|
|
71
|
+
4. **Constitution de módulos incompleta**
|
|
72
|
+
- No documenta regla de naming (CamelCase para clases)
|
|
73
|
+
- No documenta estructura de registro de Shards
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## 3. Alternativas técnicas
|
|
78
|
+
|
|
79
|
+
### 3.1 Registro de Shards
|
|
80
|
+
|
|
81
|
+
| Alternativa | Descripción | Pros | Contras |
|
|
82
|
+
|-------------|-------------|------|---------|
|
|
83
|
+
| **A: Registro estático** | Llamar `Shard.registerShard()` al final del fichero | Simple, explícito | Manual |
|
|
84
|
+
| **B: Auto-registro en constructor** | Cada Shard se auto-registra | Automático | Menos control |
|
|
85
|
+
| **C: Decorador `@customElement`** | Decorador que registra | Limpio, DX moderno | Requiere cambio en Core |
|
|
86
|
+
|
|
87
|
+
**Recomendación:** Alternativa A - Registro estático es coherente con patrón WebComponents y no requiere cambios en Core.
|
|
88
|
+
|
|
89
|
+
### 3.2 Naming Transformation
|
|
90
|
+
|
|
91
|
+
El generator ya implementa la transformación correctamente:
|
|
92
|
+
|
|
93
|
+
```typescript
|
|
94
|
+
// En ModuleGenerator
|
|
95
|
+
_camelize(str?: string): string {
|
|
96
|
+
if (!str) return '';
|
|
97
|
+
return str
|
|
98
|
+
.toLowerCase()
|
|
99
|
+
.replace(/[-_]+(.)/g, (_, chr: string) => chr.toUpperCase());
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
_getKebaName() {
|
|
103
|
+
const { name } = this.answers;
|
|
104
|
+
return name.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();
|
|
105
|
+
}
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
**Input → Outputs:**
|
|
109
|
+
- `"session-manager"` → folder: `session-manager/`, clase: `SessionManagerEngine`
|
|
110
|
+
- `"Session Manager"` → folder: `session-manager/`, clase: `SessionManagerEngine`
|
|
111
|
+
- `"sessionManager"` → folder: `session-manager/`, clase: `SessionManagerEngine`
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## 4. APIs Web / WebExtensions relevantes
|
|
116
|
+
|
|
117
|
+
| API | Descripción | Relevancia |
|
|
118
|
+
|-----|-------------|------------|
|
|
119
|
+
| `customElements.define()` | Registro de WebComponents | Base para `Shard.registerShard()` |
|
|
120
|
+
| `chrome.runtime.getURL()` | URLs de recursos de extensión | Para rutas de Pages/Shards en demo |
|
|
121
|
+
|
|
122
|
+
**No se requieren APIs adicionales del navegador para esta tarea.**
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## 5. Compatibilidad multi-browser
|
|
127
|
+
|
|
128
|
+
Esta tarea es **agnóstica del navegador** ya que:
|
|
129
|
+
- El generator produce código TypeScript
|
|
130
|
+
- Los templates son idénticos para todos los browsers
|
|
131
|
+
- La compilación browser-específica ocurre en build time (no en scaffolding)
|
|
132
|
+
|
|
133
|
+
| Navegador | Compatibilidad | Notas |
|
|
134
|
+
|-----------|----------------|-------|
|
|
135
|
+
| Chrome | ✅ Completo | Objetivo principal |
|
|
136
|
+
| Firefox | ✅ Completo | Sin diferencias |
|
|
137
|
+
| Safari | ✅ Completo | Sin diferencias |
|
|
138
|
+
| Edge | ✅ Completo | Sin diferencias |
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## 6. Recomendaciones AI-first
|
|
143
|
+
|
|
144
|
+
### 6.1 Mejora del MCP Tool
|
|
145
|
+
El MCP tool `extensio_create` debe actualizarse para reflejar los flags reales:
|
|
146
|
+
|
|
147
|
+
```typescript
|
|
148
|
+
// Actualización propuesta para extensio-create.ts
|
|
149
|
+
withShards: z.boolean().optional().describe('Include Shards scaffold?'),
|
|
150
|
+
withPages: z.boolean().optional().describe('Include Pages scaffold?'),
|
|
151
|
+
// Eliminar o deprecar:
|
|
152
|
+
withSurface: z.boolean().optional().describe('[DEPRECATED] Use --withShards/--withPages'),
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
### 6.2 Validación automática
|
|
156
|
+
El generator podría validar nombres de módulos:
|
|
157
|
+
- Rechazar nombres vacíos
|
|
158
|
+
- Normalizar espacios a guiones
|
|
159
|
+
- Advertir sobre nombres reservados
|
|
160
|
+
|
|
161
|
+
### 6.3 Generación de documentación
|
|
162
|
+
Incluir README.md auto-generado con:
|
|
163
|
+
- Estructura del módulo
|
|
164
|
+
- Cómo usar Engine, Shards, Pages
|
|
165
|
+
- Ejemplo de integración
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
## 7. Riesgos y trade-offs
|
|
170
|
+
|
|
171
|
+
| Riesgo | Severidad | Mitigación |
|
|
172
|
+
|--------|-----------|------------|
|
|
173
|
+
| Breaking changes en MCP tool | Media | Mantener `--withSurface` como alias deprecated |
|
|
174
|
+
| Conflictos en `global.d.mts` | Baja | El generator ya verifica duplicados |
|
|
175
|
+
| Demo muy grande | Baja | Demo minimalista, solo demuestra lo esencial |
|
|
176
|
+
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
## 8. Fuentes
|
|
180
|
+
|
|
181
|
+
| Recurso | URL/Path |
|
|
182
|
+
|---------|----------|
|
|
183
|
+
| Generator actual | [packages/cli/src/generators/module/index.mts](file:///Users/milos/Documents/workspace/extensio/packages/cli/src/generators/module/index.mts) |
|
|
184
|
+
| MCP Tool | [tools/mcp-server/src/tools/extensio-create.ts](file:///Users/milos/Documents/workspace/extensio/tools/mcp-server/src/tools/extensio-create.ts) |
|
|
185
|
+
| Constitution módulos | [.agent/rules/constitution/modules.md](file:///Users/milos/Documents/workspace/extensio/.agent/rules/constitution/modules.md) |
|
|
186
|
+
| Workflow crear módulo | [.agent/workflows/modules/create.md](file:///Users/milos/Documents/workspace/extensio/.agent/workflows/modules/create.md) |
|
|
187
|
+
| Patrón drivers (global.d.mts) | [global.d.mts](file:///Users/milos/Documents/workspace/extensio/global.d.mts) |
|
|
188
|
+
| Core Shard | [packages/core/src/surface/shards/index.mts](file:///Users/milos/Documents/workspace/extensio/packages/core/src/surface/shards/index.mts) |
|
|
189
|
+
| MDN: Custom Elements | https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/define |
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
|
|
193
|
+
## 9. Conclusiones
|
|
194
|
+
|
|
195
|
+
### Cambios requeridos (resumen)
|
|
196
|
+
|
|
197
|
+
1. **Generator** (`packages/cli/src/generators/module/index.mts`):
|
|
198
|
+
- Cambiar `includeDemo: false` → `includeDemo: true` por defecto
|
|
199
|
+
- Actualizar template de Shards para incluir `Shard.register()` (Renombrado desde `registerShard` en Phase 2)
|
|
200
|
+
|
|
201
|
+
2. **MCP Tool** (`tools/mcp-server/src/tools/extensio-create.ts`):
|
|
202
|
+
- Añadir `--withShards` y `--withPages` como flags separados
|
|
203
|
+
- Deprecar `--withSurface` (mantener por compatibilidad)
|
|
204
|
+
|
|
205
|
+
3. **Constitution** (`.agent/rules/constitution/modules.md`):
|
|
206
|
+
- Añadir sección de naming (CamelCase para clases)
|
|
207
|
+
- Añadir sección de registro de Shards
|
|
208
|
+
|
|
209
|
+
4. **Workflow** (`.agent/workflows/modules/create.md`):
|
|
210
|
+
- Actualizar para reflejar nuevos flags
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
## 10. Aprobación del desarrollador (OBLIGATORIA)
|
|
215
|
+
|
|
216
|
+
```yaml
|
|
217
|
+
approval:
|
|
218
|
+
developer:
|
|
219
|
+
decision: SI
|
|
220
|
+
date: 2026-01-07T21:43:14+01:00
|
|
221
|
+
comments: Aprobado sin comentarios
|
|
222
|
+
```
|