@christianmaf80/agentic-workflow 1.41.0-beta.10 → 1.42.0
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/README.es.md +13 -94
- package/README.md +14 -94
- package/RELEASE_PROCESS.md +3 -6
- package/bin/cli.js +31 -72
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/acceptance.md +70 -0
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/agent-scores.md +22 -0
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/agent-tasks/1-dev-agent-scaffold.md +106 -0
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/agent-tasks/2-dev-agent-manifest-command.md +105 -0
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/agent-tasks/3-dev-agent-marketplace-evidence.md +103 -0
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/agent-tasks/4-qa-agent-verify-build.md +103 -0
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/analysis.md +197 -0
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/architect/review.md +131 -0
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/changelog.md +26 -0
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/metrics.md +40 -0
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/plan.md +175 -0
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/researcher/research.md +157 -0
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/results-acceptance.md +168 -0
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/task.md +119 -0
- package/dist/agent/artifacts/1-scaffold-extension-vscode-agentinc/verification.md +79 -0
- package/dist/agent/artifacts/11-refinement-capas-constitution/analysis.md +24 -0
- package/dist/agent/artifacts/11-refinement-capas-constitution/roadmap-audit.md +34 -0
- package/dist/agent/artifacts/11-refinement-capas-constitution/task.md +58 -0
- package/dist/agent/artifacts/12-npm-workspaces/acceptance.md +78 -0
- package/dist/agent/artifacts/12-npm-workspaces/analysis.md +179 -0
- package/dist/agent/artifacts/12-npm-workspaces/plan.md +237 -0
- package/dist/agent/artifacts/12-npm-workspaces/researcher/research.md +186 -0
- package/dist/agent/artifacts/12-npm-workspaces/task.md +126 -0
- package/dist/agent/artifacts/13-implement-custom-chat-with-a2ui/acceptance.md +75 -0
- package/dist/agent/artifacts/13-implement-custom-chat-with-a2ui/researcher/research.md +121 -0
- package/dist/agent/artifacts/13-implement-custom-chat-with-a2ui/task.md +104 -0
- package/dist/agent/artifacts/14-re-implement-setup-config-d1/acceptance.md +75 -0
- package/dist/agent/artifacts/14-re-implement-setup-config-d1/architect/analysis.md +90 -0
- package/dist/agent/artifacts/14-re-implement-setup-config-d1/planner/implementation_plan.md +44 -0
- package/dist/agent/artifacts/14-re-implement-setup-config-d1/researcher/research.md +113 -0
- package/dist/agent/artifacts/14-re-implement-setup-config-d1/task.md +107 -0
- package/dist/agent/artifacts/14-re-implement-setup-config-d1/verification/walkthrough.md +37 -0
- package/dist/agent/artifacts/14-re-implement-setup-config-d1/verifier/walkthrough.md +0 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/acceptance.md +68 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/agent-tasks/1-dev-agent-contribution-points-assets.md +107 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/agent-tasks/2-dev-agent-webview-provider.md +106 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/agent-tasks/3-dev-agent-webview-ui.md +104 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/agent-tasks/4-dev-agent-chat-participant.md +104 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/agent-tasks/5-dev-agent-migrate-to-root.md +103 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/agent-tasks/fix-1-dev-agent-chat-participant-types.md +108 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/agent-tasks/fix-2-dev-agent-view-container-id.md +106 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/agent-tasks/fix-3-dev-agent-container-id-lowercase.md +105 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/agent-tasks/fix-4-dev-agent-container-id-hyphen.md +105 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/agent-tasks/fix-5-dev-agent-view-type-webview.md +103 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/analysis.md +179 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/architect/review.md +118 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/plan.md +171 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/researcher/research.md +113 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/results-acceptance.md +171 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/task.md +119 -0
- package/dist/agent/artifacts/2-scaffold-vscode-chat-ai-panel/verification.md +85 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/acceptance.md +69 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/agent-scores.md +23 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/agent-tasks/1-dev-agent-create-project.md +89 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/agent-tasks/2-dev-agent-contributes-activitybar.md +88 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/agent-tasks/3-dev-agent-webview-panel.md +88 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/agent-tasks/4-dev-agent-chat-participant.md +88 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/agent-tasks/5-dev-agent-launch-config.md +90 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/agent-tasks/fix-1-dev-agent-view-container-ids.md +90 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/analysis.md +175 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/architect/review.md +118 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/changelog.md +26 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/metrics.md +43 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/plan.md +167 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/researcher/research.md +115 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/results-acceptance.md +122 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/task.md +119 -0
- package/dist/agent/artifacts/3-new-vscode-agentic-activitybar-chat/verification.md +85 -0
- package/dist/agent/artifacts/4-copiar-estructura-agentic-cliente/acceptance.md +67 -0
- package/dist/agent/artifacts/4-copiar-estructura-agentic-cliente/architect/implementation.md +31 -0
- package/dist/agent/artifacts/4-copiar-estructura-agentic-cliente/brief.md +103 -0
- package/dist/agent/artifacts/4-copiar-estructura-agentic-cliente/closure.md +101 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/acceptance.md +72 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/agent-scores.md +20 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/agent-tasks/1-dev-agent-reestructurar-carpetas.md +101 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/agent-tasks/2-dev-agent-scaffolding-yeoman.md +111 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/agent-tasks/3-dev-agent-merge-extension.md +110 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/agent-tasks/4-dev-agent-merge-config.md +107 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/agent-tasks/5-dev-agent-update-scripts.md +111 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/agent-tasks/6-qa-agent-validation-install.md +108 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/agent-tasks/7-dev-agent-fix-cli-entrypoint.md +104 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/agent-tasks/8-qa-agent-validation-install-retry.md +106 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/analysis.md +125 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/architect/review.md +84 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/changelog.md +34 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/metrics.md +44 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/plan.md +157 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/researcher/research.md +105 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/results-acceptance.md +105 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/task.md +107 -0
- package/dist/agent/artifacts/5-reestructurar-src-para-extension-vscode/verification.md +79 -0
- package/dist/agent/artifacts/6-release-beta-11/agent-tasks/1-dev-agent-release-bump.md +44 -0
- package/dist/agent/artifacts/6-release-beta-11/architect/implementation.md +37 -0
- package/dist/agent/artifacts/6-release-beta-11/brief.md +89 -0
- package/dist/agent/artifacts/6-release-beta-11/closure.md +83 -0
- package/dist/agent/artifacts/6-release-beta-11/task.md +65 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/acceptance.md +70 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/agent-scores.md +24 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/agent-tasks/1-vscode-specialist-scaffold-extension.md +99 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/agent-tasks/2-vscode-specialist-update-manifest.md +101 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/agent-tasks/3-vscode-specialist-webview-provider.md +96 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/agent-tasks/4-vscode-specialist-activitybar-icon.md +95 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/agent-tasks/5-qa-agent-manual-verify.md +97 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/analysis.md +195 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/architect/review.md +124 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/changelog.md +9 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/metrics.md +43 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/plan.md +181 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/researcher/research.md +118 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/results-acceptance.md +146 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/task.md +119 -0
- package/dist/agent/artifacts/7-extension-vscode-webview/verification.md +81 -0
- package/dist/agent/artifacts/8-create-agentic-runtime-cli-first-as-the-single-execution-engine/task.md +126 -0
- package/dist/agent/artifacts/candidate/acceptance.md +23 -0
- package/dist/agent/artifacts/candidate/brief.md +39 -0
- package/dist/agent/artifacts/candidate/init.md +24 -0
- package/dist/agent/artifacts/candidate/task.md +5 -0
- package/dist/agent/artifacts/task-20260128-reorganize-structure/acceptance.md +68 -0
- package/dist/agent/artifacts/task-20260128-reorganize-structure/brief.md +100 -0
- package/dist/agent/artifacts/task-20260128-reorganize-structure/closure.md +40 -0
- package/dist/agent/artifacts/task-20260128-reorganize-structure/implementation.md +48 -0
- package/dist/agent/artifacts/task-20260128-reorganize-structure/task.md +66 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/acceptance.md +65 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-scores.md +26 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/1-neo-agent-deps-chatkit.md +108 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/15-vscode-specialist-views-router.md +89 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/1b-vscode-specialist-review-deps.md +106 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/2-neo-agent-local-server.md +111 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/22-vscode-specialist-external-js.md +84 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/23-qa-agent-coverage-tests.md +85 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/24-vscode-specialist-class-refactor.md +84 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/25-vscode-specialist-external-html.md +88 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/26-vscode-specialist-template-js-html.md +110 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/27-vscode-specialist-fix-loading-setup.md +110 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/28-vscode-specialist-webview-debug-setup.md +107 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/29-vscode-specialist-webview-logging.md +109 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/3-neo-agent-webview-ui.md +107 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/30-vscode-specialist-csp-source.md +88 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/31-vscode-specialist-logging-prefix.md +83 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/32-vscode-specialist-logging-visibility.md +85 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/33-vscode-specialist-lit-setup.md +85 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/34-vscode-specialist-core-lit-base.md +89 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/35-vscode-specialist-lit-decorators-ts.md +88 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/36-vscode-specialist-lit-module-start.md +85 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/37-vscode-specialist-lit-ready-state.md +86 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/4-qa-agent-verification.md +106 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/5-vscode-specialist-api-key-ui.md +107 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/6-vscode-specialist-refactor-protocol.md +108 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/7-qa-agent-unit-tests.md +104 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-10-vscode-specialist-api-key-handshake.md +84 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-11-vscode-specialist-api-key-button-style.md +83 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-12-vscode-specialist-key-gate-view.md +84 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-13-vscode-specialist-status-timeout.md +83 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-14-vscode-specialist-init-flow.md +84 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-16-vscode-specialist-view-context.md +87 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-17-vscode-specialist-clear-key-command.md +85 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-18-vscode-specialist-context-sync.md +84 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-19-vscode-specialist-setup-visible.md +88 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-20-vscode-specialist-loading-state.md +83 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-21-vscode-specialist-loading-label.md +84 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-8-vscode-specialist-api-key-detect.md +89 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/agent-tasks/fix-9-vscode-specialist-api-key-state.md +84 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/analysis.md +156 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/architect/review.md +141 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/changelog.md +30 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/metrics.md +43 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/plan.md +151 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/research.md +115 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/results-acceptance.md +171 -0
- package/dist/agent/artifacts/task-20260130-chatkit-mainview/verification.md +87 -0
- package/dist/agent/artifacts/task-20260130-fix-mainview-provider/acceptance.md +64 -0
- package/dist/agent/artifacts/task-20260130-fix-mainview-provider/architect/implementation.md +30 -0
- package/dist/agent/artifacts/task-20260130-fix-mainview-provider/brief.md +102 -0
- package/dist/agent/artifacts/task-20260130-fix-mainview-provider/closure.md +95 -0
- package/dist/agent/artifacts/task-20260130-rol-vscode/acceptance.md +68 -0
- package/dist/agent/artifacts/task-20260130-rol-vscode/architect/implementation.md +33 -0
- package/dist/agent/artifacts/task-20260130-rol-vscode/brief.md +104 -0
- package/dist/agent/artifacts/task-20260130-rol-vscode/closure.md +100 -0
- package/dist/agent/artifacts/task-beta-release/acceptance.md +23 -0
- package/dist/agent/artifacts/task-beta-release/brief.md +39 -0
- package/dist/agent/artifacts/task-beta-release/closure.md +29 -0
- package/dist/agent/artifacts/task-beta-release/init.md +26 -0
- package/dist/agent/artifacts/task-beta-release/task.md +64 -0
- package/dist/agent/index.md +69 -30
- package/dist/agent/rules/constitution/agents-behavior.md +110 -158
- package/dist/agent/rules/constitution/backend.md +27 -0
- package/dist/agent/rules/constitution/background.md +30 -0
- package/dist/agent/rules/constitution/clean-code.md +5 -6
- package/dist/agent/rules/constitution/modular-architecture.md +66 -0
- package/dist/agent/rules/constitution/view.md +41 -0
- package/dist/agent/rules/constitution/vscode-extensions.md +32 -0
- package/dist/agent/rules/roles/architect.md +1 -2
- package/dist/agent/rules/roles/backend.md +21 -0
- package/dist/agent/rules/roles/background.md +20 -0
- package/dist/agent/rules/roles/devops.md +20 -0
- package/dist/agent/rules/roles/engine.md +26 -0
- package/dist/agent/rules/roles/neo.md +12 -13
- package/dist/agent/rules/roles/researcher.md +2 -2
- package/dist/agent/rules/roles/view.md +22 -0
- package/dist/agent/rules/roles/vscode-specialist.md +24 -0
- package/dist/agent/templates/acceptance.md +19 -25
- package/dist/agent/templates/agent-task.md +39 -39
- package/dist/agent/templates/analysis.md +92 -92
- package/dist/agent/templates/brief.md +96 -0
- package/dist/agent/templates/changelog.md +8 -8
- package/dist/agent/templates/closure.md +95 -0
- package/dist/agent/templates/coding/coding-integration-report.md +102 -0
- package/dist/agent/templates/coding/coding-layer-report.md +78 -0
- package/dist/agent/templates/init.md +2 -23
- package/dist/agent/templates/planning.md +73 -73
- package/dist/agent/templates/research.md +43 -43
- package/dist/agent/templates/results-acceptance.md +94 -94
- package/dist/agent/templates/review.md +59 -59
- package/dist/agent/templates/subtask-implementation.md +29 -29
- package/dist/agent/templates/supplemental-report.md +0 -6
- package/dist/agent/templates/task-metrics.md +14 -14
- package/dist/agent/templates/task.md +18 -33
- package/dist/agent/templates/todo-item.md +23 -23
- package/dist/agent/workflows/coding/coding-backend.md +147 -0
- package/dist/agent/workflows/coding/coding-background.md +149 -0
- package/dist/agent/workflows/coding/coding-integration.md +174 -0
- package/dist/agent/workflows/coding/coding-view.md +151 -0
- package/dist/agent/workflows/init.md +93 -133
- package/dist/agent/workflows/scaffold-module.md +38 -0
- package/dist/agent/workflows/tasklifecycle-long/phase-0-acceptance-criteria.md +124 -134
- package/dist/agent/workflows/tasklifecycle-long/phase-1-research.md +103 -97
- package/dist/agent/workflows/tasklifecycle-long/phase-2-analysis.md +107 -102
- package/dist/agent/workflows/tasklifecycle-long/phase-3-planning.md +125 -120
- package/dist/agent/workflows/tasklifecycle-long/phase-4-implementation.md +121 -125
- package/dist/agent/workflows/tasklifecycle-long/phase-5-verification.md +105 -101
- package/dist/agent/workflows/tasklifecycle-long/phase-6-results-acceptance.md +82 -78
- package/dist/agent/workflows/tasklifecycle-long/phase-7-evaluation.md +84 -75
- package/dist/agent/workflows/tasklifecycle-long/phase-8-commit-push.md +94 -89
- package/dist/agent/workflows/tasklifecycle-short/short-phase-1-brief.md +117 -0
- package/dist/agent/workflows/tasklifecycle-short/short-phase-2-implementation.md +114 -0
- package/dist/agent/workflows/tasklifecycle-short/short-phase-3-closure.md +111 -0
- package/dist/cli/commands/create.js +4 -29
- package/dist/cli/commands/create.js.map +1 -1
- package/dist/cli/commands/fork.js +45 -0
- package/dist/cli/commands/fork.js.map +1 -0
- package/dist/cli/commands/init.js +4 -78
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/mcp.js +3 -17
- package/dist/cli/commands/mcp.js.map +1 -1
- package/dist/cli/commands/scaffold.js +57 -0
- package/dist/cli/commands/scaffold.js.map +1 -0
- package/dist/cli/index.js +0 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/infrastructure/context/manager.js +0 -2
- package/dist/infrastructure/context/manager.js.map +1 -1
- package/dist/infrastructure/index.js +0 -5
- package/dist/infrastructure/index.js.map +1 -1
- package/dist/runtime/engine/emitter.js +28 -0
- package/dist/runtime/engine/emitter.js.map +1 -0
- package/dist/runtime/engine/engine.js +128 -0
- package/dist/runtime/engine/engine.js.map +1 -0
- package/dist/runtime/engine/index.js +7 -0
- package/dist/runtime/engine/index.js.map +1 -0
- package/dist/runtime/engine/service.js +78 -0
- package/dist/runtime/engine/service.js.map +1 -0
- package/dist/runtime/engine/state-store.js +24 -0
- package/dist/runtime/engine/state-store.js.map +1 -0
- package/dist/runtime/{task-loader.js → engine/task-loader.js} +24 -5
- package/dist/runtime/engine/task-loader.js.map +1 -0
- package/dist/runtime/engine/workflow-loader.js +82 -0
- package/dist/runtime/engine/workflow-loader.js.map +1 -0
- package/dist/runtime/index.js +2 -4
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/mcp/index.js +2 -0
- package/dist/runtime/mcp/index.js.map +1 -0
- package/dist/runtime/mcp/server.js +249 -0
- package/dist/runtime/mcp/server.js.map +1 -0
- package/media/agent-chat.svg +20 -0
- package/media/codicons/codicon.css +698 -0
- package/media/codicons/codicon.ttf +0 -0
- package/media/providers/claude.png +0 -0
- package/media/providers/gemini.png +0 -0
- package/media/providers/openai.png +0 -0
- package/package.json +124 -56
- package/dist/agent/artifacts/candidate/index.md +0 -26
- package/dist/agent/artifacts/index.md +0 -25
- package/dist/agent/rules/constitution/index.md +0 -26
- package/dist/agent/rules/constitution/runtime-integration.md +0 -102
- package/dist/agent/rules/index.md +0 -70
- package/dist/agent/rules/roles/index.md +0 -44
- package/dist/agent/skills/index.md +0 -23
- package/dist/agent/skills/runtime-governance/SKILL.md +0 -62
- package/dist/agent/templates/analisis.md +0 -86
- package/dist/agent/templates/index.md +0 -43
- package/dist/agent/templates/plan.md +0 -49
- package/dist/agent/templates/qa-results.md +0 -70
- package/dist/agent/workflows/index.md +0 -30
- package/dist/agent/workflows/tasklifecycle-long/index.md +0 -172
- package/dist/agent/workflows/tasklifecycle-short/index.md +0 -77
- package/dist/agent/workflows/tasklifecycle-short/short-phase-1-analisis.md +0 -116
- package/dist/agent/workflows/tasklifecycle-short/short-phase-2-plan.md +0 -81
- package/dist/agent/workflows/tasklifecycle-short/short-phase-3-implementation.md +0 -115
- package/dist/agent/workflows/tasklifecycle-short/short-phase-4-qa-results.md +0 -84
- package/dist/cli/commands/bootstrap.js +0 -111
- package/dist/cli/commands/bootstrap.js.map +0 -1
- package/dist/cli/commands/register-mcp.js +0 -135
- package/dist/cli/commands/register-mcp.js.map +0 -1
- package/dist/infrastructure/context/index.js +0 -2
- package/dist/infrastructure/context/index.js.map +0 -1
- package/dist/infrastructure/logger/index.js +0 -41
- package/dist/infrastructure/logger/index.js.map +0 -1
- package/dist/infrastructure/mapping/index.js +0 -2
- package/dist/infrastructure/mapping/index.js.map +0 -1
- package/dist/infrastructure/migration/index.js +0 -4
- package/dist/infrastructure/migration/index.js.map +0 -1
- package/dist/infrastructure/utils/index.js +0 -2
- package/dist/infrastructure/utils/index.js.map +0 -1
- package/dist/mcp/emitter.js +0 -24
- package/dist/mcp/emitter.js.map +0 -1
- package/dist/mcp/handlers.js +0 -74
- package/dist/mcp/handlers.js.map +0 -1
- package/dist/mcp/index.js +0 -3
- package/dist/mcp/index.js.map +0 -1
- package/dist/mcp/resources.js +0 -69
- package/dist/mcp/resources.js.map +0 -1
- package/dist/mcp/server.js +0 -94
- package/dist/mcp/server.js.map +0 -1
- package/dist/mcp/tools.js +0 -189
- package/dist/mcp/tools.js.map +0 -1
- package/dist/runtime/frontmatter-sync.js +0 -100
- package/dist/runtime/frontmatter-sync.js.map +0 -1
- package/dist/runtime/reconcile.js +0 -37
- package/dist/runtime/reconcile.js.map +0 -1
- package/dist/runtime/runtime.js +0 -427
- package/dist/runtime/runtime.js.map +0 -1
- package/dist/runtime/task-loader.js.map +0 -1
- package/dist/runtime/task-resolver.js +0 -401
- package/dist/runtime/task-resolver.js.map +0 -1
- package/dist/runtime/write-guard.js +0 -200
- package/dist/runtime/write-guard.js.map +0 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Analysis Report — T11: Refinamiento de Constituciones
|
|
2
|
+
|
|
3
|
+
## 1. Contexto
|
|
4
|
+
La arquitectura actual modular (`src/extension/modules/*`) requiere reglas estrictas.
|
|
5
|
+
|
|
6
|
+
## 2. Propuesta de Reglas Constitucionales
|
|
7
|
+
|
|
8
|
+
### 2.1 Backend Layer (`constitution.backend`)
|
|
9
|
+
1. **Inheritance**: Extender `AbstractServer` (de `core/backend`).
|
|
10
|
+
2. **Isolation**: Sin dependencias de `vscode` ni `dom`.
|
|
11
|
+
3. **Transport Agnostic**.
|
|
12
|
+
|
|
13
|
+
### 2.2 Background Layer (`constitution.background`)
|
|
14
|
+
1. **Module Registration**: `App.register`.
|
|
15
|
+
2. **Messaging Bridge**: `Messaging` (de `core/messaging`) obligatorio.
|
|
16
|
+
3. **Gateway**: Único punto de acceso a `vscode`.
|
|
17
|
+
|
|
18
|
+
### 2.3 View Layer (`constitution.view`)
|
|
19
|
+
1. **Lit Framework**: LitElements obligatorios.
|
|
20
|
+
2. **Structure**: `index.ts`, `html.ts`, `styles.ts`.
|
|
21
|
+
3. **No Logic in View**.
|
|
22
|
+
|
|
23
|
+
## 3. Impacto en Roadmap
|
|
24
|
+
Reset masivo de tareas D1-D6.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Roadmap Audit Report — T11 (Revised)
|
|
2
|
+
|
|
3
|
+
## Identification
|
|
4
|
+
- id: audit-T11-rev2
|
|
5
|
+
- title: Roadmap vs Current Codebase Audit (Deep Dive)
|
|
6
|
+
- date: 2026-02-15
|
|
7
|
+
- owner: architect-agent
|
|
8
|
+
- related_task: 11
|
|
9
|
+
|
|
10
|
+
## Purpose
|
|
11
|
+
Determinar con precisión el estado de los entregables del Roadmap frente a la estructura actual del proyecto.
|
|
12
|
+
|
|
13
|
+
## Context
|
|
14
|
+
El usuario solicitó una re-evaluación profunda. Investigación confirma que la estructura `src/extension/modules` es la única fuente de verdad.
|
|
15
|
+
|
|
16
|
+
## Findings Details
|
|
17
|
+
|
|
18
|
+
### 🔴 DOMINIO D1: Setup/Config (Estado Real: NO INICIADO)
|
|
19
|
+
- **T002, T003, T004**: No existen implementaciones funcionales en `modules/setup`.
|
|
20
|
+
|
|
21
|
+
### 🟡 DOMINIO D3: Backend/Extension Host (Estado Real: PARCIAL)
|
|
22
|
+
- **T010**: No existe session endpoint.
|
|
23
|
+
- **T011**: Bridge básico en `core/messaging`.
|
|
24
|
+
- **T012**: Backend client es un mock.
|
|
25
|
+
|
|
26
|
+
### 🟡 DOMINIO D2, D4, D6 (Estado Real: PENDIENTE/RESTART)
|
|
27
|
+
- Se ha procedido a resetear el estado de estas tareas en el Roadmap para reflejar la realidad del código.
|
|
28
|
+
|
|
29
|
+
## Decisions & Recommendations
|
|
30
|
+
1. **Declarar Bancarrota Técnica del Roadmap Antiguo**.
|
|
31
|
+
2. **Re-Planificación Estricta**.
|
|
32
|
+
|
|
33
|
+
## References
|
|
34
|
+
- `ls src/extension/modules`
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
---
|
|
2
|
+
id: "11"
|
|
3
|
+
title: "refinement-capas-constitution"
|
|
4
|
+
owner: "architect-agent"
|
|
5
|
+
strategy: "long"
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Task: Refinamiento de Constitución de Capas y Roadmap
|
|
9
|
+
|
|
10
|
+
## Current Phase: phase-6-commit
|
|
11
|
+
|
|
12
|
+
- [x] Phase 0: Acceptance Criteria
|
|
13
|
+
- [x] Formular preguntas aclaratorias
|
|
14
|
+
- [x] Consolidar respuestas del desarrollador
|
|
15
|
+
- [x] Crear artefactos de tarea y aceptación
|
|
16
|
+
- [x] Obtener aprobación de criterios de aceptación
|
|
17
|
+
- [x] Phase 1: Research
|
|
18
|
+
- [x] Auditoría del código actual vs Roadmap
|
|
19
|
+
- [x] Análisis de las constituciones existentes
|
|
20
|
+
- [x] Phase 2: Analysis
|
|
21
|
+
- [x] Definir reglas para Backend (AbstractServer, etc.)
|
|
22
|
+
- [x] Definir reglas para Background (Messaging, App)
|
|
23
|
+
- [x] Definir reglas para View (Lit, HTML)
|
|
24
|
+
- [x] Phase 3: Planning
|
|
25
|
+
- [x] Crear Implementation Plan (realizado en Phase 1)
|
|
26
|
+
- [x] Obtener aprobación del plan
|
|
27
|
+
- [x] Phase 4: Implementation
|
|
28
|
+
- [x] Actualizar constitution/backend.md
|
|
29
|
+
- [x] Actualizar constitution/background.md
|
|
30
|
+
- [x] Actualizar constitution/view.md
|
|
31
|
+
- [x] Actualizar ROADMAP-BACKLOG.md
|
|
32
|
+
- [x] Phase 5: Verification
|
|
33
|
+
- [x] Verificar existencia de archivos de constitución
|
|
34
|
+
- [x] Verificar integridad del Roadmap (Reset realizado)
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Task Identification
|
|
39
|
+
- **UUID**: 11
|
|
40
|
+
- **Strategy**: long
|
|
41
|
+
- **Implementation Owner**: architect-agent
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## Lifecycle History
|
|
46
|
+
| Phase | Action | Agent | Date | Result |
|
|
47
|
+
|-------|--------|-------|------|--------|
|
|
48
|
+
| phase-0-acceptance-criteria | Definition | architect-agent | 2026-02-15T16:22:00Z | YES |
|
|
49
|
+
| phase-1-research | Start | architect-agent | 2026-02-15T16:23:00Z | YES |
|
|
50
|
+
| phase-2-analysis | Analysis | architect-agent | 2026-02-15T16:24:00Z | YES |
|
|
51
|
+
| phase-3-planning | Plan | architect-agent | 2026-02-15T16:25:00Z | YES |
|
|
52
|
+
| phase-4-implementation | Coding | architect-agent | 2026-02-15T16:26:00Z | YES |
|
|
53
|
+
| phase-5-verification | Tests | architect-agent | 2026-02-15T16:28:00Z | YES |
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## 2. Definición y Alcance (Contrato)
|
|
58
|
+
- **Acceptance Criteria**: `acceptance.md`
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
🏛️ **architect-agent**: Acceptance criteria para la tarea T012 — npm-workspaces.
|
|
2
|
+
|
|
3
|
+
# Acceptance Criteria — 12-npm-workspaces
|
|
4
|
+
|
|
5
|
+
## 1. Definición Consolidada
|
|
6
|
+
Migrar el proyecto actual a npm workspaces convirtiendo los módulos `app`, `core` y `cli` en packages npm privados e independientes. Cada package tendrá su propio `package.json` con sus dependencias específicas. El proyecto root coordinará los workspaces y ofrecerá un build unificado. La estructura de extensión VSCode debe mantenerse funcional.
|
|
7
|
+
|
|
8
|
+
## 2. Respuestas a Preguntas de Clarificación
|
|
9
|
+
|
|
10
|
+
| # | Pregunta (formulada por architect) | Respuesta (del desarrollador) |
|
|
11
|
+
|---|-----------------------------------|-------------------------------|
|
|
12
|
+
| 1 | ¿Qué elementos deben convertirse en packages npm independientes? | `src/extension/modules/*` (app, core) + `src/cli` |
|
|
13
|
+
| 2 | ¿Qué convención de nombres usar para los packages? | `@agentic-workflow/app`, `@agentic-workflow/core`, `@agentic-workflow/cli` |
|
|
14
|
+
| 3 | ¿Packages públicos o privados? | Private (solo para uso interno del workspace) |
|
|
15
|
+
| 4 | ¿Cómo gestionar dependencias compartidas? | Cada package define sus propias dependencias |
|
|
16
|
+
| 5 | ¿Cómo deben funcionar los scripts de build? | Build unificado desde root |
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## 3. Criterios de Aceptación Verificables
|
|
21
|
+
|
|
22
|
+
1. **Alcance**:
|
|
23
|
+
- `src/extension/modules/app` → package `@agentic-workflow/app`
|
|
24
|
+
- `src/extension/modules/core` → package `@agentic-workflow/core`
|
|
25
|
+
- `src/cli` → package `@agentic-workflow/cli`
|
|
26
|
+
- Root `package.json` configura `workspaces`
|
|
27
|
+
|
|
28
|
+
2. **Entradas / Datos**:
|
|
29
|
+
- Código fuente actual en `src/extension/modules/app`, `src/extension/modules/core`, `src/cli`
|
|
30
|
+
- `package.json` root actual con todas las dependencias centralizadas
|
|
31
|
+
- `tsconfig.json` actual
|
|
32
|
+
|
|
33
|
+
3. **Salidas / Resultado esperado**:
|
|
34
|
+
- Cada package tiene su propio `package.json` con `"private": true`
|
|
35
|
+
- Root `package.json` incluye campo `"workspaces"` apuntando a los packages
|
|
36
|
+
- Dependencias distribuidas correctamente en cada package
|
|
37
|
+
- Build unificado funcional desde root (`npm run compile` / `npm run build`)
|
|
38
|
+
- La extensión VSCode sigue compilando y ejecutándose correctamente
|
|
39
|
+
|
|
40
|
+
4. **Restricciones**:
|
|
41
|
+
- Packages privados (no publicables)
|
|
42
|
+
- Cada package gestiona sus propias dependencias (sin hoisting forzado)
|
|
43
|
+
- La estructura de carpetas existente se mantiene (no mover archivos de sitio)
|
|
44
|
+
- Compatibilidad con el build de extensión VSCode
|
|
45
|
+
|
|
46
|
+
5. **Criterio de aceptación (Done)**:
|
|
47
|
+
> **Gate principal**: La tarea se da por terminada si los tests e2e siguen funcionando exactamente igual que antes de la migración.
|
|
48
|
+
- [ ] **Tests e2e pasan idénticamente** (`npm run test:e2e`) — criterio bloqueante
|
|
49
|
+
- [ ] `npm install` desde root instala todas las dependencias de todos los workspaces
|
|
50
|
+
- [ ] `npm run compile` desde root compila exitosamente todos los workspaces
|
|
51
|
+
- [ ] Cada package tiene `package.json` válido con `"private": true`
|
|
52
|
+
- [ ] Root `package.json` contiene campo `"workspaces"` correctamente configurado
|
|
53
|
+
- [ ] Las dependencias inter-package se resuelven vía workspace (ej: `"@agentic-workflow/core": "workspace:*"`)
|
|
54
|
+
- [ ] La extensión VSCode se ejecuta correctamente tras la migración
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Aprobación (Gate 0)
|
|
59
|
+
|
|
60
|
+
```yaml
|
|
61
|
+
approval:
|
|
62
|
+
developer:
|
|
63
|
+
decision: SI
|
|
64
|
+
date: "2026-02-16T07:32:24+01:00"
|
|
65
|
+
comments: "Tests e2e como gate principal bloqueante"
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## Historial de validaciones (Phase 0)
|
|
71
|
+
```yaml
|
|
72
|
+
history:
|
|
73
|
+
- phase: "phase-0-acceptance-criteria"
|
|
74
|
+
action: "created"
|
|
75
|
+
validated_by: "architect-agent"
|
|
76
|
+
timestamp: "2026-02-16T07:29:25+01:00"
|
|
77
|
+
notes: "Acceptance criteria definidos con 5 preguntas respondidas"
|
|
78
|
+
```
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
🏛️ **architect-agent**: Análisis técnico para T012 — Migración a npm workspaces.
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
artifact: analysis
|
|
5
|
+
phase: phase-2-analysis
|
|
6
|
+
owner: architect-agent
|
|
7
|
+
status: draft
|
|
8
|
+
related_task: 12-npm-workspaces
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Analysis — 12-npm-workspaces
|
|
12
|
+
|
|
13
|
+
## 1. Resumen ejecutivo
|
|
14
|
+
|
|
15
|
+
**Problema**
|
|
16
|
+
El proyecto es un monolito TypeScript donde todas las dependencias están centralizadas en un único `package.json` y los módulos se comunican mediante rutas relativas. Esto impide el aislamiento de dependencias y dificulta la escalabilidad.
|
|
17
|
+
|
|
18
|
+
**Objetivo**
|
|
19
|
+
Convertir `app`, `core` y `cli` en packages npm privados dentro de un monorepo con npm workspaces.
|
|
20
|
+
|
|
21
|
+
**Criterio de éxito**
|
|
22
|
+
Los tests e2e deben seguir pasando idénticamente tras la migración.
|
|
23
|
+
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## 2. Estado del proyecto (As-Is)
|
|
27
|
+
|
|
28
|
+
- **Estructura relevante**
|
|
29
|
+
- `src/extension/modules/app/` — módulo App (hereda de core)
|
|
30
|
+
- `src/extension/modules/core/` — módulo Core (base classes, logger, messaging, view)
|
|
31
|
+
- `src/cli/` — CLI con 3 comandos (init, create, mcp)
|
|
32
|
+
- `src/infrastructure/` — utilidades de migración y mapping
|
|
33
|
+
- `src/runtime/` — MCP server runtime
|
|
34
|
+
|
|
35
|
+
- **Componentes existentes**
|
|
36
|
+
- **app**: depende de core (4 imports directos con rutas relativas `../core/`)
|
|
37
|
+
- **core**: autónomo, sin dependencias a otros módulos internos
|
|
38
|
+
- **cli**: depende de infrastructure y runtime (rutas `../../infrastructure/`, `../../runtime/`)
|
|
39
|
+
|
|
40
|
+
- **Nucleo / capas base**
|
|
41
|
+
- `tsconfig.json` único con `rootDir: ./src`, `outDir: ./dist`
|
|
42
|
+
- `tsconfig.build.json` excluye `src/extension/**` (solo compila cli/runtime/infra)
|
|
43
|
+
- Build: `tsc -p ./` para extensión, `tsc -p tsconfig.build.json` para npm package
|
|
44
|
+
|
|
45
|
+
- **Limitaciones detectadas**
|
|
46
|
+
- `cli` importa `infrastructure` y `runtime` que NO serán workspaces — rutas relativas deben mantenerse o necesitan otro enfoque
|
|
47
|
+
- `extension.ts` vive fuera de modules y es el entry point de VSCode
|
|
48
|
+
- El output `dist/extension/extension.js` debe mantenerse para que VSCode funcione
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## 3. Cobertura de Acceptance Criteria
|
|
53
|
+
|
|
54
|
+
### AC-1: Tests e2e pasan idénticamente
|
|
55
|
+
- **Interpretación**: `npm run test:e2e` (Playwright) debe producir el mismo resultado antes y después
|
|
56
|
+
- **Verificación**: Ejecutar `npx playwright test` antes y después de la migración
|
|
57
|
+
- **Riesgos**: Si la ruta de resolución de módulos cambia, la extensión podría no compilar
|
|
58
|
+
|
|
59
|
+
### AC-2: `npm install` instala todos los workspaces
|
|
60
|
+
- **Interpretación**: Un solo `npm install` en root resuelve deps de app, core y cli
|
|
61
|
+
- **Verificación**: `npm install && npm ls --ws`
|
|
62
|
+
- **Riesgos**: Versiones conflictivas de la misma dependencia entre packages
|
|
63
|
+
|
|
64
|
+
### AC-3: `npm run compile` compila todos los workspaces
|
|
65
|
+
- **Interpretación**: El comando root debe compilar TypeScript de todos los packages
|
|
66
|
+
- **Verificación**: `npm run compile` debe exit 0
|
|
67
|
+
- **Riesgos**: `tsconfig.json` actual asume `rootDir: ./src` — necesita ajuste
|
|
68
|
+
|
|
69
|
+
### AC-4: Cada package tiene `package.json` con `"private": true`
|
|
70
|
+
- **Interpretación**: Crear 3 package.json independientes
|
|
71
|
+
- **Verificación**: Verificar existencia y contenido de cada archivo
|
|
72
|
+
- **Riesgos**: Bajo
|
|
73
|
+
|
|
74
|
+
### AC-5: Root `package.json` contiene `"workspaces"`
|
|
75
|
+
- **Interpretación**: Configurar el campo `workspaces` apuntando a los 3 packages
|
|
76
|
+
- **Verificación**: Verificar campo en package.json
|
|
77
|
+
- **Riesgos**: Bajo
|
|
78
|
+
|
|
79
|
+
### AC-6: Dependencias inter-package vía `workspace:*`
|
|
80
|
+
- **Interpretación**: app debe declarar `"@agentic-workflow/core": "workspace:*"` en sus deps
|
|
81
|
+
- **Verificación**: `npm ls @agentic-workflow/core`
|
|
82
|
+
- **Riesgos**: Las rutas relativas de import en TypeScript deben cambiar de `../core/` a `@agentic-workflow/core`
|
|
83
|
+
|
|
84
|
+
### AC-7: Extensión VSCode funciona tras migración
|
|
85
|
+
- **Interpretación**: `npm run compile` + F5 Launch Extension funciona
|
|
86
|
+
- **Verificación**: Tests e2e (gate principal)
|
|
87
|
+
- **Riesgos**: El entry point `dist/extension/extension.js` debe seguir existiendo en la misma ruta
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## 4. Research técnico — Alternativas
|
|
92
|
+
|
|
93
|
+
- **Alternativa A: npm workspaces sin TypeScript project references**
|
|
94
|
+
- Cada package tiene `package.json` pero comparten un `tsconfig.json` root
|
|
95
|
+
- Los imports cambian de rutas relativas a package names (`@agentic-workflow/core`)
|
|
96
|
+
- TypeScript resuelve vía `node_modules` symlinks creados por npm workspaces
|
|
97
|
+
- Ventajas: Más simple, menos configuración TypeScript
|
|
98
|
+
- Inconvenientes: Sin compilación incremental, un tsconfig
|
|
99
|
+
|
|
100
|
+
- **Alternativa B: npm workspaces + TypeScript project references**
|
|
101
|
+
- Cada package tiene `package.json` Y `tsconfig.json` propio con `composite: true`
|
|
102
|
+
- Root tsconfig usa `references` para compilar en orden
|
|
103
|
+
- Ventajas: Compilación incremental, mejor aislamiento de tipos
|
|
104
|
+
- Inconvenientes: Mayor complejidad de configuración, cada package necesita `declaration: true`
|
|
105
|
+
|
|
106
|
+
**Decisión recomendada**: **Alternativa A** (npm workspaces sin TS project references), por minimizar cambios y riesgos. La Alternativa B se puede adoptar incrementalmente después.
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## 5. Agentes participantes
|
|
111
|
+
|
|
112
|
+
- **🏛️ architect-agent**
|
|
113
|
+
- Diseño de la estructura de workspaces
|
|
114
|
+
- Configuración de package.json files
|
|
115
|
+
- Actualización de tsconfig
|
|
116
|
+
- Actualización de import paths
|
|
117
|
+
|
|
118
|
+
- **🛡️ qa-agent**
|
|
119
|
+
- Verificación de tests e2e
|
|
120
|
+
- Validación de que compile funciona
|
|
121
|
+
|
|
122
|
+
**Handoffs**
|
|
123
|
+
- architect implementa → qa verifica con tests e2e
|
|
124
|
+
|
|
125
|
+
**Componentes necesarios**
|
|
126
|
+
- **Crear**: 3 `package.json` (app, core, cli)
|
|
127
|
+
- **Modificar**: Root `package.json`, `tsconfig.json`, imports en app (de relativo a package name)
|
|
128
|
+
- **Eliminar**: Ninguno
|
|
129
|
+
|
|
130
|
+
**Demo**: No aplica.
|
|
131
|
+
|
|
132
|
+
---
|
|
133
|
+
|
|
134
|
+
## 6. Impacto de la tarea
|
|
135
|
+
|
|
136
|
+
- **Arquitectura**: Se añaden 3 packages internos al monorepo. No cambia la estructura de carpetas.
|
|
137
|
+
- **APIs / contratos**: Los exports de cada package se definen en su `package.json`. Las interfaces TS no cambian.
|
|
138
|
+
- **Compatibilidad**: Los imports cambian de `../core/` a `@agentic-workflow/core`. Es un breaking change interno pero no afecta APIs externas.
|
|
139
|
+
- **Testing**: Los tests e2e son el gate. Los unit tests de app necesitarán ajustar imports.
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
## 7. Riesgos y mitigaciones
|
|
144
|
+
|
|
145
|
+
| Riesgo | Impacto | Mitigación |
|
|
146
|
+
|--------|---------|------------|
|
|
147
|
+
| `cli` importa `infrastructure` y `runtime` con rutas relativas — no son workspaces | Medio | Mantener rutas relativas en cli (no cambiar lo que no es workspace) |
|
|
148
|
+
| `tsconfig.json` rootDir/outDir debe ajustarse para workspaces | Alto | Mantener tsconfig root, los packages heredan o aplican paths |
|
|
149
|
+
| Ruta `dist/extension/extension.js` debe existir para VSCode | Alto | Asegurar que compile produce output en la misma ubicación |
|
|
150
|
+
| Symlinks de npm workspaces pueden causar issues en VSCode bundling | Medio | Verificar con test e2e completo |
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
## 8. Preguntas abiertas
|
|
155
|
+
Ninguna tras Fase 0.
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## 9. TODO Backlog
|
|
160
|
+
|
|
161
|
+
**Referencia**: `.agent/todo/`
|
|
162
|
+
**Estado actual**: No existe directorio todo
|
|
163
|
+
**Items relevantes para esta tarea**: Ninguno
|
|
164
|
+
**Impacto en el análisis**: Sin impacto
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
## 10. Aprobación
|
|
169
|
+
Este análisis **requiere aprobación explícita del desarrollador**.
|
|
170
|
+
|
|
171
|
+
```yaml
|
|
172
|
+
approval:
|
|
173
|
+
developer:
|
|
174
|
+
decision: SI
|
|
175
|
+
date: "2026-02-16T07:39:57+01:00"
|
|
176
|
+
comments: null
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
> Sin aprobación, esta fase **NO puede darse por completada** ni avanzar a Phase 3.
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
🏛️ **architect-agent**: Plan de implementación para T012 — Migración a npm workspaces.
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
artifact: plan
|
|
5
|
+
phase: phase-3-planning
|
|
6
|
+
owner: architect-agent
|
|
7
|
+
status: draft
|
|
8
|
+
related_task: 12-npm-workspaces
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Implementation Plan — 12-npm-workspaces
|
|
12
|
+
|
|
13
|
+
## 1. Resumen del plan
|
|
14
|
+
- **Contexto**: Convertir los módulos app, core y cli en packages npm privados dentro de un monorepo con npm workspaces.
|
|
15
|
+
- **Resultado esperado**: Proyecto configurado como npm workspaces con 3 packages independientes, build unificado funcional y tests e2e pasando.
|
|
16
|
+
- **Alcance**:
|
|
17
|
+
- **Incluye**: Crear 3 `package.json`, configurar workspaces en root, actualizar imports de app→core a package name, ajustar tsconfig
|
|
18
|
+
- **Excluye**: TypeScript project references (se puede adoptar después), cambio de rutas en cli (mantiene relativas a infrastructure/runtime)
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## 2. Inputs contractuales
|
|
23
|
+
- **Task**: `.agent/artifacts/12-npm-workspaces/task.md`
|
|
24
|
+
- **Analysis**: `.agent/artifacts/12-npm-workspaces/analysis.md`
|
|
25
|
+
- **Acceptance Criteria**: AC-1 a AC-7 (tests e2e como gate principal)
|
|
26
|
+
|
|
27
|
+
```yaml
|
|
28
|
+
plan:
|
|
29
|
+
workflows:
|
|
30
|
+
- domain: extension-modules
|
|
31
|
+
action: refactor
|
|
32
|
+
workflow: tasklifecycle-long
|
|
33
|
+
|
|
34
|
+
dispatch:
|
|
35
|
+
- domain: core-package
|
|
36
|
+
action: create
|
|
37
|
+
workflow: tasklifecycle-long
|
|
38
|
+
- domain: app-package
|
|
39
|
+
action: refactor
|
|
40
|
+
workflow: tasklifecycle-long
|
|
41
|
+
- domain: cli-package
|
|
42
|
+
action: create
|
|
43
|
+
workflow: tasklifecycle-long
|
|
44
|
+
- domain: root-config
|
|
45
|
+
action: refactor
|
|
46
|
+
workflow: tasklifecycle-long
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## 3. Desglose de implementación (pasos)
|
|
52
|
+
|
|
53
|
+
### Paso 1: Crear `package.json` para `@agentic-workflow/core`
|
|
54
|
+
- **Descripción**: Crear `src/extension/modules/core/package.json` con nombre `@agentic-workflow/core`, `private: true`, y las dependencias que usa core (`vscode` como peer, `@fastify/cors`, `fastify` si aplica)
|
|
55
|
+
- **Dependencias**: Ninguna
|
|
56
|
+
- **Entregables**: `src/extension/modules/core/package.json`
|
|
57
|
+
- **Agente responsable**: architect-agent
|
|
58
|
+
|
|
59
|
+
### Paso 2: Crear `package.json` para `@agentic-workflow/app`
|
|
60
|
+
- **Descripción**: Crear `src/extension/modules/app/package.json` con nombre `@agentic-workflow/app`, `private: true`, dependencia a `@agentic-workflow/core` via `workspace:*`, y sus propias deps
|
|
61
|
+
- **Dependencias**: Paso 1 (core package existe)
|
|
62
|
+
- **Entregables**: `src/extension/modules/app/package.json`
|
|
63
|
+
- **Agente responsable**: architect-agent
|
|
64
|
+
|
|
65
|
+
### Paso 3: Crear `package.json` para `@agentic-workflow/cli`
|
|
66
|
+
- **Descripción**: Crear `src/cli/package.json` con nombre `@agentic-workflow/cli`, `private: true`, y sus dependencias de CLI (`commander`, `@clack/prompts`)
|
|
67
|
+
- **Dependencias**: Ninguna
|
|
68
|
+
- **Entregables**: `src/cli/package.json`
|
|
69
|
+
- **Agente responsable**: architect-agent
|
|
70
|
+
|
|
71
|
+
### Paso 4: Configurar workspaces en root `package.json`
|
|
72
|
+
- **Descripción**: Añadir campo `"workspaces"` al root `package.json` apuntando a los 3 packages. Mover dependencias exclusivas de cada package a sus respectivos `package.json`
|
|
73
|
+
- **Dependencias**: Pasos 1-3
|
|
74
|
+
- **Entregables**: Root `package.json` actualizado
|
|
75
|
+
- **Agente responsable**: architect-agent
|
|
76
|
+
|
|
77
|
+
### Paso 5: Actualizar imports en `app` (de relativos a package name)
|
|
78
|
+
- **Descripción**: Cambiar todos los imports de `../core/...` y `../../core/...` en app a `@agentic-workflow/core`. Archivos afectados:
|
|
79
|
+
- `app/index.ts`: `'../core/index.js'` → `'@agentic-workflow/core'`
|
|
80
|
+
- `app/backend/index.ts`: `'../../core/backend/index.js'` → `'@agentic-workflow/core/backend'` o `'@agentic-workflow/core'`
|
|
81
|
+
- `app/background/index.ts`: `'../../core/index.js'` → `'@agentic-workflow/core'`
|
|
82
|
+
- `app/view/index.ts`: `'../../core/view/index.js'` → `'@agentic-workflow/core'`
|
|
83
|
+
- `app/test/unit/background.test.ts`: imports de core → package name
|
|
84
|
+
- **Dependencias**: Paso 4
|
|
85
|
+
- **Entregables**: Imports actualizados en 5 archivos
|
|
86
|
+
- **Agente responsable**: architect-agent
|
|
87
|
+
|
|
88
|
+
### Paso 6: Configurar exports en core `package.json`
|
|
89
|
+
- **Descripción**: Definir `"exports"` en core package.json para exponer los submodules necesarios (backend, view, messaging, etc.) via subpath exports
|
|
90
|
+
- **Dependencias**: Paso 5 (saber qué subpaths se necesitan)
|
|
91
|
+
- **Entregables**: `src/extension/modules/core/package.json` con exports map
|
|
92
|
+
- **Agente responsable**: architect-agent
|
|
93
|
+
|
|
94
|
+
### Paso 7: Ejecutar `npm install` y verificar symlinks
|
|
95
|
+
- **Descripción**: Ejecutar `npm install` desde root para que npm cree los symlinks de workspace. Verificar que `node_modules/@agentic-workflow/core` y `@agentic-workflow/app` existen
|
|
96
|
+
- **Dependencias**: Paso 6
|
|
97
|
+
- **Entregables**: `npm install` exitoso
|
|
98
|
+
- **Agente responsable**: architect-agent
|
|
99
|
+
|
|
100
|
+
### Paso 8: Verificar compilación
|
|
101
|
+
- **Descripción**: Ejecutar `npm run compile` y solucionar errores TypeScript si los hay
|
|
102
|
+
- **Dependencias**: Paso 7
|
|
103
|
+
- **Entregables**: Build exitoso
|
|
104
|
+
- **Agente responsable**: architect-agent
|
|
105
|
+
|
|
106
|
+
### Paso 9: Ejecutar tests e2e
|
|
107
|
+
- **Descripción**: Ejecutar `npm run test:e2e` (Playwright) y verificar que pasan
|
|
108
|
+
- **Dependencias**: Paso 8
|
|
109
|
+
- **Entregables**: Tests e2e passing
|
|
110
|
+
- **Agente responsable**: qa-agent
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## 4. Asignación de responsabilidades (Agentes)
|
|
115
|
+
|
|
116
|
+
- **🏛️ architect-agent**
|
|
117
|
+
- Crear package.json files (Pasos 1-4)
|
|
118
|
+
- Actualizar imports y exports (Pasos 5-6)
|
|
119
|
+
- Configurar y verificar build (Pasos 7-8)
|
|
120
|
+
|
|
121
|
+
- **🛡️ qa-agent**
|
|
122
|
+
- Ejecutar y verificar tests e2e (Paso 9)
|
|
123
|
+
- Validar todos los AC
|
|
124
|
+
|
|
125
|
+
**Handoffs**
|
|
126
|
+
- architect-agent → qa-agent: al completar Paso 8 (build exitoso)
|
|
127
|
+
|
|
128
|
+
**Componentes**
|
|
129
|
+
- **Crear**: 3 `package.json` (core, app, cli) — herramienta: editor de archivos
|
|
130
|
+
- **Modificar**: Root `package.json`, imports en app (5 archivos) — herramienta: editor de archivos
|
|
131
|
+
- **Eliminar**: Ninguno
|
|
132
|
+
|
|
133
|
+
**Demo**: No aplica.
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## 5. Estrategia de testing y validación
|
|
138
|
+
|
|
139
|
+
- **E2E (Gate principal)**
|
|
140
|
+
- Comando: `npx playwright test`
|
|
141
|
+
- Cobertura: Extensión VSCode se activa, módulos se registran, UI funciona
|
|
142
|
+
- Trazabilidad: AC-1
|
|
143
|
+
|
|
144
|
+
- **Unit tests**
|
|
145
|
+
- Comando: `npm run test:unit`
|
|
146
|
+
- Cobertura: `background.test.ts` — verificar que imports de core funcionan con package name
|
|
147
|
+
- Trazabilidad: AC-3, AC-6
|
|
148
|
+
|
|
149
|
+
- **Build verification**
|
|
150
|
+
- Comando: `npm run compile`
|
|
151
|
+
- Cobertura: TypeScript compila sin errores
|
|
152
|
+
- Trazabilidad: AC-3
|
|
153
|
+
|
|
154
|
+
- **Workspace verification**
|
|
155
|
+
- Comando: `npm ls --ws`
|
|
156
|
+
- Cobertura: Todos los workspaces resueltos correctamente
|
|
157
|
+
- Trazabilidad: AC-2, AC-5
|
|
158
|
+
|
|
159
|
+
**Trazabilidad AC → Tests**:
|
|
160
|
+
| AC | Test |
|
|
161
|
+
|----|------|
|
|
162
|
+
| AC-1: Tests e2e pasan | `npx playwright test` |
|
|
163
|
+
| AC-2: npm install funciona | `npm install && npm ls --ws` |
|
|
164
|
+
| AC-3: compile funciona | `npm run compile` |
|
|
165
|
+
| AC-4: package.json con private | Verificación manual de archivos |
|
|
166
|
+
| AC-5: workspaces configurado | `cat package.json \| grep workspaces` |
|
|
167
|
+
| AC-6: deps via workspace:* | `npm ls @agentic-workflow/core` |
|
|
168
|
+
| AC-7: VSCode funciona | `npx playwright test` (e2e) |
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
## 6. Plan de demo
|
|
173
|
+
No aplica (cambio de infraestructura sin impacto visible en UI).
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
## 7. Estimaciones y pesos de implementación
|
|
178
|
+
|
|
179
|
+
| Paso | Esfuerzo | Notas |
|
|
180
|
+
|------|----------|-------|
|
|
181
|
+
| 1-3: Crear package.json | Bajo | Archivos nuevos simples |
|
|
182
|
+
| 4: Configurar root workspaces | Bajo | Un campo en package.json |
|
|
183
|
+
| 5: Actualizar imports | Medio | 5 archivos, requiere cuidado |
|
|
184
|
+
| 6: Configurar exports | Medio | Subpath exports pueden ser complejos |
|
|
185
|
+
| 7: npm install | Bajo | Verificación |
|
|
186
|
+
| 8: Verificar compilación | Medio | Posibles errores de resolución |
|
|
187
|
+
| 9: Tests e2e | Bajo | Ejecución y validación |
|
|
188
|
+
|
|
189
|
+
**Suposiciones**: La estructura de carpetas no cambia. Los outputs de compilación deben mantenerse en las mismas rutas.
|
|
190
|
+
|
|
191
|
+
---
|
|
192
|
+
|
|
193
|
+
## 8. Puntos críticos y resolución
|
|
194
|
+
|
|
195
|
+
- **Punto crítico 1: Resolución de módulos TypeScript**
|
|
196
|
+
- Riesgo: TypeScript puede no resolver `@agentic-workflow/core` sin TS project references
|
|
197
|
+
- Impacto: Alto — build falla
|
|
198
|
+
- Estrategia: npm workspaces crea symlinks en `node_modules/`, TypeScript con `moduleResolution: NodeNext` los resuelve. Si falla, añadir `paths` en tsconfig.
|
|
199
|
+
|
|
200
|
+
- **Punto crítico 2: Output path de extensión VSCode**
|
|
201
|
+
- Riesgo: El `dist/extension/extension.js` podría generarse en otra ruta
|
|
202
|
+
- Impacto: Alto — extensión no arranca
|
|
203
|
+
- Estrategia: Mantener `rootDir: ./src` y `outDir: ./dist` en el tsconfig root. No crear tsconfig por package.
|
|
204
|
+
|
|
205
|
+
- **Punto crítico 3: Imports de subpaths en core**
|
|
206
|
+
- Riesgo: app importa de `core/backend/index.js` directamente — requiere subpath exports
|
|
207
|
+
- Impacto: Medio — imports específicos fallan
|
|
208
|
+
- Estrategia: Configurar `"exports"` en core package.json para cada subpath usado, o consolidar re-exports en core/index.ts.
|
|
209
|
+
|
|
210
|
+
---
|
|
211
|
+
|
|
212
|
+
## 9. Dependencias y compatibilidad
|
|
213
|
+
- **Dependencias internas**: app → core (workspace:*), cli → infrastructure/runtime (rutas relativas, sin cambio)
|
|
214
|
+
- **Dependencias externas**: npm 9+, Node 20+, TypeScript 5.9.3 — todas compatibles
|
|
215
|
+
- **Restricciones arquitectónicas**: Entry point VSCode (`main` en root package.json) debe apuntar a `./dist/extension/extension.js`
|
|
216
|
+
|
|
217
|
+
---
|
|
218
|
+
|
|
219
|
+
## 10. Criterios de finalización
|
|
220
|
+
- [ ] `npm install` exitoso desde root
|
|
221
|
+
- [ ] `npm run compile` exitoso
|
|
222
|
+
- [ ] `npx playwright test` pasa idénticamente
|
|
223
|
+
- [ ] 3 package.json creados con `"private": true`
|
|
224
|
+
- [ ] Root package.json tiene `"workspaces"` configurado
|
|
225
|
+
- [ ] Imports de app→core usan `@agentic-workflow/core`
|
|
226
|
+
|
|
227
|
+
---
|
|
228
|
+
|
|
229
|
+
## 11. Aprobación del desarrollador (OBLIGATORIA)
|
|
230
|
+
|
|
231
|
+
```yaml
|
|
232
|
+
approval:
|
|
233
|
+
developer:
|
|
234
|
+
decision: SI
|
|
235
|
+
date: "2026-02-16T07:42:30+01:00"
|
|
236
|
+
comments: null
|
|
237
|
+
```
|