sinapse-ai 5.0.8 → 6.0.1
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/.claude/CLAUDE.md +1 -1
- package/.claude/rules/agent-authority.md +10 -10
- package/.claude/rules/agent-memory-imports.md +4 -4
- package/.claude/rules/coderabbit-integration.md +4 -4
- package/.claude/rules/ids-principles.md +5 -5
- package/.claude/rules/story-lifecycle.md +15 -15
- package/.claude/rules/workflow-execution.md +11 -11
- package/.sinapse-ai/constitution.md +3 -3
- package/.sinapse-ai/core/code-intel/helpers/dev-helper.js +1 -1
- package/.sinapse-ai/core/code-intel/helpers/qa-helper.js +1 -1
- package/.sinapse-ai/core/code-intel/helpers/story-helper.js +7 -7
- package/.sinapse-ai/core/config/config-loader.js +1 -1
- package/.sinapse-ai/core/docs/session-update-pattern.md +1 -1
- package/.sinapse-ai/core/ids/framework-governor.js +4 -4
- package/.sinapse-ai/core/ids/index.js +1 -1
- package/.sinapse-ai/core/memory/gotchas-memory.js +1 -1
- package/.sinapse-ai/core/orchestration/agent-invoker.js +1 -1
- package/.sinapse-ai/core/orchestration/bob-surface-criteria.yaml +2 -2
- package/.sinapse-ai/core/orchestration/executor-assignment.js +1 -1
- package/.sinapse-ai/core/orchestration/executors/epic-6-executor.js +1 -1
- package/.sinapse-ai/core/orchestration/executors/epic-executor.js +1 -1
- package/.sinapse-ai/core/orchestration/greenfield-handler.js +4 -4
- package/.sinapse-ai/core/orchestration/master-orchestrator.js +1 -1
- package/.sinapse-ai/core/orchestration/skill-dispatcher.js +3 -3
- package/.sinapse-ai/core/orchestration/workflow-executor.js +1 -1
- package/.sinapse-ai/core/quality-gates/layer2-pr-automation.js +3 -3
- package/.sinapse-ai/core/quality-gates/layer3-human-review.js +1 -1
- package/.sinapse-ai/core/quality-gates/quality-gate-config.yaml +1 -1
- package/.sinapse-ai/core/session/context-loader.js +1 -1
- package/.sinapse-ai/data/agent-config-requirements.yaml +3 -3
- package/.sinapse-ai/data/entity-registry.yaml +2154 -2337
- package/.sinapse-ai/data/registry-update-log.jsonl +316 -0
- package/.sinapse-ai/data/sinapse-kb.md +13 -13
- package/.sinapse-ai/data/tech-presets/csharp.md +2 -2
- package/.sinapse-ai/data/tech-presets/go.md +2 -2
- package/.sinapse-ai/data/tech-presets/java.md +2 -2
- package/.sinapse-ai/data/tech-presets/nextjs-react.md +1 -1
- package/.sinapse-ai/data/tech-presets/php.md +2 -2
- package/.sinapse-ai/data/tech-presets/rust.md +2 -2
- package/.sinapse-ai/data/technical-preferences.md +1 -1
- package/.sinapse-ai/data/workflow-chains.yaml +15 -15
- package/.sinapse-ai/development/README.md +1 -1
- package/.sinapse-ai/development/agent-teams/team-qa-focused.yaml +7 -7
- package/.sinapse-ai/development/agents/analyst.md +6 -6
- package/.sinapse-ai/development/agents/architect.md +4 -4
- package/.sinapse-ai/development/agents/data-engineer.md +2 -2
- package/.sinapse-ai/development/agents/{dev.md → developer.md} +7 -7
- package/.sinapse-ai/development/agents/devops.md +4 -4
- package/.sinapse-ai/development/agents/{po → product-lead}/MEMORY.md +3 -3
- package/.sinapse-ai/development/agents/{po.md → product-lead.md} +25 -25
- package/.sinapse-ai/development/agents/{pm → project-lead}/MEMORY.md +2 -2
- package/.sinapse-ai/development/agents/{pm.md → project-lead.md} +15 -15
- package/.sinapse-ai/development/agents/{qa.md → quality-gate.md} +8 -8
- package/.sinapse-ai/development/agents/{sinapse-master.md → sinapse-orqx.md} +12 -12
- package/.sinapse-ai/development/agents/{sm.md → sprint-lead.md} +18 -18
- package/.sinapse-ai/development/agents/squad-creator.md +4 -4
- package/.sinapse-ai/development/agents/ux-design-expert.md +2 -2
- package/.sinapse-ai/development/checklists/brownfield-compatibility-checklist.md +1 -1
- package/.sinapse-ai/development/checklists/memory-audit-checklist.md +1 -1
- package/.sinapse-ai/development/scripts/agent-config-loader.js +1 -1
- package/.sinapse-ai/development/scripts/apply-inline-greeting-all-agents.js +1 -1
- package/.sinapse-ai/development/scripts/audit-agent-config.js +2 -2
- package/.sinapse-ai/development/scripts/batch-update-agents-session-context.js +1 -1
- package/.sinapse-ai/development/scripts/dev-context-loader.js +1 -1
- package/.sinapse-ai/development/scripts/populate-entity-registry.js +2 -2
- package/.sinapse-ai/development/scripts/test-greeting-system.js +4 -4
- package/.sinapse-ai/development/scripts/unified-activation-pipeline.js +2 -2
- package/.sinapse-ai/development/scripts/verify-workflow-gaps.js +9 -9
- package/.sinapse-ai/development/tasks/analyze-cross-artifact.md +1 -1
- package/.sinapse-ai/development/tasks/analyze-project-structure.md +4 -4
- package/.sinapse-ai/development/tasks/apply-qa-fixes.md +1 -1
- package/.sinapse-ai/development/tasks/architect-analyze-impact.md +1 -1
- package/.sinapse-ai/development/tasks/brownfield-create-epic.md +10 -10
- package/.sinapse-ai/development/tasks/brownfield-create-story.md +1 -1
- package/.sinapse-ai/development/tasks/build-autonomous.md +1 -1
- package/.sinapse-ai/development/tasks/cleanup-utilities.md +6 -6
- package/.sinapse-ai/development/tasks/create-agent.md +1 -1
- package/.sinapse-ai/development/tasks/create-brownfield-story.md +4 -4
- package/.sinapse-ai/development/tasks/create-next-story.md +12 -12
- package/.sinapse-ai/development/tasks/create-service.md +2 -2
- package/.sinapse-ai/development/tasks/create-suite.md +1 -1
- package/.sinapse-ai/development/tasks/dev-backlog-debt.md +3 -3
- package/.sinapse-ai/development/tasks/dev-develop-story.md +5 -5
- package/.sinapse-ai/development/tasks/environment-bootstrap.md +2 -2
- package/.sinapse-ai/development/tasks/execute-checklist.md +1 -1
- package/.sinapse-ai/development/tasks/execute-epic-plan.md +11 -11
- package/.sinapse-ai/development/tasks/extract-patterns.md +2 -2
- package/.sinapse-ai/development/tasks/facilitate-brainstorming-session.md +2 -2
- package/.sinapse-ai/development/tasks/github-devops-github-pr-automation.md +1 -1
- package/.sinapse-ai/development/tasks/github-devops-pre-push-quality-gate.md +1 -1
- package/.sinapse-ai/development/tasks/ids-governor.md +3 -3
- package/.sinapse-ai/development/tasks/next.md +2 -2
- package/.sinapse-ai/development/tasks/orchestrate-resume.md +1 -1
- package/.sinapse-ai/development/tasks/orchestrate-status.md +1 -1
- package/.sinapse-ai/development/tasks/orchestrate-stop.md +1 -1
- package/.sinapse-ai/development/tasks/orchestrate.md +1 -1
- package/.sinapse-ai/development/tasks/patterns.md +2 -2
- package/.sinapse-ai/development/tasks/plan-create-context.md +2 -2
- package/.sinapse-ai/development/tasks/plan-execute-subtask.md +3 -3
- package/.sinapse-ai/development/tasks/po-close-story.md +3 -3
- package/.sinapse-ai/development/tasks/project-status.md +2 -2
- package/.sinapse-ai/development/tasks/qa-after-creation.md +2 -2
- package/.sinapse-ai/development/tasks/qa-backlog-add-followup.md +3 -3
- package/.sinapse-ai/development/tasks/qa-create-fix-request.md +8 -8
- package/.sinapse-ai/development/tasks/qa-evidence-requirements.md +1 -1
- package/.sinapse-ai/development/tasks/qa-false-positive-detection.md +1 -1
- package/.sinapse-ai/development/tasks/qa-fix-issues.md +10 -10
- package/.sinapse-ai/development/tasks/qa-gate.md +3 -3
- package/.sinapse-ai/development/tasks/qa-review-build.md +3 -3
- package/.sinapse-ai/development/tasks/qa-review-story.md +2 -2
- package/.sinapse-ai/development/tasks/qa-run-tests.md +1 -1
- package/.sinapse-ai/development/tasks/run-workflow-engine.md +1 -1
- package/.sinapse-ai/development/tasks/run-workflow.md +1 -1
- package/.sinapse-ai/development/tasks/security-scan.md +2 -2
- package/.sinapse-ai/development/tasks/setup-llm-routing.md +1 -1
- package/.sinapse-ai/development/tasks/spec-critique.md +4 -4
- package/.sinapse-ai/development/tasks/spec-gather-requirements.md +4 -4
- package/.sinapse-ai/development/tasks/spec-write-spec.md +2 -2
- package/.sinapse-ai/development/tasks/story-checkpoint.md +3 -3
- package/.sinapse-ai/development/tasks/sync-registry-intel.md +1 -1
- package/.sinapse-ai/development/tasks/validate-agents.md +1 -1
- package/.sinapse-ai/development/tasks/validate-next-story.md +10 -10
- package/.sinapse-ai/development/tasks/validate-workflow.md +1 -1
- package/.sinapse-ai/development/tasks/verify-subtask.md +2 -2
- package/.sinapse-ai/development/templates/code-intel-integration-pattern.md +3 -3
- package/.sinapse-ai/development/templates/subagent-step-prompt.md +2 -2
- package/.sinapse-ai/development/workflows/README.md +2 -2
- package/.sinapse-ai/development/workflows/auto-worktree.yaml +5 -5
- package/.sinapse-ai/development/workflows/brownfield-discovery.yaml +11 -11
- package/.sinapse-ai/development/workflows/brownfield-fullstack.yaml +6 -6
- package/.sinapse-ai/development/workflows/brownfield-service.yaml +5 -5
- package/.sinapse-ai/development/workflows/brownfield-ui.yaml +5 -5
- package/.sinapse-ai/development/workflows/development-cycle.yaml +10 -10
- package/.sinapse-ai/development/workflows/epic-orchestration.yaml +6 -6
- package/.sinapse-ai/development/workflows/greenfield-fullstack.yaml +7 -7
- package/.sinapse-ai/development/workflows/greenfield-service.yaml +5 -5
- package/.sinapse-ai/development/workflows/greenfield-ui.yaml +5 -5
- package/.sinapse-ai/development/workflows/qa-loop.yaml +1 -1
- package/.sinapse-ai/development/workflows/spec-pipeline.yaml +2 -2
- package/.sinapse-ai/development/workflows/story-development-cycle.yaml +1 -1
- package/.sinapse-ai/docs/standards/AGENT-PERSONALIZATION-STANDARD-V1.md +2 -2
- package/.sinapse-ai/docs/standards/OPEN-SOURCE-VS-SERVICE-DIFFERENCES.md +1 -1
- package/.sinapse-ai/docs/standards/QUALITY-GATES-SPECIFICATION.md +1 -1
- package/.sinapse-ai/docs/standards/SINAPSE-LIVRO-DE-OURO-V2.1-COMPLETE.md +6 -6
- package/.sinapse-ai/docs/standards/STANDARDS-INDEX.md +2 -2
- package/.sinapse-ai/docs/standards/STORY-TEMPLATE-V2-SPECIFICATION.md +6 -6
- package/.sinapse-ai/infrastructure/scripts/config-loader.js +2 -2
- package/.sinapse-ai/infrastructure/scripts/gotchas-documenter.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/ide-sync/README.md +3 -3
- package/.sinapse-ai/infrastructure/scripts/ide-sync/gemini-commands.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/ide-sync/index.js +2 -2
- package/.sinapse-ai/infrastructure/scripts/ide-sync/redirect-generator.js +2 -2
- package/.sinapse-ai/infrastructure/scripts/migrate-agent.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/performance-tracker.js +2 -2
- package/.sinapse-ai/infrastructure/scripts/qa-report-generator.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/recovery-tracker.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/rollback-manager.js +1 -1
- package/.sinapse-ai/infrastructure/templates/core-config/core-config-brownfield.tmpl.yaml +1 -1
- package/.sinapse-ai/infrastructure/templates/core-config/core-config-greenfield.tmpl.yaml +1 -1
- package/.sinapse-ai/infrastructure/templates/sinapse-sync.yaml.template +1 -1
- package/.sinapse-ai/install-manifest.yaml +344 -344
- package/.sinapse-ai/monitor/hooks/lib/enrich.py +1 -1
- package/.sinapse-ai/product/checklists/self-critique-checklist.md +1 -1
- package/.sinapse-ai/product/checklists/story-draft-checklist.md +3 -3
- package/.sinapse-ai/product/templates/command-rationalization-matrix.md +3 -3
- package/.sinapse-ai/product/templates/design-story-tmpl.yaml +4 -4
- package/.sinapse-ai/product/templates/ide-rules/antigravity-rules.md +1 -1
- package/.sinapse-ai/product/templates/ide-rules/claude-rules.md +2 -2
- package/.sinapse-ai/product/templates/ide-rules/codex-rules.md +6 -6
- package/.sinapse-ai/product/templates/ide-rules/cursor-rules.md +1 -1
- package/.sinapse-ai/product/templates/personalized-agent-template.md +1 -1
- package/.sinapse-ai/product/templates/personalized-task-template.md +1 -1
- package/.sinapse-ai/product/templates/personalized-template-file.yaml +1 -1
- package/.sinapse-ai/product/templates/personalized-workflow-template.yaml +3 -3
- package/.sinapse-ai/product/templates/story-tmpl.yaml +8 -8
- package/.sinapse-ai/schemas/README.md +15 -15
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/package-lock.json +2 -2
- package/.sinapse-ai/user-guide.md +4 -4
- package/.sinapse-ai/working-in-the-brownfield.md +3 -3
- package/LICENSE +4 -4
- package/README.en.md +6 -6
- package/README.md +8 -8
- package/bin/cli.js +13 -11
- package/bin/sinapse.js +17 -0
- package/docs/00-shared-activation-pipeline.md +16 -16
- package/docs/FEATURE_PROCESS.md +1 -1
- package/docs/ORQX-PLAN.md +264 -0
- package/docs/core-architecture.md +2 -2
- package/docs/en/sinapse-agent-flows/README.md +2 -2
- package/docs/en/sinapse-agent-flows/dev-system.md +2 -2
- package/docs/en/sinapse-agent-flows/pm-system.md +2 -2
- package/docs/en/sinapse-agent-flows/qa-system.md +2 -2
- package/docs/en/sinapse-agent-flows/{sinapse-master-system.md → sinapse-orqx-system.md} +5 -5
- package/docs/en/sinapse-agent-flows/sm-system.md +2 -2
- package/docs/framework/entity-layer-classification.md +2 -2
- package/docs/framework/source-tree.md +17 -17
- package/docs/getting-started.md +13 -13
- package/docs/guides/IDS-CONCEITOS-EXPLICADOS.md +17 -17
- package/docs/guides/MEMORY-INTEGRATION.md +3 -3
- package/docs/guides/MEMORY-INTELLIGENCE-SYSTEM.md +4 -4
- package/docs/guides/ade-guide.md +25 -25
- package/docs/guides/agent-selection-guide.md +36 -36
- package/docs/guides/agents/ANALYST-SYSTEM.md +5 -5
- package/docs/guides/agents/ARCHITECT-SYSTEM.md +9 -9
- package/docs/guides/agents/DATA-ENGINEER-SYSTEM.md +8 -8
- package/docs/guides/agents/DEV-SYSTEM.md +27 -27
- package/docs/guides/agents/DEVOPS-SYSTEM.md +5 -5
- package/docs/guides/agents/PM-SYSTEM.md +24 -24
- package/docs/guides/agents/QA-SYSTEM.md +24 -24
- package/docs/guides/agents/SINAPSE-MASTER-SYSTEM.md +26 -26
- package/docs/guides/agents/SM-SYSTEM.md +31 -31
- package/docs/guides/agents/SQUAD-CREATOR-SYSTEM.md +2 -2
- package/docs/guides/agents/UX-DESIGN-EXPERT-SYSTEM.md +10 -10
- package/docs/guides/agents/traces/00-shared-activation-pipeline.md +16 -16
- package/docs/guides/agents/traces/00-shared-activation-pipeline.v1-act8.md +16 -16
- package/docs/guides/agents/traces/README.md +20 -20
- package/docs/guides/agents/traces/analyst-execution-trace.md +6 -6
- package/docs/guides/agents/traces/architect-execution-trace.md +3 -3
- package/docs/guides/agents/traces/data-engineer-execution-trace.md +4 -4
- package/docs/guides/agents/traces/dev-execution-trace.md +12 -12
- package/docs/guides/agents/traces/devops-execution-trace.md +6 -6
- package/docs/guides/agents/traces/pm-execution-trace.md +14 -14
- package/docs/guides/agents/traces/po-execution-trace.md +17 -17
- package/docs/guides/agents/traces/qa-execution-trace.md +15 -15
- package/docs/guides/agents/traces/{sinapse-master-execution-trace.md → sinapse-orqx-execution-trace.md} +22 -22
- package/docs/guides/agents/traces/sm-execution-trace.md +15 -15
- package/docs/guides/agents/traces/squad-creation-execution-trace.md +9 -9
- package/docs/guides/agents/traces/ux-design-expert-execution-trace.md +4 -4
- package/docs/guides/api-reference.md +27 -27
- package/docs/guides/coderabbit/README.md +9 -9
- package/docs/guides/contextual-greeting-system-guide.md +5 -5
- package/docs/guides/development-setup.md +1 -1
- package/docs/guides/project-status-feature.md +2 -2
- package/docs/guides/quality-dashboard.md +2 -2
- package/docs/guides/quality-gates.md +6 -6
- package/docs/guides/template-engine-v2.md +2 -2
- package/docs/guides/user-guide.md +13 -13
- package/docs/guides/workflows/AUTO-WORKTREE-WORKFLOW.md +3 -3
- package/docs/guides/workflows/BROWNFIELD-DISCOVERY-WORKFLOW.md +6 -6
- package/docs/guides/workflows/BROWNFIELD-FULLSTACK-WORKFLOW.md +30 -30
- package/docs/guides/workflows/BROWNFIELD-SERVICE-WORKFLOW.md +38 -38
- package/docs/guides/workflows/BROWNFIELD-UI-WORKFLOW.md +25 -25
- package/docs/guides/workflows/GREENFIELD-FULLSTACK-WORKFLOW.md +37 -37
- package/docs/guides/workflows/GREENFIELD-SERVICE-WORKFLOW.md +5 -5
- package/docs/guides/workflows/GREENFIELD-UI-WORKFLOW.md +19 -19
- package/docs/guides/workflows/QA-LOOP-WORKFLOW.md +13 -13
- package/docs/guides/workflows/SINAPSE-COMPLETE-CROSS-REFERENCE-ANALYSIS.md +19 -19
- package/docs/guides/workflows/SPEC-PIPELINE-WORKFLOW.md +25 -25
- package/docs/guides/workflows/STORY-DEVELOPMENT-CYCLE-WORKFLOW.md +28 -28
- package/docs/guides/workflows/WORKFLOW-TASK-AGENT-ANALYSIS.md +94 -94
- package/docs/guides/workflows/xref-phase2-templates.md +29 -29
- package/docs/guides/workflows/xref-phase3-scripts.md +33 -33
- package/docs/guides/workflows/xref-phase4-infra.md +2 -2
- package/docs/guides/workflows/xref-phase6-supporting.md +1 -1
- package/docs/guides/workflows-guide.md +2 -2
- package/docs/installation/faq.md +1 -1
- package/docs/installation/troubleshooting.md +2 -2
- package/docs/installation/v4-quick-start.md +2 -2
- package/docs/prd-cli-graph-dashboard.md +1 -1
- package/docs/pt/DOCUMENTATION-ROADMAP.md +1 -1
- package/docs/pt/FEATURE_PROCESS.md +1 -1
- package/docs/pt/README.md +2 -2
- package/docs/pt/agents/archetype-rationale.md +4 -4
- package/docs/pt/agents/persona-definitions.md +9 -9
- package/docs/pt/architecture/ADE-ARCHITECT-HANDOFF.md +15 -15
- package/docs/pt/architecture/ADE-EPIC1-HANDOFF.md +2 -2
- package/docs/pt/architecture/ADE-EPIC2-HANDOFF.md +2 -2
- package/docs/pt/architecture/ADE-EPIC3-HANDOFF.md +8 -8
- package/docs/pt/architecture/ade-architecture.md +4 -4
- package/docs/pt/architecture/adr/adr-hcs-health-check-system.md +3 -3
- package/docs/pt/architecture/agent-config-audit.md +4 -4
- package/docs/pt/architecture/agent-responsibility-matrix.md +20 -20
- package/docs/pt/architecture/agent-tool-integration-guide.md +8 -8
- package/docs/pt/architecture/contribution-workflow-research.md +1 -1
- package/docs/pt/architecture/dashboard-architecture.md +1 -1
- package/docs/pt/architecture/hcs-check-specifications.md +1 -1
- package/docs/pt/architecture/hcs-execution-modes.md +1 -1
- package/docs/pt/architecture/hcs-self-healing-spec.md +1 -1
- package/docs/pt/architecture/high-level-architecture.md +1 -1
- package/docs/pt/architecture/module-system.md +1 -1
- package/docs/pt/architecture/source-tree.md +1 -1
- package/docs/pt/architecture/squad-improvement-recommended-approach.md +2 -2
- package/docs/pt/architecture/utility-integration-guide.md +2 -2
- package/docs/pt/contributing.md +1 -1
- package/docs/pt/core-architecture.md +2 -2
- package/docs/pt/framework/source-tree.md +1 -1
- package/docs/pt/guides/ade-guide.md +25 -25
- package/docs/pt/guides/agent-selection-guide.md +36 -36
- package/docs/pt/guides/api-reference.md +25 -25
- package/docs/pt/guides/contextual-greeting-system-guide.md +5 -5
- package/docs/pt/guides/development-setup.md +1 -1
- package/docs/pt/guides/project-status-feature.md +2 -2
- package/docs/pt/guides/quality-dashboard.md +2 -2
- package/docs/pt/guides/quality-gates.md +6 -6
- package/docs/pt/guides/template-engine-v2.md +2 -2
- package/docs/pt/guides/user-guide.md +8 -8
- package/docs/pt/guides/workflows-guide.md +2 -2
- package/docs/pt/installation/faq.md +1 -1
- package/docs/pt/installation/troubleshooting.md +2 -2
- package/docs/pt/installation/v4-quick-start.md +2 -2
- package/docs/pt/platforms/antigravity.md +9 -9
- package/docs/pt/platforms/cursor.md +15 -15
- package/docs/pt/platforms/gemini-cli.md +3 -3
- package/docs/pt/roadmap.md +1 -1
- package/docs/pt/sinapse-nomenclature-specification.md +15 -15
- package/docs/pt/specifications/docs-agent-technical-specification.md +11 -11
- package/docs/roadmap.md +1 -1
- package/docs/sinapse-agent-flows/README.md +2 -2
- package/docs/sinapse-agent-flows/analyst-system.md +5 -5
- package/docs/sinapse-agent-flows/architect-system.md +9 -9
- package/docs/sinapse-agent-flows/data-engineer-system.md +8 -8
- package/docs/sinapse-agent-flows/dev-system.md +27 -27
- package/docs/sinapse-agent-flows/devops-system.md +5 -5
- package/docs/sinapse-agent-flows/pm-system.md +24 -24
- package/docs/sinapse-agent-flows/qa-system.md +24 -24
- package/docs/sinapse-agent-flows/{sinapse-master-system.md → sinapse-orqx-system.md} +26 -26
- package/docs/sinapse-agent-flows/sm-system.md +31 -31
- package/docs/sinapse-agent-flows/squad-creator-system.md +2 -2
- package/docs/sinapse-agent-flows/ux-design-expert-system.md +10 -10
- package/docs/sinapse-workflows/auto-worktree-workflow.md +3 -3
- package/docs/sinapse-workflows/brownfield-discovery-workflow.md +6 -6
- package/docs/sinapse-workflows/brownfield-fullstack-workflow.md +30 -30
- package/docs/sinapse-workflows/brownfield-service-workflow.md +38 -38
- package/docs/sinapse-workflows/brownfield-ui-workflow.md +25 -25
- package/docs/sinapse-workflows/greenfield-fullstack-workflow.md +37 -37
- package/docs/sinapse-workflows/greenfield-service-workflow.md +5 -5
- package/docs/sinapse-workflows/greenfield-ui-workflow.md +19 -19
- package/docs/sinapse-workflows/qa-loop-workflow.md +13 -13
- package/docs/sinapse-workflows/spec-pipeline-workflow.md +25 -25
- package/docs/sinapse-workflows/story-development-cycle-workflow.md +28 -28
- package/package.json +1 -1
- package/packages/gemini-sinapse-extension/README.md +1 -1
- package/packages/gemini-sinapse-extension/commands/lib/agent-launcher.js +1 -1
- package/packages/gemini-sinapse-extension/commands/{sinapse-master.js → sinapse-orqx.js} +1 -1
- package/packages/gemini-sinapse-extension/extension.json +3 -3
- package/packages/gemini-sinapse-extension/gemini-extension.json +3 -3
- package/packages/installer/src/config/configure-environment.js +2 -2
- package/packages/installer/src/updater/index.js +105 -0
- package/packages/installer/src/wizard/feedback.js +38 -30
- package/packages/installer/src/wizard/i18n.js +25 -182
- package/packages/installer/src/wizard/ide-config-generator.js +1 -1
- package/packages/installer/src/wizard/index.js +253 -69
- package/packages/installer/src/wizard/questions.js +35 -7
- package/packages/installer/tests/unit/artifact-copy-pipeline/artifact-copy-pipeline.test.js +1 -1
- package/packages/sinapse-install/README.md +1 -1
- package/packages/sinapse-install/src/installer.js +1 -1
- package/scripts/package-synapse.js +1 -1
- package/sinapse/agents/{sinapse-master.md → sinapse-orqx.md} +18 -18
- package/sinapse/knowledge-base/cross-squad-patterns.md +1 -1
- package/sinapse/knowledge-base/routing-catalog.md +1 -1
- package/sinapse/squad.yaml +1 -1
- package/sinapse/tasks/compose-multi-squad-plan.md +2 -2
- package/sinapse/tasks/coordinate-cross-squad.md +2 -2
- package/sinapse/tasks/diagnose-and-route.md +2 -2
- package/sinapse/tasks/onboard-user.md +2 -2
- package/sinapse/tasks/resolve-conflict.md +2 -2
- package/sinapse/tasks/squad-status-report.md +2 -2
- package/sinapse/tasks/strategic-brief.md +3 -3
- package/squads/squad-animations/agents/animations-orqx.md +2 -2
- package/squads/squad-brand/agents/brand-creative-engineer.md +1 -1
- package/squads/squad-brand/agents/brand-motion-vfx.md +1 -1
- package/squads/squad-brand/agents/brand-orqx.md +2 -2
- package/squads/squad-brand/agents/brand-sonic-designer.md +1 -1
- package/squads/squad-brand/agents/brand-system-architect.md +1 -1
- package/squads/squad-claude/agents/claude-orqx.md +2 -2
- package/squads/squad-cloning/agents/cloning-orqx.md +3 -3
- package/squads/squad-commercial/agents/commercial-orqx.md +1 -1
- package/squads/squad-commercial/agents/cs-business-auditor.md +1 -1
- package/squads/squad-commercial/agents/cs-client-success.md +1 -1
- package/squads/squad-commercial/agents/cs-crm-specialist.md +1 -1
- package/squads/squad-commercial/agents/cs-funnel-architect.md +1 -1
- package/squads/squad-commercial/agents/cs-lead-generation-strategist.md +1 -1
- package/squads/squad-commercial/agents/cs-offer-designer.md +1 -1
- package/squads/squad-commercial/agents/cs-revops-analyst.md +1 -1
- package/squads/squad-commercial/agents/cs-sales-closer.md +1 -1
- package/squads/squad-commercial/agents/cs-sales-enablement.md +1 -1
- package/squads/squad-commercial/knowledge-base/ai-as-competitive-infrastructure.md +1 -1
- package/squads/squad-content/agents/content-orqx.md +2 -2
- package/squads/squad-content/knowledge-base/ai-leverage-content-framework.md +1 -1
- package/squads/squad-copy/agents/copy-strategist.md +3 -3
- package/squads/squad-copy/knowledge-base/consequence-headline-patterns.md +1 -1
- package/squads/squad-council/agents/council-orqx.md +1 -1
- package/squads/squad-courses/agents/courses-orqx.md +1 -1
- package/squads/squad-cybersecurity/agents/cyber-orqx.md +2 -2
- package/squads/squad-design/agents/design-orqx.md +2 -2
- package/squads/squad-finance/agents/finance-orqx.md +2 -2
- package/squads/squad-growth/agents/growth-orqx.md +2 -2
- package/squads/squad-paidmedia/agents/paidmedia-orqx.md +2 -2
- package/squads/squad-product/agents/product-orqx.md +2 -2
- package/squads/squad-research/agents/research-orqx.md +2 -2
- package/squads/squad-research/tasks/create-executive-briefing.md +1 -1
- package/squads/squad-research/tasks/create-insight-deck.md +1 -1
- package/squads/squad-research/tasks/forecast-industry-trends.md +1 -1
- package/squads/squad-research/tasks/generate-actionable-recommendations.md +2 -2
- package/squads/squad-research/tasks/run-scenario-planning.md +2 -2
- package/squads/squad-research/tasks/synthesize-research-report.md +2 -2
- package/squads/squad-research/tasks/track-emerging-technologies.md +1 -1
- package/squads/squad-storytelling/agents/storytelling-orqx.md +2 -2
- package/docs/es/CHANGELOG.md +0 -117
- package/docs/es/DOCUMENTATION-ROADMAP.md +0 -216
- package/docs/es/ENVIRONMENT.md +0 -140
- package/docs/es/FEATURE_PROCESS.md +0 -99
- package/docs/es/GUIDING-PRINCIPLES.md +0 -101
- package/docs/es/README.md +0 -134
- package/docs/es/agent-reference-guide.md +0 -570
- package/docs/es/agents/archetype-rationale.md +0 -566
- package/docs/es/agents/persona-definitions.md +0 -501
- package/docs/es/api/squads-api.md +0 -753
- package/docs/es/architecture/ADE-AGENT-CHANGES.md +0 -469
- package/docs/es/architecture/ADE-ARCHITECT-HANDOFF.md +0 -338
- package/docs/es/architecture/ADE-EPIC1-HANDOFF.md +0 -85
- package/docs/es/architecture/ADE-EPIC2-HANDOFF.md +0 -106
- package/docs/es/architecture/ADE-EPIC3-HANDOFF.md +0 -327
- package/docs/es/architecture/ARCHITECTURE-INDEX.md +0 -188
- package/docs/es/architecture/ade-architecture.md +0 -586
- package/docs/es/architecture/adr/ADR-COLLAB-1-current-state-audit.md +0 -259
- package/docs/es/architecture/adr/ADR-COLLAB-2-proposed-configuration.md +0 -518
- package/docs/es/architecture/adr/adr-hcs-health-check-system.md +0 -489
- package/docs/es/architecture/adr/adr-isolated-vm-decision.md +0 -70
- package/docs/es/architecture/agent-config-audit.md +0 -222
- package/docs/es/architecture/agent-responsibility-matrix.md +0 -444
- package/docs/es/architecture/agent-tool-integration-guide.md +0 -334
- package/docs/es/architecture/ci-cd.md +0 -151
- package/docs/es/architecture/coding-standards.md +0 -896
- package/docs/es/architecture/contribution-workflow-research.md +0 -376
- package/docs/es/architecture/dashboard-architecture.md +0 -926
- package/docs/es/architecture/dashboard-realtime.md +0 -1253
- package/docs/es/architecture/hcs-check-specifications.md +0 -897
- package/docs/es/architecture/hcs-execution-modes.md +0 -519
- package/docs/es/architecture/hcs-self-healing-spec.md +0 -695
- package/docs/es/architecture/high-level-architecture.md +0 -357
- package/docs/es/architecture/introduction.md +0 -21
- package/docs/es/architecture/mcp-api-keys-management.md +0 -246
- package/docs/es/architecture/mcp-system-diagrams.md +0 -113
- package/docs/es/architecture/module-system.md +0 -382
- package/docs/es/architecture/multi-repo-strategy.md +0 -390
- package/docs/es/architecture/source-tree.md +0 -708
- package/docs/es/architecture/squad-improvement-analysis.md +0 -204
- package/docs/es/architecture/squad-improvement-recommended-approach.md +0 -390
- package/docs/es/architecture/tech-stack.md +0 -806
- package/docs/es/architecture/utility-integration-guide.md +0 -358
- package/docs/es/community/README-community-snippet-core.md +0 -57
- package/docs/es/community/README-community-snippet-mcp.md +0 -49
- package/docs/es/community/README-community-snippet-squads.md +0 -40
- package/docs/es/community.md +0 -227
- package/docs/es/core-architecture.md +0 -229
- package/docs/es/docker-mcp-setup.md +0 -426
- package/docs/es/framework/README.md +0 -99
- package/docs/es/framework/coding-standards.md +0 -892
- package/docs/es/framework/source-tree.md +0 -725
- package/docs/es/framework/tech-stack.md +0 -802
- package/docs/es/getting-started.md +0 -572
- package/docs/es/git-workflow-guide.md +0 -995
- package/docs/es/guides/README.md +0 -133
- package/docs/es/guides/ade-guide.md +0 -452
- package/docs/es/guides/agent-selection-guide.md +0 -295
- package/docs/es/guides/api-reference.md +0 -899
- package/docs/es/guides/build-recovery-guide.md +0 -270
- package/docs/es/guides/contextual-greeting-system-guide.md +0 -387
- package/docs/es/guides/contributing-squads.md +0 -256
- package/docs/es/guides/development-setup.md +0 -1111
- package/docs/es/guides/ide-sync-guide.md +0 -194
- package/docs/es/guides/installation-troubleshooting.md +0 -327
- package/docs/es/guides/llm-routing.md +0 -312
- package/docs/es/guides/mcp/desktop-commander.md +0 -368
- package/docs/es/guides/mcp/docker-gateway-tutorial.md +0 -336
- package/docs/es/guides/mcp-global-setup.md +0 -663
- package/docs/es/guides/permission-modes.md +0 -313
- package/docs/es/guides/project-status-feature.md +0 -473
- package/docs/es/guides/quality-dashboard.md +0 -367
- package/docs/es/guides/quality-gates.md +0 -614
- package/docs/es/guides/security-hardening.md +0 -1359
- package/docs/es/guides/service-discovery.md +0 -524
- package/docs/es/guides/squad-examples/README.md +0 -64
- package/docs/es/guides/squad-migration.md +0 -356
- package/docs/es/guides/squads-guide.md +0 -836
- package/docs/es/guides/squads-overview.md +0 -332
- package/docs/es/guides/template-engine-v2.md +0 -484
- package/docs/es/guides/testing-guide.md +0 -1215
- package/docs/es/guides/user-guide.md +0 -452
- package/docs/es/guides/workflows-guide.md +0 -400
- package/docs/es/how-to-contribute-with-pull-requests.md +0 -160
- package/docs/es/ide-integration.md +0 -425
- package/docs/es/installation/README.md +0 -108
- package/docs/es/installation/faq.md +0 -616
- package/docs/es/installation/linux.md +0 -311
- package/docs/es/installation/macos.md +0 -189
- package/docs/es/installation/troubleshooting.md +0 -735
- package/docs/es/installation/v4-quick-start.md +0 -269
- package/docs/es/installation/windows.md +0 -342
- package/docs/es/meta-agent-commands.md +0 -990
- package/docs/es/migration-guide.md +0 -310
- package/docs/es/npx-install.md +0 -193
- package/docs/es/performance-tuning-guide.md +0 -707
- package/docs/es/platforms/README.md +0 -283
- package/docs/es/platforms/antigravity.md +0 -510
- package/docs/es/platforms/claude-code.md +0 -650
- package/docs/es/platforms/cursor.md +0 -635
- package/docs/es/platforms/gemini-cli.md +0 -483
- package/docs/es/platforms/github-copilot.md +0 -480
- package/docs/es/roadmap.md +0 -119
- package/docs/es/security-best-practices.md +0 -613
- package/docs/es/security.md +0 -124
- package/docs/es/sinapse-agent-flows/README.md +0 -190
- package/docs/es/sinapse-agent-flows/analyst-system.md +0 -36
- package/docs/es/sinapse-agent-flows/architect-system.md +0 -36
- package/docs/es/sinapse-agent-flows/data-engineer-system.md +0 -36
- package/docs/es/sinapse-agent-flows/dev-system.md +0 -36
- package/docs/es/sinapse-agent-flows/devops-system.md +0 -36
- package/docs/es/sinapse-agent-flows/pm-system.md +0 -36
- package/docs/es/sinapse-agent-flows/qa-system.md +0 -36
- package/docs/es/sinapse-agent-flows/sinapse-master-system.md +0 -36
- package/docs/es/sinapse-agent-flows/sm-system.md +0 -36
- package/docs/es/sinapse-agent-flows/squad-creator-system.md +0 -36
- package/docs/es/sinapse-agent-flows/ux-design-expert-system.md +0 -36
- package/docs/es/sinapse-nomenclature-specification.md +0 -673
- package/docs/es/sinapse-workflows/README.md +0 -247
- package/docs/es/sinapse-workflows/auto-worktree-workflow.md +0 -39
- package/docs/es/sinapse-workflows/brownfield-discovery-workflow.md +0 -41
- package/docs/es/sinapse-workflows/brownfield-fullstack-workflow.md +0 -42
- package/docs/es/sinapse-workflows/brownfield-service-workflow.md +0 -43
- package/docs/es/sinapse-workflows/brownfield-ui-workflow.md +0 -42
- package/docs/es/sinapse-workflows/design-system-build-quality-workflow.md +0 -40
- package/docs/es/sinapse-workflows/greenfield-fullstack-workflow.md +0 -44
- package/docs/es/sinapse-workflows/greenfield-service-workflow.md +0 -43
- package/docs/es/sinapse-workflows/greenfield-ui-workflow.md +0 -43
- package/docs/es/sinapse-workflows/qa-loop-workflow.md +0 -39
- package/docs/es/sinapse-workflows/spec-pipeline-workflow.md +0 -40
- package/docs/es/sinapse-workflows/story-development-cycle-workflow.md +0 -42
- package/docs/es/specifications/docs-agent-technical-specification.md +0 -2161
- package/docs/es/troubleshooting.md +0 -887
- package/docs/es/uninstallation.md +0 -556
- package/docs/es/versioning-and-releases.md +0 -146
- package/docs/zh/CHANGELOG.md +0 -191
- package/docs/zh/ENVIRONMENT.md +0 -136
- package/docs/zh/FEATURE_PROCESS.md +0 -92
- package/docs/zh/GLOSSARY.md +0 -179
- package/docs/zh/GUIDING-PRINCIPLES.md +0 -97
- package/docs/zh/README.md +0 -133
- package/docs/zh/TRANSLATION-PLAN.md +0 -508
- package/docs/zh/agent-reference-guide.md +0 -566
- package/docs/zh/agents/archetype-rationale.md +0 -631
- package/docs/zh/agents/persona-definitions.md +0 -560
- package/docs/zh/api/squads-api.md +0 -753
- package/docs/zh/architecture/ADE-ARCHITECT-HANDOFF.md +0 -338
- package/docs/zh/architecture/ADE-EPIC1-HANDOFF.md +0 -85
- package/docs/zh/architecture/ADE-EPIC2-HANDOFF.md +0 -106
- package/docs/zh/architecture/ADE-EPIC3-HANDOFF.md +0 -327
- package/docs/zh/architecture/ARCHITECTURE-INDEX.md +0 -190
- package/docs/zh/architecture/SINAPSE-VISUAL-OVERVIEW.md +0 -595
- package/docs/zh/architecture/ade-architecture.md +0 -474
- package/docs/zh/architecture/adr/ADR-COLLAB-1-current-state-audit.md +0 -259
- package/docs/zh/architecture/adr/ADR-COLLAB-2-proposed-configuration.md +0 -518
- package/docs/zh/architecture/adr/adr-hcs-health-check-system.md +0 -489
- package/docs/zh/architecture/adr/adr-isolated-vm-decision.md +0 -70
- package/docs/zh/architecture/agent-config-audit.md +0 -220
- package/docs/zh/architecture/agent-responsibility-matrix.md +0 -444
- package/docs/zh/architecture/agent-tool-integration-guide.md +0 -336
- package/docs/zh/architecture/ci-cd.md +0 -151
- package/docs/zh/architecture/coding-standards.md +0 -898
- package/docs/zh/architecture/command-authority-matrix.md +0 -18
- package/docs/zh/architecture/contribution-workflow-research.md +0 -376
- package/docs/zh/architecture/dashboard-architecture.md +0 -569
- package/docs/zh/architecture/dashboard-realtime.md +0 -415
- package/docs/zh/architecture/hcs-check-specifications.md +0 -102
- package/docs/zh/architecture/hcs-execution-modes.md +0 -114
- package/docs/zh/architecture/hcs-self-healing-spec.md +0 -148
- package/docs/zh/architecture/high-level-architecture.md +0 -355
- package/docs/zh/architecture/introduction.md +0 -21
- package/docs/zh/architecture/mcp-api-keys-management.md +0 -248
- package/docs/zh/architecture/mcp-system-diagrams.md +0 -113
- package/docs/zh/architecture/module-system.md +0 -382
- package/docs/zh/architecture/multi-repo-strategy.md +0 -237
- package/docs/zh/architecture/source-tree.md +0 -710
- package/docs/zh/architecture/squad-improvement-analysis.md +0 -204
- package/docs/zh/architecture/squad-improvement-recommended-approach.md +0 -390
- package/docs/zh/architecture/tech-stack.md +0 -808
- package/docs/zh/architecture/utility-integration-guide.md +0 -358
- package/docs/zh/code-of-conduct.md +0 -113
- package/docs/zh/community/README-community-snippet-core.md +0 -57
- package/docs/zh/community/README-community-snippet-mcp.md +0 -49
- package/docs/zh/community/README-community-snippet-squads.md +0 -40
- package/docs/zh/community.md +0 -227
- package/docs/zh/contributing.md +0 -581
- package/docs/zh/core-architecture.md +0 -229
- package/docs/zh/docker-mcp-setup.md +0 -226
- package/docs/zh/framework/README.md +0 -97
- package/docs/zh/framework/coding-standards.md +0 -886
- package/docs/zh/framework/source-tree.md +0 -888
- package/docs/zh/framework/tech-stack.md +0 -796
- package/docs/zh/getting-started.md +0 -317
- package/docs/zh/git-workflow-guide.md +0 -988
- package/docs/zh/guides/MEMORY-INTEGRATION.md +0 -497
- package/docs/zh/guides/MEMORY-INTELLIGENCE-SYSTEM.md +0 -1083
- package/docs/zh/guides/MEMORY-SYSTEM.md +0 -1003
- package/docs/zh/guides/README.md +0 -127
- package/docs/zh/guides/ade-guide.md +0 -446
- package/docs/zh/guides/agent-selection-guide.md +0 -289
- package/docs/zh/guides/api-reference.md +0 -427
- package/docs/zh/guides/build-recovery-guide.md +0 -266
- package/docs/zh/guides/contextual-greeting-system-guide.md +0 -381
- package/docs/zh/guides/contributing-squads.md +0 -250
- package/docs/zh/guides/development-setup.md +0 -384
- package/docs/zh/guides/ide-sync-guide.md +0 -193
- package/docs/zh/guides/installation-troubleshooting.md +0 -321
- package/docs/zh/guides/llm-routing.md +0 -306
- package/docs/zh/guides/mcp/desktop-commander.md +0 -368
- package/docs/zh/guides/mcp/docker-gateway-tutorial.md +0 -336
- package/docs/zh/guides/mcp-global-setup.md +0 -696
- package/docs/zh/guides/permission-modes.md +0 -307
- package/docs/zh/guides/project-status-feature.md +0 -467
- package/docs/zh/guides/quality-dashboard.md +0 -361
- package/docs/zh/guides/quality-gates.md +0 -462
- package/docs/zh/guides/security-hardening.md +0 -1055
- package/docs/zh/guides/service-discovery.md +0 -518
- package/docs/zh/guides/squad-examples/README.md +0 -63
- package/docs/zh/guides/squad-migration.md +0 -336
- package/docs/zh/guides/template-engine-v2.md +0 -478
- package/docs/zh/guides/workflows-guide.md +0 -408
- package/docs/zh/how-to-contribute-with-pull-requests.md +0 -158
- package/docs/zh/installation/README.md +0 -106
- package/docs/zh/installation/faq.md +0 -611
- package/docs/zh/installation/linux.md +0 -447
- package/docs/zh/installation/macos.md +0 -187
- package/docs/zh/installation/troubleshooting.md +0 -729
- package/docs/zh/installation/windows.md +0 -475
- package/docs/zh/meta-agent-commands.md +0 -990
- package/docs/zh/security-best-practices.md +0 -610
- package/docs/zh/security.md +0 -124
- package/docs/zh/sinapse-agent-flows/README.md +0 -196
- package/docs/zh/sinapse-agent-flows/analyst-system.md +0 -679
- package/docs/zh/sinapse-agent-flows/architect-system.md +0 -246
- package/docs/zh/sinapse-agent-flows/data-engineer-system.md +0 -418
- package/docs/zh/sinapse-agent-flows/dev-system.md +0 -209
- package/docs/zh/sinapse-agent-flows/devops-system.md +0 -643
- package/docs/zh/sinapse-agent-flows/pm-system.md +0 -733
- package/docs/zh/sinapse-agent-flows/qa-system.md +0 -268
- package/docs/zh/sinapse-agent-flows/sinapse-master-system.md +0 -81
- package/docs/zh/sinapse-agent-flows/sm-system.md +0 -501
- package/docs/zh/sinapse-agent-flows/squad-creator-system.md +0 -704
- package/docs/zh/sinapse-agent-flows/ux-design-expert-system.md +0 -160
- package/docs/zh/sinapse-workflows/README.md +0 -247
- package/docs/zh/sinapse-workflows/auto-worktree-workflow.md +0 -793
- package/docs/zh/sinapse-workflows/brownfield-discovery-workflow.md +0 -915
- package/docs/zh/sinapse-workflows/brownfield-fullstack-workflow.md +0 -764
- package/docs/zh/sinapse-workflows/brownfield-service-workflow.md +0 -812
- package/docs/zh/sinapse-workflows/brownfield-ui-workflow.md +0 -891
- package/docs/zh/sinapse-workflows/design-system-build-quality-workflow.md +0 -845
- package/docs/zh/sinapse-workflows/greenfield-fullstack-workflow.md +0 -796
- package/docs/zh/sinapse-workflows/greenfield-service-workflow.md +0 -786
- package/docs/zh/sinapse-workflows/greenfield-ui-workflow.md +0 -922
- package/docs/zh/sinapse-workflows/qa-loop-workflow.md +0 -1111
- package/docs/zh/sinapse-workflows/spec-pipeline-workflow.md +0 -1031
- package/docs/zh/sinapse-workflows/story-development-cycle-workflow.md +0 -843
- package/docs/zh/troubleshooting.md +0 -883
- package/docs/zh/uninstallation.md +0 -348
- package/docs/zh/versioning-and-releases.md +0 -140
- /package/.sinapse-ai/development/agents/{dev → developer}/MEMORY.md +0 -0
- /package/.sinapse-ai/development/agents/{qa → quality-gate}/MEMORY.md +0 -0
- /package/.sinapse-ai/development/agents/{sm → sprint-lead}/MEMORY.md +0 -0
|
@@ -1,892 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
Traducción: ES
|
|
3
|
-
Original: /docs/en/framework/coding-standards.md
|
|
4
|
-
Última sincronización: 2026-01-26
|
|
5
|
-
-->
|
|
6
|
-
|
|
7
|
-
# Estándares de Codificación SINAPSE
|
|
8
|
-
|
|
9
|
-
> 🌐 [EN](../../framework/coding-standards.md) | [PT](../../pt/framework/coding-standards.md) | **ES**
|
|
10
|
-
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
**Versión:** 1.1
|
|
14
|
-
**Última Actualización:** 2025-12-14
|
|
15
|
-
**Estado:** Estándar Oficial del Framework
|
|
16
|
-
**Aviso de Migración:** Este documento migrará al repositorio `SinapseAI/sinapse-ai` en Q2 2026 (ver Decision 005)
|
|
17
|
-
|
|
18
|
-
---
|
|
19
|
-
|
|
20
|
-
## Tabla de Contenidos
|
|
21
|
-
|
|
22
|
-
- [Descripción General](#descripción-general)
|
|
23
|
-
- [Estándares JavaScript/TypeScript](#estándares-javascripttypescript)
|
|
24
|
-
- [Organización de Archivos](#organización-de-archivos)
|
|
25
|
-
- [Convenciones de Nomenclatura](#convenciones-de-nomenclatura)
|
|
26
|
-
- [Calidad de Código](#calidad-de-código)
|
|
27
|
-
- [Estándares de Documentación](#estándares-de-documentación)
|
|
28
|
-
- [Estándares de Testing](#estándares-de-testing)
|
|
29
|
-
- [Convenciones Git](#convenciones-git)
|
|
30
|
-
- [Estándares de Seguridad](#estándares-de-seguridad)
|
|
31
|
-
|
|
32
|
-
---
|
|
33
|
-
|
|
34
|
-
## Descripción General
|
|
35
|
-
|
|
36
|
-
Este documento define los estándares oficiales de codificación para el desarrollo del framework SINAPSE. Todas las contribuciones de código deben adherirse a estos estándares para asegurar consistencia, mantenibilidad y calidad.
|
|
37
|
-
|
|
38
|
-
**Aplicación:**
|
|
39
|
-
|
|
40
|
-
- ESLint (automatizado)
|
|
41
|
-
- Prettier (automatizado)
|
|
42
|
-
- Revisión CodeRabbit (automatizada)
|
|
43
|
-
- Revisión humana (manual)
|
|
44
|
-
|
|
45
|
-
---
|
|
46
|
-
|
|
47
|
-
## Estándares JavaScript/TypeScript
|
|
48
|
-
|
|
49
|
-
### Versión del Lenguaje
|
|
50
|
-
|
|
51
|
-
```javascript
|
|
52
|
-
// Target: ES2022 (Node.js 18+)
|
|
53
|
-
// TypeScript: 5.x
|
|
54
|
-
|
|
55
|
-
// ✅ CORRECTO: Sintaxis moderna
|
|
56
|
-
const data = await fetchData();
|
|
57
|
-
const { id, name } = data;
|
|
58
|
-
|
|
59
|
-
// ❌ INCORRECTO: Sintaxis obsoleta
|
|
60
|
-
fetchData().then(function (data) {
|
|
61
|
-
var id = data.id;
|
|
62
|
-
var name = data.name;
|
|
63
|
-
});
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
### Configuración TypeScript
|
|
67
|
-
|
|
68
|
-
```json
|
|
69
|
-
// tsconfig.json
|
|
70
|
-
{
|
|
71
|
-
"compilerOptions": {
|
|
72
|
-
"target": "ES2022",
|
|
73
|
-
"module": "commonjs",
|
|
74
|
-
"lib": ["ES2022"],
|
|
75
|
-
"strict": true,
|
|
76
|
-
"esModuleInterop": true,
|
|
77
|
-
"skipLibCheck": true,
|
|
78
|
-
"forceConsistentCasingInFileNames": true,
|
|
79
|
-
"resolveJsonModule": true,
|
|
80
|
-
"declaration": true,
|
|
81
|
-
"outDir": "./dist",
|
|
82
|
-
"rootDir": "./src"
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
### Estilo de Código
|
|
88
|
-
|
|
89
|
-
#### Indentación y Formateo
|
|
90
|
-
|
|
91
|
-
```javascript
|
|
92
|
-
// ✅ CORRECTO: Indentación de 2 espacios
|
|
93
|
-
function processAgent(agent) {
|
|
94
|
-
if (agent.enabled) {
|
|
95
|
-
return loadAgent(agent);
|
|
96
|
-
}
|
|
97
|
-
return null;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
// ❌ INCORRECTO: 4 espacios o tabs
|
|
101
|
-
function processAgent(agent) {
|
|
102
|
-
if (agent.enabled) {
|
|
103
|
-
return loadAgent(agent);
|
|
104
|
-
}
|
|
105
|
-
return null;
|
|
106
|
-
}
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
**Configuración Prettier:**
|
|
110
|
-
|
|
111
|
-
```json
|
|
112
|
-
{
|
|
113
|
-
"printWidth": 100,
|
|
114
|
-
"tabWidth": 2,
|
|
115
|
-
"useTabs": false,
|
|
116
|
-
"semi": true,
|
|
117
|
-
"singleQuote": true,
|
|
118
|
-
"trailingComma": "es5",
|
|
119
|
-
"bracketSpacing": true,
|
|
120
|
-
"arrowParens": "always"
|
|
121
|
-
}
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
#### Longitud de Línea
|
|
125
|
-
|
|
126
|
-
```javascript
|
|
127
|
-
// ✅ CORRECTO: Máximo 100 caracteres
|
|
128
|
-
const result = await executeTask(taskName, taskArgs, { timeout: 5000, retry: 3 });
|
|
129
|
-
|
|
130
|
-
// ❌ INCORRECTO: Más de 100 caracteres
|
|
131
|
-
const result = await executeTask(taskName, taskArgs, {
|
|
132
|
-
timeout: 5000,
|
|
133
|
-
retry: 3,
|
|
134
|
-
failureCallback: onFailure,
|
|
135
|
-
});
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
#### Comillas
|
|
139
|
-
|
|
140
|
-
```javascript
|
|
141
|
-
// ✅ CORRECTO: Comillas simples para strings
|
|
142
|
-
const agentName = 'developer';
|
|
143
|
-
const message = `Agent ${agentName} activated`;
|
|
144
|
-
|
|
145
|
-
// ❌ INCORRECTO: Comillas dobles (excepto JSON)
|
|
146
|
-
const agentName = 'developer';
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
### Patrones Modernos de JavaScript
|
|
150
|
-
|
|
151
|
-
#### Async/Await (Preferido)
|
|
152
|
-
|
|
153
|
-
```javascript
|
|
154
|
-
// ✅ CORRECTO: async/await
|
|
155
|
-
async function loadAgent(agentId) {
|
|
156
|
-
try {
|
|
157
|
-
const agent = await fetchAgent(agentId);
|
|
158
|
-
const config = await loadConfig(agent.configPath);
|
|
159
|
-
return { agent, config };
|
|
160
|
-
} catch (error) {
|
|
161
|
-
console.error(`Failed to load agent ${agentId}:`, error);
|
|
162
|
-
throw error;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
// ❌ INCORRECTO: Cadenas de Promesas
|
|
167
|
-
function loadAgent(agentId) {
|
|
168
|
-
return fetchAgent(agentId)
|
|
169
|
-
.then((agent) => loadConfig(agent.configPath).then((config) => ({ agent, config })))
|
|
170
|
-
.catch((error) => {
|
|
171
|
-
console.error(`Failed to load agent ${agentId}:`, error);
|
|
172
|
-
throw error;
|
|
173
|
-
});
|
|
174
|
-
}
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
#### Desestructuración
|
|
178
|
-
|
|
179
|
-
```javascript
|
|
180
|
-
// ✅ CORRECTO: Desestructuración
|
|
181
|
-
const { name, id, enabled } = agent;
|
|
182
|
-
const [first, second, ...rest] = items;
|
|
183
|
-
|
|
184
|
-
// ❌ INCORRECTO: Extracción manual
|
|
185
|
-
const name = agent.name;
|
|
186
|
-
const id = agent.id;
|
|
187
|
-
const enabled = agent.enabled;
|
|
188
|
-
```
|
|
189
|
-
|
|
190
|
-
#### Funciones Flecha
|
|
191
|
-
|
|
192
|
-
```javascript
|
|
193
|
-
// ✅ CORRECTO: Funciones flecha para callbacks
|
|
194
|
-
const activeAgents = agents.filter((agent) => agent.enabled);
|
|
195
|
-
const agentNames = agents.map((agent) => agent.name);
|
|
196
|
-
|
|
197
|
-
// ❌ INCORRECTO: Funciones tradicionales para callbacks simples
|
|
198
|
-
const activeAgents = agents.filter(function (agent) {
|
|
199
|
-
return agent.enabled;
|
|
200
|
-
});
|
|
201
|
-
```
|
|
202
|
-
|
|
203
|
-
#### Template Literals
|
|
204
|
-
|
|
205
|
-
```javascript
|
|
206
|
-
// ✅ CORRECTO: Template literals para interpolación de strings
|
|
207
|
-
const message = `Agent ${agentName} loaded successfully`;
|
|
208
|
-
const path = `${baseDir}/${agentId}/config.yaml`;
|
|
209
|
-
|
|
210
|
-
// ❌ INCORRECTO: Concatenación de strings
|
|
211
|
-
const message = 'Agent ' + agentName + ' loaded successfully';
|
|
212
|
-
const path = baseDir + '/' + agentId + '/config.yaml';
|
|
213
|
-
```
|
|
214
|
-
|
|
215
|
-
### Manejo de Errores
|
|
216
|
-
|
|
217
|
-
```javascript
|
|
218
|
-
// ✅ CORRECTO: Manejo de errores específico con contexto
|
|
219
|
-
async function executeTask(taskName) {
|
|
220
|
-
try {
|
|
221
|
-
const task = await loadTask(taskName);
|
|
222
|
-
return await task.execute();
|
|
223
|
-
} catch (error) {
|
|
224
|
-
console.error(`Task execution failed [${taskName}]:`, error);
|
|
225
|
-
throw new Error(`Failed to execute task "${taskName}": ${error.message}`);
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
// ❌ INCORRECTO: Fallos silenciosos o errores genéricos
|
|
230
|
-
async function executeTask(taskName) {
|
|
231
|
-
try {
|
|
232
|
-
const task = await loadTask(taskName);
|
|
233
|
-
return await task.execute();
|
|
234
|
-
} catch (error) {
|
|
235
|
-
console.log('Error:', error);
|
|
236
|
-
return null; // Fallo silencioso
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
```
|
|
240
|
-
|
|
241
|
-
---
|
|
242
|
-
|
|
243
|
-
## Organización de Archivos
|
|
244
|
-
|
|
245
|
-
### Estructura de Directorios
|
|
246
|
-
|
|
247
|
-
```
|
|
248
|
-
.sinapse-ai/
|
|
249
|
-
├── agents/ # Definiciones de agentes (YAML + Markdown)
|
|
250
|
-
├── tasks/ # Workflows de tareas (Markdown)
|
|
251
|
-
├── templates/ # Templates de documentos (YAML/Markdown)
|
|
252
|
-
├── workflows/ # Workflows multi-paso (YAML)
|
|
253
|
-
├── checklists/ # Checklists de validación (Markdown)
|
|
254
|
-
├── data/ # Base de conocimiento (Markdown)
|
|
255
|
-
├── utils/ # Scripts de utilidad (JavaScript)
|
|
256
|
-
├── tools/ # Integraciones de herramientas (YAML)
|
|
257
|
-
└── elicitation/ # Motores de elicitación (JavaScript)
|
|
258
|
-
|
|
259
|
-
docs/
|
|
260
|
-
├── architecture/ # Decisiones de arquitectura específicas del proyecto
|
|
261
|
-
├── framework/ # Documentación oficial del framework (migra a REPO 1)
|
|
262
|
-
├── stories/ # Stories de desarrollo
|
|
263
|
-
├── epics/ # Planificación de epics
|
|
264
|
-
└── guides/ # Guías prácticas
|
|
265
|
-
```
|
|
266
|
-
|
|
267
|
-
### Nomenclatura de Archivos
|
|
268
|
-
|
|
269
|
-
```javascript
|
|
270
|
-
// ✅ CORRECTO: kebab-case para archivos
|
|
271
|
-
agent - executor.js;
|
|
272
|
-
task - runner.js;
|
|
273
|
-
greeting - builder.js;
|
|
274
|
-
context - detector.js;
|
|
275
|
-
|
|
276
|
-
// ❌ INCORRECTO: camelCase o PascalCase para archivos
|
|
277
|
-
agentExecutor.js;
|
|
278
|
-
TaskRunner.js;
|
|
279
|
-
GreetingBuilder.js;
|
|
280
|
-
```
|
|
281
|
-
|
|
282
|
-
### Estructura de Módulos
|
|
283
|
-
|
|
284
|
-
```javascript
|
|
285
|
-
// ✅ CORRECTO: Estructura clara de módulo
|
|
286
|
-
// File: agent-executor.js
|
|
287
|
-
|
|
288
|
-
// 1. Imports
|
|
289
|
-
const fs = require('fs').promises;
|
|
290
|
-
const yaml = require('yaml');
|
|
291
|
-
const { loadConfig } = require('./config-loader');
|
|
292
|
-
|
|
293
|
-
// 2. Constantes
|
|
294
|
-
const DEFAULT_TIMEOUT = 5000;
|
|
295
|
-
const MAX_RETRIES = 3;
|
|
296
|
-
|
|
297
|
-
// 3. Funciones helper (privadas)
|
|
298
|
-
function validateAgent(agent) {
|
|
299
|
-
// ...
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
// 4. Exports principales (API pública)
|
|
303
|
-
async function executeAgent(agentId, args) {
|
|
304
|
-
// ...
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
async function loadAgent(agentId) {
|
|
308
|
-
// ...
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
// 5. Exports
|
|
312
|
-
module.exports = {
|
|
313
|
-
executeAgent,
|
|
314
|
-
loadAgent,
|
|
315
|
-
};
|
|
316
|
-
```
|
|
317
|
-
|
|
318
|
-
---
|
|
319
|
-
|
|
320
|
-
## Convenciones de Nomenclatura
|
|
321
|
-
|
|
322
|
-
### Variables y Funciones
|
|
323
|
-
|
|
324
|
-
```javascript
|
|
325
|
-
// ✅ CORRECTO: camelCase para variables y funciones
|
|
326
|
-
const agentName = 'developer';
|
|
327
|
-
const taskResult = await executeTask();
|
|
328
|
-
|
|
329
|
-
function loadAgentConfig(agentId) {
|
|
330
|
-
// ...
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
async function fetchAgentData(agentId) {
|
|
334
|
-
// ...
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
// ❌ INCORRECTO: snake_case o PascalCase
|
|
338
|
-
const agent_name = 'developer';
|
|
339
|
-
const TaskResult = await executeTask();
|
|
340
|
-
|
|
341
|
-
function LoadAgentConfig(agentId) {
|
|
342
|
-
// ...
|
|
343
|
-
}
|
|
344
|
-
```
|
|
345
|
-
|
|
346
|
-
### Clases
|
|
347
|
-
|
|
348
|
-
```javascript
|
|
349
|
-
// ✅ CORRECTO: PascalCase para clases
|
|
350
|
-
class AgentExecutor {
|
|
351
|
-
constructor(config) {
|
|
352
|
-
this.config = config;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
async execute(agentId) {
|
|
356
|
-
// ...
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
class TaskRunner {
|
|
361
|
-
// ...
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
// ❌ INCORRECTO: camelCase o snake_case
|
|
365
|
-
class agentExecutor {
|
|
366
|
-
// ...
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
class task_runner {
|
|
370
|
-
// ...
|
|
371
|
-
}
|
|
372
|
-
```
|
|
373
|
-
|
|
374
|
-
### Constantes
|
|
375
|
-
|
|
376
|
-
```javascript
|
|
377
|
-
// ✅ CORRECTO: SCREAMING_SNAKE_CASE para constantes verdaderas
|
|
378
|
-
const MAX_RETRY_ATTEMPTS = 3;
|
|
379
|
-
const DEFAULT_TIMEOUT_MS = 5000;
|
|
380
|
-
const AGENT_STATUS_ACTIVE = 'active';
|
|
381
|
-
|
|
382
|
-
// ❌ INCORRECTO: camelCase o minúsculas
|
|
383
|
-
const maxRetryAttempts = 3;
|
|
384
|
-
const defaulttimeout = 5000;
|
|
385
|
-
```
|
|
386
|
-
|
|
387
|
-
### Miembros Privados
|
|
388
|
-
|
|
389
|
-
```javascript
|
|
390
|
-
// ✅ CORRECTO: Prefijo con guion bajo para privados (convención)
|
|
391
|
-
class AgentManager {
|
|
392
|
-
constructor() {
|
|
393
|
-
this._cache = new Map();
|
|
394
|
-
this._isInitialized = false;
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
_loadFromCache(id) {
|
|
398
|
-
// Helper privado
|
|
399
|
-
return this._cache.get(id);
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
async getAgent(id) {
|
|
403
|
-
// API pública
|
|
404
|
-
return this._loadFromCache(id) || (await this._fetchAgent(id));
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
```
|
|
408
|
-
|
|
409
|
-
### Variables Booleanas
|
|
410
|
-
|
|
411
|
-
```javascript
|
|
412
|
-
// ✅ CORRECTO: Prefijo is/has/should
|
|
413
|
-
const isEnabled = true;
|
|
414
|
-
const hasPermission = false;
|
|
415
|
-
const shouldRetry = checkCondition();
|
|
416
|
-
|
|
417
|
-
// ❌ INCORRECTO: Nombres ambiguos
|
|
418
|
-
const enabled = true;
|
|
419
|
-
const permission = false;
|
|
420
|
-
const retry = checkCondition();
|
|
421
|
-
```
|
|
422
|
-
|
|
423
|
-
---
|
|
424
|
-
|
|
425
|
-
## Calidad de Código
|
|
426
|
-
|
|
427
|
-
### Configuración ESLint
|
|
428
|
-
|
|
429
|
-
```json
|
|
430
|
-
{
|
|
431
|
-
"env": {
|
|
432
|
-
"node": true,
|
|
433
|
-
"es2022": true
|
|
434
|
-
},
|
|
435
|
-
"extends": ["eslint:recommended"],
|
|
436
|
-
"parserOptions": {
|
|
437
|
-
"ecmaVersion": 13,
|
|
438
|
-
"sourceType": "module"
|
|
439
|
-
},
|
|
440
|
-
"rules": {
|
|
441
|
-
"no-console": "off",
|
|
442
|
-
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
|
|
443
|
-
"prefer-const": "error",
|
|
444
|
-
"no-var": "error",
|
|
445
|
-
"eqeqeq": ["error", "always"],
|
|
446
|
-
"curly": ["error", "all"],
|
|
447
|
-
"brace-style": ["error", "1tbs"],
|
|
448
|
-
"comma-dangle": ["error", "es5"],
|
|
449
|
-
"quotes": ["error", "single"],
|
|
450
|
-
"semi": ["error", "always"]
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
```
|
|
454
|
-
|
|
455
|
-
### Complejidad de Código
|
|
456
|
-
|
|
457
|
-
```javascript
|
|
458
|
-
// ✅ CORRECTO: Baja complejidad ciclomática (< 10)
|
|
459
|
-
function processAgent(agent) {
|
|
460
|
-
if (!agent.enabled) return null;
|
|
461
|
-
|
|
462
|
-
const config = loadConfig(agent.configPath);
|
|
463
|
-
const result = executeAgent(agent, config);
|
|
464
|
-
|
|
465
|
-
return result;
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
// ❌ INCORRECTO: Alta complejidad ciclomática
|
|
469
|
-
function processAgent(agent) {
|
|
470
|
-
if (agent.type === 'dev') {
|
|
471
|
-
if (agent.mode === 'yolo') {
|
|
472
|
-
if (agent.hasStory) {
|
|
473
|
-
// ... lógica anidada
|
|
474
|
-
} else {
|
|
475
|
-
// ... más lógica anidada
|
|
476
|
-
}
|
|
477
|
-
} else {
|
|
478
|
-
// ... más ramas
|
|
479
|
-
}
|
|
480
|
-
} else if (agent.type === 'qa') {
|
|
481
|
-
// ... más ramas
|
|
482
|
-
}
|
|
483
|
-
// ... aún más complejidad
|
|
484
|
-
}
|
|
485
|
-
```
|
|
486
|
-
|
|
487
|
-
**Refactorizar funciones complejas:**
|
|
488
|
-
|
|
489
|
-
```javascript
|
|
490
|
-
// ✅ CORRECTO: Funciones helper extraídas
|
|
491
|
-
function processAgent(agent) {
|
|
492
|
-
if (!agent.enabled) return null;
|
|
493
|
-
|
|
494
|
-
if (agent.type === 'dev') {
|
|
495
|
-
return processDevAgent(agent);
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
if (agent.type === 'qa') {
|
|
499
|
-
return processQaAgent(agent);
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
return processDefaultAgent(agent);
|
|
503
|
-
}
|
|
504
|
-
```
|
|
505
|
-
|
|
506
|
-
### Principio DRY
|
|
507
|
-
|
|
508
|
-
```javascript
|
|
509
|
-
// ✅ CORRECTO: Función reutilizable
|
|
510
|
-
function validateAndLoad(filePath, schema) {
|
|
511
|
-
const content = fs.readFileSync(filePath, 'utf8');
|
|
512
|
-
const data = yaml.parse(content);
|
|
513
|
-
|
|
514
|
-
if (!schema.validate(data)) {
|
|
515
|
-
throw new Error(`Invalid schema: ${filePath}`);
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
return data;
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
const agent = validateAndLoad('agent.yaml', agentSchema);
|
|
522
|
-
const task = validateAndLoad('task.yaml', taskSchema);
|
|
523
|
-
|
|
524
|
-
// ❌ INCORRECTO: Código repetido
|
|
525
|
-
const agentContent = fs.readFileSync('agent.yaml', 'utf8');
|
|
526
|
-
const agentData = yaml.parse(agentContent);
|
|
527
|
-
if (!agentSchema.validate(agentData)) {
|
|
528
|
-
throw new Error('Invalid agent schema');
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
const taskContent = fs.readFileSync('task.yaml', 'utf8');
|
|
532
|
-
const taskData = yaml.parse(taskContent);
|
|
533
|
-
if (!taskSchema.validate(taskData)) {
|
|
534
|
-
throw new Error('Invalid task schema');
|
|
535
|
-
}
|
|
536
|
-
```
|
|
537
|
-
|
|
538
|
-
---
|
|
539
|
-
|
|
540
|
-
## Estándares de Documentación
|
|
541
|
-
|
|
542
|
-
### Comentarios JSDoc
|
|
543
|
-
|
|
544
|
-
```javascript
|
|
545
|
-
/**
|
|
546
|
-
* Carga y ejecuta un agente SINAPSE
|
|
547
|
-
*
|
|
548
|
-
* @param {string} agentId - Identificador único del agente
|
|
549
|
-
* @param {Object} args - Argumentos de ejecución del agente
|
|
550
|
-
* @param {boolean} args.yoloMode - Habilitar modo autónomo
|
|
551
|
-
* @param {string} args.storyPath - Ruta al archivo de story (opcional)
|
|
552
|
-
* @param {number} [timeout=5000] - Timeout de ejecución en milisegundos
|
|
553
|
-
* @returns {Promise<Object>} Resultado de ejecución del agente
|
|
554
|
-
* @throws {Error} Si el agente no se encuentra o la ejecución falla
|
|
555
|
-
*
|
|
556
|
-
* @example
|
|
557
|
-
* const result = await executeAgent('dev', {
|
|
558
|
-
* yoloMode: true,
|
|
559
|
-
* storyPath: 'docs/stories/story-6.1.2.5.md'
|
|
560
|
-
* });
|
|
561
|
-
*/
|
|
562
|
-
async function executeAgent(agentId, args, timeout = 5000) {
|
|
563
|
-
// Implementación
|
|
564
|
-
}
|
|
565
|
-
```
|
|
566
|
-
|
|
567
|
-
### Comentarios en Línea
|
|
568
|
-
|
|
569
|
-
```javascript
|
|
570
|
-
// ✅ CORRECTO: Explicar el POR QUÉ, no el QUÉ
|
|
571
|
-
// Cache de agentes para evitar re-parsear YAML en cada activación (optimización de rendimiento)
|
|
572
|
-
const agentCache = new Map();
|
|
573
|
-
|
|
574
|
-
// Log de decisiones requerido para rollback en modo yolo (requisito Story 6.1.2.6)
|
|
575
|
-
if (yoloMode) {
|
|
576
|
-
await createDecisionLog(storyId);
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
// ❌ INCORRECTO: Decir lo obvio
|
|
580
|
-
// Crear un nuevo Map
|
|
581
|
-
const agentCache = new Map();
|
|
582
|
-
|
|
583
|
-
// Si yolo mode es true
|
|
584
|
-
if (yoloMode) {
|
|
585
|
-
await createDecisionLog(storyId);
|
|
586
|
-
}
|
|
587
|
-
```
|
|
588
|
-
|
|
589
|
-
### Archivos README
|
|
590
|
-
|
|
591
|
-
Cada módulo/directorio debería tener un README.md:
|
|
592
|
-
|
|
593
|
-
```markdown
|
|
594
|
-
# Agent Executor
|
|
595
|
-
|
|
596
|
-
**Propósito:** Carga y ejecuta agentes SINAPSE con gestión de configuración.
|
|
597
|
-
|
|
598
|
-
## Uso
|
|
599
|
-
|
|
600
|
-
\`\`\`javascript
|
|
601
|
-
const { executeAgent } = require('./agent-executor');
|
|
602
|
-
|
|
603
|
-
const result = await executeAgent('dev', {
|
|
604
|
-
yoloMode: true,
|
|
605
|
-
storyPath: 'docs/stories/story-6.1.2.5.md'
|
|
606
|
-
});
|
|
607
|
-
\`\`\`
|
|
608
|
-
|
|
609
|
-
## API
|
|
610
|
-
|
|
611
|
-
- `executeAgent(agentId, args, timeout)` - Ejecutar agente
|
|
612
|
-
- `loadAgent(agentId)` - Cargar configuración de agente
|
|
613
|
-
|
|
614
|
-
## Dependencias
|
|
615
|
-
|
|
616
|
-
- `yaml` - Parsing YAML
|
|
617
|
-
- `fs/promises` - Operaciones de sistema de archivos
|
|
618
|
-
```
|
|
619
|
-
|
|
620
|
-
---
|
|
621
|
-
|
|
622
|
-
## Estándares de Testing
|
|
623
|
-
|
|
624
|
-
### Nomenclatura de Archivos de Test
|
|
625
|
-
|
|
626
|
-
```bash
|
|
627
|
-
# Tests unitarios
|
|
628
|
-
tests/unit/context-detector.test.js
|
|
629
|
-
tests/unit/git-config-detector.test.js
|
|
630
|
-
|
|
631
|
-
# Tests de integración
|
|
632
|
-
tests/integration/contextual-greeting.test.js
|
|
633
|
-
tests/integration/workflow-navigation.test.js
|
|
634
|
-
|
|
635
|
-
# Tests E2E
|
|
636
|
-
tests/e2e/agent-activation.test.js
|
|
637
|
-
```
|
|
638
|
-
|
|
639
|
-
### Estructura de Tests
|
|
640
|
-
|
|
641
|
-
```javascript
|
|
642
|
-
// ✅ CORRECTO: Nombres descriptivos de tests con Given-When-Then
|
|
643
|
-
describe('ContextDetector', () => {
|
|
644
|
-
describe('detectSessionType', () => {
|
|
645
|
-
it('should return "new" when conversation history is empty', async () => {
|
|
646
|
-
// Given
|
|
647
|
-
const conversationHistory = [];
|
|
648
|
-
const sessionFile = null;
|
|
649
|
-
|
|
650
|
-
// When
|
|
651
|
-
const result = await detectSessionType(conversationHistory, sessionFile);
|
|
652
|
-
|
|
653
|
-
// Then
|
|
654
|
-
expect(result).toBe('new');
|
|
655
|
-
});
|
|
656
|
-
|
|
657
|
-
it('should return "workflow" when command pattern matches story_development', async () => {
|
|
658
|
-
// Given
|
|
659
|
-
const conversationHistory = [{ command: 'validate-story-draft' }, { command: 'develop' }];
|
|
660
|
-
|
|
661
|
-
// When
|
|
662
|
-
const result = await detectSessionType(conversationHistory, null);
|
|
663
|
-
|
|
664
|
-
// Then
|
|
665
|
-
expect(result).toBe('workflow');
|
|
666
|
-
});
|
|
667
|
-
});
|
|
668
|
-
});
|
|
669
|
-
```
|
|
670
|
-
|
|
671
|
-
### Cobertura de Código
|
|
672
|
-
|
|
673
|
-
- **Mínimo:** 80% para todos los nuevos módulos
|
|
674
|
-
- **Objetivo:** 90% para módulos core
|
|
675
|
-
- **Crítico:** 100% para módulos de seguridad/validación
|
|
676
|
-
|
|
677
|
-
```bash
|
|
678
|
-
# Ejecutar cobertura
|
|
679
|
-
npm test -- --coverage
|
|
680
|
-
|
|
681
|
-
# Umbrales de cobertura en package.json
|
|
682
|
-
{
|
|
683
|
-
"jest": {
|
|
684
|
-
"coverageThreshold": {
|
|
685
|
-
"global": {
|
|
686
|
-
"branches": 80,
|
|
687
|
-
"functions": 80,
|
|
688
|
-
"lines": 80,
|
|
689
|
-
"statements": 80
|
|
690
|
-
}
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
|
-
}
|
|
694
|
-
```
|
|
695
|
-
|
|
696
|
-
---
|
|
697
|
-
|
|
698
|
-
## Convenciones Git
|
|
699
|
-
|
|
700
|
-
### Mensajes de Commit
|
|
701
|
-
|
|
702
|
-
```bash
|
|
703
|
-
# ✅ CORRECTO: Formato Conventional Commits
|
|
704
|
-
feat: implement contextual agent greeting system [Story 6.1.2.5]
|
|
705
|
-
fix: resolve git config cache invalidation issue [Story 6.1.2.5]
|
|
706
|
-
docs: update coding standards with TypeScript config
|
|
707
|
-
chore: update ESLint configuration
|
|
708
|
-
refactor: extract greeting builder into separate module
|
|
709
|
-
test: add unit tests for WorkflowNavigator
|
|
710
|
-
|
|
711
|
-
# ❌ INCORRECTO: Vagos o no descriptivos
|
|
712
|
-
update files
|
|
713
|
-
fix bug
|
|
714
|
-
changes
|
|
715
|
-
wip
|
|
716
|
-
```
|
|
717
|
-
|
|
718
|
-
**Formato:**
|
|
719
|
-
|
|
720
|
-
```
|
|
721
|
-
<type>: <description> [Story <id>]
|
|
722
|
-
|
|
723
|
-
<optional body>
|
|
724
|
-
|
|
725
|
-
<optional footer>
|
|
726
|
-
```
|
|
727
|
-
|
|
728
|
-
**Tipos:**
|
|
729
|
-
|
|
730
|
-
- `feat`: Nueva funcionalidad
|
|
731
|
-
- `fix`: Corrección de bug
|
|
732
|
-
- `docs`: Cambios de documentación
|
|
733
|
-
- `chore`: Cambios de build/tooling
|
|
734
|
-
- `refactor`: Refactorización de código (sin cambio funcional)
|
|
735
|
-
- `test`: Adiciones/modificaciones de tests
|
|
736
|
-
- `perf`: Mejoras de rendimiento
|
|
737
|
-
- `style`: Cambios de estilo de código (formateo, etc.)
|
|
738
|
-
|
|
739
|
-
### Nomenclatura de Ramas
|
|
740
|
-
|
|
741
|
-
```bash
|
|
742
|
-
# ✅ CORRECTO: Nombres descriptivos de ramas
|
|
743
|
-
feature/story-6.1.2.5-contextual-greeting
|
|
744
|
-
fix/git-config-cache-ttl
|
|
745
|
-
refactor/agent-executor-optimization
|
|
746
|
-
docs/update-coding-standards
|
|
747
|
-
|
|
748
|
-
# ❌ INCORRECTO: Nombres vagos de ramas
|
|
749
|
-
update
|
|
750
|
-
fix
|
|
751
|
-
my-branch
|
|
752
|
-
```
|
|
753
|
-
|
|
754
|
-
---
|
|
755
|
-
|
|
756
|
-
## Estándares de Seguridad
|
|
757
|
-
|
|
758
|
-
### Validación de Entrada
|
|
759
|
-
|
|
760
|
-
```javascript
|
|
761
|
-
// ✅ CORRECTO: Validar todas las entradas externas
|
|
762
|
-
function executeCommand(command) {
|
|
763
|
-
// Validación de whitelist
|
|
764
|
-
const allowedCommands = ['help', 'develop', 'review', 'deploy'];
|
|
765
|
-
|
|
766
|
-
if (!allowedCommands.includes(command)) {
|
|
767
|
-
throw new Error(`Invalid command: ${command}`);
|
|
768
|
-
}
|
|
769
|
-
|
|
770
|
-
return runCommand(command);
|
|
771
|
-
}
|
|
772
|
-
|
|
773
|
-
// ❌ INCORRECTO: Sin validación
|
|
774
|
-
function executeCommand(command) {
|
|
775
|
-
return eval(command); // NUNCA HACER ESTO
|
|
776
|
-
}
|
|
777
|
-
```
|
|
778
|
-
|
|
779
|
-
### Protección contra Path Traversal
|
|
780
|
-
|
|
781
|
-
```javascript
|
|
782
|
-
// ✅ CORRECTO: Validar rutas de archivos
|
|
783
|
-
const path = require('path');
|
|
784
|
-
|
|
785
|
-
function loadFile(filePath) {
|
|
786
|
-
const basePath = path.resolve(__dirname, '.sinapse-ai');
|
|
787
|
-
const resolvedPath = path.resolve(basePath, filePath);
|
|
788
|
-
|
|
789
|
-
// Prevenir traversal de directorios
|
|
790
|
-
if (!resolvedPath.startsWith(basePath)) {
|
|
791
|
-
throw new Error('Invalid file path');
|
|
792
|
-
}
|
|
793
|
-
|
|
794
|
-
return fs.readFile(resolvedPath, 'utf8');
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
// ❌ INCORRECTO: Uso directo de ruta
|
|
798
|
-
function loadFile(filePath) {
|
|
799
|
-
return fs.readFile(filePath, 'utf8'); // Vulnerable a ../../../etc/passwd
|
|
800
|
-
}
|
|
801
|
-
```
|
|
802
|
-
|
|
803
|
-
### Gestión de Secretos
|
|
804
|
-
|
|
805
|
-
```javascript
|
|
806
|
-
// ✅ CORRECTO: Usar variables de entorno
|
|
807
|
-
const apiKey = process.env.CLICKUP_API_KEY;
|
|
808
|
-
|
|
809
|
-
if (!apiKey) {
|
|
810
|
-
throw new Error('CLICKUP_API_KEY environment variable not set');
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
// ❌ INCORRECTO: Secretos hardcodeados
|
|
814
|
-
const apiKey = 'pk_12345678_abcdefgh'; // NUNCA HACER ESTO
|
|
815
|
-
```
|
|
816
|
-
|
|
817
|
-
### Seguridad de Dependencias
|
|
818
|
-
|
|
819
|
-
```bash
|
|
820
|
-
# Auditorías de seguridad regulares
|
|
821
|
-
npm audit
|
|
822
|
-
npm audit fix
|
|
823
|
-
|
|
824
|
-
# Usar Snyk o similar para monitoreo continuo
|
|
825
|
-
```
|
|
826
|
-
|
|
827
|
-
---
|
|
828
|
-
|
|
829
|
-
## Aplicación
|
|
830
|
-
|
|
831
|
-
### Pre-commit Hooks
|
|
832
|
-
|
|
833
|
-
```bash
|
|
834
|
-
# .husky/pre-commit
|
|
835
|
-
#!/bin/sh
|
|
836
|
-
npm run lint
|
|
837
|
-
npm run typecheck
|
|
838
|
-
npm test
|
|
839
|
-
```
|
|
840
|
-
|
|
841
|
-
### Pipeline CI/CD
|
|
842
|
-
|
|
843
|
-
```yaml
|
|
844
|
-
# .github/workflows/ci.yml
|
|
845
|
-
name: CI
|
|
846
|
-
|
|
847
|
-
on: [push, pull_request]
|
|
848
|
-
|
|
849
|
-
jobs:
|
|
850
|
-
test:
|
|
851
|
-
runs-on: ubuntu-latest
|
|
852
|
-
steps:
|
|
853
|
-
- uses: actions/checkout@v3
|
|
854
|
-
- uses: actions/setup-node@v3
|
|
855
|
-
with:
|
|
856
|
-
node-version: '18'
|
|
857
|
-
- run: npm ci
|
|
858
|
-
- run: npm run lint
|
|
859
|
-
- run: npm run typecheck
|
|
860
|
-
- run: npm test -- --coverage
|
|
861
|
-
- run: npm audit
|
|
862
|
-
```
|
|
863
|
-
|
|
864
|
-
### Integración CodeRabbit
|
|
865
|
-
|
|
866
|
-
Todos los PRs son revisados automáticamente por CodeRabbit para:
|
|
867
|
-
|
|
868
|
-
- Problemas de calidad de código
|
|
869
|
-
- Vulnerabilidades de seguridad
|
|
870
|
-
- Problemas de rendimiento
|
|
871
|
-
- Violaciones de mejores prácticas
|
|
872
|
-
- Brechas de cobertura de tests
|
|
873
|
-
|
|
874
|
-
---
|
|
875
|
-
|
|
876
|
-
## Historial de Versiones
|
|
877
|
-
|
|
878
|
-
| Versión | Fecha | Cambios | Autor |
|
|
879
|
-
| ------- | ---------- | ---------------------------------------------------------------- | ---------------- |
|
|
880
|
-
| 1.0 | 2025-01-15 | Documento inicial de estándares de codificación | Aria (architect) |
|
|
881
|
-
| 1.1 | 2025-12-14 | Actualizado aviso de migración a SinapseAI/sinapse-ai [Story 6.10] | Dex (dev) |
|
|
882
|
-
|
|
883
|
-
---
|
|
884
|
-
|
|
885
|
-
**Documentos Relacionados:**
|
|
886
|
-
|
|
887
|
-
- [Stack Tecnológico](./tech-stack.md)
|
|
888
|
-
- [Árbol de Código Fuente](./source-tree.md)
|
|
889
|
-
|
|
890
|
-
---
|
|
891
|
-
|
|
892
|
-
_Este es un estándar oficial del framework SINAPSE. Todas las contribuciones de código deben cumplir._
|