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,896 +0,0 @@
|
|
|
1
|
-
<!-- Traduccion: ES | Original: /docs/en/architecture/coding-standards.md | Sincronizacion: 2026-01-26 -->
|
|
2
|
-
|
|
3
|
-
> ⚠️ **OBSOLETO**: Este archivo se mantiene solo por compatibilidad hacia atras.
|
|
4
|
-
>
|
|
5
|
-
> **Version oficial:** [docs/framework/coding-standards.md](../framework/coding-standards.md)
|
|
6
|
-
>
|
|
7
|
-
> Este archivo sera eliminado en Q2 2026 despues de la consolidacion completa a `docs/framework/`.
|
|
8
|
-
|
|
9
|
-
---
|
|
10
|
-
|
|
11
|
-
# Estandares de Codigo SINAPSE
|
|
12
|
-
|
|
13
|
-
> 🌐 [EN](../../architecture/coding-standards.md) | [PT](../../pt/architecture/coding-standards.md) | **ES**
|
|
14
|
-
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
**Version:** 1.1
|
|
18
|
-
**Ultima Actualizacion:** 2025-12-14
|
|
19
|
-
**Estado:** OBSOLETO - Ver docs/framework/coding-standards.md
|
|
20
|
-
**Aviso de Migracion:** Este documento migrara al repositorio `SinapseAI/sinapse-ai` en Q2 2026 (ver Decision 005)
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## 📋 Tabla de Contenidos
|
|
25
|
-
|
|
26
|
-
- [Descripcion General](#descripcion-general)
|
|
27
|
-
- [Estandares JavaScript/TypeScript](#estandares-javascripttypescript)
|
|
28
|
-
- [Organizacion de Archivos](#organizacion-de-archivos)
|
|
29
|
-
- [Convenciones de Nomenclatura](#convenciones-de-nomenclatura)
|
|
30
|
-
- [Calidad de Codigo](#calidad-de-codigo)
|
|
31
|
-
- [Estandares de Documentacion](#estandares-de-documentacion)
|
|
32
|
-
- [Estandares de Testing](#estandares-de-testing)
|
|
33
|
-
- [Convenciones de Git](#convenciones-de-git)
|
|
34
|
-
- [Estandares de Seguridad](#estandares-de-seguridad)
|
|
35
|
-
|
|
36
|
-
---
|
|
37
|
-
|
|
38
|
-
## Descripcion General
|
|
39
|
-
|
|
40
|
-
Este documento define los estandares oficiales de codigo para el desarrollo del framework SINAPSE. Todas las contribuciones de codigo deben adherirse a estos estandares para asegurar consistencia, mantenibilidad y calidad.
|
|
41
|
-
|
|
42
|
-
**Aplicacion:**
|
|
43
|
-
|
|
44
|
-
- ESLint (automatizado)
|
|
45
|
-
- Prettier (automatizado)
|
|
46
|
-
- Revision de CodeRabbit (automatizado)
|
|
47
|
-
- Revision humana (manual)
|
|
48
|
-
|
|
49
|
-
---
|
|
50
|
-
|
|
51
|
-
## Estandares JavaScript/TypeScript
|
|
52
|
-
|
|
53
|
-
### Version del Lenguaje
|
|
54
|
-
|
|
55
|
-
```javascript
|
|
56
|
-
// Objetivo: ES2022 (Node.js 18+)
|
|
57
|
-
// TypeScript: 5.x
|
|
58
|
-
|
|
59
|
-
// ✅ CORRECTO: Sintaxis moderna
|
|
60
|
-
const data = await fetchData();
|
|
61
|
-
const { id, name } = data;
|
|
62
|
-
|
|
63
|
-
// ❌ INCORRECTO: Sintaxis obsoleta
|
|
64
|
-
fetchData().then(function (data) {
|
|
65
|
-
var id = data.id;
|
|
66
|
-
var name = data.name;
|
|
67
|
-
});
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
### Configuracion de TypeScript
|
|
71
|
-
|
|
72
|
-
```json
|
|
73
|
-
// tsconfig.json
|
|
74
|
-
{
|
|
75
|
-
"compilerOptions": {
|
|
76
|
-
"target": "ES2022",
|
|
77
|
-
"module": "commonjs",
|
|
78
|
-
"lib": ["ES2022"],
|
|
79
|
-
"strict": true,
|
|
80
|
-
"esModuleInterop": true,
|
|
81
|
-
"skipLibCheck": true,
|
|
82
|
-
"forceConsistentCasingInFileNames": true,
|
|
83
|
-
"resolveJsonModule": true,
|
|
84
|
-
"declaration": true,
|
|
85
|
-
"outDir": "./dist",
|
|
86
|
-
"rootDir": "./src"
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
### Estilo de Codigo
|
|
92
|
-
|
|
93
|
-
#### Indentacion y Formato
|
|
94
|
-
|
|
95
|
-
```javascript
|
|
96
|
-
// ✅ CORRECTO: 2 espacios de indentacion
|
|
97
|
-
function processAgent(agent) {
|
|
98
|
-
if (agent.enabled) {
|
|
99
|
-
return loadAgent(agent);
|
|
100
|
-
}
|
|
101
|
-
return null;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// ❌ INCORRECTO: 4 espacios o tabs
|
|
105
|
-
function processAgent(agent) {
|
|
106
|
-
if (agent.enabled) {
|
|
107
|
-
return loadAgent(agent);
|
|
108
|
-
}
|
|
109
|
-
return null;
|
|
110
|
-
}
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
**Configuracion de Prettier:**
|
|
114
|
-
|
|
115
|
-
```json
|
|
116
|
-
{
|
|
117
|
-
"printWidth": 100,
|
|
118
|
-
"tabWidth": 2,
|
|
119
|
-
"useTabs": false,
|
|
120
|
-
"semi": true,
|
|
121
|
-
"singleQuote": true,
|
|
122
|
-
"trailingComma": "es5",
|
|
123
|
-
"bracketSpacing": true,
|
|
124
|
-
"arrowParens": "always"
|
|
125
|
-
}
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
#### Longitud de Linea
|
|
129
|
-
|
|
130
|
-
```javascript
|
|
131
|
-
// ✅ CORRECTO: Maximo 100 caracteres
|
|
132
|
-
const result = await executeTask(taskName, taskArgs, { timeout: 5000, retry: 3 });
|
|
133
|
-
|
|
134
|
-
// ❌ INCORRECTO: Mas de 100 caracteres
|
|
135
|
-
const result = await executeTask(taskName, taskArgs, {
|
|
136
|
-
timeout: 5000,
|
|
137
|
-
retry: 3,
|
|
138
|
-
failureCallback: onFailure,
|
|
139
|
-
});
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
#### Comillas
|
|
143
|
-
|
|
144
|
-
```javascript
|
|
145
|
-
// ✅ CORRECTO: Comillas simples para strings
|
|
146
|
-
const agentName = 'developer';
|
|
147
|
-
const message = `Agent ${agentName} activated`;
|
|
148
|
-
|
|
149
|
-
// ❌ INCORRECTO: Comillas dobles (excepto JSON)
|
|
150
|
-
const agentName = 'developer';
|
|
151
|
-
```
|
|
152
|
-
|
|
153
|
-
### Patrones Modernos de JavaScript
|
|
154
|
-
|
|
155
|
-
#### Async/Await (Preferido)
|
|
156
|
-
|
|
157
|
-
```javascript
|
|
158
|
-
// ✅ CORRECTO: async/await
|
|
159
|
-
async function loadAgent(agentId) {
|
|
160
|
-
try {
|
|
161
|
-
const agent = await fetchAgent(agentId);
|
|
162
|
-
const config = await loadConfig(agent.configPath);
|
|
163
|
-
return { agent, config };
|
|
164
|
-
} catch (error) {
|
|
165
|
-
console.error(`Error al cargar agente ${agentId}:`, error);
|
|
166
|
-
throw error;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
// ❌ INCORRECTO: Cadenas de Promise
|
|
171
|
-
function loadAgent(agentId) {
|
|
172
|
-
return fetchAgent(agentId)
|
|
173
|
-
.then((agent) => loadConfig(agent.configPath).then((config) => ({ agent, config })))
|
|
174
|
-
.catch((error) => {
|
|
175
|
-
console.error(`Error al cargar agente ${agentId}:`, error);
|
|
176
|
-
throw error;
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
```
|
|
180
|
-
|
|
181
|
-
#### Desestructuracion
|
|
182
|
-
|
|
183
|
-
```javascript
|
|
184
|
-
// ✅ CORRECTO: Desestructuracion
|
|
185
|
-
const { name, id, enabled } = agent;
|
|
186
|
-
const [first, second, ...rest] = items;
|
|
187
|
-
|
|
188
|
-
// ❌ INCORRECTO: Extraccion manual
|
|
189
|
-
const name = agent.name;
|
|
190
|
-
const id = agent.id;
|
|
191
|
-
const enabled = agent.enabled;
|
|
192
|
-
```
|
|
193
|
-
|
|
194
|
-
#### Funciones Flecha
|
|
195
|
-
|
|
196
|
-
```javascript
|
|
197
|
-
// ✅ CORRECTO: Funciones flecha para callbacks
|
|
198
|
-
const activeAgents = agents.filter((agent) => agent.enabled);
|
|
199
|
-
const agentNames = agents.map((agent) => agent.name);
|
|
200
|
-
|
|
201
|
-
// ❌ INCORRECTO: Funciones tradicionales para callbacks simples
|
|
202
|
-
const activeAgents = agents.filter(function (agent) {
|
|
203
|
-
return agent.enabled;
|
|
204
|
-
});
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
#### Template Literals
|
|
208
|
-
|
|
209
|
-
```javascript
|
|
210
|
-
// ✅ CORRECTO: Template literals para interpolacion de strings
|
|
211
|
-
const message = `Agente ${agentName} cargado exitosamente`;
|
|
212
|
-
const path = `${baseDir}/${agentId}/config.yaml`;
|
|
213
|
-
|
|
214
|
-
// ❌ INCORRECTO: Concatenacion de strings
|
|
215
|
-
const message = 'Agente ' + agentName + ' cargado exitosamente';
|
|
216
|
-
const path = baseDir + '/' + agentId + '/config.yaml';
|
|
217
|
-
```
|
|
218
|
-
|
|
219
|
-
### Manejo de Errores
|
|
220
|
-
|
|
221
|
-
```javascript
|
|
222
|
-
// ✅ CORRECTO: Manejo de errores especifico con contexto
|
|
223
|
-
async function executeTask(taskName) {
|
|
224
|
-
try {
|
|
225
|
-
const task = await loadTask(taskName);
|
|
226
|
-
return await task.execute();
|
|
227
|
-
} catch (error) {
|
|
228
|
-
console.error(`Ejecucion de tarea fallida [${taskName}]:`, error);
|
|
229
|
-
throw new Error(`Error al ejecutar tarea "${taskName}": ${error.message}`);
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
// ❌ INCORRECTO: Fallos silenciosos o errores genericos
|
|
234
|
-
async function executeTask(taskName) {
|
|
235
|
-
try {
|
|
236
|
-
const task = await loadTask(taskName);
|
|
237
|
-
return await task.execute();
|
|
238
|
-
} catch (error) {
|
|
239
|
-
console.log('Error:', error);
|
|
240
|
-
return null; // Fallo silencioso
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
```
|
|
244
|
-
|
|
245
|
-
---
|
|
246
|
-
|
|
247
|
-
## Organizacion de Archivos
|
|
248
|
-
|
|
249
|
-
### Estructura de Directorios
|
|
250
|
-
|
|
251
|
-
```
|
|
252
|
-
.sinapse-ai/
|
|
253
|
-
├── agents/ # Definiciones de agentes (YAML + Markdown)
|
|
254
|
-
├── tasks/ # Workflows de tareas (Markdown)
|
|
255
|
-
├── templates/ # Plantillas de documentos (YAML/Markdown)
|
|
256
|
-
├── workflows/ # Workflows multi-paso (YAML)
|
|
257
|
-
├── checklists/ # Checklists de validacion (Markdown)
|
|
258
|
-
├── data/ # Base de conocimiento (Markdown)
|
|
259
|
-
├── utils/ # Scripts de utilidad (JavaScript)
|
|
260
|
-
├── tools/ # Integraciones de herramientas (YAML)
|
|
261
|
-
└── elicitation/ # Motores de elicitacion (JavaScript)
|
|
262
|
-
|
|
263
|
-
docs/
|
|
264
|
-
├── architecture/ # Decisiones de arquitectura especificas del proyecto
|
|
265
|
-
├── framework/ # Documentacion oficial del framework (migra a REPO 1)
|
|
266
|
-
├── stories/ # Historias de desarrollo
|
|
267
|
-
├── epics/ # Planificacion de epics
|
|
268
|
-
└── guides/ # Guias practicas
|
|
269
|
-
```
|
|
270
|
-
|
|
271
|
-
### Nomenclatura de Archivos
|
|
272
|
-
|
|
273
|
-
```javascript
|
|
274
|
-
// ✅ CORRECTO: Kebab-case para archivos
|
|
275
|
-
agent - executor.js;
|
|
276
|
-
task - runner.js;
|
|
277
|
-
greeting - builder.js;
|
|
278
|
-
context - detector.js;
|
|
279
|
-
|
|
280
|
-
// ❌ INCORRECTO: camelCase o PascalCase para archivos
|
|
281
|
-
agentExecutor.js;
|
|
282
|
-
TaskRunner.js;
|
|
283
|
-
GreetingBuilder.js;
|
|
284
|
-
```
|
|
285
|
-
|
|
286
|
-
### Estructura de Modulos
|
|
287
|
-
|
|
288
|
-
```javascript
|
|
289
|
-
// ✅ CORRECTO: Estructura de modulo clara
|
|
290
|
-
// Archivo: agent-executor.js
|
|
291
|
-
|
|
292
|
-
// 1. Imports
|
|
293
|
-
const fs = require('fs').promises;
|
|
294
|
-
const yaml = require('yaml');
|
|
295
|
-
const { loadConfig } = require('./config-loader');
|
|
296
|
-
|
|
297
|
-
// 2. Constantes
|
|
298
|
-
const DEFAULT_TIMEOUT = 5000;
|
|
299
|
-
const MAX_RETRIES = 3;
|
|
300
|
-
|
|
301
|
-
// 3. Funciones auxiliares (privadas)
|
|
302
|
-
function validateAgent(agent) {
|
|
303
|
-
// ...
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
// 4. Exports principales (API publica)
|
|
307
|
-
async function executeAgent(agentId, args) {
|
|
308
|
-
// ...
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
async function loadAgent(agentId) {
|
|
312
|
-
// ...
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
// 5. Exports
|
|
316
|
-
module.exports = {
|
|
317
|
-
executeAgent,
|
|
318
|
-
loadAgent,
|
|
319
|
-
};
|
|
320
|
-
```
|
|
321
|
-
|
|
322
|
-
---
|
|
323
|
-
|
|
324
|
-
## Convenciones de Nomenclatura
|
|
325
|
-
|
|
326
|
-
### Variables y Funciones
|
|
327
|
-
|
|
328
|
-
```javascript
|
|
329
|
-
// ✅ CORRECTO: camelCase para variables y funciones
|
|
330
|
-
const agentName = 'developer';
|
|
331
|
-
const taskResult = await executeTask();
|
|
332
|
-
|
|
333
|
-
function loadAgentConfig(agentId) {
|
|
334
|
-
// ...
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
async function fetchAgentData(agentId) {
|
|
338
|
-
// ...
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
// ❌ INCORRECTO: snake_case o PascalCase
|
|
342
|
-
const agent_name = 'developer';
|
|
343
|
-
const TaskResult = await executeTask();
|
|
344
|
-
|
|
345
|
-
function LoadAgentConfig(agentId) {
|
|
346
|
-
// ...
|
|
347
|
-
}
|
|
348
|
-
```
|
|
349
|
-
|
|
350
|
-
### Clases
|
|
351
|
-
|
|
352
|
-
```javascript
|
|
353
|
-
// ✅ CORRECTO: PascalCase para clases
|
|
354
|
-
class AgentExecutor {
|
|
355
|
-
constructor(config) {
|
|
356
|
-
this.config = config;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
async execute(agentId) {
|
|
360
|
-
// ...
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
class TaskRunner {
|
|
365
|
-
// ...
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
// ❌ INCORRECTO: camelCase o snake_case
|
|
369
|
-
class agentExecutor {
|
|
370
|
-
// ...
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
class task_runner {
|
|
374
|
-
// ...
|
|
375
|
-
}
|
|
376
|
-
```
|
|
377
|
-
|
|
378
|
-
### Constantes
|
|
379
|
-
|
|
380
|
-
```javascript
|
|
381
|
-
// ✅ CORRECTO: SCREAMING_SNAKE_CASE para constantes verdaderas
|
|
382
|
-
const MAX_RETRY_ATTEMPTS = 3;
|
|
383
|
-
const DEFAULT_TIMEOUT_MS = 5000;
|
|
384
|
-
const AGENT_STATUS_ACTIVE = 'active';
|
|
385
|
-
|
|
386
|
-
// ❌ INCORRECTO: camelCase o minusculas
|
|
387
|
-
const maxRetryAttempts = 3;
|
|
388
|
-
const defaulttimeout = 5000;
|
|
389
|
-
```
|
|
390
|
-
|
|
391
|
-
### Miembros Privados
|
|
392
|
-
|
|
393
|
-
```javascript
|
|
394
|
-
// ✅ CORRECTO: Prefijo con guion bajo para privados (convencion)
|
|
395
|
-
class AgentManager {
|
|
396
|
-
constructor() {
|
|
397
|
-
this._cache = new Map();
|
|
398
|
-
this._isInitialized = false;
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
_loadFromCache(id) {
|
|
402
|
-
// Helper privado
|
|
403
|
-
return this._cache.get(id);
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
async getAgent(id) {
|
|
407
|
-
// API publica
|
|
408
|
-
return this._loadFromCache(id) || (await this._fetchAgent(id));
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
```
|
|
412
|
-
|
|
413
|
-
### Variables Booleanas
|
|
414
|
-
|
|
415
|
-
```javascript
|
|
416
|
-
// ✅ CORRECTO: Prefijo is/has/should
|
|
417
|
-
const isEnabled = true;
|
|
418
|
-
const hasPermission = false;
|
|
419
|
-
const shouldRetry = checkCondition();
|
|
420
|
-
|
|
421
|
-
// ❌ INCORRECTO: Nombres ambiguos
|
|
422
|
-
const enabled = true;
|
|
423
|
-
const permission = false;
|
|
424
|
-
const retry = checkCondition();
|
|
425
|
-
```
|
|
426
|
-
|
|
427
|
-
---
|
|
428
|
-
|
|
429
|
-
## Calidad de Codigo
|
|
430
|
-
|
|
431
|
-
### Configuracion de ESLint
|
|
432
|
-
|
|
433
|
-
```json
|
|
434
|
-
{
|
|
435
|
-
"env": {
|
|
436
|
-
"node": true,
|
|
437
|
-
"es2022": true
|
|
438
|
-
},
|
|
439
|
-
"extends": ["eslint:recommended"],
|
|
440
|
-
"parserOptions": {
|
|
441
|
-
"ecmaVersion": 13,
|
|
442
|
-
"sourceType": "module"
|
|
443
|
-
},
|
|
444
|
-
"rules": {
|
|
445
|
-
"no-console": "off",
|
|
446
|
-
"no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
|
|
447
|
-
"prefer-const": "error",
|
|
448
|
-
"no-var": "error",
|
|
449
|
-
"eqeqeq": ["error", "always"],
|
|
450
|
-
"curly": ["error", "all"],
|
|
451
|
-
"brace-style": ["error", "1tbs"],
|
|
452
|
-
"comma-dangle": ["error", "es5"],
|
|
453
|
-
"quotes": ["error", "single"],
|
|
454
|
-
"semi": ["error", "always"]
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
```
|
|
458
|
-
|
|
459
|
-
### Complejidad de Codigo
|
|
460
|
-
|
|
461
|
-
```javascript
|
|
462
|
-
// ✅ CORRECTO: Baja complejidad ciclomatica (< 10)
|
|
463
|
-
function processAgent(agent) {
|
|
464
|
-
if (!agent.enabled) return null;
|
|
465
|
-
|
|
466
|
-
const config = loadConfig(agent.configPath);
|
|
467
|
-
const result = executeAgent(agent, config);
|
|
468
|
-
|
|
469
|
-
return result;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
// ❌ INCORRECTO: Alta complejidad ciclomatica
|
|
473
|
-
function processAgent(agent) {
|
|
474
|
-
if (agent.type === 'dev') {
|
|
475
|
-
if (agent.mode === 'yolo') {
|
|
476
|
-
if (agent.hasStory) {
|
|
477
|
-
// ... logica anidada
|
|
478
|
-
} else {
|
|
479
|
-
// ... mas logica anidada
|
|
480
|
-
}
|
|
481
|
-
} else {
|
|
482
|
-
// ... mas ramas
|
|
483
|
-
}
|
|
484
|
-
} else if (agent.type === 'qa') {
|
|
485
|
-
// ... mas ramas
|
|
486
|
-
}
|
|
487
|
-
// ... aun mas complejidad
|
|
488
|
-
}
|
|
489
|
-
```
|
|
490
|
-
|
|
491
|
-
**Refactorizar funciones complejas:**
|
|
492
|
-
|
|
493
|
-
```javascript
|
|
494
|
-
// ✅ CORRECTO: Funciones auxiliares extraidas
|
|
495
|
-
function processAgent(agent) {
|
|
496
|
-
if (!agent.enabled) return null;
|
|
497
|
-
|
|
498
|
-
if (agent.type === 'dev') {
|
|
499
|
-
return processDevAgent(agent);
|
|
500
|
-
}
|
|
501
|
-
|
|
502
|
-
if (agent.type === 'qa') {
|
|
503
|
-
return processQaAgent(agent);
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
return processDefaultAgent(agent);
|
|
507
|
-
}
|
|
508
|
-
```
|
|
509
|
-
|
|
510
|
-
### Principio DRY
|
|
511
|
-
|
|
512
|
-
```javascript
|
|
513
|
-
// ✅ CORRECTO: Funcion reutilizable
|
|
514
|
-
function validateAndLoad(filePath, schema) {
|
|
515
|
-
const content = fs.readFileSync(filePath, 'utf8');
|
|
516
|
-
const data = yaml.parse(content);
|
|
517
|
-
|
|
518
|
-
if (!schema.validate(data)) {
|
|
519
|
-
throw new Error(`Schema invalido: ${filePath}`);
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
return data;
|
|
523
|
-
}
|
|
524
|
-
|
|
525
|
-
const agent = validateAndLoad('agent.yaml', agentSchema);
|
|
526
|
-
const task = validateAndLoad('task.yaml', taskSchema);
|
|
527
|
-
|
|
528
|
-
// ❌ INCORRECTO: Codigo repetido
|
|
529
|
-
const agentContent = fs.readFileSync('agent.yaml', 'utf8');
|
|
530
|
-
const agentData = yaml.parse(agentContent);
|
|
531
|
-
if (!agentSchema.validate(agentData)) {
|
|
532
|
-
throw new Error('Schema de agente invalido');
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
const taskContent = fs.readFileSync('task.yaml', 'utf8');
|
|
536
|
-
const taskData = yaml.parse(taskContent);
|
|
537
|
-
if (!taskSchema.validate(taskData)) {
|
|
538
|
-
throw new Error('Schema de tarea invalido');
|
|
539
|
-
}
|
|
540
|
-
```
|
|
541
|
-
|
|
542
|
-
---
|
|
543
|
-
|
|
544
|
-
## Estandares de Documentacion
|
|
545
|
-
|
|
546
|
-
### Comentarios JSDoc
|
|
547
|
-
|
|
548
|
-
```javascript
|
|
549
|
-
/**
|
|
550
|
-
* Carga y ejecuta un agente SINAPSE
|
|
551
|
-
*
|
|
552
|
-
* @param {string} agentId - Identificador unico del agente
|
|
553
|
-
* @param {Object} args - Argumentos de ejecucion del agente
|
|
554
|
-
* @param {boolean} args.yoloMode - Habilitar modo autonomo
|
|
555
|
-
* @param {string} args.storyPath - Ruta al archivo de historia (opcional)
|
|
556
|
-
* @param {number} [timeout=5000] - Timeout de ejecucion en milisegundos
|
|
557
|
-
* @returns {Promise<Object>} Resultado de la ejecucion del agente
|
|
558
|
-
* @throws {Error} Si el agente no se encuentra o la ejecucion falla
|
|
559
|
-
*
|
|
560
|
-
* @example
|
|
561
|
-
* const result = await executeAgent('dev', {
|
|
562
|
-
* yoloMode: true,
|
|
563
|
-
* storyPath: 'docs/stories/story-6.1.2.5.md'
|
|
564
|
-
* });
|
|
565
|
-
*/
|
|
566
|
-
async function executeAgent(agentId, args, timeout = 5000) {
|
|
567
|
-
// Implementacion
|
|
568
|
-
}
|
|
569
|
-
```
|
|
570
|
-
|
|
571
|
-
### Comentarios en Linea
|
|
572
|
-
|
|
573
|
-
```javascript
|
|
574
|
-
// ✅ CORRECTO: Explicar POR QUE, no QUE
|
|
575
|
-
// Cache de agentes para evitar re-parseo de YAML en cada activacion (optimizacion de rendimiento)
|
|
576
|
-
const agentCache = new Map();
|
|
577
|
-
|
|
578
|
-
// Log de decisiones requerido para rollback en modo yolo (requisito de Historia 6.1.2.6)
|
|
579
|
-
if (yoloMode) {
|
|
580
|
-
await createDecisionLog(storyId);
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
// ❌ INCORRECTO: Decir lo obvio
|
|
584
|
-
// Crear un nuevo Map
|
|
585
|
-
const agentCache = new Map();
|
|
586
|
-
|
|
587
|
-
// Si yolo mode es verdadero
|
|
588
|
-
if (yoloMode) {
|
|
589
|
-
await createDecisionLog(storyId);
|
|
590
|
-
}
|
|
591
|
-
```
|
|
592
|
-
|
|
593
|
-
### Archivos README
|
|
594
|
-
|
|
595
|
-
Cada modulo/directorio debe tener un README.md:
|
|
596
|
-
|
|
597
|
-
```markdown
|
|
598
|
-
# Agent Executor
|
|
599
|
-
|
|
600
|
-
**Proposito:** Carga y ejecuta agentes SINAPSE con gestion de configuracion.
|
|
601
|
-
|
|
602
|
-
## Uso
|
|
603
|
-
|
|
604
|
-
\`\`\`javascript
|
|
605
|
-
const { executeAgent } = require('./agent-executor');
|
|
606
|
-
|
|
607
|
-
const result = await executeAgent('dev', {
|
|
608
|
-
yoloMode: true,
|
|
609
|
-
storyPath: 'docs/stories/story-6.1.2.5.md'
|
|
610
|
-
});
|
|
611
|
-
\`\`\`
|
|
612
|
-
|
|
613
|
-
## API
|
|
614
|
-
|
|
615
|
-
- `executeAgent(agentId, args, timeout)` - Ejecutar agente
|
|
616
|
-
- `loadAgent(agentId)` - Cargar configuracion de agente
|
|
617
|
-
|
|
618
|
-
## Dependencias
|
|
619
|
-
|
|
620
|
-
- `yaml` - Parsing de YAML
|
|
621
|
-
- `fs/promises` - Operaciones de sistema de archivos
|
|
622
|
-
```
|
|
623
|
-
|
|
624
|
-
---
|
|
625
|
-
|
|
626
|
-
## Estandares de Testing
|
|
627
|
-
|
|
628
|
-
### Nomenclatura de Archivos de Test
|
|
629
|
-
|
|
630
|
-
```bash
|
|
631
|
-
# Tests unitarios
|
|
632
|
-
tests/unit/context-detector.test.js
|
|
633
|
-
tests/unit/git-config-detector.test.js
|
|
634
|
-
|
|
635
|
-
# Tests de integracion
|
|
636
|
-
tests/integration/contextual-greeting.test.js
|
|
637
|
-
tests/integration/workflow-navigation.test.js
|
|
638
|
-
|
|
639
|
-
# Tests E2E
|
|
640
|
-
tests/e2e/agent-activation.test.js
|
|
641
|
-
```
|
|
642
|
-
|
|
643
|
-
### Estructura de Tests
|
|
644
|
-
|
|
645
|
-
```javascript
|
|
646
|
-
// ✅ CORRECTO: Nombres de test descriptivos con Given-When-Then
|
|
647
|
-
describe('ContextDetector', () => {
|
|
648
|
-
describe('detectSessionType', () => {
|
|
649
|
-
it('deberia retornar "new" cuando el historial de conversacion esta vacio', async () => {
|
|
650
|
-
// Given (Dado)
|
|
651
|
-
const conversationHistory = [];
|
|
652
|
-
const sessionFile = null;
|
|
653
|
-
|
|
654
|
-
// When (Cuando)
|
|
655
|
-
const result = await detectSessionType(conversationHistory, sessionFile);
|
|
656
|
-
|
|
657
|
-
// Then (Entonces)
|
|
658
|
-
expect(result).toBe('new');
|
|
659
|
-
});
|
|
660
|
-
|
|
661
|
-
it('deberia retornar "workflow" cuando el patron de comando coincide con story_development', async () => {
|
|
662
|
-
// Given (Dado)
|
|
663
|
-
const conversationHistory = [{ command: 'validate-story-draft' }, { command: 'develop' }];
|
|
664
|
-
|
|
665
|
-
// When (Cuando)
|
|
666
|
-
const result = await detectSessionType(conversationHistory, null);
|
|
667
|
-
|
|
668
|
-
// Then (Entonces)
|
|
669
|
-
expect(result).toBe('workflow');
|
|
670
|
-
});
|
|
671
|
-
});
|
|
672
|
-
});
|
|
673
|
-
```
|
|
674
|
-
|
|
675
|
-
### Cobertura de Codigo
|
|
676
|
-
|
|
677
|
-
- **Minimo:** 80% para todos los modulos nuevos
|
|
678
|
-
- **Objetivo:** 90% para modulos core
|
|
679
|
-
- **Critico:** 100% para modulos de seguridad/validacion
|
|
680
|
-
|
|
681
|
-
```bash
|
|
682
|
-
# Ejecutar cobertura
|
|
683
|
-
npm test -- --coverage
|
|
684
|
-
|
|
685
|
-
# Umbrales de cobertura en package.json
|
|
686
|
-
{
|
|
687
|
-
"jest": {
|
|
688
|
-
"coverageThreshold": {
|
|
689
|
-
"global": {
|
|
690
|
-
"branches": 80,
|
|
691
|
-
"functions": 80,
|
|
692
|
-
"lines": 80,
|
|
693
|
-
"statements": 80
|
|
694
|
-
}
|
|
695
|
-
}
|
|
696
|
-
}
|
|
697
|
-
}
|
|
698
|
-
```
|
|
699
|
-
|
|
700
|
-
---
|
|
701
|
-
|
|
702
|
-
## Convenciones de Git
|
|
703
|
-
|
|
704
|
-
### Mensajes de Commit
|
|
705
|
-
|
|
706
|
-
```bash
|
|
707
|
-
# ✅ CORRECTO: Formato de Conventional Commits
|
|
708
|
-
feat: implementar sistema de saludo contextual de agentes [Story 6.1.2.5]
|
|
709
|
-
fix: resolver problema de invalidacion de cache de git config [Story 6.1.2.5]
|
|
710
|
-
docs: actualizar estandares de codigo con configuracion TypeScript
|
|
711
|
-
chore: actualizar configuracion de ESLint
|
|
712
|
-
refactor: extraer greeting builder a modulo separado
|
|
713
|
-
test: agregar tests unitarios para WorkflowNavigator
|
|
714
|
-
|
|
715
|
-
# ❌ INCORRECTO: Vagos o no descriptivos
|
|
716
|
-
actualizar archivos
|
|
717
|
-
arreglar bug
|
|
718
|
-
cambios
|
|
719
|
-
wip
|
|
720
|
-
```
|
|
721
|
-
|
|
722
|
-
**Formato:**
|
|
723
|
-
|
|
724
|
-
```
|
|
725
|
-
<tipo>: <descripcion> [Story <id>]
|
|
726
|
-
|
|
727
|
-
<cuerpo opcional>
|
|
728
|
-
|
|
729
|
-
<pie opcional>
|
|
730
|
-
```
|
|
731
|
-
|
|
732
|
-
**Tipos:**
|
|
733
|
-
|
|
734
|
-
- `feat`: Nueva funcionalidad
|
|
735
|
-
- `fix`: Correccion de bug
|
|
736
|
-
- `docs`: Cambios en documentacion
|
|
737
|
-
- `chore`: Cambios de build/herramientas
|
|
738
|
-
- `refactor`: Refactorizacion de codigo (sin cambio funcional)
|
|
739
|
-
- `test`: Adiciones/modificaciones de tests
|
|
740
|
-
- `perf`: Mejoras de rendimiento
|
|
741
|
-
- `style`: Cambios de estilo de codigo (formato, etc.)
|
|
742
|
-
|
|
743
|
-
### Nomenclatura de Ramas
|
|
744
|
-
|
|
745
|
-
```bash
|
|
746
|
-
# ✅ CORRECTO: Nombres de rama descriptivos
|
|
747
|
-
feature/story-6.1.2.5-contextual-greeting
|
|
748
|
-
fix/git-config-cache-ttl
|
|
749
|
-
refactor/agent-executor-optimization
|
|
750
|
-
docs/update-coding-standards
|
|
751
|
-
|
|
752
|
-
# ❌ INCORRECTO: Nombres de rama vagos
|
|
753
|
-
update
|
|
754
|
-
fix
|
|
755
|
-
my-branch
|
|
756
|
-
```
|
|
757
|
-
|
|
758
|
-
---
|
|
759
|
-
|
|
760
|
-
## Estandares de Seguridad
|
|
761
|
-
|
|
762
|
-
### Validacion de Entrada
|
|
763
|
-
|
|
764
|
-
```javascript
|
|
765
|
-
// ✅ CORRECTO: Validar todas las entradas externas
|
|
766
|
-
function executeCommand(command) {
|
|
767
|
-
// Validacion de whitelist
|
|
768
|
-
const allowedCommands = ['help', 'develop', 'review', 'deploy'];
|
|
769
|
-
|
|
770
|
-
if (!allowedCommands.includes(command)) {
|
|
771
|
-
throw new Error(`Comando invalido: ${command}`);
|
|
772
|
-
}
|
|
773
|
-
|
|
774
|
-
return runCommand(command);
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
// ❌ INCORRECTO: Sin validacion
|
|
778
|
-
function executeCommand(command) {
|
|
779
|
-
return eval(command); // NUNCA HACER ESTO
|
|
780
|
-
}
|
|
781
|
-
```
|
|
782
|
-
|
|
783
|
-
### Proteccion contra Path Traversal
|
|
784
|
-
|
|
785
|
-
```javascript
|
|
786
|
-
// ✅ CORRECTO: Validar rutas de archivo
|
|
787
|
-
const path = require('path');
|
|
788
|
-
|
|
789
|
-
function loadFile(filePath) {
|
|
790
|
-
const basePath = path.resolve(__dirname, '.sinapse-ai');
|
|
791
|
-
const resolvedPath = path.resolve(basePath, filePath);
|
|
792
|
-
|
|
793
|
-
// Prevenir directory traversal
|
|
794
|
-
if (!resolvedPath.startsWith(basePath)) {
|
|
795
|
-
throw new Error('Ruta de archivo invalida');
|
|
796
|
-
}
|
|
797
|
-
|
|
798
|
-
return fs.readFile(resolvedPath, 'utf8');
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
// ❌ INCORRECTO: Uso directo de ruta
|
|
802
|
-
function loadFile(filePath) {
|
|
803
|
-
return fs.readFile(filePath, 'utf8'); // Vulnerable a ../../../etc/passwd
|
|
804
|
-
}
|
|
805
|
-
```
|
|
806
|
-
|
|
807
|
-
### Gestion de Secretos
|
|
808
|
-
|
|
809
|
-
```javascript
|
|
810
|
-
// ✅ CORRECTO: Usar variables de entorno
|
|
811
|
-
const apiKey = process.env.CLICKUP_API_KEY;
|
|
812
|
-
|
|
813
|
-
if (!apiKey) {
|
|
814
|
-
throw new Error('Variable de entorno CLICKUP_API_KEY no configurada');
|
|
815
|
-
}
|
|
816
|
-
|
|
817
|
-
// ❌ INCORRECTO: Secretos hardcodeados
|
|
818
|
-
const apiKey = 'pk_12345678_abcdefgh'; // NUNCA HACER ESTO
|
|
819
|
-
```
|
|
820
|
-
|
|
821
|
-
### Seguridad de Dependencias
|
|
822
|
-
|
|
823
|
-
```bash
|
|
824
|
-
# Auditorias de seguridad regulares
|
|
825
|
-
npm audit
|
|
826
|
-
npm audit fix
|
|
827
|
-
|
|
828
|
-
# Usar Snyk o similar para monitoreo continuo
|
|
829
|
-
```
|
|
830
|
-
|
|
831
|
-
---
|
|
832
|
-
|
|
833
|
-
## Aplicacion
|
|
834
|
-
|
|
835
|
-
### Pre-commit Hooks
|
|
836
|
-
|
|
837
|
-
```bash
|
|
838
|
-
# .husky/pre-commit
|
|
839
|
-
#!/bin/sh
|
|
840
|
-
npm run lint
|
|
841
|
-
npm run typecheck
|
|
842
|
-
npm test
|
|
843
|
-
```
|
|
844
|
-
|
|
845
|
-
### Pipeline CI/CD
|
|
846
|
-
|
|
847
|
-
```yaml
|
|
848
|
-
# .github/workflows/ci.yml
|
|
849
|
-
name: CI
|
|
850
|
-
|
|
851
|
-
on: [push, pull_request]
|
|
852
|
-
|
|
853
|
-
jobs:
|
|
854
|
-
test:
|
|
855
|
-
runs-on: ubuntu-latest
|
|
856
|
-
steps:
|
|
857
|
-
- uses: actions/checkout@v3
|
|
858
|
-
- uses: actions/setup-node@v3
|
|
859
|
-
with:
|
|
860
|
-
node-version: '18'
|
|
861
|
-
- run: npm ci
|
|
862
|
-
- run: npm run lint
|
|
863
|
-
- run: npm run typecheck
|
|
864
|
-
- run: npm test -- --coverage
|
|
865
|
-
- run: npm audit
|
|
866
|
-
```
|
|
867
|
-
|
|
868
|
-
### Integracion con CodeRabbit
|
|
869
|
-
|
|
870
|
-
Todos los PRs son revisados automaticamente por CodeRabbit para:
|
|
871
|
-
|
|
872
|
-
- Problemas de calidad de codigo
|
|
873
|
-
- Vulnerabilidades de seguridad
|
|
874
|
-
- Problemas de rendimiento
|
|
875
|
-
- Violaciones de mejores practicas
|
|
876
|
-
- Gaps en cobertura de tests
|
|
877
|
-
|
|
878
|
-
---
|
|
879
|
-
|
|
880
|
-
## Historial de Versiones
|
|
881
|
-
|
|
882
|
-
| Version | Fecha | Cambios | Autor |
|
|
883
|
-
| ------- | ---------- | ---------------------------------------------------------------- | ---------------- |
|
|
884
|
-
| 1.0 | 2025-01-15 | Documento inicial de estandares de codigo | Aria (architect) |
|
|
885
|
-
| 1.1 | 2025-12-14 | Actualizado aviso de migracion a SinapseAI/sinapse-ai [Story 6.10] | Dex (dev) |
|
|
886
|
-
|
|
887
|
-
---
|
|
888
|
-
|
|
889
|
-
**Documentos Relacionados:**
|
|
890
|
-
|
|
891
|
-
- [Tech Stack](./tech-stack.md)
|
|
892
|
-
- [Source Tree](./source-tree.md)
|
|
893
|
-
|
|
894
|
-
---
|
|
895
|
-
|
|
896
|
-
_Este es un estandar oficial del framework SINAPSE. Todas las contribuciones de codigo deben cumplir con el._
|