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,808 +0,0 @@
|
|
|
1
|
-
<!-- 翻译: ZH-CN | 原文: /docs/en/architecture/tech-stack.md | 同步: 2026-02-22 -->
|
|
2
|
-
|
|
3
|
-
# SINAPSE 技术栈
|
|
4
|
-
|
|
5
|
-
> 🌐 [EN](../../architecture/tech-stack.md) | [PT](../../pt/architecture/tech-stack.md) | **ZH** | [ES](../../es/architecture/tech-stack.md)
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
> ⚠️ **已弃用**: 本文件仅为向后兼容性而维护。
|
|
10
|
-
>
|
|
11
|
-
> **官方版本:** [docs/framework/tech-stack.md](../framework/tech-stack.md)
|
|
12
|
-
>
|
|
13
|
-
> 本文件将在 2026 Q2 完成 `docs/framework/` 整合后移除。
|
|
14
|
-
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
# SINAPSE 技术栈
|
|
18
|
-
|
|
19
|
-
**版本:** 1.1
|
|
20
|
-
**最后更新:** 2025-12-14
|
|
21
|
-
**状态:** 已弃用 - 参见 docs/framework/tech-stack.md
|
|
22
|
-
**迁移通知:** 本文档将在 2026 Q2 迁移到 `SinapseAI/sinapse-ai` 仓库 (参见决策 005)
|
|
23
|
-
|
|
24
|
-
---
|
|
25
|
-
|
|
26
|
-
## 📋 目录
|
|
27
|
-
|
|
28
|
-
- [概述](#概述)
|
|
29
|
-
- [核心运行时](#核心运行时)
|
|
30
|
-
- [语言和转译器](#语言和转译器)
|
|
31
|
-
- [核心依赖](#核心依赖)
|
|
32
|
-
- [开发工具](#开发工具)
|
|
33
|
-
- [测试框架](#测试框架)
|
|
34
|
-
- [构建和部署](#构建和部署)
|
|
35
|
-
- [外部集成](#外部集成)
|
|
36
|
-
- [迁移后的未来栈](#迁移后的未来栈)
|
|
37
|
-
|
|
38
|
-
---
|
|
39
|
-
|
|
40
|
-
## 概述
|
|
41
|
-
|
|
42
|
-
SINAPSE 构建在现代 JavaScript/TypeScript 和 Node.js 运行时上,优化用于开发具有交互式 UX 和代理编排功能的跨平台 CLI。
|
|
43
|
-
|
|
44
|
-
**理念:**
|
|
45
|
-
|
|
46
|
-
- 尽可能使用**成熟技术** (经过验证和稳定的依赖)
|
|
47
|
-
- 仅在必要时选择**创新技术** (性能、DX 改进)
|
|
48
|
-
- 最小化依赖 (降低供应链风险)
|
|
49
|
-
- 优先跨平台 (Windows、macOS、Linux)
|
|
50
|
-
|
|
51
|
-
---
|
|
52
|
-
|
|
53
|
-
## 核心运行时
|
|
54
|
-
|
|
55
|
-
### Node.js
|
|
56
|
-
|
|
57
|
-
```yaml
|
|
58
|
-
版本: 18.0.0+
|
|
59
|
-
LTS: 是 (LTS 有效期至 2025 年 4 月)
|
|
60
|
-
原因: 稳定的 async/await 支持、fetch API、ES2022
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
**为什么选择 Node.js 18+:**
|
|
64
|
-
|
|
65
|
-
- ✅ 原生 `fetch()` API (无需 axios/node-fetch)
|
|
66
|
-
- ✅ 对 ES2022 模块的支持 (顶级 await)
|
|
67
|
-
- ✅ V8 10.2+ (性能改进)
|
|
68
|
-
- ✅ 活跃的 LTS 支持 (安全补丁)
|
|
69
|
-
- ✅ 跨平台 (Windows/macOS/Linux)
|
|
70
|
-
|
|
71
|
-
**包管理器:**
|
|
72
|
-
|
|
73
|
-
```yaml
|
|
74
|
-
主要: npm 9.0.0+
|
|
75
|
-
备选: yarn/pnpm (用户选择)
|
|
76
|
-
锁定文件: package-lock.json
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
---
|
|
80
|
-
|
|
81
|
-
## 语言和转译器
|
|
82
|
-
|
|
83
|
-
### JavaScript (主要)
|
|
84
|
-
|
|
85
|
-
```yaml
|
|
86
|
-
标准: ES2022
|
|
87
|
-
模块系统: CommonJS (require/module.exports)
|
|
88
|
-
未来: 计划迁移到 ESM (故事 6.2.x)
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
**为什么选择 ES2022:**
|
|
92
|
-
|
|
93
|
-
- ✅ 类字段和私有方法
|
|
94
|
-
- ✅ 顶级 await
|
|
95
|
-
- ✅ 错误 cause
|
|
96
|
-
- ✅ 数组 Array.at() 方法
|
|
97
|
-
- ✅ Object.hasOwn()
|
|
98
|
-
|
|
99
|
-
### TypeScript (类型定义)
|
|
100
|
-
|
|
101
|
-
```yaml
|
|
102
|
-
版本: 5.9.3
|
|
103
|
-
用途: 仅类型定义 (.d.ts 文件)
|
|
104
|
-
编译: 不使用 (纯 JS 运行时)
|
|
105
|
-
未来: 考虑完全迁移到 TypeScript (Q2 2026)
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
**当前的 TypeScript 用途:**
|
|
109
|
-
|
|
110
|
-
```typescript
|
|
111
|
-
// index.d.ts - API 公开的类型定义
|
|
112
|
-
export interface AgentConfig {
|
|
113
|
-
id: string;
|
|
114
|
-
name: string;
|
|
115
|
-
enabled: boolean;
|
|
116
|
-
dependencies?: string[];
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export function executeAgent(agentId: string, args: Record<string, any>): Promise<any>;
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
**TypeScript 配置:**
|
|
123
|
-
|
|
124
|
-
```json
|
|
125
|
-
{
|
|
126
|
-
"compilerOptions": {
|
|
127
|
-
"target": "ES2022",
|
|
128
|
-
"module": "commonjs",
|
|
129
|
-
"lib": ["ES2022"],
|
|
130
|
-
"strict": true,
|
|
131
|
-
"esModuleInterop": true,
|
|
132
|
-
"skipLibCheck": true,
|
|
133
|
-
"declaration": true,
|
|
134
|
-
"outDir": "./dist"
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
---
|
|
140
|
-
|
|
141
|
-
## 核心依赖
|
|
142
|
-
|
|
143
|
-
### CLI 和交互式 UX
|
|
144
|
-
|
|
145
|
-
#### @clack/prompts (^0.11.0)
|
|
146
|
-
|
|
147
|
-
**目的:** 现代化的 CLI 提示,具有优雅的 UX
|
|
148
|
-
**用途:** 交互式向导、用户输入收集
|
|
149
|
-
**优势:** 世界级的 UX、微调动画、进度条
|
|
150
|
-
|
|
151
|
-
```javascript
|
|
152
|
-
import { select, confirm, spinner } from '@clack/prompts';
|
|
153
|
-
|
|
154
|
-
const agent = await select({
|
|
155
|
-
message: '选择代理:',
|
|
156
|
-
options: [
|
|
157
|
-
{ value: 'dev', label: '💻 Developer' },
|
|
158
|
-
{ value: 'qa', label: '🧪 QA Engineer' },
|
|
159
|
-
],
|
|
160
|
-
});
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
#### chalk (^4.1.2)
|
|
164
|
-
|
|
165
|
-
**目的:** 终端字符串样式化
|
|
166
|
-
**用途:** 彩色输出、格式化
|
|
167
|
-
**优势:** 跨平台、零依赖、API 稳定
|
|
168
|
-
|
|
169
|
-
```javascript
|
|
170
|
-
const chalk = require('chalk');
|
|
171
|
-
console.log(chalk.green('✅ 代理激活成功'));
|
|
172
|
-
console.log(chalk.red('❌ 任务失败'));
|
|
173
|
-
```
|
|
174
|
-
|
|
175
|
-
#### picocolors (^1.1.1)
|
|
176
|
-
|
|
177
|
-
**目的:** 轻量级颜色库 (比 chalk 更快的替代品)
|
|
178
|
-
**用途:** 性能关键的彩色输出
|
|
179
|
-
**优势:** 比 chalk 小 14 倍,快 2 倍
|
|
180
|
-
|
|
181
|
-
```javascript
|
|
182
|
-
const pc = require('picocolors');
|
|
183
|
-
console.log(pc.green('✅ 快速输出'));
|
|
184
|
-
```
|
|
185
|
-
|
|
186
|
-
#### ora (^5.4.1)
|
|
187
|
-
|
|
188
|
-
**目的:** 终端加载动画
|
|
189
|
-
**用途:** 加载指示器、异步操作
|
|
190
|
-
**优势:** 美观的加载动画、可定制、广泛使用
|
|
191
|
-
|
|
192
|
-
```javascript
|
|
193
|
-
const ora = require('ora');
|
|
194
|
-
const spinner = ora('加载代理中...').start();
|
|
195
|
-
await loadAgent();
|
|
196
|
-
spinner.succeed('代理已加载');
|
|
197
|
-
```
|
|
198
|
-
|
|
199
|
-
### 文件系统和路径操作
|
|
200
|
-
|
|
201
|
-
#### fs-extra (^11.3.2)
|
|
202
|
-
|
|
203
|
-
**目的:** 改进的文件系统操作
|
|
204
|
-
**用途:** 文件复制、目录创建、JSON 读/写
|
|
205
|
-
**优势:** 基于 Promise、相对于原生 `fs` 的额外工具
|
|
206
|
-
|
|
207
|
-
```javascript
|
|
208
|
-
const fs = require('fs-extra');
|
|
209
|
-
await fs.copy('source', 'dest');
|
|
210
|
-
await fs.ensureDir('path/to/dir');
|
|
211
|
-
await fs.outputJson('config.json', data);
|
|
212
|
-
```
|
|
213
|
-
|
|
214
|
-
#### glob (^11.0.3)
|
|
215
|
-
|
|
216
|
-
**目的:** 文件模式匹配
|
|
217
|
-
**用途:** 按模式查找文件 (例: `*.md`、`**/*.yaml`)
|
|
218
|
-
**优势:** 快速、支持 gitignore 模式
|
|
219
|
-
|
|
220
|
-
```javascript
|
|
221
|
-
const { glob } = require('glob');
|
|
222
|
-
const stories = await glob('docs/stories/**/*.md');
|
|
223
|
-
```
|
|
224
|
-
|
|
225
|
-
### YAML 处理
|
|
226
|
-
|
|
227
|
-
#### yaml (^2.8.1)
|
|
228
|
-
|
|
229
|
-
**目的:** YAML 解析和序列化
|
|
230
|
-
**用途:** 代理配置、工作流、模板
|
|
231
|
-
**优势:** 快速、符合规范、保留注释
|
|
232
|
-
|
|
233
|
-
```javascript
|
|
234
|
-
const YAML = require('yaml');
|
|
235
|
-
const agent = YAML.parse(fs.readFileSync('agent.yaml', 'utf8'));
|
|
236
|
-
```
|
|
237
|
-
|
|
238
|
-
#### js-yaml (^4.1.0)
|
|
239
|
-
|
|
240
|
-
**目的:** 替代 YAML 解析器 (旧版支持)
|
|
241
|
-
**用途:** 解析旧的 YAML 文件
|
|
242
|
-
**优势:** API 不同、用于旧代码
|
|
243
|
-
|
|
244
|
-
```javascript
|
|
245
|
-
const yaml = require('js-yaml');
|
|
246
|
-
const doc = yaml.load(fs.readFileSync('config.yaml', 'utf8'));
|
|
247
|
-
```
|
|
248
|
-
|
|
249
|
-
**迁移说明:** 整合为单个 YAML 库 (故事 6.2.x)
|
|
250
|
-
|
|
251
|
-
### Markdown 处理
|
|
252
|
-
|
|
253
|
-
#### @kayvan/markdown-tree-parser (^1.5.0)
|
|
254
|
-
|
|
255
|
-
**目的:** 将 markdown 解析为 AST
|
|
256
|
-
**用途:** 故事解析、文档结构分析
|
|
257
|
-
**优势:** 轻量级、快速、支持 GFM
|
|
258
|
-
|
|
259
|
-
```javascript
|
|
260
|
-
const { parseMarkdown } = require('@kayvan/markdown-tree-parser');
|
|
261
|
-
const ast = parseMarkdown(markdownContent);
|
|
262
|
-
```
|
|
263
|
-
|
|
264
|
-
### 流程执行
|
|
265
|
-
|
|
266
|
-
#### execa (^9.6.0)
|
|
267
|
-
|
|
268
|
-
**目的:** 改进的 child_process
|
|
269
|
-
**用途:** 执行 git、npm、外部 CLI 工具
|
|
270
|
-
**优势:** 跨平台、基于 Promise、更好的错误处理
|
|
271
|
-
|
|
272
|
-
```javascript
|
|
273
|
-
const { execa } = require('execa');
|
|
274
|
-
const { stdout } = await execa('git', ['status']);
|
|
275
|
-
```
|
|
276
|
-
|
|
277
|
-
### 命令行解析
|
|
278
|
-
|
|
279
|
-
#### commander (^14.0.1)
|
|
280
|
-
|
|
281
|
-
**目的:** CLI 框架
|
|
282
|
-
**用途:** 命令行参数解析、子命令
|
|
283
|
-
**优势:** 行业标准、功能丰富、TypeScript 支持
|
|
284
|
-
|
|
285
|
-
```javascript
|
|
286
|
-
const { Command } = require('commander');
|
|
287
|
-
const program = new Command();
|
|
288
|
-
|
|
289
|
-
program
|
|
290
|
-
.command('agent <name>')
|
|
291
|
-
.description('激活一个代理')
|
|
292
|
-
.action((name) => {
|
|
293
|
-
console.log(`激活代理: ${name}`);
|
|
294
|
-
});
|
|
295
|
-
```
|
|
296
|
-
|
|
297
|
-
#### inquirer (^8.2.6)
|
|
298
|
-
|
|
299
|
-
**目的:** 交互式命令行提示
|
|
300
|
-
**用途:** 用户输入收集、向导
|
|
301
|
-
**优势:** 丰富的提示类型、验证支持
|
|
302
|
-
|
|
303
|
-
```javascript
|
|
304
|
-
const inquirer = require('inquirer');
|
|
305
|
-
const answers = await inquirer.prompt([
|
|
306
|
-
{
|
|
307
|
-
type: 'list',
|
|
308
|
-
name: 'agent',
|
|
309
|
-
message: '选择代理:',
|
|
310
|
-
choices: ['dev', 'qa', 'architect'],
|
|
311
|
-
},
|
|
312
|
-
]);
|
|
313
|
-
```
|
|
314
|
-
|
|
315
|
-
### 沙箱和安全
|
|
316
|
-
|
|
317
|
-
#### isolated-vm (^5.0.4)
|
|
318
|
-
|
|
319
|
-
**目的:** V8 隔离区用于沙箱 JavaScript 执行
|
|
320
|
-
**用途:** 安全执行用户脚本、任务执行
|
|
321
|
-
**优势:** 安全隔离、内存限制、超时控制
|
|
322
|
-
|
|
323
|
-
```javascript
|
|
324
|
-
const ivm = require('isolated-vm');
|
|
325
|
-
const isolate = new ivm.Isolate({ memoryLimit: 128 });
|
|
326
|
-
const context = await isolate.createContext();
|
|
327
|
-
```
|
|
328
|
-
|
|
329
|
-
### 验证
|
|
330
|
-
|
|
331
|
-
#### validator (^13.15.15)
|
|
332
|
-
|
|
333
|
-
**目的:** 字符串验证和清理
|
|
334
|
-
**用途:** 输入验证 (URL、邮箱等)
|
|
335
|
-
**优势:** 全面、测试充分、无依赖
|
|
336
|
-
|
|
337
|
-
```javascript
|
|
338
|
-
const validator = require('validator');
|
|
339
|
-
if (validator.isURL(url)) {
|
|
340
|
-
// URL 有效
|
|
341
|
-
}
|
|
342
|
-
```
|
|
343
|
-
|
|
344
|
-
#### semver (^7.7.2)
|
|
345
|
-
|
|
346
|
-
**目的:** 语义版本解析和比较
|
|
347
|
-
**用途:** 版本检查、依赖解析
|
|
348
|
-
**优势:** NPM 标准、充分测试
|
|
349
|
-
|
|
350
|
-
```javascript
|
|
351
|
-
const semver = require('semver');
|
|
352
|
-
if (semver.satisfies('1.2.3', '>=1.0.0')) {
|
|
353
|
-
// 版本兼容
|
|
354
|
-
}
|
|
355
|
-
```
|
|
356
|
-
|
|
357
|
-
---
|
|
358
|
-
|
|
359
|
-
## 开发工具
|
|
360
|
-
|
|
361
|
-
### Linting
|
|
362
|
-
|
|
363
|
-
#### ESLint (^9.38.0)
|
|
364
|
-
|
|
365
|
-
**目的:** JavaScript/TypeScript 代码检查
|
|
366
|
-
**配置:** `.eslintrc.json`
|
|
367
|
-
**插件:**
|
|
368
|
-
|
|
369
|
-
- `@typescript-eslint/eslint-plugin` (^8.46.2)
|
|
370
|
-
- `@typescript-eslint/parser` (^8.46.2)
|
|
371
|
-
|
|
372
|
-
**主要规则:**
|
|
373
|
-
|
|
374
|
-
```javascript
|
|
375
|
-
{
|
|
376
|
-
"rules": {
|
|
377
|
-
"no-console": "off", // CLI 中允许 console
|
|
378
|
-
"no-unused-vars": "error",
|
|
379
|
-
"prefer-const": "error",
|
|
380
|
-
"no-var": "error",
|
|
381
|
-
"eqeqeq": ["error", "always"]
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
```
|
|
385
|
-
|
|
386
|
-
### 格式化
|
|
387
|
-
|
|
388
|
-
#### Prettier (^3.5.3)
|
|
389
|
-
|
|
390
|
-
**目的:** 代码格式化
|
|
391
|
-
**配置:** `.prettierrc`
|
|
392
|
-
|
|
393
|
-
```json
|
|
394
|
-
{
|
|
395
|
-
"printWidth": 100,
|
|
396
|
-
"tabWidth": 2,
|
|
397
|
-
"useTabs": false,
|
|
398
|
-
"semi": true,
|
|
399
|
-
"singleQuote": true,
|
|
400
|
-
"trailingComma": "es5"
|
|
401
|
-
}
|
|
402
|
-
```
|
|
403
|
-
|
|
404
|
-
#### yaml-lint (^1.7.0)
|
|
405
|
-
|
|
406
|
-
**目的:** YAML 文件检查
|
|
407
|
-
**用途:** 验证代理配置、工作流、模板
|
|
408
|
-
|
|
409
|
-
### Git Hooks
|
|
410
|
-
|
|
411
|
-
#### husky (^9.1.7)
|
|
412
|
-
|
|
413
|
-
**目的:** Git hooks 管理
|
|
414
|
-
**用途:** 提交前 linting、推送前测试
|
|
415
|
-
|
|
416
|
-
```json
|
|
417
|
-
{
|
|
418
|
-
"husky": {
|
|
419
|
-
"hooks": {
|
|
420
|
-
"pre-commit": "lint-staged",
|
|
421
|
-
"pre-push": "npm test"
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
}
|
|
425
|
-
```
|
|
426
|
-
|
|
427
|
-
#### lint-staged (^16.1.1)
|
|
428
|
-
|
|
429
|
-
**目的:** 在暂存文件上运行 linters
|
|
430
|
-
**配置:**
|
|
431
|
-
|
|
432
|
-
```json
|
|
433
|
-
{
|
|
434
|
-
"lint-staged": {
|
|
435
|
-
"**/*.md": ["prettier --write"],
|
|
436
|
-
"**/*.{js,ts}": ["eslint --fix", "prettier --write"]
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
```
|
|
440
|
-
|
|
441
|
-
---
|
|
442
|
-
|
|
443
|
-
## 测试框架
|
|
444
|
-
|
|
445
|
-
### Jest (^30.2.0)
|
|
446
|
-
|
|
447
|
-
**目的:** 测试框架
|
|
448
|
-
**用途:** 单元测试、集成测试、覆盖率
|
|
449
|
-
|
|
450
|
-
```javascript
|
|
451
|
-
// 测试示例
|
|
452
|
-
describe('AgentExecutor', () => {
|
|
453
|
-
it('should load agent configuration', async () => {
|
|
454
|
-
const agent = await loadAgent('dev');
|
|
455
|
-
expect(agent.name).toBe('developer');
|
|
456
|
-
});
|
|
457
|
-
});
|
|
458
|
-
```
|
|
459
|
-
|
|
460
|
-
**配置:**
|
|
461
|
-
|
|
462
|
-
```json
|
|
463
|
-
{
|
|
464
|
-
"jest": {
|
|
465
|
-
"testEnvironment": "node",
|
|
466
|
-
"coverageThreshold": {
|
|
467
|
-
"global": {
|
|
468
|
-
"branches": 80,
|
|
469
|
-
"functions": 80,
|
|
470
|
-
"lines": 80,
|
|
471
|
-
"statements": 80
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
```
|
|
477
|
-
|
|
478
|
-
#### @types/jest (^30.0.0)
|
|
479
|
-
|
|
480
|
-
**目的:** Jest 的 TypeScript 类型定义
|
|
481
|
-
**用途:** 使用类型安全的方式编写测试
|
|
482
|
-
|
|
483
|
-
---
|
|
484
|
-
|
|
485
|
-
## 构建和部署
|
|
486
|
-
|
|
487
|
-
### 版本化和发布
|
|
488
|
-
|
|
489
|
-
#### semantic-release (^25.0.2)
|
|
490
|
-
|
|
491
|
-
**目的:** 自动化的语义版本化和发布
|
|
492
|
-
**用途:** 自动发布到 NPM、生成 changelog
|
|
493
|
-
|
|
494
|
-
**插件:**
|
|
495
|
-
|
|
496
|
-
- `@semantic-release/changelog` (^6.0.3) - 生成 CHANGELOG.md
|
|
497
|
-
- `@semantic-release/git` (^10.0.1) - 提交发布资源
|
|
498
|
-
|
|
499
|
-
```json
|
|
500
|
-
{
|
|
501
|
-
"release": {
|
|
502
|
-
"branches": ["main"],
|
|
503
|
-
"plugins": [
|
|
504
|
-
"@semantic-release/commit-analyzer",
|
|
505
|
-
"@semantic-release/release-notes-generator",
|
|
506
|
-
"@semantic-release/changelog",
|
|
507
|
-
"@semantic-release/npm",
|
|
508
|
-
"@semantic-release/git"
|
|
509
|
-
]
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
```
|
|
513
|
-
|
|
514
|
-
### 构建脚本
|
|
515
|
-
|
|
516
|
-
```bash
|
|
517
|
-
# 包构建
|
|
518
|
-
npm run build # 构建所有包
|
|
519
|
-
npm run build:agents # 仅构建代理
|
|
520
|
-
npm run build:teams # 仅构建团队
|
|
521
|
-
|
|
522
|
-
# 版本化
|
|
523
|
-
npm run version:patch # 增加补丁版本
|
|
524
|
-
npm run version:minor # 增加次要版本
|
|
525
|
-
npm run version:major # 增加主要版本
|
|
526
|
-
|
|
527
|
-
# 发布
|
|
528
|
-
npm run publish:dry-run # 测试发布
|
|
529
|
-
npm run publish:preview # 发布为 preview 标签
|
|
530
|
-
npm run publish:stable # 发布为 latest 标签
|
|
531
|
-
```
|
|
532
|
-
|
|
533
|
-
---
|
|
534
|
-
|
|
535
|
-
## 外部集成
|
|
536
|
-
|
|
537
|
-
### MCP 服务器
|
|
538
|
-
|
|
539
|
-
SINAPSE 与 Model Context Protocol (MCP) 服务器集成:
|
|
540
|
-
|
|
541
|
-
```yaml
|
|
542
|
-
MCP 服务器:
|
|
543
|
-
- clickup-direct: ClickUp 集成 (任务管理)
|
|
544
|
-
- context7: 文档查找
|
|
545
|
-
- exa-direct: Web 搜索
|
|
546
|
-
- desktop-commander: 文件操作
|
|
547
|
-
- docker-mcp: Docker 管理
|
|
548
|
-
- ide: VS Code/Cursor 集成
|
|
549
|
-
```
|
|
550
|
-
|
|
551
|
-
**配置:** `.claude.json` 或 `.cursor/settings.json`
|
|
552
|
-
|
|
553
|
-
### CLI 工具
|
|
554
|
-
|
|
555
|
-
代理使用的外部 CLI 工具:
|
|
556
|
-
|
|
557
|
-
```yaml
|
|
558
|
-
GitHub CLI (gh):
|
|
559
|
-
版本: 2.x+
|
|
560
|
-
用途: 仓库管理、PR 创建
|
|
561
|
-
安装: https://cli.github.com
|
|
562
|
-
|
|
563
|
-
Railway CLI (railway):
|
|
564
|
-
版本: 3.x+
|
|
565
|
-
用途: 部署自动化
|
|
566
|
-
安装: npm i -g @railway/cli
|
|
567
|
-
|
|
568
|
-
Supabase CLI (supabase):
|
|
569
|
-
版本: 1.x+
|
|
570
|
-
用途: 数据库迁移、schema 管理
|
|
571
|
-
安装: npm i -g supabase
|
|
572
|
-
|
|
573
|
-
Git:
|
|
574
|
-
版本: 2.30+
|
|
575
|
-
用途: 版本控制
|
|
576
|
-
必需: 是
|
|
577
|
-
```
|
|
578
|
-
|
|
579
|
-
### 云服务
|
|
580
|
-
|
|
581
|
-
```yaml
|
|
582
|
-
Railway:
|
|
583
|
-
目的: 应用部署
|
|
584
|
-
API: Railway CLI
|
|
585
|
-
|
|
586
|
-
Supabase:
|
|
587
|
-
目的: PostgreSQL 数据库 + 身份验证
|
|
588
|
-
API: Supabase CLI + REST API
|
|
589
|
-
|
|
590
|
-
GitHub:
|
|
591
|
-
目的: 仓库托管、CI/CD
|
|
592
|
-
API: GitHub CLI (gh) + Octokit
|
|
593
|
-
|
|
594
|
-
CodeRabbit:
|
|
595
|
-
目的: 自动化代码审查
|
|
596
|
-
API: GitHub App 集成
|
|
597
|
-
```
|
|
598
|
-
|
|
599
|
-
---
|
|
600
|
-
|
|
601
|
-
## 迁移后的未来栈
|
|
602
|
-
|
|
603
|
-
**计划于 2026 Q2-Q4** (仓库重组后):
|
|
604
|
-
|
|
605
|
-
### ESM 迁移
|
|
606
|
-
|
|
607
|
-
```javascript
|
|
608
|
-
// 当前: CommonJS
|
|
609
|
-
const agent = require('./agent');
|
|
610
|
-
module.exports = { executeAgent };
|
|
611
|
-
|
|
612
|
-
// 未来: ES Modules
|
|
613
|
-
import { agent } from './agent.js';
|
|
614
|
-
export { executeAgent };
|
|
615
|
-
```
|
|
616
|
-
|
|
617
|
-
### 完整的 TypeScript
|
|
618
|
-
|
|
619
|
-
```typescript
|
|
620
|
-
// 从 JS + .d.ts 迁移到完整的 TypeScript
|
|
621
|
-
// 优势: 类型安全、更好的重构、改进的 DX
|
|
622
|
-
```
|
|
623
|
-
|
|
624
|
-
### 构建工具
|
|
625
|
-
|
|
626
|
-
```yaml
|
|
627
|
-
Bundler: esbuild 或 tsup
|
|
628
|
-
原因: 快速构建、树摇晃、最小化
|
|
629
|
-
目标: 单个 CLI 可执行文件 (可选)
|
|
630
|
-
```
|
|
631
|
-
|
|
632
|
-
### 测试改进
|
|
633
|
-
|
|
634
|
-
```yaml
|
|
635
|
-
E2E 测试: Playwright (浏览器自动化测试)
|
|
636
|
-
性能测试: Benchmark.js (工作流计时)
|
|
637
|
-
```
|
|
638
|
-
|
|
639
|
-
---
|
|
640
|
-
|
|
641
|
-
## 依赖管理
|
|
642
|
-
|
|
643
|
-
### 安全审计
|
|
644
|
-
|
|
645
|
-
```bash
|
|
646
|
-
# 运行安全审计
|
|
647
|
-
npm audit
|
|
648
|
-
|
|
649
|
-
# 自动修复漏洞
|
|
650
|
-
npm audit fix
|
|
651
|
-
|
|
652
|
-
# 检查过期的包
|
|
653
|
-
npm outdated
|
|
654
|
-
```
|
|
655
|
-
|
|
656
|
-
### 更新策略
|
|
657
|
-
|
|
658
|
-
```yaml
|
|
659
|
-
主要更新: 季度审查 (Q1, Q2, Q3, Q4)
|
|
660
|
-
安全补丁: 立即 (48 小时内)
|
|
661
|
-
次要更新: 月度审查
|
|
662
|
-
依赖减少: 持续工作
|
|
663
|
-
```
|
|
664
|
-
|
|
665
|
-
### 依赖树
|
|
666
|
-
|
|
667
|
-
```bash
|
|
668
|
-
# 查看依赖树
|
|
669
|
-
npm ls --depth=2
|
|
670
|
-
|
|
671
|
-
# 查找重复的包
|
|
672
|
-
npm dedupe
|
|
673
|
-
|
|
674
|
-
# 分析 bundle 大小
|
|
675
|
-
npx cost-of-modules
|
|
676
|
-
```
|
|
677
|
-
|
|
678
|
-
---
|
|
679
|
-
|
|
680
|
-
## 版本兼容性矩阵
|
|
681
|
-
|
|
682
|
-
| 组件 | 版本 | 兼容性 | 说明 |
|
|
683
|
-
| ---------- | ------- | -------- | --------------------- |
|
|
684
|
-
| **Node.js** | 18.0.0+ | 必需 | 活跃 LTS |
|
|
685
|
-
| **npm** | 9.0.0+ | 必需 | 包管理器 |
|
|
686
|
-
| **TypeScript** | 5.9.3 | 推荐 | 类型定义 |
|
|
687
|
-
| **ESLint** | 9.38.0 | 必需 | Linting |
|
|
688
|
-
| **Prettier** | 3.5.3 | 必需 | 格式化 |
|
|
689
|
-
| **Jest** | 30.2.0 | 必需 | 测试 |
|
|
690
|
-
| **Git** | 2.30+ | 必需 | 版本控制 |
|
|
691
|
-
| **GitHub CLI** | 2.x+ | 可选 | 仓库管理 |
|
|
692
|
-
| **Railway CLI** | 3.x+ | 可选 | 部署 |
|
|
693
|
-
| **Supabase CLI** | 1.x+ | 可选 | 数据库管理 |
|
|
694
|
-
|
|
695
|
-
---
|
|
696
|
-
|
|
697
|
-
## 性能考虑
|
|
698
|
-
|
|
699
|
-
### Bundle 大小
|
|
700
|
-
|
|
701
|
-
```bash
|
|
702
|
-
# 生产 bundle 大小 (最小化)
|
|
703
|
-
总计: ~5MB (包括所有依赖)
|
|
704
|
-
|
|
705
|
-
# 关键依赖 (总是加载):
|
|
706
|
-
- commander: 120KB
|
|
707
|
-
- chalk: 15KB
|
|
708
|
-
- yaml: 85KB
|
|
709
|
-
- fs-extra: 45KB
|
|
710
|
-
|
|
711
|
-
# 可选依赖 (延迟加载):
|
|
712
|
-
- inquirer: 650KB (仅交互模式)
|
|
713
|
-
- @clack/prompts: 180KB (仅向导模式)
|
|
714
|
-
```
|
|
715
|
-
|
|
716
|
-
### 初始化时间
|
|
717
|
-
|
|
718
|
-
```yaml
|
|
719
|
-
冷启动: ~200ms (初始加载)
|
|
720
|
-
热启动: ~50ms (模块缓存)
|
|
721
|
-
Yolo 模式: ~100ms (跳过验证)
|
|
722
|
-
|
|
723
|
-
优化策略:
|
|
724
|
-
- 延迟加载重型依赖
|
|
725
|
-
- 缓存解析的 YAML 配置
|
|
726
|
-
- 有条件地使用 require()
|
|
727
|
-
```
|
|
728
|
-
|
|
729
|
-
### 内存使用
|
|
730
|
-
|
|
731
|
-
```yaml
|
|
732
|
-
基线: 30MB (Node.js + SINAPSE core)
|
|
733
|
-
代理执行: +10MB (每个代理)
|
|
734
|
-
故事处理: +20MB (markdown 解析)
|
|
735
|
-
峰值: ~100MB (典型工作流)
|
|
736
|
-
```
|
|
737
|
-
|
|
738
|
-
---
|
|
739
|
-
|
|
740
|
-
## 特定平台说明
|
|
741
|
-
|
|
742
|
-
### Windows
|
|
743
|
-
|
|
744
|
-
```yaml
|
|
745
|
-
路径分隔符: 反斜杠 (\) - 规范化为正斜杠 (/)
|
|
746
|
-
行尾: CRLF - Git 配置自动转换
|
|
747
|
-
Shell: PowerShell 或 CMD - execa 处理跨平台
|
|
748
|
-
Node.js: 来自 nodejs.org 的 Windows 安装程序
|
|
749
|
-
```
|
|
750
|
-
|
|
751
|
-
### macOS
|
|
752
|
-
|
|
753
|
-
```yaml
|
|
754
|
-
路径分隔符: 正斜杠 (/)
|
|
755
|
-
行尾: LF
|
|
756
|
-
Shell: zsh (默认) 或 bash
|
|
757
|
-
Node.js: Homebrew (brew install node@18) 或 nvm
|
|
758
|
-
```
|
|
759
|
-
|
|
760
|
-
### Linux
|
|
761
|
-
|
|
762
|
-
```yaml
|
|
763
|
-
路径分隔符: 正斜杠 (/)
|
|
764
|
-
行尾: LF
|
|
765
|
-
Shell: bash (默认) 或 zsh
|
|
766
|
-
Node.js: nvm、apt、yum 或官方二进制文件
|
|
767
|
-
```
|
|
768
|
-
|
|
769
|
-
---
|
|
770
|
-
|
|
771
|
-
## 环境变量
|
|
772
|
-
|
|
773
|
-
```bash
|
|
774
|
-
# SINAPSE 配置
|
|
775
|
-
SINAPSE_DEBUG=true # 启用调试日志
|
|
776
|
-
SINAPSE_CONFIG_PATH=/custom/path # 自定义配置位置
|
|
777
|
-
SINAPSE_YOLO_MODE=true # 强制 yolo 模式
|
|
778
|
-
|
|
779
|
-
# Node.js
|
|
780
|
-
NODE_ENV=production # 生产模式
|
|
781
|
-
NODE_OPTIONS=--max-old-space-size=4096 # 增加内存限制
|
|
782
|
-
|
|
783
|
-
# 外部服务
|
|
784
|
-
CLICKUP_API_KEY=pk_xxx # ClickUp 集成
|
|
785
|
-
GITHUB_TOKEN=ghp_xxx # GitHub API 访问
|
|
786
|
-
RAILWAY_TOKEN=xxx # Railway 部署
|
|
787
|
-
SUPABASE_ACCESS_TOKEN=xxx # Supabase CLI 身份验证
|
|
788
|
-
```
|
|
789
|
-
|
|
790
|
-
---
|
|
791
|
-
|
|
792
|
-
## 相关文档
|
|
793
|
-
|
|
794
|
-
- [编码标准](./coding-standards.md)
|
|
795
|
-
- [源树](./source-tree.md)
|
|
796
|
-
|
|
797
|
-
---
|
|
798
|
-
|
|
799
|
-
## 版本历史
|
|
800
|
-
|
|
801
|
-
| 版本 | 日期 | 更改 | 作者 |
|
|
802
|
-
| ---- | ---------- | ----------------------------------------------------------------------------- | ---------------- |
|
|
803
|
-
| 1.0 | 2025-01-15 | 初始技术栈文档 | Aria (architect) |
|
|
804
|
-
| 1.1 | 2025-12-14 | 更新对 SinapseAI/sinapse-ai 的迁移通知、semantic-release 到 v25.0.2 [故事 6.10] | Dex (dev) |
|
|
805
|
-
|
|
806
|
-
---
|
|
807
|
-
|
|
808
|
-
_这是 SINAPSE 框架的官方模式。所有技术选择应与本栈保持一致。_
|