@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,133 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
artifact: subtask-implementation
|
|
3
|
-
phase: phase-4-implementation
|
|
4
|
-
agent: module-agent
|
|
5
|
-
status: completed
|
|
6
|
-
related_task: 17-implementacion-loadshard-external-agnostic--esm
|
|
7
|
-
subtask_id: 2
|
|
8
|
-
subtask_title: Iframe Container Implementation
|
|
9
|
-
completed_at: 2026-01-17T16:54:00Z
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
# Subtask Implementation — Module Agent — Subtask 2
|
|
13
|
-
|
|
14
|
-
## Agente Responsable
|
|
15
|
-
⚙️ **module-agent**
|
|
16
|
-
|
|
17
|
-
## Objetivo de la Subtask
|
|
18
|
-
Implementar la lógica de inyección de Shards en páginas externas mediante iframes, proporcionando aislamiento total de CSS y JavaScript.
|
|
19
|
-
|
|
20
|
-
## Cambios Realizados
|
|
21
|
-
|
|
22
|
-
### 1. Archivo: `packages/core/src/surface/shards/shard-container.html` (NUEVO)
|
|
23
|
-
|
|
24
|
-
**Descripción**: HTML contenedor que se carga dentro del iframe. Este documento:
|
|
25
|
-
- Importa dinámicamente el Shard ESM solicitado
|
|
26
|
-
- Implementa un `ResizeObserver` para comunicar cambios de tamaño al host
|
|
27
|
-
- Monta el Shard en un elemento raíz
|
|
28
|
-
|
|
29
|
-
**Características clave**:
|
|
30
|
-
- Recibe el path del Shard vía query parameter `?shard=...`
|
|
31
|
-
- Usa `import()` dinámico para cargar el Shard como ESM
|
|
32
|
-
- Envía mensajes `postMessage` al parent con el tamaño actual
|
|
33
|
-
- CSS reset para evitar estilos por defecto del navegador
|
|
34
|
-
|
|
35
|
-
### 2. Archivo: `packages/core/src/engine/engine.mts`
|
|
36
|
-
|
|
37
|
-
#### Cambio 2.1: Actualización del método `loadShard()`
|
|
38
|
-
**Líneas modificadas**: 387-416
|
|
39
|
-
|
|
40
|
-
**Antes**: Inyección directa vía `Scripting.executeScript`
|
|
41
|
-
|
|
42
|
-
**Después**:
|
|
43
|
-
- Detecta si debe usar iframe (opción `useIframe`, default: `true`)
|
|
44
|
-
- Si `useIframe === true`: delega a `injectShardViaIframe()`
|
|
45
|
-
- Si `useIframe === false`: usa inyección directa (legacy, para Surface Pages)
|
|
46
|
-
|
|
47
|
-
**Justificación**: Mantener compatibilidad con Surface Pages mientras se añade soporte para páginas externas.
|
|
48
|
-
|
|
49
|
-
#### Cambio 2.2: Nuevo método `injectShardViaIframe()`
|
|
50
|
-
**Líneas añadidas**: 418-473
|
|
51
|
-
|
|
52
|
-
**Funcionalidad**:
|
|
53
|
-
1. Construye la URL del iframe: `shard-container.html?shard=<shardPath>`
|
|
54
|
-
2. Genera un ID único con prefijo `extensio-shard-`
|
|
55
|
-
3. Inyecta un script que:
|
|
56
|
-
- Crea el elemento `<iframe>`
|
|
57
|
-
- Configura estilos (posición fija, sombra, z-index máximo)
|
|
58
|
-
- Añade atributo `sandbox` para seguridad
|
|
59
|
-
- Registra listener de `postMessage` para auto-resize
|
|
60
|
-
- Monta el iframe en el `document.body`
|
|
61
|
-
|
|
62
|
-
**Decisiones técnicas**:
|
|
63
|
-
- **Sandbox**: `allow-scripts allow-same-origin` (mínimo necesario)
|
|
64
|
-
- **Z-index**: `2147483647` (máximo valor seguro)
|
|
65
|
-
- **Posición inicial**: Fixed, bottom-right (300x400px)
|
|
66
|
-
- **Auto-resize**: Escucha mensajes `extensio:shard:resize`
|
|
67
|
-
|
|
68
|
-
### 3. Archivo: `packages/core/src/types.d.mts`
|
|
69
|
-
|
|
70
|
-
#### Cambio 3.1: Actualización de `ShardOptions`
|
|
71
|
-
**Líneas modificadas**: 103-107
|
|
72
|
-
|
|
73
|
-
**Añadido**:
|
|
74
|
-
```typescript
|
|
75
|
-
useIframe?: boolean; // If true, inject via iframe (default: true)
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
**Justificación**: Permitir control explícito del método de inyección.
|
|
79
|
-
|
|
80
|
-
## Tests Ejecutados
|
|
81
|
-
|
|
82
|
-
```bash
|
|
83
|
-
npm run test:unit -- engine --run
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
**Resultado**:
|
|
87
|
-
```
|
|
88
|
-
✅ Test Files: 25 passed (25)
|
|
89
|
-
✅ Tests: 181 passed (181)
|
|
90
|
-
✅ Duration: 3.29s
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
**Nota**: Los tests existentes siguen pasando porque la inyección directa (`useIframe: false`) se mantiene intacta.
|
|
94
|
-
|
|
95
|
-
## Decisiones Técnicas
|
|
96
|
-
|
|
97
|
-
### 1. Iframe vs Shadow DOM
|
|
98
|
-
**Decisión**: Usar iframe como contenedor principal.
|
|
99
|
-
**Razón**: Aislamiento total garantizado, bypass nativo de CSP, compatibilidad universal.
|
|
100
|
-
|
|
101
|
-
### 2. Comunicación postMessage
|
|
102
|
-
**Decisión**: Usar `postMessage` para resize en lugar de MutationObserver externo.
|
|
103
|
-
**Razón**: Más eficiente, el Shard conoce su propio tamaño mejor que el host.
|
|
104
|
-
|
|
105
|
-
### 3. Sandbox restrictivo
|
|
106
|
-
**Decisión**: `allow-scripts allow-same-origin` únicamente.
|
|
107
|
-
**Razón**: Mínimos permisos necesarios para ejecutar el Shard ESM.
|
|
108
|
-
|
|
109
|
-
### 4. Prefijo `extensio-`
|
|
110
|
-
**Decisión**: Todos los iframes tienen ID `extensio-shard-<timestamp>`.
|
|
111
|
-
**Razón**: Cumple con el AC3 (prefijo obligatorio) y evita colisiones.
|
|
112
|
-
|
|
113
|
-
## Desviaciones
|
|
114
|
-
Ninguna. La implementación sigue exactamente el plan aprobado y la activación del agente.
|
|
115
|
-
|
|
116
|
-
## Constituciones Validadas
|
|
117
|
-
- ✅ `constitution.modules`: Engine modificado sin romper ciclo de vida
|
|
118
|
-
- ✅ `constitution.clean_code`: Métodos pequeños, responsabilidad única
|
|
119
|
-
- ✅ `constitution.extensio_architecture`: Aislamiento total, no side-effects
|
|
120
|
-
|
|
121
|
-
## Próximos Pasos Sugeridos
|
|
122
|
-
1. **Paso 3 (surface-agent)**: Implementar `ResizeObserver` en la clase base `Shard`
|
|
123
|
-
2. **Paso 4 (architect/module)**: Añadir AI Layout Estimation
|
|
124
|
-
3. **Paso 5-7 (qa-agent)**: Crear demo y tests E2E
|
|
125
|
-
|
|
126
|
-
## Estado
|
|
127
|
-
✅ **COMPLETADO**
|
|
128
|
-
|
|
129
|
-
---
|
|
130
|
-
|
|
131
|
-
**Implementado por**: ⚙️ module-agent
|
|
132
|
-
**Supervisado por**: 🏛️ architect-agent
|
|
133
|
-
**Fecha**: 2026-01-17T16:54:00Z
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
artifact: subtask-implementation
|
|
3
|
-
phase: phase-4-implementation
|
|
4
|
-
agent: module-agent
|
|
5
|
-
status: completed
|
|
6
|
-
related_task: 17-implementacion-loadshard-external-agnostic--esm
|
|
7
|
-
subtask_id: 1
|
|
8
|
-
subtask_title: Refactorización Engine - Unificación de Listeners
|
|
9
|
-
completed_at: 2026-01-17T16:42:00Z
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
# Subtask Implementation — Module Agent — Subtask 1
|
|
13
|
-
|
|
14
|
-
## Agente Responsable
|
|
15
|
-
**module-agent**
|
|
16
|
-
|
|
17
|
-
## Objetivo de la Subtask
|
|
18
|
-
Refactorizar el `Engine` para eliminar la duplicidad de listeners de `Runtime.onMessage`, centralizando toda la gestión de mensajes en el método `_listen()` → `onMessage()`.
|
|
19
|
-
|
|
20
|
-
## Cambios Realizados
|
|
21
|
-
|
|
22
|
-
### 1. Archivo: `packages/core/src/engine/engine.mts`
|
|
23
|
-
|
|
24
|
-
#### Cambio 1.1: Eliminación del listener duplicado en el constructor
|
|
25
|
-
**Líneas modificadas**: 51-60
|
|
26
|
-
|
|
27
|
-
**Antes**:
|
|
28
|
-
```typescript
|
|
29
|
-
constructor(name: string, scope: string = Scope.Engine) {
|
|
30
|
-
super(name, scope);
|
|
31
|
-
Engine.instance = this;
|
|
32
|
-
const channel = Channel.LoadContext;
|
|
33
|
-
Runtime.onMessage.addListener((
|
|
34
|
-
message: Message) => {
|
|
35
|
-
if (channel !== message.channel && message.data.command !== Command.loadContext) return false;
|
|
36
|
-
this.loadContext = true;
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
**Después**:
|
|
42
|
-
```typescript
|
|
43
|
-
constructor(name: string, scope: string = Scope.Engine) {
|
|
44
|
-
super(name, scope);
|
|
45
|
-
Engine.instance = this;
|
|
46
|
-
}
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
**Justificación**: El listener estaba duplicado con el de `_listen()`, violando el principio de responsabilidad única.
|
|
50
|
-
|
|
51
|
-
#### Cambio 1.2: Centralización del manejo de `loadContext` en `onMessage()`
|
|
52
|
-
**Líneas modificadas**: 68-87
|
|
53
|
-
|
|
54
|
-
**Añadido**:
|
|
55
|
-
```typescript
|
|
56
|
-
// Handle loadContext command
|
|
57
|
-
if (channel === Channel.LoadContext && command === Command.loadContext) {
|
|
58
|
-
this.loadContext = true;
|
|
59
|
-
messageResponse = {
|
|
60
|
-
channel: Channel.LoadContext,
|
|
61
|
-
data: {
|
|
62
|
-
command: Command.loadContext,
|
|
63
|
-
payload: { status: 'loaded' }
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
sendResponse(messageResponse as Message);
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
**Justificación**: Centralizar toda la lógica de mensajes en un solo punto de entrada facilita el mantenimiento y debugging.
|
|
72
|
-
|
|
73
|
-
### 2. Archivo: `packages/core/test/unit/core/engine-advanced.test.mts`
|
|
74
|
-
|
|
75
|
-
#### Cambio 2.1: Actualización del test de regresión
|
|
76
|
-
**Líneas modificadas**: 51-63
|
|
77
|
-
|
|
78
|
-
**Antes**:
|
|
79
|
-
```typescript
|
|
80
|
-
const onMessageListener = mockRuntime.onMessage.addListener.mock.calls[1][0];
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
**Después**:
|
|
84
|
-
```typescript
|
|
85
|
-
const onMessageListener = mockRuntime.onMessage.addListener.mock.calls.find(
|
|
86
|
-
call => call[0].length === 3 || call[0].length === 2
|
|
87
|
-
)?.[0];
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
**Justificación**: El test asumía 2 listeners (índice `[1]`), pero ahora solo hay 1. Se actualiza para buscar el listener correcto dinámicamente.
|
|
91
|
-
|
|
92
|
-
## Decisiones Técnicas
|
|
93
|
-
|
|
94
|
-
1. **Preservación del comportamiento**: El manejo de `loadContext` se mantiene idéntico, solo cambia su ubicación.
|
|
95
|
-
2. **Early return**: Se usa un `return` temprano para evitar procesar el resto del switch cuando es un mensaje de `loadContext`.
|
|
96
|
-
3. **Compatibilidad**: No se afecta el `Context` que también usa `_listen()` porque opera en canales diferentes.
|
|
97
|
-
|
|
98
|
-
## Tests Ejecutados
|
|
99
|
-
|
|
100
|
-
```bash
|
|
101
|
-
npm run test:unit -- engine --run
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
**Resultado**:
|
|
105
|
-
```
|
|
106
|
-
✅ Test Files: 25 passed (25)
|
|
107
|
-
✅ Tests: 181 passed (181)
|
|
108
|
-
✅ Duration: 3.29s
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
## Desviaciones
|
|
112
|
-
Ninguna. La implementación sigue exactamente el plan aprobado.
|
|
113
|
-
|
|
114
|
-
## Constituciones Validadas
|
|
115
|
-
- ✅ `constitution.modules`: Ciclo de vida preservado, reactividad intacta
|
|
116
|
-
- ✅ `constitution.clean_code`: Eliminación de duplicación, responsabilidad única
|
|
117
|
-
- ✅ `constitution.extensio_architecture`: Jerarquía Core → Engine respetada
|
|
118
|
-
|
|
119
|
-
## Herramientas Utilizadas
|
|
120
|
-
- Editor de código (manual)
|
|
121
|
-
- Vitest para validación de tests
|
|
122
|
-
|
|
123
|
-
## Estado
|
|
124
|
-
✅ **COMPLETADO**
|
|
125
|
-
|
|
126
|
-
---
|
|
127
|
-
|
|
128
|
-
**Implementado por**: module-agent
|
|
129
|
-
**Supervisado por**: architect-agent
|
|
130
|
-
**Fecha**: 2026-01-17T16:42:00Z
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
artifact: plan
|
|
3
|
-
phase: phase-3-planning
|
|
4
|
-
owner: architect-agent
|
|
5
|
-
status: draft
|
|
6
|
-
related_task: 17-implementacion-loadshard-external-agnostic--esm
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# Implementation Plan — 17-Implementación de loadShard External
|
|
10
|
-
|
|
11
|
-
## 1. Resumen del plan
|
|
12
|
-
- **Contexto**: Implementar la inyección de Shards en páginas externas usando iframes para garantizar aislamiento total, simplificar el Engine unificando sus listeners de mensajes, e innovar con el uso de AI para el auto-dimensionado del iframe.
|
|
13
|
-
- **Resultado esperado**: Un `Engine` refactorizado, un método `loadShard` capaz de inyectar iframes en sitios externos, y Shards capaces de comunicar su tamaño al host.
|
|
14
|
-
- **Alcance**:
|
|
15
|
-
- Refactorización de `Core` y `Engine` (listeners de mensajes).
|
|
16
|
-
- Implementación de la lógica de inyección de Iframe en el `Engine`.
|
|
17
|
-
- Adaptación del componente base `Shard` para el envío de dimensiones.
|
|
18
|
-
- Implementación experimental de `AIDriver` para estimación de layout.
|
|
19
|
-
|
|
20
|
-
---
|
|
21
|
-
|
|
22
|
-
## 2. Inputs contractuales
|
|
23
|
-
- **Task**: `.agent/artifacts/17-implementacion-loadshard-external-agnostic--esm/task.md`
|
|
24
|
-
- **Analysis**: `.agent/artifacts/17-implementacion-loadshard-external-agnostic--esm/analysis.md`
|
|
25
|
-
- **Acceptance Criteria**:
|
|
26
|
-
- AC1: Iframe ESM multi-browser.
|
|
27
|
-
- AC2: Aislamiento total vía Iframe.
|
|
28
|
-
- AC3: Prefijo `extensio-`.
|
|
29
|
-
- AC4: Refactorización Engine.
|
|
30
|
-
- AC5: AI Layout Estimation.
|
|
31
|
-
|
|
32
|
-
**Dispatch de dominios (OBLIGATORIO si aplica)**
|
|
33
|
-
```yaml
|
|
34
|
-
plan:
|
|
35
|
-
workflows:
|
|
36
|
-
drivers:
|
|
37
|
-
action: none
|
|
38
|
-
workflow: none
|
|
39
|
-
|
|
40
|
-
dispatch:
|
|
41
|
-
- domain: core
|
|
42
|
-
action: refactor
|
|
43
|
-
workflow: workflow.tasklifecycle-long
|
|
44
|
-
- domain: modules
|
|
45
|
-
action: refactor
|
|
46
|
-
workflow: workflow.tasklifecycle-long
|
|
47
|
-
- domain: surfaces
|
|
48
|
-
action: refactor
|
|
49
|
-
workflow: workflow.tasklifecycle-long
|
|
50
|
-
- domain: qa
|
|
51
|
-
action: verify
|
|
52
|
-
workflow: workflow.tasklifecycle-long
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
---
|
|
56
|
-
|
|
57
|
-
## 3. Desglose de implementación (pasos)
|
|
58
|
-
|
|
59
|
-
### Paso 1: Refactorización del Engine (AC4)
|
|
60
|
-
- **Descripción**: Eliminar el listener de `Runtime.onMessage` del constructor de `Engine` y unificar todo en `_listen` -> `onMessage`. Asegurar que `loadContext` se maneje de forma normalizada.
|
|
61
|
-
- **Dependencias**: Ninguna.
|
|
62
|
-
- **Entregables**: `packages/core/src/engine/engine.mts` refactorizado.
|
|
63
|
-
- **Agente responsable**: architect-agent.
|
|
64
|
-
|
|
65
|
-
### Paso 2: Implementación de Iframe Container en loadShard (AC1, AC2, AC3)
|
|
66
|
-
- **Descripción**: Modificar `loadShard` para detectar si el target es externo. Si lo es, crear un elemento iframe con prefijo `extensio-`, inyectarlo en el DOM y cargar el recurso de la extensión.
|
|
67
|
-
- **Dependencias**: Paso 1.
|
|
68
|
-
- **Entregables**: Lógica de inyección en `Engine`.
|
|
69
|
-
- **Agente responsable**: module-agent.
|
|
70
|
-
|
|
71
|
-
### Paso 3: Shard Auto-Resize & Communication (AC5)
|
|
72
|
-
- **Descripción**: Actualizar la clase base `Shard` para que, al montarse, implemente un `ResizeObserver` que envíe mensajes de `resize` al Engine mediante `postMessage`.
|
|
73
|
-
- **Dependencias**: Paso 2.
|
|
74
|
-
- **Entregables**: `packages/core/src/surfaces/shard.mts` actualizado.
|
|
75
|
-
- **Agente responsable**: surface-agent.
|
|
76
|
-
|
|
77
|
-
### Paso 4: AI Layout Estimation (AC5)
|
|
78
|
-
- **Descripción**: Implementar un helper/driver experimental que use la Prompt API de Chrome/Google Extensio para predecir el tamaño inicial del Shard basado en su esquema CSS y enviarlo al iframe antes de la inyección.
|
|
79
|
-
- **Dependencias**: Paso 3.
|
|
80
|
-
- **Entregables**: `AIDriver` o helper de estimación.
|
|
81
|
-
- **Agente responsable**: architect-agent / module-agent.
|
|
82
|
-
|
|
83
|
-
### Paso 5: Creación de la Demo y Scripts de Test (AC1-AC5) (NUEVO)
|
|
84
|
-
- **Descripción**: Crear una carpeta `demo` en `packages/core/demo` que actúe como una extensión funcional. Incluirá un Engine de prueba y un Shard para verificar la inyección en dominios externos. Eliminar cualquier residuo de demos previas si existen.
|
|
85
|
-
- **Dependencias**: Paso 4.
|
|
86
|
-
- **Entregables**: Scaffolding de demo en `packages/core/demo`.
|
|
87
|
-
- **Agente responsable**: surface-agent / qa-agent.
|
|
88
|
-
|
|
89
|
-
### Paso 6: Configuración de Scripts de Testing (AC1-AC5) (NUEVO)
|
|
90
|
-
- **Descripción**: Añadir scripts a `packages/core/package.json` para facilitar las pruebas:
|
|
91
|
-
- `demo:manual`: `extensio build --targetPath ./demo --loadBrowser chrome --watch`
|
|
92
|
-
- `demo:automation`: `playwright test test/e2e --project chromium`
|
|
93
|
-
- **Dependencias**: Paso 5.
|
|
94
|
-
- **Entregables**: `package.json` actualizado con los nuevos scripts.
|
|
95
|
-
- **Agente responsable**: qa-agent.
|
|
96
|
-
|
|
97
|
-
### Paso 7: Verificación E2E con Playwright (AC1-AC5)
|
|
98
|
-
- **Descripción**: Implementar los tests E2E en `packages/core/test/e2e` que utilicen la demo compilada para inyectar shards en páginas externas y verificar el auto-resize y ESM.
|
|
99
|
-
- **Dependencias**: Paso 6.
|
|
100
|
-
- **Entregables**: Suite de tests E2E funcional.
|
|
101
|
-
- **Agente responsable**: qa-agent.
|
|
102
|
-
|
|
103
|
-
---
|
|
104
|
-
|
|
105
|
-
## 4. Asignación de responsabilidades (Agentes)
|
|
106
|
-
|
|
107
|
-
- **Architect-Agent**
|
|
108
|
-
- Refactorización del Core/Engine. Diseño del protocolo de comunicación Iframe-Host.
|
|
109
|
-
- **Module-Agent**
|
|
110
|
-
- Lógica de inyección en `loadShard`. Implementación del AI Prediction helper.
|
|
111
|
-
- **Surface-Agent**
|
|
112
|
-
- Adaptación de la clase `Shard` (ResizeObserver). Creación del Shard de demo.
|
|
113
|
-
- **QA / Verification-Agent**
|
|
114
|
-
- Creación de la infra de demo, configuración de scripts en `package.json` y desarrollo de tests E2E.
|
|
115
|
-
|
|
116
|
-
---
|
|
117
|
-
|
|
118
|
-
## 5. Estrategia de testing y validación
|
|
119
|
-
|
|
120
|
-
- **Unit tests**:
|
|
121
|
-
- Validar que `Engine.onMessage` recibe y procesa correctamente todos los comandos tras la refactorización.
|
|
122
|
-
- **Integration tests**:
|
|
123
|
-
- Simular la inyección de un Iframe y verificar el flujo de mensajes `resize`.
|
|
124
|
-
- **E2E / Manual**:
|
|
125
|
-
- **Prueba Manual**: Ejecutar `npm run demo:manual` y verificar visualmente la inyección en una página externa.
|
|
126
|
-
- **Prueba Automática**: Ejecutar `npm run demo:automation` para validar regresiones en el flujo de inyección y resize.
|
|
127
|
-
|
|
128
|
-
---
|
|
129
|
-
|
|
130
|
-
## 6. Plan de demo
|
|
131
|
-
- **Objetivo de la demo**: Mostrar un Shard flotante inyectado en un dominio externo que se ajusta automáticamente a su contenido usando Iframe.
|
|
132
|
-
- **Escenario(s)**: Navegación a un dominio externo (ej. google.com o wikipedia.org), ejecución de `loadShard` y verificación del comportamiento.
|
|
133
|
-
- **Componentes**:
|
|
134
|
-
- `DemoEngine`: Orquesta la carga.
|
|
135
|
-
- `DemoShard`: Componente visual que cambia de tamaño dinámicamente.
|
|
136
|
-
- **Criterios de éxito**:
|
|
137
|
-
- El Shard se renderiza en un Iframe aislado.
|
|
138
|
-
- El Iframe cambia de tamaño según el contenido del Shard.
|
|
139
|
-
- Sin errores de CSP o ESM en consola.
|
|
140
|
-
|
|
141
|
-
---
|
|
142
|
-
|
|
143
|
-
## 7. Estimaciones y pesos de implementación
|
|
144
|
-
- **Paso 1**: Bajo (Refactorización).
|
|
145
|
-
- **Paso 2**: Medio (Lógica de inyección).
|
|
146
|
-
- **Paso 3**: Medio (Comunicación cross-origin).
|
|
147
|
-
- **Paso 4**: Alto (Investigación AI/Prompt API).
|
|
148
|
-
- **Paso 5, 6, 7**: Medio (Demo & Testing Infra).
|
|
149
|
-
|
|
150
|
-
---
|
|
151
|
-
|
|
152
|
-
## 8. Puntos críticos y resolución
|
|
153
|
-
|
|
154
|
-
- **Punto crítico 1: Comunicación postMessage**
|
|
155
|
-
- Riesgo: Seguridad. Recibir mensajes de cualquier origen.
|
|
156
|
-
- Resolución: Validar siempre que el mensaje provenga de nuestra propia extensión verificando `event.origin`.
|
|
157
|
-
|
|
158
|
-
- **Punto crítico 2: Resize dinámico del Iframe**
|
|
159
|
-
- Riesgo: Layout shift agresivo.
|
|
160
|
-
- Resolución: Uso de la AI para estimar el tamaño inicial y transiciones suaves de CSS para el ajuste final.
|
|
161
|
-
|
|
162
|
-
---
|
|
163
|
-
|
|
164
|
-
## 9. Dependencias y compatibilidad
|
|
165
|
-
- **Chrome / Chromium**: Soporte completo para ESM e Iframe.
|
|
166
|
-
- **Firefox**: Soporte para Iframe con ESM interno (ventaja de nuestra arquitectura).
|
|
167
|
-
- **Safari**: Compatible con la estrategia de Iframe.
|
|
168
|
-
|
|
169
|
-
---
|
|
170
|
-
|
|
171
|
-
## 10. Criterios de finalización
|
|
172
|
-
- [ ] Engine refactorizado y unificado.
|
|
173
|
-
- [ ] Demo funcional en `packages/core/demo`.
|
|
174
|
-
- [ ] Scripts `demo:manual` y `demo:automation` operativos.
|
|
175
|
-
- [ ] Tests E2E pasando en Chromium.
|
|
176
|
-
- [ ] Auto-resize validado con AI.
|
|
177
|
-
|
|
178
|
-
---
|
|
179
|
-
|
|
180
|
-
## 11. Aprobación del desarrollador (OBLIGATORIA)
|
|
181
|
-
|
|
182
|
-
```yaml
|
|
183
|
-
approval:
|
|
184
|
-
developer:
|
|
185
|
-
decision: PENDING
|
|
186
|
-
date: null
|
|
187
|
-
comments: null
|
|
188
|
-
```
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
artifact: agent-activation
|
|
3
|
-
phase: phase-5-verification
|
|
4
|
-
activated_agent: qa-agent
|
|
5
|
-
activated_by: architect-agent
|
|
6
|
-
activation_date: 2026-01-17T17:38:00Z
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# Agent Activation — Validate Demo Build
|
|
10
|
-
|
|
11
|
-
## Agente Activado
|
|
12
|
-
🛡️ **qa-agent**
|
|
13
|
-
|
|
14
|
-
## Contexto
|
|
15
|
-
El module-agent ha corregido la estructura de la demo. Ahora se requiere validar que la build funciona correctamente tanto en modo manual como automático.
|
|
16
|
-
|
|
17
|
-
## Responsabilidades Asignadas
|
|
18
|
-
|
|
19
|
-
### 1. Validar Build Manual
|
|
20
|
-
Ejecutar:
|
|
21
|
-
```bash
|
|
22
|
-
cd packages/core
|
|
23
|
-
npm run demo:manual
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
**Validaciones**:
|
|
27
|
-
- [ ] La build completa sin errores
|
|
28
|
-
- [ ] Se genera `demo/dist/chrome/`
|
|
29
|
-
- [ ] El manifest.json se copia correctamente
|
|
30
|
-
- [ ] Los archivos `.mts` se compilan a `.mjs`
|
|
31
|
-
- [ ] Chrome se lanza con la extensión cargada (si `--loadBrowser` está activo)
|
|
32
|
-
|
|
33
|
-
### 2. Validar Build Automática
|
|
34
|
-
Ejecutar:
|
|
35
|
-
```bash
|
|
36
|
-
cd packages/core
|
|
37
|
-
ext build --targetPath ./demo --browsers chrome
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
**Validaciones**:
|
|
41
|
-
- [ ] La build completa sin errores
|
|
42
|
-
- [ ] Se genera `demo/dist/chrome/manifest.json`
|
|
43
|
-
- [ ] `service.worker.mts` → `dist/chrome/service.worker.mjs`
|
|
44
|
-
- [ ] `popup.mts` → `dist/chrome/popup.mjs`
|
|
45
|
-
- [ ] `demo-shard.mts` → `dist/chrome/demo-shard.mjs`
|
|
46
|
-
- [ ] `popup.html` se copia correctamente
|
|
47
|
-
|
|
48
|
-
### 3. Validar Funcionalidad (Si la build es exitosa)
|
|
49
|
-
- [ ] Cargar la extensión manualmente en Chrome desde `demo/dist/chrome/`
|
|
50
|
-
- [ ] Verificar que el popup se abre
|
|
51
|
-
- [ ] Navegar a una página externa (ej. Wikipedia)
|
|
52
|
-
- [ ] Click en "Inyectar Shard"
|
|
53
|
-
- [ ] Verificar que el Shard aparece en un iframe
|
|
54
|
-
- [ ] Verificar que el Shard crece automáticamente
|
|
55
|
-
|
|
56
|
-
### 4. Reportar Resultados
|
|
57
|
-
Crear informe con:
|
|
58
|
-
- Resultado de build manual (✅ o ❌)
|
|
59
|
-
- Resultado de build automática (✅ o ❌)
|
|
60
|
-
- Logs de errores (si los hay)
|
|
61
|
-
- Screenshots o evidencia visual (si aplica)
|
|
62
|
-
|
|
63
|
-
## Criterios de Validación
|
|
64
|
-
- ✅ **PASS**: Ambas builds completan sin errores
|
|
65
|
-
- ⚠️ **PARTIAL**: Una build funciona, la otra falla
|
|
66
|
-
- ❌ **FAIL**: Ambas builds fallan
|
|
67
|
-
|
|
68
|
-
## Entregable Esperado
|
|
69
|
-
- `qa-agent/demo-build-validation.md`
|
|
70
|
-
|
|
71
|
-
## Restricciones
|
|
72
|
-
- **SÍ** ejecutar las builds
|
|
73
|
-
- **SÍ** reportar todos los errores encontrados
|
|
74
|
-
- **NO** modificar código de la demo (solo reportar issues)
|
|
75
|
-
|
|
76
|
-
---
|
|
77
|
-
|
|
78
|
-
**Activado por**: 🏛️ architect-agent
|
|
79
|
-
**Fecha**: 2026-01-17T17:38:00Z
|
|
80
|
-
**Estado**: ACTIVO
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
artifact: agent-activation
|
|
3
|
-
phase: phase-5-verification
|
|
4
|
-
activated_agent: qa-agent
|
|
5
|
-
activated_by: architect-agent
|
|
6
|
-
activation_date: 2026-01-17T17:28:00Z
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# Agent Activation — Phase 5: Verification
|
|
10
|
-
|
|
11
|
-
## Agente Activado
|
|
12
|
-
🛡️ **qa-agent**
|
|
13
|
-
|
|
14
|
-
## Contexto
|
|
15
|
-
La implementación ha sido completada y aprobada por el architect-agent. Ahora se requiere verificación completa mediante tests para confirmar que:
|
|
16
|
-
1. Los tests unitarios existentes siguen pasando
|
|
17
|
-
2. La demo es funcional
|
|
18
|
-
3. No hay regresiones
|
|
19
|
-
|
|
20
|
-
## Responsabilidades Asignadas
|
|
21
|
-
|
|
22
|
-
### 1. Ejecutar Tests Unitarios
|
|
23
|
-
- Ejecutar `npm run test:unit` en `packages/core`
|
|
24
|
-
- Verificar que los 181 tests siguen pasando
|
|
25
|
-
- Reportar cualquier regresión
|
|
26
|
-
|
|
27
|
-
### 2. Validar la Demo (Manual)
|
|
28
|
-
- Compilar la demo con `npm run demo:manual`
|
|
29
|
-
- Verificar que la extensión carga correctamente
|
|
30
|
-
- Confirmar que el popup es funcional
|
|
31
|
-
- Validar que la inyección de Shards funciona
|
|
32
|
-
|
|
33
|
-
### 3. Ejecutar Tests E2E (Opcional)
|
|
34
|
-
- Si la demo compila correctamente, ejecutar `npm run demo:automation`
|
|
35
|
-
- Reportar resultados de los 3 tests E2E
|
|
36
|
-
|
|
37
|
-
### 4. Crear Informe de Verificación
|
|
38
|
-
- Documentar todos los resultados
|
|
39
|
-
- Incluir métricas (tests pasados/fallados, cobertura si aplica)
|
|
40
|
-
- Reportar cualquier issue detectado
|
|
41
|
-
|
|
42
|
-
## Criterios de Validación
|
|
43
|
-
|
|
44
|
-
### Tests Unitarios
|
|
45
|
-
- [ ] 181/181 tests pasando
|
|
46
|
-
- [ ] Sin errores de TypeScript
|
|
47
|
-
- [ ] Sin warnings críticos
|
|
48
|
-
|
|
49
|
-
### Demo
|
|
50
|
-
- [ ] Compilación exitosa
|
|
51
|
-
- [ ] Extensión carga en Chrome
|
|
52
|
-
- [ ] Popup se abre correctamente
|
|
53
|
-
- [ ] Inyección de Shard funcional
|
|
54
|
-
- [ ] Auto-resize observable
|
|
55
|
-
|
|
56
|
-
### Tests E2E (Opcional)
|
|
57
|
-
- [ ] Test 1: Inyección y auto-resize (PASS)
|
|
58
|
-
- [ ] Test 2: Aislamiento de estilos (PASS)
|
|
59
|
-
- [ ] Test 3: Carga ESM (PASS)
|
|
60
|
-
|
|
61
|
-
## Entregable Esperado
|
|
62
|
-
- `qa-agent/verification.md`
|
|
63
|
-
|
|
64
|
-
## Restricciones
|
|
65
|
-
- **SÍ** ejecutar todos los tests
|
|
66
|
-
- **SÍ** reportar cualquier fallo, por mínimo que sea
|
|
67
|
-
- **NO** modificar código de implementación (solo tests si es necesario)
|
|
68
|
-
|
|
69
|
-
---
|
|
70
|
-
|
|
71
|
-
**Activado por**: 🏛️ architect-agent
|
|
72
|
-
**Fecha**: 2026-01-17T17:28:00Z
|
|
73
|
-
**Estado**: ACTIVO
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
artifact: agent-activation
|
|
3
|
-
phase: phase-4-implementation
|
|
4
|
-
subtask_id: 5-7
|
|
5
|
-
activated_agent: qa-agent
|
|
6
|
-
activated_by: architect-agent
|
|
7
|
-
activation_date: 2026-01-17T17:21:00Z
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
# Agent Activation — Subtasks 5-7: Demo & Testing Infrastructure
|
|
11
|
-
|
|
12
|
-
## Agente Activado
|
|
13
|
-
🧪 **qa-agent**
|
|
14
|
-
|
|
15
|
-
## Contexto
|
|
16
|
-
Según el plan aprobado, se requiere crear la infraestructura de demo y testing para validar la inyección de Shards en páginas externas mediante iframes.
|
|
17
|
-
|
|
18
|
-
## Responsabilidades Asignadas
|
|
19
|
-
|
|
20
|
-
### Paso 5: Creación de la Demo
|
|
21
|
-
- Crear `packages/core/demo/` con estructura de extensión funcional
|
|
22
|
-
- Implementar `DemoEngine` que orqueste la carga de Shards
|
|
23
|
-
- Crear `DemoShard` que cambie de tamaño dinámicamente para probar auto-resize
|
|
24
|
-
- Eliminar cualquier demo previa si existe
|
|
25
|
-
|
|
26
|
-
### Paso 6: Configuración de Scripts
|
|
27
|
-
- Añadir a `packages/core/package.json`:
|
|
28
|
-
- `demo:manual`: Para pruebas manuales con watch mode
|
|
29
|
-
- `demo:automation`: Para tests E2E automatizados
|
|
30
|
-
|
|
31
|
-
### Paso 7: Tests E2E con Playwright
|
|
32
|
-
- Crear suite de tests en `packages/core/test/e2e/`
|
|
33
|
-
- Validar inyección de Shards en páginas externas
|
|
34
|
-
- Verificar auto-resize del iframe
|
|
35
|
-
- Confirmar aislamiento CSS/JS
|
|
36
|
-
- Validar ESM funcional en Chrome y Firefox
|
|
37
|
-
|
|
38
|
-
## Constituciones Aplicables
|
|
39
|
-
- `constitution.extensio_architecture` (estructura de demo, testing)
|
|
40
|
-
- `roles/qa.md` (estrategia de testing, responsabilidad exclusiva)
|
|
41
|
-
- Plan aprobado (secciones 5, 6, 7)
|
|
42
|
-
|
|
43
|
-
## Herramientas Obligatorias
|
|
44
|
-
- **Demo**: `mcp_extensio-cli tools` (extensio_demo)
|
|
45
|
-
- **Build**: `mcp_extensio-cli tools` (extensio_build)
|
|
46
|
-
- **Tests**: Playwright (según constitution)
|
|
47
|
-
|
|
48
|
-
## Criterios de Validación
|
|
49
|
-
|
|
50
|
-
### Demo (Paso 5)
|
|
51
|
-
- [ ] Estructura de demo creada con `extensio_demo`
|
|
52
|
-
- [ ] `DemoEngine` funcional
|
|
53
|
-
- [ ] `DemoShard` con contenido dinámico
|
|
54
|
-
- [ ] Manifest.json configurado correctamente
|
|
55
|
-
|
|
56
|
-
### Scripts (Paso 6)
|
|
57
|
-
- [ ] `npm run demo:manual` compila y lanza Chrome
|
|
58
|
-
- [ ] `npm run demo:automation` ejecuta tests E2E
|
|
59
|
-
|
|
60
|
-
### Tests E2E (Paso 7)
|
|
61
|
-
- [ ] Test: Inyección de Shard en página externa
|
|
62
|
-
- [ ] Test: Auto-resize del iframe
|
|
63
|
-
- [ ] Test: Aislamiento CSS (estilos de host no afectan Shard)
|
|
64
|
-
- [ ] Test: ESM funcional (Shard carga correctamente)
|
|
65
|
-
- [ ] Todos los tests pasan en Chromium
|
|
66
|
-
|
|
67
|
-
## Acceptance Criteria Cubiertos
|
|
68
|
-
- AC1: Iframe ESM multi-browser
|
|
69
|
-
- AC2: Aislamiento total vía Iframe
|
|
70
|
-
- AC3: Prefijo `extensio-`
|
|
71
|
-
- AC4: Refactorización Engine (ya validado)
|
|
72
|
-
- AC5: Auto-resize (sin AI, mediante ResizeObserver)
|
|
73
|
-
|
|
74
|
-
## Entregables Esperados
|
|
75
|
-
- `qa-agent/subtask-5-7-implementation.md`
|
|
76
|
-
- `packages/core/demo/` (estructura completa)
|
|
77
|
-
- `packages/core/package.json` (scripts añadidos)
|
|
78
|
-
- `packages/core/test/e2e/shard-injection.spec.ts` (o similar)
|
|
79
|
-
|
|
80
|
-
## Restricciones
|
|
81
|
-
- **NO** ejecutar tests que no sean E2E (los unitarios ya pasaron)
|
|
82
|
-
- **SÍ** usar `mcp_extensio-cli tools` para crear la demo
|
|
83
|
-
- **SÍ** validar que la demo sigue la arquitectura Extensio
|
|
84
|
-
|
|
85
|
-
## Escenario de Demo Sugerido
|
|
86
|
-
1. Extensión cargada en Chrome
|
|
87
|
-
2. Navegación a `https://wikipedia.org`
|
|
88
|
-
3. Click en botón de la extensión (popup o content script)
|
|
89
|
-
4. Se inyecta un Shard flotante en la página
|
|
90
|
-
5. El Shard muestra contenido dinámico (ej. contador, formulario)
|
|
91
|
-
6. El iframe se ajusta automáticamente al contenido
|
|
92
|
-
|
|
93
|
-
---
|
|
94
|
-
|
|
95
|
-
**Activado por**: 🏛️ architect-agent
|
|
96
|
-
**Fecha**: 2026-01-17T17:21:00Z
|
|
97
|
-
**Estado**: ACTIVO
|