@christianmaf80/agentic-workflow 1.14.0-beta.1 → 1.14.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/artifacts/index.md +2 -26
- package/dist/bootstrap.md +204 -151
- package/dist/cli/commands/init.js +0 -5
- package/dist/core/mapping/resolver.js +1 -1
- package/dist/core/migration/detector.js +1 -1
- package/dist/index.md +0 -11
- package/dist/rules/constitution/agents-behavior.md +10 -19
- package/dist/rules/constitution/clean-code.md +10 -11
- package/dist/rules/constitution/index.md +0 -5
- package/dist/rules/index.md +1 -1
- package/dist/rules/roles/architect.md +47 -88
- package/dist/rules/roles/index.md +1 -4
- package/dist/rules/roles/qa.md +61 -136
- package/dist/rules/roles/researcher.md +34 -48
- package/dist/templates/agent-scores.md +6 -7
- package/dist/templates/analysis.md +6 -6
- package/dist/templates/changelog.md +1 -1
- package/dist/templates/closure.md +9 -1
- package/dist/templates/index.md +0 -6
- package/dist/templates/planning.md +10 -10
- package/dist/templates/research.md +1 -1
- package/dist/templates/results-acceptance.md +1 -1
- package/dist/templates/review.md +2 -2
- package/dist/templates/subtask-implementation.md +1 -1
- package/dist/templates/task.md +4 -32
- package/dist/templates/verification.md +3 -3
- package/dist/workflows/index.md +0 -2
- package/dist/workflows/init.md +26 -17
- package/dist/workflows/tasklifecycle-long/phase-0-acceptance-criteria.md +2 -2
- package/dist/workflows/tasklifecycle-long/phase-1-research.md +3 -3
- package/dist/workflows/tasklifecycle-long/phase-2-analysis.md +6 -21
- package/dist/workflows/tasklifecycle-long/phase-3-planning.md +5 -11
- package/dist/workflows/tasklifecycle-long/phase-4-implementation.md +2 -2
- package/dist/workflows/tasklifecycle-long/phase-5-verification.md +3 -3
- package/dist/workflows/tasklifecycle-long/phase-6-results-acceptance.md +1 -1
- package/dist/workflows/tasklifecycle-long/phase-7-evaluation.md +12 -19
- package/dist/workflows/tasklifecycle-long/phase-8-commit-push.md +3 -3
- package/dist/workflows/tasklifecycle-short/short-phase-1-brief.md +2 -2
- package/dist/workflows/tasklifecycle-short/short-phase-2-implementation.md +1 -1
- package/dist/workflows/tasklifecycle-short/short-phase-3-closure.md +5 -5
- package/package.json +2 -2
- package/dist/artifacts/1-mcp-server-extensio-cli/analysis.md +0 -480
- package/dist/artifacts/1-mcp-server-extensio-cli/architect/review.md +0 -285
- package/dist/artifacts/1-mcp-server-extensio-cli/changelog.md +0 -29
- package/dist/artifacts/1-mcp-server-extensio-cli/implementer-agent/subtask-implementation.md +0 -321
- package/dist/artifacts/1-mcp-server-extensio-cli/plan.md +0 -522
- package/dist/artifacts/1-mcp-server-extensio-cli/researcher/research.md +0 -270
- package/dist/artifacts/1-mcp-server-extensio-cli/results.md +0 -143
- package/dist/artifacts/1-mcp-server-extensio-cli/task-metrics.md +0 -33
- package/dist/artifacts/1-mcp-server-extensio-cli/task.md +0 -178
- package/dist/artifacts/1-mcp-server-extensio-cli/walkthrough.md +0 -69
- package/dist/artifacts/10-shard-build-plugin/analysis.md +0 -290
- package/dist/artifacts/10-shard-build-plugin/architect/subtask-implementation.md +0 -105
- package/dist/artifacts/10-shard-build-plugin/plan.md +0 -409
- package/dist/artifacts/10-shard-build-plugin/researcher/research.md +0 -109
- package/dist/artifacts/10-shard-build-plugin/task.md +0 -124
- package/dist/artifacts/11-revision-sistema-agentic/analysis.md +0 -43
- package/dist/artifacts/11-revision-sistema-agentic/cli-mcp-impact.md +0 -186
- package/dist/artifacts/11-revision-sistema-agentic/core-impact.md +0 -162
- package/dist/artifacts/11-revision-sistema-agentic/metrics.md +0 -82
- package/dist/artifacts/11-revision-sistema-agentic/modules-create-v2.md +0 -126
- package/dist/artifacts/11-revision-sistema-agentic/modules-v2.md +0 -250
- package/dist/artifacts/11-revision-sistema-agentic/pages-v2.md +0 -366
- package/dist/artifacts/11-revision-sistema-agentic/researcher/research.md +0 -131
- package/dist/artifacts/11-revision-sistema-agentic/results.md +0 -116
- package/dist/artifacts/11-revision-sistema-agentic/shards-v2.md +0 -424
- package/dist/artifacts/11-revision-sistema-agentic/task.md +0 -145
- package/dist/artifacts/11-revision-sistema-agentic/verification.md +0 -119
- package/dist/artifacts/12-adaptacion-core-cli-surfaces/analysis-architecture-change.md +0 -305
- package/dist/artifacts/12-adaptacion-core-cli-surfaces/analysis.md +0 -301
- package/dist/artifacts/12-adaptacion-core-cli-surfaces/error-analysis.md +0 -93
- package/dist/artifacts/12-adaptacion-core-cli-surfaces/implementation-summary.md +0 -111
- package/dist/artifacts/12-adaptacion-core-cli-surfaces/plan.md +0 -387
- package/dist/artifacts/12-adaptacion-core-cli-surfaces/researcher/research.md +0 -266
- package/dist/artifacts/12-adaptacion-core-cli-surfaces/task.md +0 -167
- package/dist/artifacts/13-dual-lifecycle-system/analysis.md +0 -173
- package/dist/artifacts/13-dual-lifecycle-system/architect/review.md +0 -67
- package/dist/artifacts/13-dual-lifecycle-system/plan.md +0 -230
- package/dist/artifacts/13-dual-lifecycle-system/researcher/research.md +0 -243
- package/dist/artifacts/13-dual-lifecycle-system/task.md +0 -130
- package/dist/artifacts/13-dual-lifecycle-system/verification.md +0 -84
- package/dist/artifacts/14-core-tests-refactor/analysis.md +0 -240
- package/dist/artifacts/14-core-tests-refactor/architect/review.md +0 -33
- package/dist/artifacts/14-core-tests-refactor/evaluation.md +0 -40
- package/dist/artifacts/14-core-tests-refactor/plan.md +0 -344
- package/dist/artifacts/14-core-tests-refactor/researcher/research.md +0 -258
- package/dist/artifacts/14-core-tests-refactor/results.md +0 -117
- package/dist/artifacts/14-core-tests-refactor/task.md +0 -163
- package/dist/artifacts/14-core-tests-refactor/verification.md +0 -87
- package/dist/artifacts/15-sistema-evaluacion-agentes/architect/implementation.md +0 -47
- package/dist/artifacts/15-sistema-evaluacion-agentes/brief.md +0 -100
- package/dist/artifacts/15-sistema-evaluacion-agentes/closure.md +0 -81
- package/dist/artifacts/15-sistema-evaluacion-agentes/task.md +0 -83
- package/dist/artifacts/16-refactorizacion-demo-core/analysis.md +0 -160
- package/dist/artifacts/16-refactorizacion-demo-core/architect/implementation.md +0 -180
- package/dist/artifacts/16-refactorizacion-demo-core/changelog.md +0 -15
- package/dist/artifacts/16-refactorizacion-demo-core/metrics.md +0 -17
- package/dist/artifacts/16-refactorizacion-demo-core/plan.md +0 -270
- package/dist/artifacts/16-refactorizacion-demo-core/researcher/research.md +0 -190
- package/dist/artifacts/16-refactorizacion-demo-core/task.md +0 -124
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/analysis.md +0 -108
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/architect/review-subtask-1.md +0 -98
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/architect/review.md +0 -192
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/architect/step-4-postponed.md +0 -41
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/module-agent/activation-fix-demo.md +0 -73
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/module-agent/activation-subtask-2.md +0 -80
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/module-agent/fix-demo-implementation.md +0 -113
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/module-agent/subtask-2-implementation.md +0 -133
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/module-agent/subtask-implementation.md +0 -130
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/plan.md +0 -188
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/qa-agent/activation-demo-build.md +0 -80
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/qa-agent/activation-phase-5.md +0 -73
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/qa-agent/activation-subtask-5-7.md +0 -97
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/qa-agent/issue-demo-integrity.md +0 -39
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/qa-agent/subtask-5-7-implementation.md +0 -188
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/qa-agent/verification.md +0 -207
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/researcher/research.md +0 -103
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/subtask-1-engine-refactor.md +0 -64
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/surface-agent/activation-subtask-3.md +0 -81
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/surface-agent/subtask-3-implementation.md +0 -148
- package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/task.md +0 -146
- package/dist/artifacts/18-refactor-phase-4-implementation/task.md +0 -140
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/agent-scores.md +0 -58
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/agent-tasks/1-architect-refactor-research-template.md +0 -78
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/agent-tasks/2-architect-refactor-analysis-template.md +0 -76
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/agent-tasks/3-architect-update-phase1-workflow.md +0 -77
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/agent-tasks/4-architect-update-phase2-workflow.md +0 -76
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/agent-tasks/5-architect-create-todo-structure.md +0 -77
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/agent-tasks/6-qa-validation.md +0 -95
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/analysis.md +0 -190
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/architect/review.md +0 -68
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/plan.md +0 -203
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/researcher/research.md +0 -296
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/task.md +0 -132
- package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/verification.md +0 -104
- package/dist/artifacts/2-review-mcp-agent-system/analysis.md +0 -133
- package/dist/artifacts/2-review-mcp-agent-system/architect/infrastructure-migration.md +0 -58
- package/dist/artifacts/2-review-mcp-agent-system/architect/mcp-server-refactor.md +0 -57
- package/dist/artifacts/2-review-mcp-agent-system/architect/review.md +0 -83
- package/dist/artifacts/2-review-mcp-agent-system/changelog.md +0 -22
- package/dist/artifacts/2-review-mcp-agent-system/metrics.md +0 -33
- package/dist/artifacts/2-review-mcp-agent-system/plan.md +0 -141
- package/dist/artifacts/2-review-mcp-agent-system/qa/mcp-test-validation.md +0 -60
- package/dist/artifacts/2-review-mcp-agent-system/researcher/research.md +0 -77
- package/dist/artifacts/2-review-mcp-agent-system/results-acceptance.md +0 -115
- package/dist/artifacts/2-review-mcp-agent-system/task.md +0 -127
- package/dist/artifacts/2-review-mcp-agent-system/verification.md +0 -72
- package/dist/artifacts/20-anadir-seccion-reasoning-agent-task/analysis.md +0 -139
- package/dist/artifacts/20-anadir-seccion-reasoning-agent-task/plan.md +0 -146
- package/dist/artifacts/20-anadir-seccion-reasoning-agent-task/researcher/research.md +0 -142
- package/dist/artifacts/20-anadir-seccion-reasoning-agent-task/task.md +0 -143
- package/dist/artifacts/20-anadir-seccion-reasoning-agent-task/verification.md +0 -53
- package/dist/artifacts/2026-01-19-orchestration-init/brief.md +0 -88
- package/dist/artifacts/2026-01-19-orchestration-init/closure.md +0 -80
- package/dist/artifacts/2026-01-19-orchestration-init/implementation.md +0 -20
- package/dist/artifacts/21-portable-agentic-system/researcher/research.md +0 -121
- package/dist/artifacts/21-portable-agentic-system/task.md +0 -115
- package/dist/artifacts/22-standardize-phase-0-artifact/architect/analysis.md +0 -113
- package/dist/artifacts/22-standardize-phase-0-artifact/architect/plan.md +0 -124
- package/dist/artifacts/22-standardize-phase-0-artifact/researcher/research.md +0 -76
- package/dist/artifacts/22-standardize-phase-0-artifact/results.md +0 -36
- package/dist/artifacts/22-standardize-phase-0-artifact/task.md +0 -115
- package/dist/artifacts/22-standardize-phase-0-artifact/verification.md +0 -41
- package/dist/artifacts/23-auditoria-de-indexes-y-alias/acceptance.md +0 -62
- package/dist/artifacts/23-auditoria-de-indexes-y-alias/architect/analysis.md +0 -90
- package/dist/artifacts/23-auditoria-de-indexes-y-alias/architect/plan.md +0 -85
- package/dist/artifacts/23-auditoria-de-indexes-y-alias/audit-report.md +0 -52
- package/dist/artifacts/23-auditoria-de-indexes-y-alias/researcher/research.md +0 -52
- package/dist/artifacts/23-auditoria-de-indexes-y-alias/results.md +0 -31
- package/dist/artifacts/23-auditoria-de-indexes-y-alias/task.md +0 -90
- package/dist/artifacts/23-auditoria-de-indexes-y-alias/verification.md +0 -42
- package/dist/artifacts/24-revision-priorizacion-todo-backlog/analysis.md +0 -64
- package/dist/artifacts/24-revision-priorizacion-todo-backlog/candidate/acceptance.md +0 -68
- package/dist/artifacts/24-revision-priorizacion-todo-backlog/planning.md +0 -79
- package/dist/artifacts/24-revision-priorizacion-todo-backlog/portable-roadmap.md +0 -25
- package/dist/artifacts/24-revision-priorizacion-todo-backlog/researcher/research.md +0 -91
- package/dist/artifacts/24-revision-priorizacion-todo-backlog/task.md +0 -89
- package/dist/artifacts/24-revision-priorizacion-todo-backlog/verification.md +0 -59
- package/dist/artifacts/25-auditoria-omision-gates/acceptance.md +0 -57
- package/dist/artifacts/25-auditoria-omision-gates/brief.md +0 -89
- package/dist/artifacts/25-auditoria-omision-gates/closure.md +0 -88
- package/dist/artifacts/25-auditoria-omision-gates/rca.md +0 -49
- package/dist/artifacts/25-auditoria-omision-gates/task.md +0 -64
- package/dist/artifacts/26-portable-agentic-system/acceptance.md +0 -41
- package/dist/artifacts/26-portable-agentic-system/agent-tasks/1-architect-scaffolding.md +0 -113
- package/dist/artifacts/26-portable-agentic-system/agent-tasks/2-architect-core-migration.md +0 -117
- package/dist/artifacts/26-portable-agentic-system/agent-tasks/3-architect-cli-implementation.md +0 -109
- package/dist/artifacts/26-portable-agentic-system/agent-tasks/4-architect-linking-and-verification.md +0 -104
- package/dist/artifacts/26-portable-agentic-system/analysis.md +0 -117
- package/dist/artifacts/26-portable-agentic-system/architect/review.md +0 -41
- package/dist/artifacts/26-portable-agentic-system/plan.md +0 -146
- package/dist/artifacts/26-portable-agentic-system/researcher/research.md +0 -96
- package/dist/artifacts/26-portable-agentic-system/task.md +0 -50
- package/dist/artifacts/26-portable-agentic-system/verification.md +0 -67
- package/dist/artifacts/27-update-portable-module-agent-identity/acceptance.md +0 -74
- package/dist/artifacts/27-update-portable-module-agent-identity/agent-tasks/1-module-agent-update-templates.md +0 -86
- package/dist/artifacts/27-update-portable-module-agent-identity/agent-tasks/2-module-agent-update-workflows-long.md +0 -88
- package/dist/artifacts/27-update-portable-module-agent-identity/agent-tasks/3-module-agent-update-workflows-short-init.md +0 -89
- package/dist/artifacts/27-update-portable-module-agent-identity/agent-tasks/4-module-agent-update-roles.md +0 -85
- package/dist/artifacts/27-update-portable-module-agent-identity/agent-tasks/5-module-agent-update-version-manifests.md +0 -84
- package/dist/artifacts/27-update-portable-module-agent-identity/analysis.md +0 -90
- package/dist/artifacts/27-update-portable-module-agent-identity/architect/review.md +0 -44
- package/dist/artifacts/27-update-portable-module-agent-identity/changelog.md +0 -17
- package/dist/artifacts/27-update-portable-module-agent-identity/metrics.md +0 -52
- package/dist/artifacts/27-update-portable-module-agent-identity/plan.md +0 -122
- package/dist/artifacts/27-update-portable-module-agent-identity/researcher/research.md +0 -73
- package/dist/artifacts/27-update-portable-module-agent-identity/results-acceptance.md +0 -51
- package/dist/artifacts/27-update-portable-module-agent-identity/task.md +0 -115
- package/dist/artifacts/27-update-portable-module-agent-identity/verification.md +0 -66
- package/dist/artifacts/28-agent-system-update-conversion/acceptance.md +0 -67
- package/dist/artifacts/28-agent-system-update-conversion/agent-tasks/1-tooling-agent-migration-infrastructure.md +0 -88
- package/dist/artifacts/28-agent-system-update-conversion/agent-tasks/2-tooling-agent-content-transformer.md +0 -87
- package/dist/artifacts/28-agent-system-update-conversion/agent-tasks/3-tooling-agent-cli-wizard-integration.md +0 -86
- package/dist/artifacts/28-agent-system-update-conversion/analysis.md +0 -153
- package/dist/artifacts/28-agent-system-update-conversion/architect/review.md +0 -93
- package/dist/artifacts/28-agent-system-update-conversion/metrics.md +0 -43
- package/dist/artifacts/28-agent-system-update-conversion/plan.md +0 -153
- package/dist/artifacts/28-agent-system-update-conversion/researcher/research.md +0 -66
- package/dist/artifacts/28-agent-system-update-conversion/results-acceptance.md +0 -125
- package/dist/artifacts/28-agent-system-update-conversion/task.md +0 -103
- package/dist/artifacts/28-agent-system-update-conversion/verification.md +0 -60
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/acceptance.md +0 -38
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/agent-tasks/1-tooling-agent-core-resolver.md +0 -85
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/agent-tasks/2-tooling-agent-init-refactor.md +0 -90
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/agent-tasks/3-tooling-agent-scaffolding-system.md +0 -92
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/agent-tasks/4-architect-agents-md-trail.md +0 -84
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/agent-tasks/5-tooling-agent-mcp-server.md +0 -92
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/agent-tasks/6-architect-neo-agent-birth.md +0 -85
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/analysis.md +0 -119
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/architect/review.md +0 -46
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/plan.md +0 -95
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/researcher/research.md +0 -68
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/results-acceptance.md +0 -59
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/task.md +0 -99
- package/dist/artifacts/29-agentic-framework-core-reference-refactor/verification.md +0 -54
- package/dist/artifacts/3-developer-feedback-gate/acceptance-criteria.md +0 -18
- package/dist/artifacts/3-developer-feedback-gate/analysis.md +0 -27
- package/dist/artifacts/3-developer-feedback-gate/changelog.md +0 -10
- package/dist/artifacts/3-developer-feedback-gate/implementation_plan.md +0 -32
- package/dist/artifacts/3-developer-feedback-gate/init.md +0 -13
- package/dist/artifacts/3-developer-feedback-gate/metrics.md +0 -34
- package/dist/artifacts/3-developer-feedback-gate/research.md +0 -28
- package/dist/artifacts/3-developer-feedback-gate/results-acceptance.md +0 -17
- package/dist/artifacts/3-developer-feedback-gate/task.md +0 -17
- package/dist/artifacts/3-developer-feedback-gate/verification.md +0 -35
- package/dist/artifacts/30-task-execution-protocol-gates/acceptance.md +0 -46
- package/dist/artifacts/30-task-execution-protocol-gates/researcher/research.md +0 -34
- package/dist/artifacts/30-task-execution-protocol-gates/task.md +0 -77
- package/dist/artifacts/4-adr-workflows-modulos/adr.md +0 -380
- package/dist/artifacts/4-adr-workflows-modulos/analysis.md +0 -353
- package/dist/artifacts/4-adr-workflows-modulos/plan.md +0 -301
- package/dist/artifacts/4-adr-workflows-modulos/researcher/research.md +0 -253
- package/dist/artifacts/4-adr-workflows-modulos/results.md +0 -202
- package/dist/artifacts/4-adr-workflows-modulos/task.md +0 -143
- package/dist/artifacts/4-adr-workflows-modulos/verification.md +0 -123
- package/dist/artifacts/5-implementar-adr-crear-modulo/analysis.md +0 -169
- package/dist/artifacts/5-implementar-adr-crear-modulo/architect/review.md +0 -105
- package/dist/artifacts/5-implementar-adr-crear-modulo/architect/subtask-implementation.md +0 -90
- package/dist/artifacts/5-implementar-adr-crear-modulo/changelog.md +0 -7
- package/dist/artifacts/5-implementar-adr-crear-modulo/metrics.md +0 -34
- package/dist/artifacts/5-implementar-adr-crear-modulo/plan.md +0 -163
- package/dist/artifacts/5-implementar-adr-crear-modulo/researcher/research.md +0 -105
- package/dist/artifacts/5-implementar-adr-crear-modulo/results-acceptance.md +0 -153
- package/dist/artifacts/5-implementar-adr-crear-modulo/task.md +0 -147
- package/dist/artifacts/5-implementar-adr-crear-modulo/verification.md +0 -79
- package/dist/artifacts/6-exportar-ciclo-agent-zip/analysis.md +0 -153
- package/dist/artifacts/6-exportar-ciclo-agent-zip/architect/review.md +0 -103
- package/dist/artifacts/6-exportar-ciclo-agent-zip/architect/subtask-implementation.md +0 -79
- package/dist/artifacts/6-exportar-ciclo-agent-zip/changelog.md +0 -8
- package/dist/artifacts/6-exportar-ciclo-agent-zip/metrics.md +0 -34
- package/dist/artifacts/6-exportar-ciclo-agent-zip/plan.md +0 -131
- package/dist/artifacts/6-exportar-ciclo-agent-zip/researcher/research.md +0 -86
- package/dist/artifacts/6-exportar-ciclo-agent-zip/results-acceptance.md +0 -108
- package/dist/artifacts/6-exportar-ciclo-agent-zip/task.md +0 -147
- package/dist/artifacts/6-exportar-ciclo-agent-zip/verification.md +0 -74
- package/dist/artifacts/6-exportar-ciclo-agent-zip/whitelist.txt +0 -33
- package/dist/artifacts/7-modules-globals-constants/analysis.md +0 -205
- package/dist/artifacts/7-modules-globals-constants/architect/review.md +0 -110
- package/dist/artifacts/7-modules-globals-constants/metrics.md +0 -45
- package/dist/artifacts/7-modules-globals-constants/plan.md +0 -276
- package/dist/artifacts/7-modules-globals-constants/researcher/research.md +0 -247
- package/dist/artifacts/7-modules-globals-constants/task.md +0 -112
- package/dist/artifacts/7-modules-globals-constants/verification.md +0 -76
- package/dist/artifacts/8-module-workflow-refactor/analysis.md +0 -131
- package/dist/artifacts/8-module-workflow-refactor/changelog.md +0 -24
- package/dist/artifacts/8-module-workflow-refactor/metrics.md +0 -37
- package/dist/artifacts/8-module-workflow-refactor/plan.md +0 -193
- package/dist/artifacts/8-module-workflow-refactor/researcher/research.md +0 -222
- package/dist/artifacts/8-module-workflow-refactor/results.md +0 -112
- package/dist/artifacts/8-module-workflow-refactor/review.md +0 -76
- package/dist/artifacts/8-module-workflow-refactor/task.md +0 -154
- package/dist/artifacts/8-module-workflow-refactor/verification.md +0 -76
- package/dist/artifacts/8-module-workflow-refactor/walkthrough.md +0 -64
- package/dist/artifacts/9-build-stabilization/analysis.md +0 -62
- package/dist/artifacts/9-build-stabilization/metrics.md +0 -11
- package/dist/artifacts/9-build-stabilization/plan.md +0 -82
- package/dist/artifacts/9-build-stabilization/researcher/research.md +0 -102
- package/dist/artifacts/9-build-stabilization/task.md +0 -23
- package/dist/artifacts/9-build-stabilization/walkthrough.md +0 -56
- package/dist/artifacts/candidate/init.md +0 -34
- package/dist/artifacts/candidate/task.md +0 -24
- package/dist/metrics/agent-scores.md +0 -30
- package/dist/metrics/agents.json +0 -106
- package/dist/metrics/index.md +0 -23
- package/dist/rules/constitution/drivers.md +0 -294
- package/dist/rules/constitution/extensio-architecture.md +0 -131
- package/dist/rules/constitution/modules.md +0 -280
- package/dist/rules/constitution/pages.md +0 -454
- package/dist/rules/constitution/shards.md +0 -484
- package/dist/rules/roles/driver.md +0 -172
- package/dist/rules/roles/module.md +0 -175
- package/dist/rules/roles/surface.md +0 -60
- package/dist/rules/roles/tooling.md +0 -68
- package/dist/skills/extensio-build/SKILL.md +0 -161
- package/dist/skills/extensio-create-driver/SKILL.md +0 -89
- package/dist/skills/extensio-create-module/SKILL.md +0 -91
- package/dist/skills/extensio-demo/SKILL.md +0 -84
- package/dist/skills/extensio-test/SKILL.md +0 -96
- package/dist/skills/extensio-validate-code/SKILL.md +0 -262
- package/dist/skills/index.md +0 -79
- package/dist/templates/driver-create.md +0 -116
- package/dist/templates/driver-delete.md +0 -84
- package/dist/templates/driver-refactor.md +0 -94
- package/dist/templates/module-create.md +0 -117
- package/dist/templates/module-delete.md +0 -79
- package/dist/templates/module-refactor.md +0 -87
- package/dist/todo/001-anadir-seccion-reasoning.md +0 -42
- package/dist/todo/002-anadir-ejemplos-few-shot.md +0 -46
- package/dist/todo/003-explorar-paralelizacion-phase4.md +0 -46
- package/dist/todo/004-portable-agentic-system.md +0 -44
- package/dist/todo/README.md +0 -58
- package/dist/todo/index.md +0 -27
- package/dist/tools/extensio-cli.md +0 -76
- package/dist/tools/index.md +0 -14
- package/dist/tools/run-command.md +0 -42
- package/dist/workflows/drivers/create.md +0 -139
- package/dist/workflows/drivers/delete.md +0 -124
- package/dist/workflows/drivers/index.md +0 -25
- package/dist/workflows/drivers/refactor.md +0 -125
- package/dist/workflows/modules/create.md +0 -160
- package/dist/workflows/modules/delete.md +0 -121
- package/dist/workflows/modules/index.md +0 -27
- package/dist/workflows/modules/pages.create.md +0 -234
- package/dist/workflows/modules/refactor.md +0 -122
- package/dist/workflows/modules/shards.create.md +0 -215
|
@@ -1,409 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
artifact: plan
|
|
3
|
-
phase: phase-3-planning
|
|
4
|
-
owner: architect-agent
|
|
5
|
-
status: approved
|
|
6
|
-
related_task: 10-shard-build-plugin
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# Implementation Plan — 10-shard-build-plugin
|
|
10
|
-
|
|
11
|
-
## 1. Resumen del plan
|
|
12
|
-
- **Contexto**: Los shards actualmente requieren declaración manual en `package.json:exports` y la API `loadShard()` requiere URLs manuales. Se necesita automatización mediante un plugin de build.
|
|
13
|
-
- **Resultado esperado**: Plugin `surface-shards` que detecta y compila shards automáticamente, nueva API `loadShard(ShardClass)`, demo funcional actualizado.
|
|
14
|
-
- **Alcance**:
|
|
15
|
-
- **Incluye:** Plugin Rollup, refactor de Engine.loadShard(), extensión de clase Shard, actualización de demo
|
|
16
|
-
- **Excluye:** CSS automático por convención (el shard importa su propio CSS)
|
|
17
|
-
|
|
18
|
-
---
|
|
19
|
-
|
|
20
|
-
## 2. Inputs contractuales
|
|
21
|
-
- **Task**: `.agent/artifacts/10-shard-build-plugin/task.md`
|
|
22
|
-
- **Analysis**: `.agent/artifacts/10-shard-build-plugin/analysis.md`
|
|
23
|
-
- **Acceptance Criteria**: AC-1 (plugin + API + static url), AC-2 (detección estática), AC-3 (output paths), AC-4 (restricciones), AC-5 (done criteria)
|
|
24
|
-
|
|
25
|
-
**Dispatch de dominios**
|
|
26
|
-
```yaml
|
|
27
|
-
plan:
|
|
28
|
-
workflows:
|
|
29
|
-
drivers:
|
|
30
|
-
action: none
|
|
31
|
-
modules:
|
|
32
|
-
action: none
|
|
33
|
-
|
|
34
|
-
dispatch:
|
|
35
|
-
- domain: core
|
|
36
|
-
action: refactor
|
|
37
|
-
workflow: none # Refactor manual de Engine y Shard
|
|
38
|
-
- domain: qa
|
|
39
|
-
action: verify
|
|
40
|
-
workflow: none # QA Agent diseñará tests
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
---
|
|
44
|
-
|
|
45
|
-
## 3. Desglose de implementación (pasos)
|
|
46
|
-
|
|
47
|
-
### Paso 1: Crear plugin `surface-shards`
|
|
48
|
-
**Descripción:**
|
|
49
|
-
- Crear archivo `packages/cli/src/commands/plugins/surface-shards/index.mts`
|
|
50
|
-
- Seguir patrón de `surface-pages`: función que retorna objeto con hooks de Rollup
|
|
51
|
-
- Implementar hooks: `resolveId`, `load`, `transform`
|
|
52
|
-
|
|
53
|
-
**Dependencias:** Ninguna
|
|
54
|
-
|
|
55
|
-
**Entregables:**
|
|
56
|
-
- `packages/cli/src/commands/plugins/surface-shards/index.mts`
|
|
57
|
-
|
|
58
|
-
**Agente responsable:** architect-agent
|
|
59
|
-
|
|
60
|
-
---
|
|
61
|
-
|
|
62
|
-
### Paso 2: Implementar lógica de detección e inyección en plugin
|
|
63
|
-
**Descripción:**
|
|
64
|
-
- Hook `transform`: analizar archivos `**/engine/**/*.mts`
|
|
65
|
-
- Regex para detectar: `import { ClassName } from './path/to/shard'` + `loadShard(ClassName)`
|
|
66
|
-
- Extraer clase Shard y su import path
|
|
67
|
-
- **Marcar el import del shard como external** en la compilación del engine (el shard NO debe bundlearse con el engine)
|
|
68
|
-
- Compilar shard detectado como entry point independiente
|
|
69
|
-
- **Inyectar mapping** al final del código del engine:
|
|
70
|
-
```typescript
|
|
71
|
-
// Inyectado por surface-shards plugin
|
|
72
|
-
ClassName.__EXTENSIO_COMPILED_PATH__ = 'surface/shards/ClassName.mjs';
|
|
73
|
-
```
|
|
74
|
-
- El engine solo tendrá la referencia al path, NO el código del shard
|
|
75
|
-
|
|
76
|
-
**Dependencias:** Paso 1
|
|
77
|
-
|
|
78
|
-
**Entregables:**
|
|
79
|
-
- Detección de shards en engines
|
|
80
|
-
- Imports de shards marcados como external
|
|
81
|
-
- Mapping inyectado en engine
|
|
82
|
-
|
|
83
|
-
**Agente responsable:** architect-agent
|
|
84
|
-
|
|
85
|
-
---
|
|
86
|
-
|
|
87
|
-
### Paso 3: Implementar compilación de shards en plugin
|
|
88
|
-
**Descripción:**
|
|
89
|
-
- Para cada shard detectado, crear función de compilación siguiendo patrón existente
|
|
90
|
-
- Patrón de referencia: `compilePageScript()` (surface-pages) y `compileVendorModule()` (build.mts)
|
|
91
|
-
- Usar `vite.build()` con configuración:
|
|
92
|
-
- `root`, `outDir` (mantener ruta relativa del shard)
|
|
93
|
-
- `esbuild.target: 'es2022'`, `experimentalDecorators: true`
|
|
94
|
-
- `rollupOptions.plugins`: todos los replacers (browser, parentSrc, modulePath, rootPath, image, version)
|
|
95
|
-
- `rollupOptions.plugins`: viteNodeResolve + viteCommonjs
|
|
96
|
-
- `lib.entry`: path absoluto del shard
|
|
97
|
-
- `lib.formats: ['es']`
|
|
98
|
-
- Output: `dist/surface/shards/X.mjs` (ruta relativa preservada)
|
|
99
|
-
- NO usar `compilePageScript` directamente, sino crear `compileShardScript()` en el plugin
|
|
100
|
-
|
|
101
|
-
**Dependencias:** Paso 2
|
|
102
|
-
|
|
103
|
-
**Entregables:**
|
|
104
|
-
- Función `compileShardScript()` en plugin
|
|
105
|
-
- Shards compilados en rutas correctas: `src/surface/shards/X.mts` → `dist/surface/shards/X.mjs`
|
|
106
|
-
|
|
107
|
-
**Agente responsable:** architect-agent
|
|
108
|
-
|
|
109
|
-
---
|
|
110
|
-
|
|
111
|
-
### Paso 4: Integrar plugin en pipeline de build
|
|
112
|
-
**Descripción:**
|
|
113
|
-
- Actualizar `packages/cli/src/commands/build.mts`
|
|
114
|
-
- Añadir `surfaceShardsPlugin` a la lista de plugins de Vite (línea ~339)
|
|
115
|
-
- Configurar con `root`, `outDir`, `targetBrowser`
|
|
116
|
-
|
|
117
|
-
**Dependencias:** Paso 3
|
|
118
|
-
|
|
119
|
-
**Entregables:**
|
|
120
|
-
- Plugin integrado en build pipeline
|
|
121
|
-
|
|
122
|
-
**Agente responsable:** architect-agent
|
|
123
|
-
|
|
124
|
-
---
|
|
125
|
-
|
|
126
|
-
### Paso 5: ~~Añadir `static url` a clase `Shard`~~ (INNECESARIO)
|
|
127
|
-
**Descripción:**
|
|
128
|
-
- Este paso se **elimina** del plan
|
|
129
|
-
- El plugin inyectará automáticamente `__EXTENSIO_COMPILED_PATH__` en las clases Shard
|
|
130
|
-
- No se requiere modificar la clase base `Shard`
|
|
131
|
-
|
|
132
|
-
**Dependencias:** N/A
|
|
133
|
-
|
|
134
|
-
**Entregables:**
|
|
135
|
-
- Ninguno (paso eliminado)
|
|
136
|
-
|
|
137
|
-
**Agente responsable:** N/A
|
|
138
|
-
|
|
139
|
-
---
|
|
140
|
-
|
|
141
|
-
### Paso 6: Refactorizar `Engine.loadShard()`
|
|
142
|
-
**Descripción:**
|
|
143
|
-
- Modificar `packages/core/src/engine/engine.mts` (líneas 344-388)
|
|
144
|
-
- Nueva firma: `loadShard<T extends typeof Shard>(ShardClass: T, options?: ShardOptions)`
|
|
145
|
-
- Lógica interna:
|
|
146
|
-
- Leer `ShardClass.__EXTENSIO_COMPILED_PATH__` (inyectado por el plugin en build)
|
|
147
|
-
- Calcular jsUrl con `Runtime.getURL(compiledPath)`
|
|
148
|
-
- Mantener lógica de inyección existente (Scripting driver)
|
|
149
|
-
- **Backward compatibility:** Mantener firma anterior como sobrecarga deprecada
|
|
150
|
-
|
|
151
|
-
**Dependencias:** Paso 2 (plugin inyecta el mapping)
|
|
152
|
-
|
|
153
|
-
**Entregables:**
|
|
154
|
-
- `Engine.loadShard()` con nueva API que lee `__EXTENSIO_COMPILED_PATH__`
|
|
155
|
-
- Sobrecarga deprecada para backward compatibility
|
|
156
|
-
|
|
157
|
-
**Agente responsable:** architect-agent
|
|
158
|
-
|
|
159
|
-
---
|
|
160
|
-
|
|
161
|
-
### Paso 7: Actualizar demo `ActionButtonShard`
|
|
162
|
-
**Descripción:**
|
|
163
|
-
- Modificar `packages/core/demo/src/engine/index.mts` (líneas 98-102)
|
|
164
|
-
- Importar clase: `import { ActionButtonShard } from '../surface/shards/ActionButtonShard.mts'`
|
|
165
|
-
- Cambiar a: `await this.loadShard(ActionButtonShard, { tabId: event.tabId })`
|
|
166
|
-
- **NO modificar** `ActionButtonShard.mts` - el plugin inyectará `__EXTENSIO_COMPILED_PATH__` automáticamente
|
|
167
|
-
|
|
168
|
-
**Dependencias:** Paso 6
|
|
169
|
-
|
|
170
|
-
**Entregables:**
|
|
171
|
-
- Demo actualizado con nueva API
|
|
172
|
-
|
|
173
|
-
**Agente responsable:** architect-agent
|
|
174
|
-
|
|
175
|
-
---
|
|
176
|
-
|
|
177
|
-
### Paso 8: Actualizar tests E2E del demo
|
|
178
|
-
**Descripción:**
|
|
179
|
-
- Modificar `packages/core/test/e2e/shard-render.spec.ts`
|
|
180
|
-
- Actualizar aserciones si es necesario
|
|
181
|
-
- Verificar que test pasa con nueva implementación
|
|
182
|
-
|
|
183
|
-
**Dependencias:** Paso 7
|
|
184
|
-
|
|
185
|
-
**Entregables:**
|
|
186
|
-
- Tests E2E actualizados y pasando
|
|
187
|
-
|
|
188
|
-
**Agente responsable:** qa-agent
|
|
189
|
-
|
|
190
|
-
---
|
|
191
|
-
|
|
192
|
-
## 4. Asignación de responsabilidades (Agentes)
|
|
193
|
-
|
|
194
|
-
**Architect-Agent**
|
|
195
|
-
- Responsabilidades:
|
|
196
|
-
- Crear plugin `surface-shards` (Pasos 1-4)
|
|
197
|
-
- Refactorizar Core (Pasos 5-6)
|
|
198
|
-
- Actualizar demo (Paso 7)
|
|
199
|
-
- Validar coherencia arquitectónica global
|
|
200
|
-
|
|
201
|
-
**QA-Agent**
|
|
202
|
-
- Responsabilidades:
|
|
203
|
-
- Diseñar unit tests para plugin (detección de patrones)
|
|
204
|
-
- Actualizar tests E2E del demo (Paso 8)
|
|
205
|
-
- Validar que no hay regresiones
|
|
206
|
-
|
|
207
|
-
**Handoffs:**
|
|
208
|
-
1. Architect completa implementación → QA diseña/ejecuta tests
|
|
209
|
-
2. QA valida tests pasan → Architect revisa y aprueba
|
|
210
|
-
|
|
211
|
-
**Componentes:**
|
|
212
|
-
- **CREAR:** `surface-shards` plugin
|
|
213
|
-
- Responsable: architect-agent
|
|
214
|
-
- Cómo: Crear archivo `.mts` siguiendo patrón de Rollup
|
|
215
|
-
- Herramienta: Edición manual de código
|
|
216
|
-
- Motivo: No requiere scaffolding, es un plugin simple
|
|
217
|
-
|
|
218
|
-
- **MODIFICAR:** `Engine.loadShard()`, clase `Shard`, demo
|
|
219
|
-
- Responsable: architect-agent
|
|
220
|
-
- Cómo: Refactor manual siguiendo clean code
|
|
221
|
-
- Herramienta: Edición manual de código
|
|
222
|
-
|
|
223
|
-
**Demo:**
|
|
224
|
-
- Estructura esperada: Actualización de demo existente en `packages/core/demo`
|
|
225
|
-
- Alineación: Sigue arquitectura existente (Engine → Context → Shard)
|
|
226
|
-
- Tool: No requiere scaffolding - es actualización de código existente
|
|
227
|
-
|
|
228
|
-
---
|
|
229
|
-
|
|
230
|
-
## 5. Estrategia de testing y validación
|
|
231
|
-
|
|
232
|
-
**Unit tests**
|
|
233
|
-
- Alcance: Plugin `surface-shards` (detección de patrones)
|
|
234
|
-
- Herramientas: Vitest (según `constitution.extensio_architecture`)
|
|
235
|
-
- Comando: `npm test` o `mcp_extensio-cli_extensio_test` con `type: unit`
|
|
236
|
-
- Tests a crear:
|
|
237
|
-
- Detección de `import + loadShard` pattern
|
|
238
|
-
- Compilación de shard detectado
|
|
239
|
-
- Rutas de output correctas
|
|
240
|
-
|
|
241
|
-
**Integration tests**
|
|
242
|
-
- Alcance: Build completo con shards
|
|
243
|
-
- Herramientas: Vitest
|
|
244
|
-
- Comando: `mcp_extensio-cli_extensio_test` con `type: integration`
|
|
245
|
-
- Flujos cubiertos:
|
|
246
|
-
- Build de módulo con shards
|
|
247
|
-
- Shards compilados en dist/
|
|
248
|
-
- node_modules resueltos correctamente
|
|
249
|
-
|
|
250
|
-
**E2E tests**
|
|
251
|
-
- Alcance: Demo en navegador real (Chrome)
|
|
252
|
-
- Herramientas: Playwright (según `constitution.extensio_architecture`)
|
|
253
|
-
- Comando: `mcp_extensio-cli_extensio_test` con `type: e2e` y `browsers: chromium`
|
|
254
|
-
- Escenarios:
|
|
255
|
-
- Demo carga shard correctamente
|
|
256
|
-
- Shard se monta en DOM
|
|
257
|
-
- Shard es funcional (botón clicable)
|
|
258
|
-
|
|
259
|
-
**Trazabilidad:**
|
|
260
|
-
- AC-1 (plugin + API): Unit tests + Integration tests
|
|
261
|
-
- AC-2 (detección): Unit tests del plugin
|
|
262
|
-
- AC-3 (output): Integration tests
|
|
263
|
-
- AC-4 (restricciones): E2E tests del demo
|
|
264
|
-
- AC-5 (done): Todos los tests pasan
|
|
265
|
-
|
|
266
|
-
---
|
|
267
|
-
|
|
268
|
-
## 6. Plan de demo (si aplica)
|
|
269
|
-
**Objetivo:** Validar que la nueva API funciona en un caso real
|
|
270
|
-
|
|
271
|
-
**Escenario:**
|
|
272
|
-
1. Construir demo: `mcp_extensio-cli_extensio_build` en `packages/core/demo`
|
|
273
|
-
2. Cargar extensión en Chrome
|
|
274
|
-
3. Abrir popup para iniciar flow
|
|
275
|
-
4. Navegar a google.es (trigger de inyección de shard)
|
|
276
|
-
5. Verificar que ActionButton se renderiza correctamente
|
|
277
|
-
6. Hacer clic en botón "Finalizar Flow"
|
|
278
|
-
7. Verificar que flow completa y cierra tab
|
|
279
|
-
|
|
280
|
-
**Datos de ejemplo:** Flow demo existente (START → IN_PROGRESS → FINISHED)
|
|
281
|
-
|
|
282
|
-
**Criterios de éxito:**
|
|
283
|
-
- Shard se inyecta automáticamente sin errores
|
|
284
|
-
- UI del shard es visible y funcional
|
|
285
|
-
- No hay errores en consola del navegador
|
|
286
|
-
|
|
287
|
-
---
|
|
288
|
-
|
|
289
|
-
## 7. Estimaciones y pesos de implementación
|
|
290
|
-
|
|
291
|
-
| Paso | Esfuerzo | Justificación |
|
|
292
|
-
|------|----------|---------------|
|
|
293
|
-
| Paso 1-4 (Plugin) | Medio-Alto | Análisis estático + inyección de mapping en código |
|
|
294
|
-
| ~~Paso 5 (static url)~~ | ~~Bajo~~ | **Eliminado del plan** |
|
|
295
|
-
| Paso 6 (loadShard) | Bajo-Medio | Refactor simple leyendo `__EXTENSIO_COMPILED_PATH__` |
|
|
296
|
-
| Paso 7 (Demo) | Bajo | Solo actualizar import, sin cambios en Shard |
|
|
297
|
-
| Paso 8 (Tests E2E) | Bajo | Mínimas modificaciones |
|
|
298
|
-
|
|
299
|
-
**Timeline aproximado:** Implementación secuencial ~4-5 horas (sin tests)
|
|
300
|
-
|
|
301
|
-
**Suposiciones:**
|
|
302
|
-
- Regex funciona para patrones estándar
|
|
303
|
-
- No hay casos edge complejos en demo
|
|
304
|
-
|
|
305
|
-
---
|
|
306
|
-
|
|
307
|
-
## 8. Puntos críticos y resolución
|
|
308
|
-
|
|
309
|
-
**Punto crítico 1: ~~Detección de static url en tiempo de build~~ (RESUELTO)**
|
|
310
|
-
- **Riesgo:** ~~Es difícil leer propiedad estática de clase sin ejecutar el código~~
|
|
311
|
-
- **Impacto:** ~~Plugin no puede determinar qué compilar~~
|
|
312
|
-
- **Resolución:** ✅ **Eliminado** - El plugin detecta el import path directamente desde `import { X } from './path/Y.mts'` y usa ese path para compilar. Luego inyecta `X.__EXTENSIO_COMPILED_PATH__ = 'surface/shards/Y.mjs'` en el código del engine. No se requiere `static url` en las clases Shard.
|
|
313
|
-
- **Nota importante:** El shard se compila **independientemente** del engine. El import del shard se marca como **external** en el build del engine para evitar incluir código de shard en el scope del Service Worker.
|
|
314
|
-
|
|
315
|
-
**Punto crítico 2: Breaking change en loadShard API**
|
|
316
|
-
- **Riesgo:** Demo y código existente rompe
|
|
317
|
-
- **Impacto:** Tests fallan, demo no funcional
|
|
318
|
-
- **Resolución:**
|
|
319
|
-
1. Implementar sobrecarga con firma anterior marcada como `@deprecated`
|
|
320
|
-
2. Actualizar demo inmediatamente
|
|
321
|
-
3. Mantener backward compat por 1 release
|
|
322
|
-
|
|
323
|
-
**Punto crítico 3: Regex no detecta todos los patrones**
|
|
324
|
-
- **Riesgo:** Imports complejos (destructuring, aliases) no detectados
|
|
325
|
-
- **Impacto:** Shards no compilados
|
|
326
|
-
- **Resolución:**
|
|
327
|
-
1. Documentar patrones soportados
|
|
328
|
-
2. Validar con tests unitarios del plugin
|
|
329
|
-
3. Si surge caso edge, extender regex o usar AST (futuro)
|
|
330
|
-
|
|
331
|
-
**Punto crítico 4: Separación de scopes Engine vs Shard**
|
|
332
|
-
- **Riesgo:** Si el shard se bundlea con el engine, se mezclan scopes (Service Worker vs Content Script)
|
|
333
|
-
- **Impacto:** El código del shard no funcionará en el engine (APIs no disponibles)
|
|
334
|
-
- **Resolución:** ✅ **Implementado en diseño** - El plugin marca los imports de shards como `external` durante la compilación del engine, evitando que se incluyan en el bundle del Service Worker.
|
|
335
|
-
|
|
336
|
-
**Punto crítico 2: Breaking change en loadShard API**
|
|
337
|
-
- **Riesgo:** Demo y código existente rompe
|
|
338
|
-
- **Impacto:** Tests fallan, demo no funcional
|
|
339
|
-
- **Resolución:**
|
|
340
|
-
1. Implementar sobrecarga con firma anterior marcada como `@deprecated`
|
|
341
|
-
2. Actualizar demo inmediatamente
|
|
342
|
-
3. Mantener backward compat por 1 release
|
|
343
|
-
|
|
344
|
-
**Punto crítico 3: Regex no detecta todos los patrones**
|
|
345
|
-
- **Riesgo:** Imports complejos (destructuring, aliases) no detectados
|
|
346
|
-
- **Impacto:** Shards no compilados
|
|
347
|
-
- **Resolución:**
|
|
348
|
-
1. Documentar patrones soportados
|
|
349
|
-
2. Validar con tests unitarios del plugin
|
|
350
|
-
3. Si surge caso edge, extender regex o usar AST (futuro)
|
|
351
|
-
|
|
352
|
-
---
|
|
353
|
-
|
|
354
|
-
## 9. Dependencias y compatibilidad
|
|
355
|
-
|
|
356
|
-
**Dependencias internas:**
|
|
357
|
-
- `@extensio/driver-scripting` (existente)
|
|
358
|
-
- `@extensio/driver-runtime` (existente)
|
|
359
|
-
- Vite (ya instalado)
|
|
360
|
-
|
|
361
|
-
**Dependencias externas:**
|
|
362
|
-
- Ninguna nueva
|
|
363
|
-
|
|
364
|
-
**Compatibilidad entre navegadores:**
|
|
365
|
-
- Chrome/Chromium: ✅ (prioridad)
|
|
366
|
-
- Firefox: ✅ (drivers compatibles)
|
|
367
|
-
- Safari: ✅ (drivers compatibles)
|
|
368
|
-
|
|
369
|
-
**Restricciones arquitectónicas:**
|
|
370
|
-
- Seguir `constitution.extensio_architecture`
|
|
371
|
-
- Seguir patrón de plugins Rollup existentes
|
|
372
|
-
- No romper Clean Code rules
|
|
373
|
-
|
|
374
|
-
---
|
|
375
|
-
|
|
376
|
-
## 10. Criterios de finalización
|
|
377
|
-
|
|
378
|
-
Checklist final:
|
|
379
|
-
- [ ] Plugin `surface-shards` creado y funcional
|
|
380
|
-
- [ ] Plugin detecta `loadShard(ShardClass)` en engines
|
|
381
|
-
- [ ] Plugin inyecta `__EXTENSIO_COMPILED_PATH__` automáticamente
|
|
382
|
-
- [ ] Plugin integrado en build pipeline
|
|
383
|
-
- [ ] `Engine.loadShard(ShardClass)` implementado y lee `__EXTENSIO_COMPILED_PATH__`
|
|
384
|
-
- [ ] Backward compatibility mantenida (sobrecarga deprecada)
|
|
385
|
-
- [ ] Demo actualizado con nueva API (solo engine, sin tocar shard)
|
|
386
|
-
- [ ] Build de demo exitoso sin errores
|
|
387
|
-
- [ ] Tests unitarios del plugin creados y pasando
|
|
388
|
-
- [ ] Tests E2E del demo actualizados y pasando
|
|
389
|
-
- [ ] No hay regresiones en tests existentes
|
|
390
|
-
- [ ] Demo manual funcional en Chrome
|
|
391
|
-
|
|
392
|
-
**Verificaciones obligatorias:**
|
|
393
|
-
1. `mcp_extensio-cli_extensio_build` en `packages/core/demo` exitoso
|
|
394
|
-
2. `mcp_extensio-cli_extensio_test` con `type: unit` pasa
|
|
395
|
-
3. `mcp_extensio-cli_extensio_test` con `type: e2e` y `browsers: chromium` pasa
|
|
396
|
-
4. Demo manual en navegador funcional (validado visualmente)
|
|
397
|
-
|
|
398
|
-
---
|
|
399
|
-
|
|
400
|
-
## 11. Aprobación del desarrollador (OBLIGATORIA)
|
|
401
|
-
Este plan **requiere aprobación explícita y binaria**.
|
|
402
|
-
|
|
403
|
-
```yaml
|
|
404
|
-
approval:
|
|
405
|
-
developer:
|
|
406
|
-
decision: SI
|
|
407
|
-
date: 2026-01-12T08:05:33+01:00
|
|
408
|
-
comments: Aprobado con Paso 3 actualizado para usar patrón de compilación existente
|
|
409
|
-
```
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
artifact: research
|
|
3
|
-
phase: phase-1-research
|
|
4
|
-
owner: researcher-agent
|
|
5
|
-
status: approved
|
|
6
|
-
related_task: 10-shard-build-plugin
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# Research Report — 10-shard-build-plugin
|
|
10
|
-
|
|
11
|
-
## 1. Resumen ejecutivo
|
|
12
|
-
- **Problema investigado:** Los shards no se detectan ni compilan automáticamente durante el build. Actualmente requieren declaración manual en `package.json:exports`.
|
|
13
|
-
- **Objetivo:** Crear un plugin que detecte `loadShard(ShardClass)` en engines y compile los shards referenciados automáticamente.
|
|
14
|
-
- **Principales hallazgos:**
|
|
15
|
-
- `loadShard(cssUrl, jsUrl)` requiere URLs manuales con `Runtime.getURL()`
|
|
16
|
-
- Clase `Shard` no tiene propiedad estática `url`
|
|
17
|
-
- Plugin `surface-pages` es el modelo a seguir
|
|
18
|
-
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
## 2. Necesidades detectadas
|
|
22
|
-
- **Requisitos técnicos:**
|
|
23
|
-
- Nuevo plugin `surface-shards` para detección estática
|
|
24
|
-
- Propiedad estática `url` en clase `Shard`
|
|
25
|
-
- Nueva API: `loadShard(ShardClass, options?)`
|
|
26
|
-
- **Suposiciones:**
|
|
27
|
-
- Los engines importan clases Shard explícitamente
|
|
28
|
-
- Cada shard define su ruta relativa
|
|
29
|
-
- **Límites:**
|
|
30
|
-
- Sin CSS por convención (shard importa su propio CSS)
|
|
31
|
-
|
|
32
|
-
---
|
|
33
|
-
|
|
34
|
-
## 3. Alternativas técnicas
|
|
35
|
-
|
|
36
|
-
### Alternativa A: Plugin de análisis estático (RECOMENDADA)
|
|
37
|
-
- **Descripción:** Analizar código de engines con regex buscando `import {X} from './shards/...'` + `loadShard(X)`
|
|
38
|
-
- **Pros:** Automatización completa, sin configuración adicional
|
|
39
|
-
- **Contras:** Regex puede fallar en casos edge
|
|
40
|
-
- **Riesgos:** Bajo - patrones de código son predecibles
|
|
41
|
-
- **Impacto:** Mínimo en arquitectura existente
|
|
42
|
-
|
|
43
|
-
### Alternativa B: Manifiesto explícito
|
|
44
|
-
- **Descripción:** Archivo `shards.json` declarando shards manualmente
|
|
45
|
-
- **Pros:** Control total, sin análisis estático
|
|
46
|
-
- **Contras:** Duplicación de información, mantenimiento extra
|
|
47
|
-
- **Riesgos:** Ninguno
|
|
48
|
-
- **Impacto:** Añade complejidad operativa
|
|
49
|
-
|
|
50
|
-
---
|
|
51
|
-
|
|
52
|
-
## 4. APIs Web / WebExtensions relevantes
|
|
53
|
-
|
|
54
|
-
| API | Estado | Chrome | Firefox | Safari |
|
|
55
|
-
|-----|--------|--------|---------|--------|
|
|
56
|
-
| `chrome.scripting.executeScript` | Stable | ✅ | ✅ | ✅ |
|
|
57
|
-
| `chrome.scripting.insertCSS` | Stable | ✅ | ✅ | ✅ |
|
|
58
|
-
| `chrome.runtime.getURL` | Stable | ✅ | ✅ | ✅ |
|
|
59
|
-
|
|
60
|
-
- **Restricciones:** Requiere permiso `scripting` en manifest
|
|
61
|
-
|
|
62
|
-
---
|
|
63
|
-
|
|
64
|
-
## 5. Compatibilidad multi-browser
|
|
65
|
-
|
|
66
|
-
| Funcionalidad | Chrome | Firefox | Safari | Edge |
|
|
67
|
-
|---------------|--------|---------|--------|------|
|
|
68
|
-
| `executeScript` | ✅ | ✅ | ✅ | ✅ |
|
|
69
|
-
| Static class properties | ✅ | ✅ | ✅ | ✅ |
|
|
70
|
-
| Dynamic imports | ✅ | ✅ | ✅ | ✅ |
|
|
71
|
-
|
|
72
|
-
- **Diferencias clave:** Ninguna significativa para esta feature
|
|
73
|
-
- **Mitigación:** Usar drivers existentes (@extensio/driver-scripting)
|
|
74
|
-
|
|
75
|
-
---
|
|
76
|
-
|
|
77
|
-
## 6. Recomendaciones AI-first
|
|
78
|
-
- **Oportunidades:** El plugin puede auto-detectar shards sin intervención manual
|
|
79
|
-
- **APIs habilitadoras:** Análisis estático con AST (futuro) o regex (MVP)
|
|
80
|
-
- **Impacto esperado:** Reducción de configuración manual, menos errores humanos
|
|
81
|
-
|
|
82
|
-
---
|
|
83
|
-
|
|
84
|
-
## 7. Riesgos y trade-offs
|
|
85
|
-
|
|
86
|
-
| Riesgo | Severidad | Mitigación |
|
|
87
|
-
|--------|-----------|------------|
|
|
88
|
-
| Regex no detecta patrones complejos | Media | Documentar patrones soportados |
|
|
89
|
-
| Breaking change en API loadShard | Media | Mantener firma anterior deprecada |
|
|
90
|
-
| Shards npm no resueltos | Baja | Reutilizar `generateVendorModules()` |
|
|
91
|
-
|
|
92
|
-
---
|
|
93
|
-
|
|
94
|
-
## 8. Fuentes
|
|
95
|
-
- [Chrome Extensions Scripting API](https://developer.chrome.com/docs/extensions/reference/scripting/)
|
|
96
|
-
- [MDN WebExtensions](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions)
|
|
97
|
-
- Plugin `surface-pages`: `packages/cli/src/commands/plugins/surface-pages/index.mts`
|
|
98
|
-
- Plugin `parent-src`: `packages/cli/src/commands/plugins/replacers/parent-src.mts`
|
|
99
|
-
|
|
100
|
-
---
|
|
101
|
-
|
|
102
|
-
## 9. Aprobación del desarrollador (OBLIGATORIA)
|
|
103
|
-
```yaml
|
|
104
|
-
approval:
|
|
105
|
-
developer:
|
|
106
|
-
decision: SI
|
|
107
|
-
date: 2026-01-12T07:50:13+01:00
|
|
108
|
-
comments: Aprobado para continuar a Phase 2
|
|
109
|
-
```
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
# Task (Current)
|
|
2
|
-
|
|
3
|
-
## Identificación
|
|
4
|
-
- id: 10-shard-build-plugin
|
|
5
|
-
- title: Plugin de Detección y Compilación de Shards
|
|
6
|
-
- scope: current
|
|
7
|
-
- owner: architect-agent
|
|
8
|
-
|
|
9
|
-
## Origen
|
|
10
|
-
- created_from:
|
|
11
|
-
- workflow: tasklifecycle
|
|
12
|
-
- source: /init
|
|
13
|
-
- candidate_path: .agent/artifacts/candidate/task.md
|
|
14
|
-
|
|
15
|
-
## Descripción de la tarea
|
|
16
|
-
Crear un plugin de build que detecte en runtime el uso de `loadShard()` en los engines, analizando estáticamente los imports de clases Shard y compilando automáticamente los entry points correspondientes.
|
|
17
|
-
|
|
18
|
-
## Objetivo
|
|
19
|
-
Automatizar la detección y compilación de shards referenciados mediante `loadShard(ShardClass)` en engines, manteniendo las rutas relativas dentro del módulo y soportando dependencias de npm.
|
|
20
|
-
|
|
21
|
-
## Estado del ciclo de vida (FUENTE ÚNICA DE VERDAD)
|
|
22
|
-
|
|
23
|
-
```yaml
|
|
24
|
-
task:
|
|
25
|
-
id: "10-shard-build-plugin"
|
|
26
|
-
title: "Plugin de Detección y Compilación de Shards"
|
|
27
|
-
phase:
|
|
28
|
-
current: "phase-4-implementation"
|
|
29
|
-
validated_by: "architect-agent"
|
|
30
|
-
updated_at: "2026-01-12T08:05:33+01:00"
|
|
31
|
-
lifecycle:
|
|
32
|
-
phases:
|
|
33
|
-
phase-0-acceptance-criteria:
|
|
34
|
-
completed: true
|
|
35
|
-
validated_by: "architect-agent"
|
|
36
|
-
validated_at: "2026-01-12T07:37:16+01:00"
|
|
37
|
-
phase-1-research:
|
|
38
|
-
completed: true
|
|
39
|
-
validated_by: "researcher-agent"
|
|
40
|
-
validated_at: "2026-01-12T07:50:13+01:00"
|
|
41
|
-
phase-2-analysis:
|
|
42
|
-
completed: true
|
|
43
|
-
validated_by: "architect-agent"
|
|
44
|
-
validated_at: "2026-01-12T07:56:17+01:00"
|
|
45
|
-
phase-3-planning:
|
|
46
|
-
completed: true
|
|
47
|
-
validated_by: "architect-agent"
|
|
48
|
-
validated_at: "2026-01-12T08:05:33+01:00"
|
|
49
|
-
phase-4-implementation:
|
|
50
|
-
completed: false
|
|
51
|
-
validated_by: null
|
|
52
|
-
validated_at: null
|
|
53
|
-
phase-5-verification:
|
|
54
|
-
completed: false
|
|
55
|
-
validated_by: null
|
|
56
|
-
validated_at: null
|
|
57
|
-
phase-6-results-acceptance:
|
|
58
|
-
completed: false
|
|
59
|
-
validated_by: null
|
|
60
|
-
validated_at: null
|
|
61
|
-
phase-7-evaluation:
|
|
62
|
-
completed: false
|
|
63
|
-
validated_by: null
|
|
64
|
-
validated_at: null
|
|
65
|
-
phase-8-commit-push:
|
|
66
|
-
completed: false
|
|
67
|
-
validated_by: null
|
|
68
|
-
validated_at: null
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
## 5 Preguntas Obligatorias (REQUERIDO - Phase 0)
|
|
72
|
-
|
|
73
|
-
| # | Pregunta (formulada por architect) | Respuesta (del desarrollador) |
|
|
74
|
-
|---|-----------------------------------|-------------------------------|
|
|
75
|
-
| 1 | ¿Cada clase Shard debe tener una propiedad estática `url` o se deriva del path del import? | Cada clase Shard debe tener propiedad estática `url` (ej: `static url = './ActionButtonShard.mts'`) |
|
|
76
|
-
| 2 | ¿Deseas cambiar la API de `loadShard(cssUrl, jsUrl)` a `loadShard(ShardClass)`? | Sí, deseo este cambio |
|
|
77
|
-
| 3 | ¿Detección vía análisis estático de imports + loadShard o registro explícito? | Análisis estático buscando `import {X} from './shards/...'` + `loadShard(X)` |
|
|
78
|
-
| 4 | ¿Cómo resolver shards de node_modules? | Ya existe plugin para node_modules, revisar y reutilizar |
|
|
79
|
-
| 5 | ¿CSS asociado obligatorio por convención? | No aplicar CSS por ahora; el shard importará su propio CSS en la compilación |
|
|
80
|
-
|
|
81
|
-
---
|
|
82
|
-
|
|
83
|
-
## Acceptance Criteria (OBLIGATORIO PARA CURRENT TASK)
|
|
84
|
-
|
|
85
|
-
1. **Alcance:**
|
|
86
|
-
- Crear plugin `surface-shards` para Vite/Rollup
|
|
87
|
-
- Modificar API de `loadShard` en clase `Engine`
|
|
88
|
-
- Añadir propiedad estática `url` en clase base `Shard`
|
|
89
|
-
|
|
90
|
-
2. **Entradas / Datos:**
|
|
91
|
-
- Código fuente de engines (*.mts)
|
|
92
|
-
- Imports de clases Shard
|
|
93
|
-
- Propiedad estática `url` de cada Shard
|
|
94
|
-
|
|
95
|
-
3. **Salidas / Resultado esperado:**
|
|
96
|
-
- Shards compilados en `dist/surface/shards/[ShardName].mjs`
|
|
97
|
-
- Para npm: reutilizar plugin existente de node_modules
|
|
98
|
-
- API: `loadShard(ShardClass, options?)` donde `ShardClass.url` contiene la referencia
|
|
99
|
-
|
|
100
|
-
4. **Restricciones:**
|
|
101
|
-
- No incluir CSS por convención (el shard importa su propio CSS)
|
|
102
|
-
- Mantener compatibilidad con arquitectura Extensio
|
|
103
|
-
- No romper demos/tests existentes
|
|
104
|
-
|
|
105
|
-
5. **Criterio de aceptación (Done):**
|
|
106
|
-
- Plugin `surface-shards` detecta `loadShard(X)` y compila entry points
|
|
107
|
-
- `Engine.loadShard(ShardClass)` funciona correctamente
|
|
108
|
-
- Demo existente actualizada y funcional
|
|
109
|
-
- Tests unitarios pasan
|
|
110
|
-
|
|
111
|
-
## Historial de validaciones (append-only)
|
|
112
|
-
```yaml
|
|
113
|
-
history:
|
|
114
|
-
- phase: "phase-0-acceptance-criteria"
|
|
115
|
-
action: "completed"
|
|
116
|
-
validated_by: "architect-agent"
|
|
117
|
-
timestamp: "2026-01-12T07:37:16+01:00"
|
|
118
|
-
notes: "Acceptance criteria definidos con respuestas del desarrollador"
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
## Reglas contractuales
|
|
122
|
-
- Este fichero es la **fuente única de verdad** del estado de la tarea.
|
|
123
|
-
- El campo `task.phase.current` **SOLO puede ser modificado por `architect-agent`**.
|
|
124
|
-
- Una fase **NO puede marcarse como completed** si no es la fase actual.
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
# Analysis: Revisión del Sistema Agéntico
|
|
2
|
-
|
|
3
|
-
## 1. Resumen Ejecutivo
|
|
4
|
-
El análisis confirma una desconexión entre la potencia del framework (Core) y la capacidad de los agentes para implementarlo de forma consistente. La principal causa es la falta de detalle en las constituciones de Shards y Pages, y workflows que no cubren los pasos técnicos críticos para el build del CLI.
|
|
5
|
-
|
|
6
|
-
## 2. Análisis de Problemas Técnicos
|
|
7
|
-
|
|
8
|
-
### 2.1 Shards (Debilidad Crítica)
|
|
9
|
-
- **Falta de Contrato Visual**: Los agentes no distinguen entre el componente UI (Lit/React) y el "Manager" del Shard.
|
|
10
|
-
- **Detección de Build**: El sistema de exportación de Shards como archivos independientes (`.mjs`) no está documentado en las reglas, lo que causa errores de "Missing Shard" en tiempo de ejecución.
|
|
11
|
-
- **Registro Explícito**: La necesidad de `Shard.register` no está reforzada, causando WebComponents no definidos.
|
|
12
|
-
|
|
13
|
-
### 2.2 Pages (Ambigüedad)
|
|
14
|
-
- **Inexistencia de Reglas**: No hay reglas sobre cómo inyectar estilos o manejar la navegación programática de forma segura.
|
|
15
|
-
- **Indexación**: El archivo `src/surface/pages/index.mts` es vital para el despliegue pero los agentes lo tratan como opcional.
|
|
16
|
-
|
|
17
|
-
### 2.3 Workflows (Fragmentación)
|
|
18
|
-
- Los flujos actuales no tienen "Gating" de arquitectura. Un agente puede terminar una implementación sin haber registrado el Shard en el Engine, lo cual es un fallo silencioso hasta el build.
|
|
19
|
-
|
|
20
|
-
## 3. Matriz de Cambios Propuestos
|
|
21
|
-
|
|
22
|
-
| Componente | Tipo de Cambio | Impacto |
|
|
23
|
-
|------------|----------------|---------|
|
|
24
|
-
| `constitution.shards` | Refactor Profundo | Definición de patrón Adapter, reglas de CSS y comunicación Engine-to-Shard. |
|
|
25
|
-
| `constitution.pages` | Refactor Profundo | Definición de ciclo de vida Page, indexación obligatoria y navegación. |
|
|
26
|
-
| `constitution.modules` | Refactor | Clarificar comunicación entre scopes (Engine/Context/Surface). |
|
|
27
|
-
| Workflow `pages.create` | Nuevo | Flujo completo desde scaffolding hasta validación de build. |
|
|
28
|
-
| Workflow `shards.create` | Nuevo | Flujo completo incluyendo selección de adapter (Lit/React/Vanilla). |
|
|
29
|
-
|
|
30
|
-
## 4. Impacto en Infraestructura (CLI/MCP)
|
|
31
|
-
- **Yeoman Generators**: Los templates deben alinearse con las nuevas constituciones (especialmente el wrapper del Shard).
|
|
32
|
-
- **MCP Tools**: `extensio_create` debe ser la única fuente de verdad para el scaffolding inicial para evitar desviaciones manuales.
|
|
33
|
-
|
|
34
|
-
## 5. Evaluación de Riesgos
|
|
35
|
-
- **Complejidad**: Incrementar las reglas puede hacer que los agentes cometan más errores de contexto si no se estructuran bien. Mitigación: Uso de reglas `MEMORY` y `PERMANENT` claras.
|
|
36
|
-
- **Ruptura de Patrones**: Debemos asegurar que los módulos existentes sigan funcionando (retrocompatibilidad).
|
|
37
|
-
|
|
38
|
-
## 6. Recomendaciones del Arquitecto
|
|
39
|
-
1. **Priorizar la unificación del patrón Shard**: Eliminar la ambigüedad de si un Shard es un WebComponent o un objeto JS. Debe ser SIEMPRE un WebComponent registrado.
|
|
40
|
-
2. **Workflow-driven development**: Obligar a los agentes a ejecutar el workflow específico (`/shards.create`) antes de la implementación general para asegurar el registro correcto.
|
|
41
|
-
|
|
42
|
-
---
|
|
43
|
-
**¿Deseas proceder con el Plan de Implementación basado en este análisis?**
|