@christianmaf80/agentic-workflow 1.14.0-beta.1 → 1.14.0-beta.2
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/init.md +7 -0
- 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 +31 -19
- 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,145 +0,0 @@
|
|
|
1
|
-
# Task: Revisión de Constitución y Workflows Agénticos
|
|
2
|
-
|
|
3
|
-
## Identificación
|
|
4
|
-
- id: 11-revision-sistema-agentic
|
|
5
|
-
- title: Revisión de Constitución y Workflows Agénticos
|
|
6
|
-
- scope: current
|
|
7
|
-
- owner: architect-agent
|
|
8
|
-
|
|
9
|
-
## Origen
|
|
10
|
-
- created_from:
|
|
11
|
-
- workflow: tasklifecycle
|
|
12
|
-
- source: init / tasklifecycle
|
|
13
|
-
- candidate_path: .agent/artifacts/candidate/task.md
|
|
14
|
-
|
|
15
|
-
## Descripción de la tarea
|
|
16
|
-
Revisión exhaustiva de las reglas de constitución para módulos, páginas y shards, seguida de un análisis y redefinición de los workflows operativos del sistema agéntico. El desarrollador ha detectado debilidades arquitectónicas en la implementación de estos elementos que causan interpretaciones erróneas por parte de los agentes.
|
|
17
|
-
|
|
18
|
-
## Objetivo
|
|
19
|
-
Analizar y consolidar la normativa del framework (Modules, Pages, Shards) y optimizar los flujos de trabajo (workflows) para asegurar la coherencia arquitectónica y la eficiencia del ciclo de vida de desarrollo, incluyendo la creación de workflows específicos para Page y Shard.
|
|
20
|
-
|
|
21
|
-
## Estado del ciclo de vida (FUENTE ÚNICA DE VERDAD)
|
|
22
|
-
|
|
23
|
-
```yaml
|
|
24
|
-
task:
|
|
25
|
-
id: "11-revision-sistema-agentic"
|
|
26
|
-
title: "Revisión de Constitución y Workflows Agénticos"
|
|
27
|
-
phase:
|
|
28
|
-
current: "phase-4-implementation"
|
|
29
|
-
validated_by: "architect-agent"
|
|
30
|
-
updated_at: "2026-01-13T23:48:00+01:00"
|
|
31
|
-
lifecycle:
|
|
32
|
-
phases:
|
|
33
|
-
phase-0-acceptance-criteria:
|
|
34
|
-
completed: true
|
|
35
|
-
validated_by: "architect-agent"
|
|
36
|
-
validated_at: "2026-01-13T09:25:00+01:00"
|
|
37
|
-
phase-1-research:
|
|
38
|
-
completed: true
|
|
39
|
-
validated_by: "architect-agent"
|
|
40
|
-
validated_at: "2026-01-13T09:43:00+01:00"
|
|
41
|
-
phase-2-analysis:
|
|
42
|
-
completed: true
|
|
43
|
-
validated_by: "architect-agent"
|
|
44
|
-
validated_at: "2026-01-13T22:00:00+01:00"
|
|
45
|
-
phase-3-planning:
|
|
46
|
-
completed: true
|
|
47
|
-
validated_by: "architect-agent"
|
|
48
|
-
validated_at: "2026-01-13T22:15:00+01:00"
|
|
49
|
-
phase-3-planning:
|
|
50
|
-
completed: false
|
|
51
|
-
validated_by: null
|
|
52
|
-
validated_at: null
|
|
53
|
-
phase-4-implementation:
|
|
54
|
-
completed: false
|
|
55
|
-
validated_by: null
|
|
56
|
-
validated_at: null
|
|
57
|
-
phase-5-verification:
|
|
58
|
-
completed: false
|
|
59
|
-
validated_by: null
|
|
60
|
-
validated_at: null
|
|
61
|
-
phase-6-results-acceptance:
|
|
62
|
-
completed: false
|
|
63
|
-
validated_by: null
|
|
64
|
-
validated_at: null
|
|
65
|
-
phase-7-evaluation:
|
|
66
|
-
completed: false
|
|
67
|
-
validated_by: null
|
|
68
|
-
validated_at: null
|
|
69
|
-
phase-8-commit-push:
|
|
70
|
-
completed: false
|
|
71
|
-
validated_by: null
|
|
72
|
-
validated_at: null
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
## 5 Preguntas Obligatorias (REQUERIDO - Phase 0)
|
|
76
|
-
|
|
77
|
-
| # | Pregunta (formulada por architect) | Respuesta (del desarrollador) |
|
|
78
|
-
|---|-----------------------------------|-------------------------------|
|
|
79
|
-
| 1 | ¿Cuál es el problema principal o la "desconexión" que has detectado actualmente en las constituciones de módulos, páginas y shards que motiva esta revisión? | Inconsistencias y debilidades arquitectónicas que causan implementaciones incompletas y mala interpretación de los agentes sobre las reglas e integración. |
|
|
80
|
-
| 2 | Respecto a los workflows, ¿buscas una simplificación de los pasos actuales o una mayor automatización y rigurosidad en las validaciones entre fases? | Perfeccionar los existentes e incluir workflows específicos y necesarios para Page y Shard. |
|
|
81
|
-
| 3 | En el análisis de la constitución, ¿prefieres que el architect-agent proponga cambios basados en `extensio-architecture.md` o guiarás el análisis punto por punto? | El arquitecto debe guiar con recomendaciones y valoraciones objetivas sobre las decisiones del desarrollador. |
|
|
82
|
-
| 4 | ¿Deseas que los resultados se materialicen en nuevos documentos de constitución (`modules.md`, `pages.md`, `shards.md`) o en una actualización profunda de los existentes? | Crear nuevos si no existen y refactorizar profundamente los existentes. |
|
|
83
|
-
| 5 | ¿Debemos considerar el impacto de estos cambios en las herramientas del CLI y el `mcp-server` durante la redefinición de los workflows? | Sí. |
|
|
84
|
-
|
|
85
|
-
---
|
|
86
|
-
|
|
87
|
-
## Acceptance Criteria (OBLIGATORIO PARA CURRENT TASK)
|
|
88
|
-
|
|
89
|
-
1. Alcance:
|
|
90
|
-
- Revisión y actualización de las constituciones `modules.md`, `pages.md` y `shards.md`.
|
|
91
|
-
- Creación de nuevos workflows contractuales para la creación/gestión de Pages y Shards.
|
|
92
|
-
- Refactorización de los workflows existentes del sistema agéntico para mayor rigurosidad.
|
|
93
|
-
|
|
94
|
-
2. Entradas / Datos:
|
|
95
|
-
- `extensio-architecture.md` como fuente de verdad arquitectónica.
|
|
96
|
-
- Constituciones actuales en `.agent/rules/constitution/`.
|
|
97
|
-
- Workflows actuales en `.agent/workflows/`.
|
|
98
|
-
|
|
99
|
-
3. Salidas / Resultado esperado:
|
|
100
|
-
- Documentos de constitución (`modules.md`, `pages.md`, `shards.md`) robustos, claros y sin ambigüedades.
|
|
101
|
-
- Workflows para Page (`pages.create.md`) y Shard (`shards.create.md`) implementados y registrados.
|
|
102
|
-
- Informe de impacto en CLI y MCP-server sobre los cambios estructurales.
|
|
103
|
-
|
|
104
|
-
4. Restricciones:
|
|
105
|
-
- No romper la retrocompatibilidad con la lógica de Core sin aviso.
|
|
106
|
-
- Mantener el aislamiento estricto entre módulos.
|
|
107
|
-
- Formato Markdown estricto para las reglas (`PERMANENT`, `MEMORY`, etc.).
|
|
108
|
-
|
|
109
|
-
5. Criterio de aceptación (Done):
|
|
110
|
-
- Aprobación explícita (SI) por parte de la autoridad técnica del desarrollador tras la revisión de los nuevos documentos y flujos.
|
|
111
|
-
|
|
112
|
-
## Historial de validaciones (append-only)
|
|
113
|
-
```yaml
|
|
114
|
-
history:
|
|
115
|
-
- phase: "phase-0-acceptance-criteria"
|
|
116
|
-
action: "completed"
|
|
117
|
-
validated_by: "architect-agent"
|
|
118
|
-
timestamp: "2026-01-13T09:25:00+01:00"
|
|
119
|
-
notes: "Acceptance criteria definidos y validados. Iniciando Fase 1."
|
|
120
|
-
- phase: "phase-1-research"
|
|
121
|
-
action: "completed"
|
|
122
|
-
validated_by: "architect-agent"
|
|
123
|
-
timestamp: "2026-01-13T09:43:00+01:00"
|
|
124
|
-
notes: "Investigación completada. Se ha analizado la lógica de build de shards/pages y las debilidades de la constitución actual. Iniciando Fase 2."
|
|
125
|
-
```
|
|
126
|
-
- phase: "phase-1-research"
|
|
127
|
-
action: "completed"
|
|
128
|
-
validated_by: "architect-agent"
|
|
129
|
-
timestamp: "2026-01-13T09:43:00+01:00"
|
|
130
|
-
notes: "Investigación completada. Análisis de constituciones y workflows."
|
|
131
|
-
- phase: "phase-2-analysis"
|
|
132
|
-
action: "completed"
|
|
133
|
-
validated_by: "architect-agent"
|
|
134
|
-
timestamp: "2026-01-13T22:00:00+01:00"
|
|
135
|
-
notes: "Análisis de impacto completado. Identificados gaps en CLI y Core."
|
|
136
|
-
- phase: "phase-3-planning"
|
|
137
|
-
action: "completed"
|
|
138
|
-
validated_by: "architect-agent"
|
|
139
|
-
timestamp: "2026-01-13T22:15:00+01:00"
|
|
140
|
-
notes: "Plan de implementación implícito en los documentos de impacto."
|
|
141
|
-
- phase: "phase-4-implementation"
|
|
142
|
-
action: "started"
|
|
143
|
-
validated_by: "architect-agent"
|
|
144
|
-
timestamp: "2026-01-13T23:48:00+01:00"
|
|
145
|
-
notes: "Constituciones y workflows actualizados. Pendiente: cambios en Core y CLI."
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
# Informe de Verificación - Phase 5
|
|
2
|
-
|
|
3
|
-
## Fecha: 2026-01-13T23:50:00+01:00
|
|
4
|
-
## Tarea: 11-revision-sistema-agentic
|
|
5
|
-
## Verificador: architect-agent
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
## 1. Entregables Verificados
|
|
10
|
-
|
|
11
|
-
### 1.1 Constituciones
|
|
12
|
-
|
|
13
|
-
| Archivo | Versión | Líneas | Estado |
|
|
14
|
-
|---------|---------|--------|--------|
|
|
15
|
-
| `extensio-architecture.md` | - | 131 | ✅ Verificado |
|
|
16
|
-
| `modules.md` | v2.0.0 | 250 | ✅ Verificado |
|
|
17
|
-
| `pages.md` | v2.1.0 | 454 | ✅ Verificado |
|
|
18
|
-
| `shards.md` | v2.0.0 | 484 | ✅ Verificado |
|
|
19
|
-
|
|
20
|
-
### 1.2 Workflows
|
|
21
|
-
|
|
22
|
-
| Archivo | Versión | Líneas | Estado |
|
|
23
|
-
|---------|---------|--------|--------|
|
|
24
|
-
| `modules/create.md` | v2.0.0 | 126 | ✅ Verificado |
|
|
25
|
-
| `modules/pages.create.md` | v2.0.0 | 202 | ✅ Verificado |
|
|
26
|
-
| `modules/shards.create.md` | v2.0.0 | 183 | ✅ Verificado |
|
|
27
|
-
|
|
28
|
-
### 1.3 Roles
|
|
29
|
-
|
|
30
|
-
| Archivo | Versión | Líneas | Estado |
|
|
31
|
-
|---------|---------|--------|--------|
|
|
32
|
-
| `roles/module.md` | v2.0.0 | 145 | ✅ Verificado |
|
|
33
|
-
|
|
34
|
-
### 1.4 Índices
|
|
35
|
-
|
|
36
|
-
| Archivo | Versión | Estado |
|
|
37
|
-
|---------|---------|--------|
|
|
38
|
-
| `rules/constitution/index.md` | v2.0.0 | ✅ Verificado |
|
|
39
|
-
| `workflows/modules/index.md` | v2.0.0 | ✅ Verificado |
|
|
40
|
-
|
|
41
|
-
---
|
|
42
|
-
|
|
43
|
-
## 2. Acceptance Criteria - Verificación
|
|
44
|
-
|
|
45
|
-
### AC1: Revisión y actualización de constituciones
|
|
46
|
-
- ✅ `modules.md` - Actualizado con ciclo de vida detallado, reactividad, estructura
|
|
47
|
-
- ✅ `pages.md` - Creado desde 21 líneas a 454 líneas con responsabilidades SRP
|
|
48
|
-
- ✅ `shards.md` - Creado desde 24 líneas a 484 líneas con ciclo de vida y registry
|
|
49
|
-
|
|
50
|
-
### AC2: Creación de workflows para Pages y Shards
|
|
51
|
-
- ✅ `pages.create.md` - Workflow completo con estructura, ciclo de vida, hooks
|
|
52
|
-
- ✅ `shards.create.md` - Workflow completo con registro, métodos abstractos, hooks
|
|
53
|
-
|
|
54
|
-
### AC3: Refactorización de workflows existentes
|
|
55
|
-
- ✅ `modules/create.md` - Actualizado para verificar Surfaces (Pages/Shards)
|
|
56
|
-
- ✅ `roles/module.md` - Actualizado para delegar a workflows de Surfaces
|
|
57
|
-
|
|
58
|
-
### AC4: Informe de impacto en CLI y MCP-server
|
|
59
|
-
- ✅ `cli-mcp-impact.md` - Gaps identificados en templates y comandos
|
|
60
|
-
- ✅ `core-impact.md` - Cambios de código requeridos en Core
|
|
61
|
-
|
|
62
|
-
---
|
|
63
|
-
|
|
64
|
-
## 3. Contenido Clave Verificado
|
|
65
|
-
|
|
66
|
-
### 3.1 Pages (constitution.pages)
|
|
67
|
-
- ✅ §1-2: Definición y jerarquía (Core → Surface → Page)
|
|
68
|
-
- ✅ §3: Estructura obligatoria
|
|
69
|
-
- ✅ §4: Ciclo de vida (run → listen → start → render → onMount)
|
|
70
|
-
- ✅ §5: Navegación (navigate, onNavigate)
|
|
71
|
-
- ✅ §7: Build y CLI
|
|
72
|
-
- ✅ §11-12: Responsabilidades SRP y restricciones
|
|
73
|
-
- ✅ §13: Hooks automáticos
|
|
74
|
-
|
|
75
|
-
### 3.2 Shards (constitution.shards)
|
|
76
|
-
- ✅ §1-2: Definición y jerarquía (Core → Surface → Shard)
|
|
77
|
-
- ✅ §3: Estructura obligatoria
|
|
78
|
-
- ✅ §4: Ciclo de vida (mount → render → onMount → unmount)
|
|
79
|
-
- ✅ §5: Registro como WebComponent
|
|
80
|
-
- ✅ §6: Dos contextos (Page vs Engine)
|
|
81
|
-
- ✅ §7: Comunicación con Engine (@onShard)
|
|
82
|
-
- ✅ §8-9: Responsabilidades y restricciones
|
|
83
|
-
- ✅ §14: Hooks automáticos
|
|
84
|
-
|
|
85
|
-
---
|
|
86
|
-
|
|
87
|
-
## 4. Gaps Documentados (Fuera de alcance actual)
|
|
88
|
-
|
|
89
|
-
| Gap | Documento | Prioridad |
|
|
90
|
-
|-----|-----------|-----------|
|
|
91
|
-
| Shard hereda de Core (debe ser Surface) | `core-impact.md` | 🔴 Alta |
|
|
92
|
-
| onMount debe ser automático | `core-impact.md` | 🔴 Alta |
|
|
93
|
-
| Template page.ts.ejs incompleto | `cli-mcp-impact.md` | 🔴 Alta |
|
|
94
|
-
| Template shard.ts.ejs sin getTagName | `cli-mcp-impact.md` | 🟡 Media |
|
|
95
|
-
|
|
96
|
-
---
|
|
97
|
-
|
|
98
|
-
## 5. Resultado de Verificación
|
|
99
|
-
|
|
100
|
-
| Criterio | Resultado |
|
|
101
|
-
|----------|-----------|
|
|
102
|
-
| Todos los entregables existen | ✅ PASS |
|
|
103
|
-
| Versiones actualizadas a 2.0.0 | ✅ PASS |
|
|
104
|
-
| Acceptance Criteria cubiertos | ✅ PASS |
|
|
105
|
-
| Contenido coherente con arquitectura | ✅ PASS |
|
|
106
|
-
| Gaps documentados | ✅ PASS |
|
|
107
|
-
|
|
108
|
-
## Decisión Final
|
|
109
|
-
|
|
110
|
-
**✅ VERIFICACIÓN APROBADA**
|
|
111
|
-
|
|
112
|
-
Los entregables de documentación (constituciones, workflows, roles) están completos y son coherentes con la arquitectura de Extensio.
|
|
113
|
-
|
|
114
|
-
Los cambios de código (Core, CLI) están documentados pero fuera del alcance de esta tarea.
|
|
115
|
-
|
|
116
|
-
---
|
|
117
|
-
|
|
118
|
-
Verificado por: architect-agent
|
|
119
|
-
Fecha: 2026-01-13T23:50:00+01:00
|
|
@@ -1,305 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
artifact: analysis-addendum
|
|
3
|
-
phase: phase-2-analysis
|
|
4
|
-
owner: architect-agent
|
|
5
|
-
status: draft
|
|
6
|
-
related_task: 12-adaptacion-core-cli-surfaces
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# Análisis de Cambio Arquitectónico: Page como Controller
|
|
10
|
-
|
|
11
|
-
## Propuesta del Desarrollador
|
|
12
|
-
|
|
13
|
-
> "Page debe disponer del método del engine para poder cargar shards para mantener la misma coherencia con el ciclo de cargar shards. Por eso creo que Pages debe actuar más como un controller persistente en memoria a diferencia de engine que es más event driven. Creo conveniente por tanto quitar la capacidad de render a Pages y que sean solo los Shards quienes dispongan de esa capacidad."
|
|
14
|
-
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
## 1. Análisis Comparativo: Engine vs Page
|
|
18
|
-
|
|
19
|
-
| Aspecto | Engine | Page (propuesta) |
|
|
20
|
-
|---------|--------|------------------|
|
|
21
|
-
| **Entorno** | Service Worker (background) | DOM (documento HTML) |
|
|
22
|
-
| **Persistencia** | Ephemeral (puede morir/revivir) | Persistente mientras tab esté abierto |
|
|
23
|
-
| **Acceso DOM** | ❌ No tiene acceso | ✅ Acceso directo |
|
|
24
|
-
| **Modelo** | Event-driven (listeners de Storage, Runtime) | Controller persistente en memoria |
|
|
25
|
-
| **Renderizado** | ❌ No renderiza | ❌ **No renderiza** (propuesta) |
|
|
26
|
-
| **Carga Shards** | `loadShard()` vía Scripting driver | `loadShard()` directo en DOM |
|
|
27
|
-
| **Comunicación** | Runtime.sendMessage | Directo a Shards (mismo contexto) |
|
|
28
|
-
|
|
29
|
-
---
|
|
30
|
-
|
|
31
|
-
## 2. Implicaciones del Cambio
|
|
32
|
-
|
|
33
|
-
### 2.1 Page como Controller (sin render)
|
|
34
|
-
|
|
35
|
-
**Ventajas:**
|
|
36
|
-
- **Separación de responsabilidades clara**: Page orquesta, Shard renderiza
|
|
37
|
-
- **Coherencia arquitectónica**: Un único patrón de renderizado (Shards)
|
|
38
|
-
- **Reutilización**: El mismo Shard puede usarse en Page o en navegación orgánica
|
|
39
|
-
- **Simplicidad en templates**: No hay que decidir si Page renderiza con Lit/React/Vanilla
|
|
40
|
-
- **Testabilidad**: Shards se testean aislados, Pages se testean como controllers
|
|
41
|
-
|
|
42
|
-
### 2.2 Page con `loadShard()`
|
|
43
|
-
|
|
44
|
-
**Implementación propuesta:**
|
|
45
|
-
|
|
46
|
-
```typescript
|
|
47
|
-
// Page como controller
|
|
48
|
-
class MyPage extends Page {
|
|
49
|
-
override start() {
|
|
50
|
-
// Cargar shards en el DOM de la Page
|
|
51
|
-
const container = document.getElementById('shards-container');
|
|
52
|
-
this.loadShard(MyShard, { container });
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
**Diferencia con Engine.loadShard():**
|
|
58
|
-
|
|
59
|
-
| Engine.loadShard() | Page.loadShard() |
|
|
60
|
-
|--------------------|------------------|
|
|
61
|
-
| Usa `Scripting.executeScript` | Instancia directa en DOM |
|
|
62
|
-
| Inyecta en tab externo | Monta en contenedor de la Page |
|
|
63
|
-
| Cross-context (Service Worker → Tab) | Same-context (Page DOM) |
|
|
64
|
-
|
|
65
|
-
---
|
|
66
|
-
|
|
67
|
-
## 3. Nueva Jerarquía Propuesta
|
|
68
|
-
|
|
69
|
-
```
|
|
70
|
-
Core
|
|
71
|
-
└── Surface (abstracta)
|
|
72
|
-
├── onMount() / onUnmount()
|
|
73
|
-
├── Sistema reactivo (@property, @onChanged)
|
|
74
|
-
│
|
|
75
|
-
├── Page (controller, SIN render)
|
|
76
|
-
│ ├── loadShard(shardClass, options)
|
|
77
|
-
│ ├── unloadShard(shardId)
|
|
78
|
-
│ └── getShards(): Shard[]
|
|
79
|
-
│
|
|
80
|
-
└── Shard (visual, CON render)
|
|
81
|
-
├── mount(container)
|
|
82
|
-
├── render()
|
|
83
|
-
├── update(props)
|
|
84
|
-
└── unmount()
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
---
|
|
88
|
-
|
|
89
|
-
## 4. Cambios en Constitución de Pages
|
|
90
|
-
|
|
91
|
-
### Antes (constitución actual)
|
|
92
|
-
```
|
|
93
|
-
Page se renderiza en su propio contexto
|
|
94
|
-
Page puede tener método render()
|
|
95
|
-
```
|
|
96
|
-
|
|
97
|
-
### Después (propuesta)
|
|
98
|
-
```
|
|
99
|
-
Page NO renderiza directamente
|
|
100
|
-
Page actúa como CONTROLLER:
|
|
101
|
-
- Orquesta Shards
|
|
102
|
-
- Gestiona lifecycle de Shards
|
|
103
|
-
- Responde a eventos del usuario delegando a Shards
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
### Nuevas responsabilidades de Page:
|
|
107
|
-
1. **Orquestación de Shards**: Cargar/descargar Shards según lógica de UI
|
|
108
|
-
2. **Layout management**: Definir dónde se montan los Shards
|
|
109
|
-
3. **Comunicación inter-Shard**: Coordinar datos entre Shards
|
|
110
|
-
4. **Navegación interna**: Cambiar vistas (cargar diferentes Shards)
|
|
111
|
-
|
|
112
|
-
---
|
|
113
|
-
|
|
114
|
-
## 5. Implementación de `Page.loadShard()`
|
|
115
|
-
|
|
116
|
-
```typescript
|
|
117
|
-
// Page con capacidad de cargar Shards
|
|
118
|
-
export class Page extends Surface {
|
|
119
|
-
private _shards: Map<string, Shard> = new Map();
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* Carga un Shard en el DOM de la Page.
|
|
123
|
-
* Similar a Engine.loadShard() pero para contexto DOM directo.
|
|
124
|
-
*/
|
|
125
|
-
public async loadShard<T extends Shard>(
|
|
126
|
-
ShardClass: new (context: ShardContext) => T,
|
|
127
|
-
options: PageShardOptions = {}
|
|
128
|
-
): Promise<T> {
|
|
129
|
-
const { container, containerId, props } = options;
|
|
130
|
-
|
|
131
|
-
// Resolver contenedor
|
|
132
|
-
const targetContainer = container ||
|
|
133
|
-
(containerId ? document.getElementById(containerId) : document.body);
|
|
134
|
-
|
|
135
|
-
if (!targetContainer) {
|
|
136
|
-
throw new Error(`Container not found for Shard`);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
// Crear contexto para el Shard
|
|
140
|
-
const context: ShardContext = {
|
|
141
|
-
tabId: 0, // Mismo tab
|
|
142
|
-
url: window.location.href,
|
|
143
|
-
documentId: document.documentElement.id,
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
// Instanciar y montar
|
|
147
|
-
const shard = new ShardClass(context);
|
|
148
|
-
await shard.mount(targetContainer);
|
|
149
|
-
|
|
150
|
-
if (props) {
|
|
151
|
-
shard.update(props);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
this._shards.set(shard.id, shard);
|
|
155
|
-
return shard;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
public unloadShard(shardId: string): void {
|
|
159
|
-
const shard = this._shards.get(shardId);
|
|
160
|
-
if (shard) {
|
|
161
|
-
shard.unmount();
|
|
162
|
-
this._shards.delete(shardId);
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
public getShards(): Shard[] {
|
|
167
|
-
return Array.from(this._shards.values());
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
// Override onUnmount para limpiar Shards
|
|
171
|
-
protected override onUnmount(): void {
|
|
172
|
-
for (const shard of this._shards.values()) {
|
|
173
|
-
shard.unmount();
|
|
174
|
-
}
|
|
175
|
-
this._shards.clear();
|
|
176
|
-
super.onUnmount();
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
```
|
|
180
|
-
|
|
181
|
-
---
|
|
182
|
-
|
|
183
|
-
## 6. Ejemplo de Uso
|
|
184
|
-
|
|
185
|
-
```typescript
|
|
186
|
-
// MyDashboardPage.mts
|
|
187
|
-
import { Page } from '@extensio/core/surface/pages';
|
|
188
|
-
import { ChartShard, TableShard, FilterShard } from './shards';
|
|
189
|
-
|
|
190
|
-
class MyDashboardPage extends Page {
|
|
191
|
-
constructor() {
|
|
192
|
-
super('dashboard-page');
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
override async start() {
|
|
196
|
-
// Page no renderiza, solo carga Shards
|
|
197
|
-
await this.loadShard(FilterShard, {
|
|
198
|
-
containerId: 'filters-container'
|
|
199
|
-
});
|
|
200
|
-
|
|
201
|
-
await this.loadShard(ChartShard, {
|
|
202
|
-
containerId: 'chart-container',
|
|
203
|
-
props: { type: 'bar' }
|
|
204
|
-
});
|
|
205
|
-
|
|
206
|
-
await this.loadShard(TableShard, {
|
|
207
|
-
containerId: 'table-container'
|
|
208
|
-
});
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
```
|
|
212
|
-
|
|
213
|
-
```html
|
|
214
|
-
<!-- dashboard/index.html -->
|
|
215
|
-
<!DOCTYPE html>
|
|
216
|
-
<html>
|
|
217
|
-
<head>
|
|
218
|
-
<title>Dashboard</title>
|
|
219
|
-
</head>
|
|
220
|
-
<body>
|
|
221
|
-
<!-- Page no renderiza, solo define containers para Shards -->
|
|
222
|
-
<div id="filters-container"></div>
|
|
223
|
-
<div id="chart-container"></div>
|
|
224
|
-
<div id="table-container"></div>
|
|
225
|
-
|
|
226
|
-
<script type="module" src="./index.mts"></script>
|
|
227
|
-
</body>
|
|
228
|
-
</html>
|
|
229
|
-
```
|
|
230
|
-
|
|
231
|
-
---
|
|
232
|
-
|
|
233
|
-
## 7. Impacto en Templates CLI
|
|
234
|
-
|
|
235
|
-
Los templates de Page deberían:
|
|
236
|
-
- **NO** usar Lit/React/decoradores de renderizado
|
|
237
|
-
- **SÍ** definir containers HTML para Shards
|
|
238
|
-
- **SÍ** importar y cargar Shards
|
|
239
|
-
|
|
240
|
-
```typescript
|
|
241
|
-
// Template de Page propuesto
|
|
242
|
-
import { Page } from '@extensio/core/surface/pages';
|
|
243
|
-
// import Shards que usará la Page
|
|
244
|
-
|
|
245
|
-
class <%= name %>Page extends Page {
|
|
246
|
-
constructor() {
|
|
247
|
-
super('<%= name.toLowerCase() %>-page');
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
override async start() {
|
|
251
|
-
// Cargar Shards aquí
|
|
252
|
-
// await this.loadShard(MyShard, { containerId: 'container' });
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
const page = new <%= name %>Page();
|
|
257
|
-
page.run();
|
|
258
|
-
```
|
|
259
|
-
|
|
260
|
-
---
|
|
261
|
-
|
|
262
|
-
## 8. Validación de Coherencia Arquitectónica
|
|
263
|
-
|
|
264
|
-
| Principio | Cumplimiento |
|
|
265
|
-
|-----------|--------------|
|
|
266
|
-
| **SRP**: Page orquesta, Shard renderiza | ✅ Claro |
|
|
267
|
-
| **Consistencia**: loadShard() en Engine y Page | ✅ Mismo patrón |
|
|
268
|
-
| **Reusabilidad**: Shards en cualquier contexto | ✅ Máxima |
|
|
269
|
-
| **Mantenibilidad**: Menos código en Page | ✅ Simplicidad |
|
|
270
|
-
| **Extensio Architecture**: Surface → Page/Shard | ✅ Respeta jerarquía |
|
|
271
|
-
|
|
272
|
-
---
|
|
273
|
-
|
|
274
|
-
## 9. Recomendación del Architect
|
|
275
|
-
|
|
276
|
-
**✅ APRUEBO** el cambio arquitectónico propuesto.
|
|
277
|
-
|
|
278
|
-
**Razones:**
|
|
279
|
-
1. Page como controller sin render es más coherente con el rol de orquestador
|
|
280
|
-
2. Shards como único componente de render simplifica el modelo mental
|
|
281
|
-
3. `loadShard()` en Page mantiene coherencia con Engine
|
|
282
|
-
4. Facilita testing: Page se testea como controller, Shard como componente visual
|
|
283
|
-
|
|
284
|
-
**Cambios requeridos:**
|
|
285
|
-
1. Actualizar constitución de Pages (quitar render, añadir loadShard)
|
|
286
|
-
2. Implementar `Page.loadShard()`, `Page.unloadShard()`, `Page.getShards()`
|
|
287
|
-
3. Actualizar templates CLI de Pages
|
|
288
|
-
4. Actualizar demo para reflejar nuevo patrón
|
|
289
|
-
|
|
290
|
-
---
|
|
291
|
-
|
|
292
|
-
## 10. Próximos pasos
|
|
293
|
-
|
|
294
|
-
Si el desarrollador aprueba, se actualizará:
|
|
295
|
-
1. `analysis.md` con este cambio
|
|
296
|
-
2. Constitución de Pages (v2.2.0)
|
|
297
|
-
3. Plan de implementación
|
|
298
|
-
|
|
299
|
-
```yaml
|
|
300
|
-
approval:
|
|
301
|
-
developer:
|
|
302
|
-
decision: SI
|
|
303
|
-
date: 2026-01-14T08:03:49+01:00
|
|
304
|
-
comments: Aprobado
|
|
305
|
-
```
|