@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.
Files changed (345) hide show
  1. package/dist/artifacts/index.md +2 -26
  2. package/dist/bootstrap.md +204 -151
  3. package/dist/cli/commands/init.js +0 -5
  4. package/dist/core/mapping/resolver.js +1 -1
  5. package/dist/core/migration/detector.js +1 -1
  6. package/dist/index.md +0 -11
  7. package/dist/rules/constitution/agents-behavior.md +10 -19
  8. package/dist/rules/constitution/clean-code.md +10 -11
  9. package/dist/rules/constitution/index.md +0 -5
  10. package/dist/rules/index.md +1 -1
  11. package/dist/rules/roles/architect.md +47 -88
  12. package/dist/rules/roles/index.md +1 -4
  13. package/dist/rules/roles/qa.md +61 -136
  14. package/dist/rules/roles/researcher.md +34 -48
  15. package/dist/templates/agent-scores.md +6 -7
  16. package/dist/templates/analysis.md +6 -6
  17. package/dist/templates/changelog.md +1 -1
  18. package/dist/templates/closure.md +9 -1
  19. package/dist/templates/index.md +0 -6
  20. package/dist/templates/planning.md +10 -10
  21. package/dist/templates/research.md +1 -1
  22. package/dist/templates/results-acceptance.md +1 -1
  23. package/dist/templates/review.md +2 -2
  24. package/dist/templates/subtask-implementation.md +1 -1
  25. package/dist/templates/task.md +4 -32
  26. package/dist/templates/verification.md +3 -3
  27. package/dist/workflows/index.md +0 -2
  28. package/dist/workflows/init.md +26 -17
  29. package/dist/workflows/tasklifecycle-long/phase-0-acceptance-criteria.md +2 -2
  30. package/dist/workflows/tasklifecycle-long/phase-1-research.md +3 -3
  31. package/dist/workflows/tasklifecycle-long/phase-2-analysis.md +6 -21
  32. package/dist/workflows/tasklifecycle-long/phase-3-planning.md +5 -11
  33. package/dist/workflows/tasklifecycle-long/phase-4-implementation.md +2 -2
  34. package/dist/workflows/tasklifecycle-long/phase-5-verification.md +3 -3
  35. package/dist/workflows/tasklifecycle-long/phase-6-results-acceptance.md +1 -1
  36. package/dist/workflows/tasklifecycle-long/phase-7-evaluation.md +12 -19
  37. package/dist/workflows/tasklifecycle-long/phase-8-commit-push.md +3 -3
  38. package/dist/workflows/tasklifecycle-short/short-phase-1-brief.md +2 -2
  39. package/dist/workflows/tasklifecycle-short/short-phase-2-implementation.md +1 -1
  40. package/dist/workflows/tasklifecycle-short/short-phase-3-closure.md +5 -5
  41. package/package.json +2 -2
  42. package/dist/artifacts/1-mcp-server-extensio-cli/analysis.md +0 -480
  43. package/dist/artifacts/1-mcp-server-extensio-cli/architect/review.md +0 -285
  44. package/dist/artifacts/1-mcp-server-extensio-cli/changelog.md +0 -29
  45. package/dist/artifacts/1-mcp-server-extensio-cli/implementer-agent/subtask-implementation.md +0 -321
  46. package/dist/artifacts/1-mcp-server-extensio-cli/plan.md +0 -522
  47. package/dist/artifacts/1-mcp-server-extensio-cli/researcher/research.md +0 -270
  48. package/dist/artifacts/1-mcp-server-extensio-cli/results.md +0 -143
  49. package/dist/artifacts/1-mcp-server-extensio-cli/task-metrics.md +0 -33
  50. package/dist/artifacts/1-mcp-server-extensio-cli/task.md +0 -178
  51. package/dist/artifacts/1-mcp-server-extensio-cli/walkthrough.md +0 -69
  52. package/dist/artifacts/10-shard-build-plugin/analysis.md +0 -290
  53. package/dist/artifacts/10-shard-build-plugin/architect/subtask-implementation.md +0 -105
  54. package/dist/artifacts/10-shard-build-plugin/plan.md +0 -409
  55. package/dist/artifacts/10-shard-build-plugin/researcher/research.md +0 -109
  56. package/dist/artifacts/10-shard-build-plugin/task.md +0 -124
  57. package/dist/artifacts/11-revision-sistema-agentic/analysis.md +0 -43
  58. package/dist/artifacts/11-revision-sistema-agentic/cli-mcp-impact.md +0 -186
  59. package/dist/artifacts/11-revision-sistema-agentic/core-impact.md +0 -162
  60. package/dist/artifacts/11-revision-sistema-agentic/metrics.md +0 -82
  61. package/dist/artifacts/11-revision-sistema-agentic/modules-create-v2.md +0 -126
  62. package/dist/artifacts/11-revision-sistema-agentic/modules-v2.md +0 -250
  63. package/dist/artifacts/11-revision-sistema-agentic/pages-v2.md +0 -366
  64. package/dist/artifacts/11-revision-sistema-agentic/researcher/research.md +0 -131
  65. package/dist/artifacts/11-revision-sistema-agentic/results.md +0 -116
  66. package/dist/artifacts/11-revision-sistema-agentic/shards-v2.md +0 -424
  67. package/dist/artifacts/11-revision-sistema-agentic/task.md +0 -145
  68. package/dist/artifacts/11-revision-sistema-agentic/verification.md +0 -119
  69. package/dist/artifacts/12-adaptacion-core-cli-surfaces/analysis-architecture-change.md +0 -305
  70. package/dist/artifacts/12-adaptacion-core-cli-surfaces/analysis.md +0 -301
  71. package/dist/artifacts/12-adaptacion-core-cli-surfaces/error-analysis.md +0 -93
  72. package/dist/artifacts/12-adaptacion-core-cli-surfaces/implementation-summary.md +0 -111
  73. package/dist/artifacts/12-adaptacion-core-cli-surfaces/plan.md +0 -387
  74. package/dist/artifacts/12-adaptacion-core-cli-surfaces/researcher/research.md +0 -266
  75. package/dist/artifacts/12-adaptacion-core-cli-surfaces/task.md +0 -167
  76. package/dist/artifacts/13-dual-lifecycle-system/analysis.md +0 -173
  77. package/dist/artifacts/13-dual-lifecycle-system/architect/review.md +0 -67
  78. package/dist/artifacts/13-dual-lifecycle-system/plan.md +0 -230
  79. package/dist/artifacts/13-dual-lifecycle-system/researcher/research.md +0 -243
  80. package/dist/artifacts/13-dual-lifecycle-system/task.md +0 -130
  81. package/dist/artifacts/13-dual-lifecycle-system/verification.md +0 -84
  82. package/dist/artifacts/14-core-tests-refactor/analysis.md +0 -240
  83. package/dist/artifacts/14-core-tests-refactor/architect/review.md +0 -33
  84. package/dist/artifacts/14-core-tests-refactor/evaluation.md +0 -40
  85. package/dist/artifacts/14-core-tests-refactor/plan.md +0 -344
  86. package/dist/artifacts/14-core-tests-refactor/researcher/research.md +0 -258
  87. package/dist/artifacts/14-core-tests-refactor/results.md +0 -117
  88. package/dist/artifacts/14-core-tests-refactor/task.md +0 -163
  89. package/dist/artifacts/14-core-tests-refactor/verification.md +0 -87
  90. package/dist/artifacts/15-sistema-evaluacion-agentes/architect/implementation.md +0 -47
  91. package/dist/artifacts/15-sistema-evaluacion-agentes/brief.md +0 -100
  92. package/dist/artifacts/15-sistema-evaluacion-agentes/closure.md +0 -81
  93. package/dist/artifacts/15-sistema-evaluacion-agentes/task.md +0 -83
  94. package/dist/artifacts/16-refactorizacion-demo-core/analysis.md +0 -160
  95. package/dist/artifacts/16-refactorizacion-demo-core/architect/implementation.md +0 -180
  96. package/dist/artifacts/16-refactorizacion-demo-core/changelog.md +0 -15
  97. package/dist/artifacts/16-refactorizacion-demo-core/metrics.md +0 -17
  98. package/dist/artifacts/16-refactorizacion-demo-core/plan.md +0 -270
  99. package/dist/artifacts/16-refactorizacion-demo-core/researcher/research.md +0 -190
  100. package/dist/artifacts/16-refactorizacion-demo-core/task.md +0 -124
  101. package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/analysis.md +0 -108
  102. package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/architect/review-subtask-1.md +0 -98
  103. package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/architect/review.md +0 -192
  104. package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/architect/step-4-postponed.md +0 -41
  105. package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/module-agent/activation-fix-demo.md +0 -73
  106. package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/module-agent/activation-subtask-2.md +0 -80
  107. package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/module-agent/fix-demo-implementation.md +0 -113
  108. package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/module-agent/subtask-2-implementation.md +0 -133
  109. package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/module-agent/subtask-implementation.md +0 -130
  110. package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/plan.md +0 -188
  111. package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/qa-agent/activation-demo-build.md +0 -80
  112. package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/qa-agent/activation-phase-5.md +0 -73
  113. package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/qa-agent/activation-subtask-5-7.md +0 -97
  114. package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/qa-agent/issue-demo-integrity.md +0 -39
  115. package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/qa-agent/subtask-5-7-implementation.md +0 -188
  116. package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/qa-agent/verification.md +0 -207
  117. package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/researcher/research.md +0 -103
  118. package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/subtask-1-engine-refactor.md +0 -64
  119. package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/surface-agent/activation-subtask-3.md +0 -81
  120. package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/surface-agent/subtask-3-implementation.md +0 -148
  121. package/dist/artifacts/17-implementacion-loadshard-external-agnostic--esm/task.md +0 -146
  122. package/dist/artifacts/18-refactor-phase-4-implementation/task.md +0 -140
  123. package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/agent-scores.md +0 -58
  124. package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/agent-tasks/1-architect-refactor-research-template.md +0 -78
  125. package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/agent-tasks/2-architect-refactor-analysis-template.md +0 -76
  126. package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/agent-tasks/3-architect-update-phase1-workflow.md +0 -77
  127. package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/agent-tasks/4-architect-update-phase2-workflow.md +0 -76
  128. package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/agent-tasks/5-architect-create-todo-structure.md +0 -77
  129. package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/agent-tasks/6-qa-validation.md +0 -95
  130. package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/analysis.md +0 -190
  131. package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/architect/review.md +0 -68
  132. package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/plan.md +0 -203
  133. package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/researcher/research.md +0 -296
  134. package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/task.md +0 -132
  135. package/dist/artifacts/19-refinar-sistema-agentes-ciclo-vida/verification.md +0 -104
  136. package/dist/artifacts/2-review-mcp-agent-system/analysis.md +0 -133
  137. package/dist/artifacts/2-review-mcp-agent-system/architect/infrastructure-migration.md +0 -58
  138. package/dist/artifacts/2-review-mcp-agent-system/architect/mcp-server-refactor.md +0 -57
  139. package/dist/artifacts/2-review-mcp-agent-system/architect/review.md +0 -83
  140. package/dist/artifacts/2-review-mcp-agent-system/changelog.md +0 -22
  141. package/dist/artifacts/2-review-mcp-agent-system/metrics.md +0 -33
  142. package/dist/artifacts/2-review-mcp-agent-system/plan.md +0 -141
  143. package/dist/artifacts/2-review-mcp-agent-system/qa/mcp-test-validation.md +0 -60
  144. package/dist/artifacts/2-review-mcp-agent-system/researcher/research.md +0 -77
  145. package/dist/artifacts/2-review-mcp-agent-system/results-acceptance.md +0 -115
  146. package/dist/artifacts/2-review-mcp-agent-system/task.md +0 -127
  147. package/dist/artifacts/2-review-mcp-agent-system/verification.md +0 -72
  148. package/dist/artifacts/20-anadir-seccion-reasoning-agent-task/analysis.md +0 -139
  149. package/dist/artifacts/20-anadir-seccion-reasoning-agent-task/plan.md +0 -146
  150. package/dist/artifacts/20-anadir-seccion-reasoning-agent-task/researcher/research.md +0 -142
  151. package/dist/artifacts/20-anadir-seccion-reasoning-agent-task/task.md +0 -143
  152. package/dist/artifacts/20-anadir-seccion-reasoning-agent-task/verification.md +0 -53
  153. package/dist/artifacts/2026-01-19-orchestration-init/brief.md +0 -88
  154. package/dist/artifacts/2026-01-19-orchestration-init/closure.md +0 -80
  155. package/dist/artifacts/2026-01-19-orchestration-init/implementation.md +0 -20
  156. package/dist/artifacts/21-portable-agentic-system/researcher/research.md +0 -121
  157. package/dist/artifacts/21-portable-agentic-system/task.md +0 -115
  158. package/dist/artifacts/22-standardize-phase-0-artifact/architect/analysis.md +0 -113
  159. package/dist/artifacts/22-standardize-phase-0-artifact/architect/plan.md +0 -124
  160. package/dist/artifacts/22-standardize-phase-0-artifact/researcher/research.md +0 -76
  161. package/dist/artifacts/22-standardize-phase-0-artifact/results.md +0 -36
  162. package/dist/artifacts/22-standardize-phase-0-artifact/task.md +0 -115
  163. package/dist/artifacts/22-standardize-phase-0-artifact/verification.md +0 -41
  164. package/dist/artifacts/23-auditoria-de-indexes-y-alias/acceptance.md +0 -62
  165. package/dist/artifacts/23-auditoria-de-indexes-y-alias/architect/analysis.md +0 -90
  166. package/dist/artifacts/23-auditoria-de-indexes-y-alias/architect/plan.md +0 -85
  167. package/dist/artifacts/23-auditoria-de-indexes-y-alias/audit-report.md +0 -52
  168. package/dist/artifacts/23-auditoria-de-indexes-y-alias/researcher/research.md +0 -52
  169. package/dist/artifacts/23-auditoria-de-indexes-y-alias/results.md +0 -31
  170. package/dist/artifacts/23-auditoria-de-indexes-y-alias/task.md +0 -90
  171. package/dist/artifacts/23-auditoria-de-indexes-y-alias/verification.md +0 -42
  172. package/dist/artifacts/24-revision-priorizacion-todo-backlog/analysis.md +0 -64
  173. package/dist/artifacts/24-revision-priorizacion-todo-backlog/candidate/acceptance.md +0 -68
  174. package/dist/artifacts/24-revision-priorizacion-todo-backlog/planning.md +0 -79
  175. package/dist/artifacts/24-revision-priorizacion-todo-backlog/portable-roadmap.md +0 -25
  176. package/dist/artifacts/24-revision-priorizacion-todo-backlog/researcher/research.md +0 -91
  177. package/dist/artifacts/24-revision-priorizacion-todo-backlog/task.md +0 -89
  178. package/dist/artifacts/24-revision-priorizacion-todo-backlog/verification.md +0 -59
  179. package/dist/artifacts/25-auditoria-omision-gates/acceptance.md +0 -57
  180. package/dist/artifacts/25-auditoria-omision-gates/brief.md +0 -89
  181. package/dist/artifacts/25-auditoria-omision-gates/closure.md +0 -88
  182. package/dist/artifacts/25-auditoria-omision-gates/rca.md +0 -49
  183. package/dist/artifacts/25-auditoria-omision-gates/task.md +0 -64
  184. package/dist/artifacts/26-portable-agentic-system/acceptance.md +0 -41
  185. package/dist/artifacts/26-portable-agentic-system/agent-tasks/1-architect-scaffolding.md +0 -113
  186. package/dist/artifacts/26-portable-agentic-system/agent-tasks/2-architect-core-migration.md +0 -117
  187. package/dist/artifacts/26-portable-agentic-system/agent-tasks/3-architect-cli-implementation.md +0 -109
  188. package/dist/artifacts/26-portable-agentic-system/agent-tasks/4-architect-linking-and-verification.md +0 -104
  189. package/dist/artifacts/26-portable-agentic-system/analysis.md +0 -117
  190. package/dist/artifacts/26-portable-agentic-system/architect/review.md +0 -41
  191. package/dist/artifacts/26-portable-agentic-system/plan.md +0 -146
  192. package/dist/artifacts/26-portable-agentic-system/researcher/research.md +0 -96
  193. package/dist/artifacts/26-portable-agentic-system/task.md +0 -50
  194. package/dist/artifacts/26-portable-agentic-system/verification.md +0 -67
  195. package/dist/artifacts/27-update-portable-module-agent-identity/acceptance.md +0 -74
  196. package/dist/artifacts/27-update-portable-module-agent-identity/agent-tasks/1-module-agent-update-templates.md +0 -86
  197. package/dist/artifacts/27-update-portable-module-agent-identity/agent-tasks/2-module-agent-update-workflows-long.md +0 -88
  198. package/dist/artifacts/27-update-portable-module-agent-identity/agent-tasks/3-module-agent-update-workflows-short-init.md +0 -89
  199. package/dist/artifacts/27-update-portable-module-agent-identity/agent-tasks/4-module-agent-update-roles.md +0 -85
  200. package/dist/artifacts/27-update-portable-module-agent-identity/agent-tasks/5-module-agent-update-version-manifests.md +0 -84
  201. package/dist/artifacts/27-update-portable-module-agent-identity/analysis.md +0 -90
  202. package/dist/artifacts/27-update-portable-module-agent-identity/architect/review.md +0 -44
  203. package/dist/artifacts/27-update-portable-module-agent-identity/changelog.md +0 -17
  204. package/dist/artifacts/27-update-portable-module-agent-identity/metrics.md +0 -52
  205. package/dist/artifacts/27-update-portable-module-agent-identity/plan.md +0 -122
  206. package/dist/artifacts/27-update-portable-module-agent-identity/researcher/research.md +0 -73
  207. package/dist/artifacts/27-update-portable-module-agent-identity/results-acceptance.md +0 -51
  208. package/dist/artifacts/27-update-portable-module-agent-identity/task.md +0 -115
  209. package/dist/artifacts/27-update-portable-module-agent-identity/verification.md +0 -66
  210. package/dist/artifacts/28-agent-system-update-conversion/acceptance.md +0 -67
  211. package/dist/artifacts/28-agent-system-update-conversion/agent-tasks/1-tooling-agent-migration-infrastructure.md +0 -88
  212. package/dist/artifacts/28-agent-system-update-conversion/agent-tasks/2-tooling-agent-content-transformer.md +0 -87
  213. package/dist/artifacts/28-agent-system-update-conversion/agent-tasks/3-tooling-agent-cli-wizard-integration.md +0 -86
  214. package/dist/artifacts/28-agent-system-update-conversion/analysis.md +0 -153
  215. package/dist/artifacts/28-agent-system-update-conversion/architect/review.md +0 -93
  216. package/dist/artifacts/28-agent-system-update-conversion/metrics.md +0 -43
  217. package/dist/artifacts/28-agent-system-update-conversion/plan.md +0 -153
  218. package/dist/artifacts/28-agent-system-update-conversion/researcher/research.md +0 -66
  219. package/dist/artifacts/28-agent-system-update-conversion/results-acceptance.md +0 -125
  220. package/dist/artifacts/28-agent-system-update-conversion/task.md +0 -103
  221. package/dist/artifacts/28-agent-system-update-conversion/verification.md +0 -60
  222. package/dist/artifacts/29-agentic-framework-core-reference-refactor/acceptance.md +0 -38
  223. package/dist/artifacts/29-agentic-framework-core-reference-refactor/agent-tasks/1-tooling-agent-core-resolver.md +0 -85
  224. package/dist/artifacts/29-agentic-framework-core-reference-refactor/agent-tasks/2-tooling-agent-init-refactor.md +0 -90
  225. package/dist/artifacts/29-agentic-framework-core-reference-refactor/agent-tasks/3-tooling-agent-scaffolding-system.md +0 -92
  226. package/dist/artifacts/29-agentic-framework-core-reference-refactor/agent-tasks/4-architect-agents-md-trail.md +0 -84
  227. package/dist/artifacts/29-agentic-framework-core-reference-refactor/agent-tasks/5-tooling-agent-mcp-server.md +0 -92
  228. package/dist/artifacts/29-agentic-framework-core-reference-refactor/agent-tasks/6-architect-neo-agent-birth.md +0 -85
  229. package/dist/artifacts/29-agentic-framework-core-reference-refactor/analysis.md +0 -119
  230. package/dist/artifacts/29-agentic-framework-core-reference-refactor/architect/review.md +0 -46
  231. package/dist/artifacts/29-agentic-framework-core-reference-refactor/plan.md +0 -95
  232. package/dist/artifacts/29-agentic-framework-core-reference-refactor/researcher/research.md +0 -68
  233. package/dist/artifacts/29-agentic-framework-core-reference-refactor/results-acceptance.md +0 -59
  234. package/dist/artifacts/29-agentic-framework-core-reference-refactor/task.md +0 -99
  235. package/dist/artifacts/29-agentic-framework-core-reference-refactor/verification.md +0 -54
  236. package/dist/artifacts/3-developer-feedback-gate/acceptance-criteria.md +0 -18
  237. package/dist/artifacts/3-developer-feedback-gate/analysis.md +0 -27
  238. package/dist/artifacts/3-developer-feedback-gate/changelog.md +0 -10
  239. package/dist/artifacts/3-developer-feedback-gate/implementation_plan.md +0 -32
  240. package/dist/artifacts/3-developer-feedback-gate/init.md +0 -13
  241. package/dist/artifacts/3-developer-feedback-gate/metrics.md +0 -34
  242. package/dist/artifacts/3-developer-feedback-gate/research.md +0 -28
  243. package/dist/artifacts/3-developer-feedback-gate/results-acceptance.md +0 -17
  244. package/dist/artifacts/3-developer-feedback-gate/task.md +0 -17
  245. package/dist/artifacts/3-developer-feedback-gate/verification.md +0 -35
  246. package/dist/artifacts/30-task-execution-protocol-gates/acceptance.md +0 -46
  247. package/dist/artifacts/30-task-execution-protocol-gates/researcher/research.md +0 -34
  248. package/dist/artifacts/30-task-execution-protocol-gates/task.md +0 -77
  249. package/dist/artifacts/4-adr-workflows-modulos/adr.md +0 -380
  250. package/dist/artifacts/4-adr-workflows-modulos/analysis.md +0 -353
  251. package/dist/artifacts/4-adr-workflows-modulos/plan.md +0 -301
  252. package/dist/artifacts/4-adr-workflows-modulos/researcher/research.md +0 -253
  253. package/dist/artifacts/4-adr-workflows-modulos/results.md +0 -202
  254. package/dist/artifacts/4-adr-workflows-modulos/task.md +0 -143
  255. package/dist/artifacts/4-adr-workflows-modulos/verification.md +0 -123
  256. package/dist/artifacts/5-implementar-adr-crear-modulo/analysis.md +0 -169
  257. package/dist/artifacts/5-implementar-adr-crear-modulo/architect/review.md +0 -105
  258. package/dist/artifacts/5-implementar-adr-crear-modulo/architect/subtask-implementation.md +0 -90
  259. package/dist/artifacts/5-implementar-adr-crear-modulo/changelog.md +0 -7
  260. package/dist/artifacts/5-implementar-adr-crear-modulo/metrics.md +0 -34
  261. package/dist/artifacts/5-implementar-adr-crear-modulo/plan.md +0 -163
  262. package/dist/artifacts/5-implementar-adr-crear-modulo/researcher/research.md +0 -105
  263. package/dist/artifacts/5-implementar-adr-crear-modulo/results-acceptance.md +0 -153
  264. package/dist/artifacts/5-implementar-adr-crear-modulo/task.md +0 -147
  265. package/dist/artifacts/5-implementar-adr-crear-modulo/verification.md +0 -79
  266. package/dist/artifacts/6-exportar-ciclo-agent-zip/analysis.md +0 -153
  267. package/dist/artifacts/6-exportar-ciclo-agent-zip/architect/review.md +0 -103
  268. package/dist/artifacts/6-exportar-ciclo-agent-zip/architect/subtask-implementation.md +0 -79
  269. package/dist/artifacts/6-exportar-ciclo-agent-zip/changelog.md +0 -8
  270. package/dist/artifacts/6-exportar-ciclo-agent-zip/metrics.md +0 -34
  271. package/dist/artifacts/6-exportar-ciclo-agent-zip/plan.md +0 -131
  272. package/dist/artifacts/6-exportar-ciclo-agent-zip/researcher/research.md +0 -86
  273. package/dist/artifacts/6-exportar-ciclo-agent-zip/results-acceptance.md +0 -108
  274. package/dist/artifacts/6-exportar-ciclo-agent-zip/task.md +0 -147
  275. package/dist/artifacts/6-exportar-ciclo-agent-zip/verification.md +0 -74
  276. package/dist/artifacts/6-exportar-ciclo-agent-zip/whitelist.txt +0 -33
  277. package/dist/artifacts/7-modules-globals-constants/analysis.md +0 -205
  278. package/dist/artifacts/7-modules-globals-constants/architect/review.md +0 -110
  279. package/dist/artifacts/7-modules-globals-constants/metrics.md +0 -45
  280. package/dist/artifacts/7-modules-globals-constants/plan.md +0 -276
  281. package/dist/artifacts/7-modules-globals-constants/researcher/research.md +0 -247
  282. package/dist/artifacts/7-modules-globals-constants/task.md +0 -112
  283. package/dist/artifacts/7-modules-globals-constants/verification.md +0 -76
  284. package/dist/artifacts/8-module-workflow-refactor/analysis.md +0 -131
  285. package/dist/artifacts/8-module-workflow-refactor/changelog.md +0 -24
  286. package/dist/artifacts/8-module-workflow-refactor/metrics.md +0 -37
  287. package/dist/artifacts/8-module-workflow-refactor/plan.md +0 -193
  288. package/dist/artifacts/8-module-workflow-refactor/researcher/research.md +0 -222
  289. package/dist/artifacts/8-module-workflow-refactor/results.md +0 -112
  290. package/dist/artifacts/8-module-workflow-refactor/review.md +0 -76
  291. package/dist/artifacts/8-module-workflow-refactor/task.md +0 -154
  292. package/dist/artifacts/8-module-workflow-refactor/verification.md +0 -76
  293. package/dist/artifacts/8-module-workflow-refactor/walkthrough.md +0 -64
  294. package/dist/artifacts/9-build-stabilization/analysis.md +0 -62
  295. package/dist/artifacts/9-build-stabilization/metrics.md +0 -11
  296. package/dist/artifacts/9-build-stabilization/plan.md +0 -82
  297. package/dist/artifacts/9-build-stabilization/researcher/research.md +0 -102
  298. package/dist/artifacts/9-build-stabilization/task.md +0 -23
  299. package/dist/artifacts/9-build-stabilization/walkthrough.md +0 -56
  300. package/dist/artifacts/candidate/init.md +0 -34
  301. package/dist/artifacts/candidate/task.md +0 -24
  302. package/dist/metrics/agent-scores.md +0 -30
  303. package/dist/metrics/agents.json +0 -106
  304. package/dist/metrics/index.md +0 -23
  305. package/dist/rules/constitution/drivers.md +0 -294
  306. package/dist/rules/constitution/extensio-architecture.md +0 -131
  307. package/dist/rules/constitution/modules.md +0 -280
  308. package/dist/rules/constitution/pages.md +0 -454
  309. package/dist/rules/constitution/shards.md +0 -484
  310. package/dist/rules/roles/driver.md +0 -172
  311. package/dist/rules/roles/module.md +0 -175
  312. package/dist/rules/roles/surface.md +0 -60
  313. package/dist/rules/roles/tooling.md +0 -68
  314. package/dist/skills/extensio-build/SKILL.md +0 -161
  315. package/dist/skills/extensio-create-driver/SKILL.md +0 -89
  316. package/dist/skills/extensio-create-module/SKILL.md +0 -91
  317. package/dist/skills/extensio-demo/SKILL.md +0 -84
  318. package/dist/skills/extensio-test/SKILL.md +0 -96
  319. package/dist/skills/extensio-validate-code/SKILL.md +0 -262
  320. package/dist/skills/index.md +0 -79
  321. package/dist/templates/driver-create.md +0 -116
  322. package/dist/templates/driver-delete.md +0 -84
  323. package/dist/templates/driver-refactor.md +0 -94
  324. package/dist/templates/module-create.md +0 -117
  325. package/dist/templates/module-delete.md +0 -79
  326. package/dist/templates/module-refactor.md +0 -87
  327. package/dist/todo/001-anadir-seccion-reasoning.md +0 -42
  328. package/dist/todo/002-anadir-ejemplos-few-shot.md +0 -46
  329. package/dist/todo/003-explorar-paralelizacion-phase4.md +0 -46
  330. package/dist/todo/004-portable-agentic-system.md +0 -44
  331. package/dist/todo/README.md +0 -58
  332. package/dist/todo/index.md +0 -27
  333. package/dist/tools/extensio-cli.md +0 -76
  334. package/dist/tools/index.md +0 -14
  335. package/dist/tools/run-command.md +0 -42
  336. package/dist/workflows/drivers/create.md +0 -139
  337. package/dist/workflows/drivers/delete.md +0 -124
  338. package/dist/workflows/drivers/index.md +0 -25
  339. package/dist/workflows/drivers/refactor.md +0 -125
  340. package/dist/workflows/modules/create.md +0 -160
  341. package/dist/workflows/modules/delete.md +0 -121
  342. package/dist/workflows/modules/index.md +0 -27
  343. package/dist/workflows/modules/pages.create.md +0 -234
  344. package/dist/workflows/modules/refactor.md +0 -122
  345. package/dist/workflows/modules/shards.create.md +0 -215
@@ -1,301 +0,0 @@
1
- ---
2
- artifact: analysis
3
- phase: phase-2-analysis
4
- owner: architect-agent
5
- status: draft
6
- related_task: 12-adaptacion-core-cli-surfaces
7
- ---
8
-
9
- # Analysis — 12-adaptacion-core-cli-surfaces
10
-
11
- ## 1. Resumen ejecutivo
12
-
13
- ### Problema
14
- La implementación actual de `@extensio/core` y `extensio-cli` no está completamente alineada con las constituciones de Pages (v2.1.0) y Shards (v2.0.0). El gap más crítico es que `Shard` hereda de `Core` en lugar de `Surface`, violando la jerarquía arquitectónica definida.
15
-
16
- ### Objetivo
17
- Adaptar Core y CLI para cumplir con las constituciones de Surfaces, garantizando:
18
- - Jerarquía correcta: `Core` → `Surface` → `Page` / `Shard`
19
- - Lifecycle hooks uniformes en `Surface`
20
- - CLI capaz de generar Pages y Shards correctamente
21
- - Demo funcional validada con E2E en 3 navegadores
22
-
23
- ### Criterio de éxito
24
- Todos los acceptance criteria del task.md deben cumplirse:
25
- - [x] Informe de gaps documentado (completado en Phase 1)
26
- - [ ] Clase `Surface` con hooks uniformes
27
- - [ ] Clase `Page` conforme a constitución
28
- - [ ] Clase `Shard` heredando de `Surface`
29
- - [x] CLI puede generar Pages/Shards al crear módulo (`--withPage --withShard`)
30
- - [ ] CLI con comandos independientes `create page` / `create shard` (para añadir a módulo existente)
31
- - [ ] Demo reconstruida con CLI
32
- - [ ] Tests pasando en Chrome, Firefox, Safari
33
-
34
- ---
35
-
36
- ## 2. Estado del proyecto (As-Is)
37
-
38
- ### Estructura relevante
39
-
40
- ```
41
- packages/core/
42
- ├── src/
43
- │ ├── engine/
44
- │ │ └── core.mts # Clase base Core (390 líneas)
45
- │ └── surface/
46
- │ ├── surface.mts # Surface actual (57 líneas)
47
- │ ├── pages/
48
- │ │ └── index.mts # Page actual (9 líneas)
49
- │ └── shards/
50
- │ ├── index.mts # Shard actual (249 líneas)
51
- │ ├── lit.mts # Adaptador Lit
52
- │ ├── react.mts # Adaptador React
53
- │ └── angular.mts # Adaptador Angular
54
- ├── demo/
55
- │ └── src/
56
- │ └── manifest.json # ⚠️ INCOMPLETA
57
- └── test/
58
- └── ... # Tests existentes
59
-
60
- packages/cli/
61
- ├── src/
62
- │ ├── generators/
63
- │ │ ├── driver/ # ✅ Funcional
64
- │ │ ├── module/ # ✅ Funcional (con withPage, withShard)
65
- │ │ └── project/ # ✅ Funcional
66
- │ └── commands/
67
- │ ├── plugins/
68
- │ │ └── surface-pages/ # ✅ Plugin funcional
69
- │ └── process-shards.mts # ✅ Funcional
70
- ```
71
-
72
- ### Estado actual de clases
73
-
74
- | Clase | Hereda de | Líneas | Conformidad |
75
- |-------|-----------|--------|-------------|
76
- | `Core` | — | 390 | ✅ Base correcta |
77
- | `Surface` | `Core` | 57 | ⚠️ Ciclo de vida incompleto |
78
- | `Page` | `Surface` | 9 | ⚠️ Implementación mínima |
79
- | `Shard` | `Core` | 249 | ❌ **DEBE heredar de Surface** |
80
-
81
- ### Estado actual del CLI (VALIDADO)
82
-
83
- El generador de módulos **SÍ tiene soporte** para Pages y Shards:
84
-
85
- | Opción | Descripción | Estado |
86
- |--------|-------------|--------|
87
- | `--withPage` | Genera estructura de pages | ✅ Funcional |
88
- | `--withShard` | Genera estructura de shards | ✅ Funcional |
89
- | `--withSurface` | Legacy (activa ambos) | ✅ Funcional |
90
-
91
- **Templates existentes:**
92
-
93
- Pages (`templates/surface/pages/`):
94
- - `index.mts.ejs` - Usa Lit + decorador `@customElement`
95
- - `home.mts.ejs` - Página de ejemplo
96
- - `about.mts.ejs` - Página de ejemplo
97
- - `styles.css.ejs` - Estilos
98
-
99
- Shards (`templates/surface/shards/`):
100
- - `index.mts.ejs` - Registra shards con `Shard.register()`
101
- - `example.mts.ejs` - Shard de ejemplo con `_mount`, `render`, `update`, `_unmount`, `getTagName`
102
- - `styles.css.ejs` - Estilos
103
-
104
- **Generador module/index.mts** (líneas relevantes):
105
- - L322-356: Genera pages si `withPage=true`
106
- - L359-391: Genera shards si `withShard=true`
107
- - L190-195: Añade exports en package.json
108
-
109
- ### Limitaciones detectadas (ACTUALIZADO)
110
-
111
- 1. **Shard hereda de Core**: Viola arquitectura. Debe heredar de Surface.
112
- 2. **Surface ciclo de vida**: `onMount()` llama a `run()`, pero según constitución debe ejecutarse DESPUÉS de `render()`.
113
- 3. **Page mínima**: Solo hereda, no implementa nada específico.
114
- 4. **CLI sin comandos independientes**: No existe `extensio create page` ni `extensio create shard` para añadir a módulos existentes. Solo se puede al crear módulo nuevo.
115
- 5. **Demo incompleta**: Solo tiene `manifest.json`.
116
- 6. **Templates de Page**: Usan Lit/decoradores pero Page en core no implementa render() compatible.
117
-
118
- ---
119
-
120
- ## 3. Cobertura de Acceptance Criteria
121
-
122
- ### AC-1: Surface con hooks uniformes
123
- - **Interpretación**: La clase `Surface` debe definir `onMount()` y `onUnmount()` como hooks que heredan Page y Shard. El ciclo de vida debe seguir la secuencia: `run()` → `_setup()` → `listen()` → `loadProps()` → `start()` → `render()` → `onMount()`.
124
- - **Verificación**:
125
- - Unit test que valide la secuencia de hooks
126
- - Ambas subclases (Page, Shard) deben tener los hooks disponibles
127
- - **Riesgos**: Cambiar el momento de ejecución de `onMount()` podría romper código existente.
128
-
129
- ### AC-2: Page hereda de Surface
130
- - **Interpretación**: Ya cumple, pero necesita más funcionalidad (método `render()`, gestión de ciclo completo).
131
- - **Verificación**:
132
- - Unit test de herencia
133
- - E2E: navegar a una Page y verificar ciclo
134
- - **Riesgos**: Bajo. Page ya hereda de Surface.
135
-
136
- ### AC-3: Shard hereda de Surface
137
- - **Interpretación**: **Cambio crítico**. Shard debe refactorizarse para heredar de Surface, moviendo lógica común a Surface.
138
- - **Verificación**:
139
- - Unit test de herencia
140
- - E2E: cargar Shard en página web y verificar ciclo
141
- - **Riesgos**:
142
- - **Breaking change**: Adaptar importaciones de Shard
143
- - Mover lógica de Storage/listener a Surface
144
-
145
- ### AC-4: CLI genera Pages
146
- - **Interpretación**: Crear generador `page` independiente que produzca estructura conforme a constitución.
147
- - **Verificación**:
148
- - Ejecutar `extensio create page` y validar estructura generada
149
- - Build de la Page sin errores
150
- - **Riesgos**: Templates deben seguir constitución exactamente.
151
-
152
- ### AC-5: CLI genera Shards
153
- - **Interpretación**: Crear generador `shard` independiente que produzca estructura conforme a constitución.
154
- - **Verificación**:
155
- - Ejecutar `extensio create shard` y validar estructura generada
156
- - Build del Shard sin errores
157
- - **Riesgos**: Registro como WebComponent debe funcionar.
158
-
159
- ### AC-6: Demo reconstruida
160
- - **Interpretación**: Eliminar demo actual, crear nueva con CLI usando `extensio create module --withPages --withShards`, o crear module manualmente con Page y Shard de ejemplo.
161
- - **Verificación**:
162
- - Demo compila sin errores
163
- - Funciona en Chrome, Firefox, Safari
164
- - **Riesgos**: Dependencia de cambios previos en Core y CLI.
165
-
166
- ### AC-7: Tests pasan
167
- - **Interpretación**: Unit tests en Vitest, E2E en Playwright para los 3 navegadores.
168
- - **Verificación**:
169
- - `npm run test` pasa
170
- - `npm run test:e2e -- --project=chromium,firefox,webkit` pasa
171
- - **Riesgos**: Safari (webkit) puede tener diferencias de comportamiento.
172
-
173
- ---
174
-
175
- ## 4. Research técnico
176
-
177
- ### Alternativa A: Migración incremental
178
- - **Descripción**: Refactorizar paso a paso, empezando por Surface, luego Page, luego Shard.
179
- - **Ventajas**: Menor riesgo de regresiones, permite testing gradual.
180
- - **Inconvenientes**: Puede dejar inconsistencias temporales.
181
-
182
- ### Alternativa B: Migración completa (Big Bang)
183
- - **Descripción**: Refactorizar todo el stack (Surface, Page, Shard) de una vez.
184
- - **Ventajas**: Consistencia inmediata, no hay estados intermedios.
185
- - **Inconvenientes**: Mayor riesgo, más difícil de depurar si falla.
186
-
187
- ### Decisión recomendada
188
- **Alternativa A: Migración incremental**
189
-
190
- Orden propuesto:
191
- 1. Refactorizar `Surface` (ciclo de vida correcto)
192
- 2. Refactorizar `Shard` para heredar de `Surface`
193
- 3. Verificar `Page` (ya hereda correctamente)
194
- 4. Actualizar templates CLI si es necesario
195
- 5. Reconstruir demo con `extensio create module --withPage --withShard`
196
- 6. Tests E2E
197
-
198
- ---
199
-
200
- ## 5. Agentes participantes
201
-
202
- ### architect-agent
203
- - **Responsabilidades**:
204
- - Validar conformidad arquitectónica
205
- - Aprobar cambios en Core
206
- - Supervisar gates de cada fase
207
- - **Subáreas**: Core, CLI, constituciones
208
-
209
- ### surface-agent (delegado)
210
- - **Responsabilidades**:
211
- - Implementar cambios en Surface, Page, Shard
212
- - Verificar lifecycle hooks
213
- - **Subáreas**: `packages/core/src/surface/`
214
-
215
- ### qa-agent
216
- - **Responsabilidades**:
217
- - Diseñar tests unitarios
218
- - Diseñar tests E2E
219
- - Validar cobertura en 3 navegadores
220
- - **Subáreas**: `packages/core/test/`, Playwright
221
-
222
- ### Handoffs
223
- 1. architect-agent → surface-agent: Plan de implementación aprobado
224
- 2. surface-agent → qa-agent: Código implementado para testing
225
- 3. qa-agent → architect-agent: Resultados de verificación
226
-
227
- ### Componentes a modificar
228
-
229
- | Tipo | Acción | Componente |
230
- |------|--------|------------|
231
- | Core | MODIFICAR | `src/surface/surface.mts` |
232
- | Core | MODIFICAR | `src/surface/shards/index.mts` |
233
- | Core | VERIFICAR | `src/surface/pages/index.mts` |
234
- | Core | MODIFICAR | `package.json` (exports) |
235
- | CLI | CREAR | `src/generators/page/` (comando independiente) |
236
- | CLI | CREAR | `src/generators/shard/` (comando independiente) |
237
- | CLI | VERIFICAR | Templates existentes en `generators/module/` |
238
- | Demo | RECREAR | `packages/core/demo/` |
239
-
240
- ### Demo (obligatoria)
241
- - **Necesidad**: Validar que Pages y Shards funcionan correctamente según constitución.
242
- - **Justificación**: Los acceptance criteria exigen demo con E2E en 3 navegadores.
243
- - **Impacto**: Eliminar demo actual, crear nueva con:
244
- - Engine básico
245
- - Al menos 1 Page
246
- - Al menos 1 Shard
247
- - Manifest configurado para popup y content scripts
248
-
249
- ---
250
-
251
- ## 6. Impacto de la tarea
252
-
253
- ### Arquitectura
254
- - **Alto impacto**: Cambio de herencia de Shard (Core → Surface)
255
- - **Medio impacto**: Refactorización de ciclo de vida de Surface
256
-
257
- ### APIs / contratos
258
- - `Shard` cambiará de base class (potencial breaking change)
259
- - Nuevos exports en `package.json` de Core
260
-
261
- ### Compatibilidad
262
- | Riesgo | Mitigación |
263
- |--------|------------|
264
- | Módulos existentes con Shard | Verificar demos de módulos existentes |
265
- | Imports de `@extensio/core/shard` | Mantener compatibilidad de exports |
266
-
267
- ### Testing / verificación
268
- - **Unit tests**: Vitest para Core (lifecycle, herencia)
269
- - **Integration tests**: Carga de Shards desde Engine
270
- - **E2E tests**: Playwright en Chrome, Firefox, Safari
271
-
272
- ---
273
-
274
- ## 7. Riesgos y mitigaciones
275
-
276
- | # | Riesgo | Severidad | Mitigación |
277
- |---|--------|-----------|------------|
278
- | 1 | Breaking change en Shard | 🔴 Alta | Mantener API pública, solo cambiar herencia interna |
279
- | 2 | Ciclo de vida de Surface rompe código existente | 🟡 Media | Tests exhaustivos antes y después |
280
- | 3 | Safari comportamiento diferente | 🟡 Media | Tests E2E específicos para webkit |
281
- | 4 | CLI templates desactualizados | 🟢 Baja | Crear templates nuevos siguiendo constitución |
282
-
283
- ---
284
-
285
- ## 8. Preguntas abiertas
286
-
287
- No hay preguntas abiertas. Los acceptance criteria están claramente definidos desde Phase 0.
288
-
289
- ---
290
-
291
- ## 9. Aprobación del desarrollador (OBLIGATORIA)
292
-
293
- ```yaml
294
- approval:
295
- developer:
296
- decision: SI
297
- date: 2026-01-14T08:03:49+01:00
298
- comments: Aprobado con cambio arquitectónico (Page como controller sin render)
299
- ```
300
-
301
- > Sin aprobación, esta fase **NO puede darse por completada** ni avanzar a Phase 3.
@@ -1,93 +0,0 @@
1
- # Error Analysis - Task 12
2
-
3
- ## Error Encontrado Durante la Tarea
4
-
5
- ### **Error**: Visibilidad incorrecta en override de `onUnmount()`
6
-
7
- **Descripción**:
8
- ```
9
- Class 'Page' incorrectly extends base class 'Surface'.
10
- Property 'onUnmount' is protected in type 'Page' but public in type 'Surface'.
11
- ```
12
-
13
- **Ubicación**: `packages/core/src/surface/pages/index.mts:127`
14
-
15
- **Causa Raíz**:
16
- El método `onUnmount()` en la clase base `Surface` es `public`:
17
- ```typescript
18
- // Surface
19
- onUnmount(): void { } // public por defecto
20
- ```
21
-
22
- Pero el override en `Page` estaba marcado como `protected`:
23
- ```typescript
24
- // Page (INCORRECTO)
25
- protected override onUnmount(): void { ... }
26
- ```
27
-
28
- **Regla de TypeScript**:
29
- Cuando se hace override de un método, la visibilidad **no puede ser más restrictiva** que en la clase base.
30
- - Base: `public` → Override: debe ser `public` (o menos restrictivo, pero no aplica aquí)
31
- - Base: `protected` → Override: puede ser `protected` o `public`
32
- - Base: `private` → No se puede hacer override
33
-
34
- **Fix Aplicado**:
35
- ```typescript
36
- // Page (CORREGIDO)
37
- public override onUnmount(): void {
38
- // Unmount all Shards
39
- for (const shard of this._shards.values()) {
40
- try {
41
- shard.unmount();
42
- } catch (err) {
43
- this.error(`Failed to unmount Shard ${shard.id}:`, err);
44
- }
45
- }
46
- this._shards.clear();
47
- this.log('All Shards unmounted');
48
-
49
- super.onUnmount();
50
- }
51
- ```
52
-
53
- **Archivo Modificado**: `packages/core/src/surface/pages/index.mts` (línea 125)
54
-
55
- **Commit**: Cambio de `protected` → `public` en `onUnmount()`
56
-
57
- ---
58
-
59
- ## Lecciones Aprendidas
60
-
61
- ### 1. **Consistencia de Visibilidad en Herencia**
62
- Al hacer override de métodos, siempre verificar la visibilidad en la clase base.
63
-
64
- ### 2. **Compilación Incremental**
65
- Compilar con `tsc --noEmit` después de cada cambio crítico para detectar errores temprano.
66
-
67
- ### 3. **Revisión de Constituciones**
68
- La constitución de Shards define `onUnmount()` sin especificar visibilidad, lo que implica `public` por defecto en TypeScript.
69
-
70
- ### 4. **Pattern de Lifecycle Hooks**
71
- Los hooks de ciclo de vida (`onMount`, `onUnmount`) deben ser consistentes en visibilidad a través de toda la jerarquía:
72
- - `Surface.onMount()` → `public`
73
- - `Surface.onUnmount()` → `public`
74
- - `Page.onMount()` → `public` (heredado)
75
- - `Page.onUnmount()` → `public` (override correcto ahora)
76
- - `Shard.onMount()` → `public` (heredado via Surface)
77
- - `Shard.onUnmount()` → `public` (heredado via Surface)
78
-
79
- ---
80
-
81
- ## Estado Actual
82
-
83
- ✅ **Error Corregido**
84
- ✅ **Compilación sin errores de lógica**
85
- ⚠️ **Pendiente**: Tests para validar comportamiento
86
-
87
- ---
88
-
89
- ## Próximos Pasos
90
-
91
- 1. Ejecutar tests unitarios (Paso 8)
92
- 2. Ejecutar tests E2E (Paso 9)
93
- 3. Validar demo compilada
@@ -1,111 +0,0 @@
1
- # Implementation Summary - Task 12
2
-
3
- ## Changes Completed
4
-
5
- ### ✅ Phase 4: Implementation (Steps 1-7)
6
-
7
- #### **Step 1: Refactor Surface** ✅
8
- - **File**: `packages/core/src/surface/surface.mts`
9
- - **Change**: Fixed `onMount()` lifecycle - removed `this.run()` call
10
- - **Impact**: `onMount()` is now a proper lifecycle hook, not the lifecycle initiator
11
-
12
- #### **Step 2: Migrate Shard to inherit from Surface** ✅
13
- - **File**: `packages/core/src/surface/shards/index.mts`
14
- - **Change**: `extends Core` → `extends Surface`
15
- - **Impact**: Shard now correctly inherits from Surface, following architecture hierarchy
16
-
17
- #### **Step 3: Implement Page as Controller** ✅
18
- - **Files**:
19
- - `packages/core/src/surface/pages/index.mts`
20
- - `packages/core/src/surface/pages/types.d.mts` (new)
21
- - **Changes**:
22
- - Added `loadShard()` method for loading Shards into Page's DOM
23
- - Added `unloadShard()` for cleanup
24
- - Added `getShards()` and `getShard()` for querying
25
- - Page does NOT render - only orchestrates Shards
26
- - Automatic cleanup in `onUnmount()`
27
- - **Impact**: Page is now a controller, not a renderer
28
-
29
- #### **Step 4: Update exports** ✅
30
- - **File**: `packages/core/package.json`
31
- - **Changes**:
32
- - Added `./surface` export
33
- - Added `./page` export
34
- - Added `./page/types` export
35
- - **Impact**: Surface and Page types are now publicly accessible
36
-
37
- #### **Step 5-6: Create CLI Generators** ✅
38
- - **Files**:
39
- - `packages/cli/src/generators/page/index.mts` (new)
40
- - `packages/cli/src/generators/shard/index.mts` (new)
41
- - `tools/mcp-server/src/tools/extensio-create.ts` (updated)
42
- - **Changes**:
43
- - New `page` generator for adding Pages to modules
44
- - New `shard` generator for adding Shards to modules
45
- - MCP tool updated to support `type: 'page'` and `type: 'shard'`
46
- - **Impact**: Can now run `extensio create page` and `extensio create shard`
47
-
48
- #### **Step 7: Rebuild Demo** ✅
49
- - **Created**:
50
- - `demo/src/manifest.json`
51
- - `demo/src/engine/index.mts` - Simple Engine
52
- - `demo/src/surface/pages/main/` - MainPage controller
53
- - `demo/src/surface/shards/header.mts` - HeaderShard
54
- - `demo/src/surface/shards/content.mts` - ContentShard
55
- - `demo/src/surface/shards/index.mts` - Registration
56
- - **Demonstrates**:
57
- - Page as controller loading Shards
58
- - Shards rendering visual content
59
- - No render in Page
60
-
61
- ---
62
-
63
- ## Architecture Changes Summary
64
-
65
- | Component | Before | After |
66
- |-----------|--------|-------|
67
- | **Surface.onMount()** | Called `this.run()` | Empty hook for subclasses |
68
- | **Shard** | `extends Core` | `extends Surface` ✅ |
69
- | **Page** | Minimal (9 lines) | Controller with `loadShard()` |
70
- | **CLI** | Module only | + `page` + `shard` generators |
71
- | **Demo** | Incomplete | Full Page/Shards demo |
72
-
73
- ---
74
-
75
- ## Next Steps (Not Yet Completed)
76
-
77
- ### **Step 8: Unit Tests** ⏳
78
- - Test Surface lifecycle
79
- - Test Shard inheritance
80
- - Test Page.loadShard()
81
-
82
- ### **Step 9: E2E Tests** ⏳
83
- - Demo in Chrome
84
- - Demo in Firefox
85
- - Demo in Safari
86
-
87
- ---
88
-
89
- ## Known Issues to Analyze
90
-
91
- As requested by developer, need to analyze:
92
- - **Error inesperado durante la tarea** - Need to review terminal output and identify what went wrong
93
-
94
- ---
95
-
96
- ## Files Modified
97
-
98
- ### Core
99
- - `packages/core/src/surface/surface.mts`
100
- - `packages/core/src/surface/shards/index.mts`
101
- - `packages/core/src/surface/pages/index.mts`
102
- - `packages/core/src/surface/pages/types.d.mts` (new)
103
- - `packages/core/package.json`
104
-
105
- ### CLI
106
- - `packages/cli/src/generators/page/index.mts` (new)
107
- - `packages/cli/src/generators/shard/index.mts` (new)
108
- - `tools/mcp-server/src/tools/extensio-create.ts`
109
-
110
- ### Demo
111
- - `packages/core/demo/src/**` (recreated)