sinapse-ai 5.0.8 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.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 +2126 -2570
- 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 +9 -9
- 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} +16 -16
- 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,610 +0,0 @@
|
|
|
1
|
-
# SINAPSE 安全最佳实践
|
|
2
|
-
|
|
3
|
-
> 🌐 [EN](../security-best-practices.md) | [PT](../pt/security-best-practices.md) | [ES](../es/security-best-practices.md)
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
本指南为在生产环境中部署和维护 SINAPSE 提供了全面的安全建议。
|
|
8
|
-
|
|
9
|
-
## 目录
|
|
10
|
-
|
|
11
|
-
1. [安全架构概述](#安全架构概述)
|
|
12
|
-
2. [身份验证和授权](#身份验证和授权)
|
|
13
|
-
3. [输入验证和清理](#输入验证和清理)
|
|
14
|
-
4. [速率限制和 DOS 防护](#速率限制和-dos-防护)
|
|
15
|
-
5. [安全配置](#安全配置)
|
|
16
|
-
6. [数据保护](#数据保护)
|
|
17
|
-
7. [日志记录和监控](#日志记录和监控)
|
|
18
|
-
8. [网络安全](#网络安全)
|
|
19
|
-
9. [依赖管理](#依赖管理)
|
|
20
|
-
10. [事件响应](#事件响应)
|
|
21
|
-
|
|
22
|
-
## 安全架构概述
|
|
23
|
-
|
|
24
|
-
SINAPSE 实现了多层安全方法:
|
|
25
|
-
|
|
26
|
-
```
|
|
27
|
-
┌─────────────────────────────────────────┐
|
|
28
|
-
│ 应用层 │
|
|
29
|
-
├─────────────────────────────────────────┤
|
|
30
|
-
│ 身份验证层 │
|
|
31
|
-
├─────────────────────────────────────────┤
|
|
32
|
-
│ 输入验证层 │
|
|
33
|
-
├─────────────────────────────────────────┤
|
|
34
|
-
│ 速率限制层 │
|
|
35
|
-
├─────────────────────────────────────────┤
|
|
36
|
-
│ 网络层 │
|
|
37
|
-
└─────────────────────────────────────────┘
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
### 核心安全模块
|
|
41
|
-
|
|
42
|
-
- **InputSanitizer**: 防止注入攻击和路径遍历
|
|
43
|
-
- **AuthSystem**: 基于 JWT 的身份验证和会话管理
|
|
44
|
-
- **RateLimiter**: DOS 防护和滥用防止
|
|
45
|
-
- **SecurityAudit**: 自动漏洞扫描
|
|
46
|
-
|
|
47
|
-
## 身份验证和授权
|
|
48
|
-
|
|
49
|
-
### 实现
|
|
50
|
-
|
|
51
|
-
```javascript
|
|
52
|
-
const AuthSystem = require('./security/auth');
|
|
53
|
-
|
|
54
|
-
const auth = new AuthSystem({
|
|
55
|
-
secretKey: process.env.JWT_SECRET,
|
|
56
|
-
tokenExpiry: '1h',
|
|
57
|
-
refreshExpiry: '7d'
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
// 使用强密码要求创建用户
|
|
61
|
-
await auth.createUser({
|
|
62
|
-
username: 'admin',
|
|
63
|
-
password: 'SecureP@ssw0rd123!',
|
|
64
|
-
email: 'admin@example.com',
|
|
65
|
-
role: 'admin'
|
|
66
|
-
});
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
### 最佳实践
|
|
70
|
-
|
|
71
|
-
1. **强密码策略**
|
|
72
|
-
- 最少 12 个字符
|
|
73
|
-
- 包含大小写字母、数字、符号
|
|
74
|
-
- 不包含字典单词或个人信息
|
|
75
|
-
|
|
76
|
-
2. **令牌管理**
|
|
77
|
-
- 短期访问令牌(1 小时)
|
|
78
|
-
- 安全的刷新令牌轮换
|
|
79
|
-
- 登出时立即撤销
|
|
80
|
-
|
|
81
|
-
3. **会话安全**
|
|
82
|
-
- 安全的会话存储
|
|
83
|
-
- 非活动后会话超时
|
|
84
|
-
- 多会话管理
|
|
85
|
-
|
|
86
|
-
4. **账户保护**
|
|
87
|
-
- 多次失败尝试后账户锁定
|
|
88
|
-
- 身份验证失败后逐步延迟
|
|
89
|
-
- 安全事件的电子邮件通知
|
|
90
|
-
|
|
91
|
-
### 配置
|
|
92
|
-
|
|
93
|
-
```env
|
|
94
|
-
# .env - 身份验证设置
|
|
95
|
-
JWT_SECRET=your-super-secure-random-key-here
|
|
96
|
-
AUTH_TOKEN_EXPIRY=1h
|
|
97
|
-
AUTH_REFRESH_EXPIRY=7d
|
|
98
|
-
AUTH_MAX_LOGIN_ATTEMPTS=5
|
|
99
|
-
AUTH_LOCKOUT_DURATION=15m
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
## 输入验证和清理
|
|
103
|
-
|
|
104
|
-
### 始终清理用户输入
|
|
105
|
-
|
|
106
|
-
```javascript
|
|
107
|
-
const InputSanitizer = require('./security/sanitizer');
|
|
108
|
-
|
|
109
|
-
// 路径清理
|
|
110
|
-
const safePath = InputSanitizer.sanitizePath(userInput, basePath);
|
|
111
|
-
|
|
112
|
-
// 项目名称验证
|
|
113
|
-
const safeProjectName = InputSanitizer.sanitizeProjectName(name);
|
|
114
|
-
|
|
115
|
-
// 命令清理
|
|
116
|
-
const safeCommand = InputSanitizer.sanitizeCommand(userCommand);
|
|
117
|
-
|
|
118
|
-
// 配置值
|
|
119
|
-
const safeValue = InputSanitizer.sanitizeConfigValue(value, 'string');
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
### 验证规则
|
|
123
|
-
|
|
124
|
-
1. **路径操作**
|
|
125
|
-
- 始终使用绝对路径
|
|
126
|
-
- 防止目录遍历 (../)
|
|
127
|
-
- 验证允许的目录
|
|
128
|
-
- 检查可疑模式
|
|
129
|
-
|
|
130
|
-
2. **命令执行**
|
|
131
|
-
- 白名单允许的字符
|
|
132
|
-
- 移除命令分隔符 (;, |, &)
|
|
133
|
-
- 限制命令长度
|
|
134
|
-
- 使用参数化执行
|
|
135
|
-
|
|
136
|
-
3. **配置数据**
|
|
137
|
-
- 类型验证
|
|
138
|
-
- 长度限制
|
|
139
|
-
- 模式匹配
|
|
140
|
-
- 枚举验证
|
|
141
|
-
|
|
142
|
-
### 常见漏洞防护
|
|
143
|
-
|
|
144
|
-
- **路径遍历**: `../../../etc/passwd`
|
|
145
|
-
- **命令注入**: `; rm -rf /`
|
|
146
|
-
- **SQL 注入**: `'; DROP TABLE users; --`
|
|
147
|
-
- **XSS**: `<script>alert('xss')</script>`
|
|
148
|
-
- **原型污染**: `{"__proto__": {"admin": true}}`
|
|
149
|
-
|
|
150
|
-
## 速率限制和 DOS 防护
|
|
151
|
-
|
|
152
|
-
### 实现
|
|
153
|
-
|
|
154
|
-
```javascript
|
|
155
|
-
const { RateLimiters } = require('./security/rate-limiter');
|
|
156
|
-
|
|
157
|
-
// 不同操作的不同限制器
|
|
158
|
-
const apiLimiter = RateLimiters.createApiLimiter();
|
|
159
|
-
const authLimiter = RateLimiters.createAuthLimiter();
|
|
160
|
-
const metaAgentLimiter = RateLimiters.createMetaAgentLimiter();
|
|
161
|
-
|
|
162
|
-
// 操作前检查
|
|
163
|
-
const identifier = RateLimiter.createIdentifier({
|
|
164
|
-
ip: req.ip,
|
|
165
|
-
userId: req.user?.id,
|
|
166
|
-
operation: 'meta-agent'
|
|
167
|
-
});
|
|
168
|
-
|
|
169
|
-
const result = metaAgentLimiter.check(identifier);
|
|
170
|
-
if (!result.allowed) {
|
|
171
|
-
throw new Error(`速率限制已超出。请在 ${result.retryAfter} 秒后重试`);
|
|
172
|
-
}
|
|
173
|
-
```
|
|
174
|
-
|
|
175
|
-
### 速率限制策略
|
|
176
|
-
|
|
177
|
-
| 操作 | 时间窗口 | 限制 | 目的 |
|
|
178
|
-
|------|---------|------|------|
|
|
179
|
-
| API 调用 | 15 分钟 | 1000 | 通用 API 保护 |
|
|
180
|
-
| 身份验证 | 15 分钟 | 5 | 暴力破解防护 |
|
|
181
|
-
| 安装 | 1 小时 | 10 | 安装滥用防护 |
|
|
182
|
-
| 元代理 | 1 分钟 | 30 | 资源保护 |
|
|
183
|
-
| 文件操作 | 1 分钟 | 100 | 文件系统保护 |
|
|
184
|
-
|
|
185
|
-
### 配置
|
|
186
|
-
|
|
187
|
-
```env
|
|
188
|
-
# 速率限制设置
|
|
189
|
-
RATE_LIMIT_API_WINDOW=900000
|
|
190
|
-
RATE_LIMIT_API_MAX=1000
|
|
191
|
-
RATE_LIMIT_AUTH_WINDOW=900000
|
|
192
|
-
RATE_LIMIT_AUTH_MAX=5
|
|
193
|
-
RATE_LIMIT_INSTALL_WINDOW=3600000
|
|
194
|
-
RATE_LIMIT_INSTALL_MAX=10
|
|
195
|
-
```
|
|
196
|
-
|
|
197
|
-
## 安全配置
|
|
198
|
-
|
|
199
|
-
### 环境变量
|
|
200
|
-
|
|
201
|
-
```env
|
|
202
|
-
# 所需的安全设置
|
|
203
|
-
NODE_ENV=production
|
|
204
|
-
JWT_SECRET=your-256-bit-secret-key
|
|
205
|
-
DATABASE_ENCRYPTION_KEY=your-database-encryption-key
|
|
206
|
-
SESSION_SECRET=your-session-secret
|
|
207
|
-
|
|
208
|
-
# API 密钥(永远不要硬编码!)
|
|
209
|
-
OPENAI_API_KEY=sk-your-openai-key
|
|
210
|
-
ANTHROPIC_API_KEY=sk-your-anthropic-key
|
|
211
|
-
|
|
212
|
-
# 安全头部
|
|
213
|
-
SECURITY_HEADERS_ENABLED=true
|
|
214
|
-
HELMET_ENABLED=true
|
|
215
|
-
CORS_ORIGIN=https://yourdomain.com
|
|
216
|
-
|
|
217
|
-
# 审计日志
|
|
218
|
-
AUDIT_LOG_ENABLED=true
|
|
219
|
-
AUDIT_LOG_LEVEL=info
|
|
220
|
-
AUDIT_LOG_FILE=/var/log/sinapse/audit.log
|
|
221
|
-
```
|
|
222
|
-
|
|
223
|
-
### 文件权限
|
|
224
|
-
|
|
225
|
-
```bash
|
|
226
|
-
# 安全文件权限
|
|
227
|
-
chmod 600 .env
|
|
228
|
-
chmod 600 .sinapse/config.json
|
|
229
|
-
chmod 600 .sinapse/users.json
|
|
230
|
-
chmod 600 .sinapse/sessions.json
|
|
231
|
-
chmod 700 .sinapse/
|
|
232
|
-
chmod 700 security/
|
|
233
|
-
```
|
|
234
|
-
|
|
235
|
-
### 配置验证
|
|
236
|
-
|
|
237
|
-
```javascript
|
|
238
|
-
// 启动时验证关键配置
|
|
239
|
-
const requiredEnvVars = [
|
|
240
|
-
'JWT_SECRET',
|
|
241
|
-
'NODE_ENV'
|
|
242
|
-
];
|
|
243
|
-
|
|
244
|
-
for (const envVar of requiredEnvVars) {
|
|
245
|
-
if (!process.env[envVar]) {
|
|
246
|
-
throw new Error(`缺少必需的环境变量: ${envVar}`);
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
// 验证 JWT 密钥强度
|
|
251
|
-
if (process.env.JWT_SECRET.length < 32) {
|
|
252
|
-
throw new Error('JWT_SECRET 必须至少 32 个字符长');
|
|
253
|
-
}
|
|
254
|
-
```
|
|
255
|
-
|
|
256
|
-
## 数据保护
|
|
257
|
-
|
|
258
|
-
### 静止数据加密
|
|
259
|
-
|
|
260
|
-
```javascript
|
|
261
|
-
const crypto = require('crypto');
|
|
262
|
-
|
|
263
|
-
class DataEncryption {
|
|
264
|
-
constructor(key) {
|
|
265
|
-
this.key = key;
|
|
266
|
-
this.algorithm = 'aes-256-gcm';
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
encrypt(text) {
|
|
270
|
-
const iv = crypto.randomBytes(16);
|
|
271
|
-
const cipher = crypto.createCipher(this.algorithm, this.key, iv);
|
|
272
|
-
|
|
273
|
-
let encrypted = cipher.update(text, 'utf8', 'hex');
|
|
274
|
-
encrypted += cipher.final('hex');
|
|
275
|
-
|
|
276
|
-
const authTag = cipher.getAuthTag();
|
|
277
|
-
|
|
278
|
-
return {
|
|
279
|
-
encrypted,
|
|
280
|
-
iv: iv.toString('hex'),
|
|
281
|
-
authTag: authTag.toString('hex')
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
decrypt(encryptedData) {
|
|
286
|
-
const decipher = crypto.createDecipher(
|
|
287
|
-
this.algorithm,
|
|
288
|
-
this.key,
|
|
289
|
-
Buffer.from(encryptedData.iv, 'hex')
|
|
290
|
-
);
|
|
291
|
-
|
|
292
|
-
decipher.setAuthTag(Buffer.from(encryptedData.authTag, 'hex'));
|
|
293
|
-
|
|
294
|
-
let decrypted = decipher.update(encryptedData.encrypted, 'hex', 'utf8');
|
|
295
|
-
decrypted += decipher.final('utf8');
|
|
296
|
-
|
|
297
|
-
return decrypted;
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
```
|
|
301
|
-
|
|
302
|
-
### 敏感数据处理
|
|
303
|
-
|
|
304
|
-
1. **API 密钥**
|
|
305
|
-
- 仅存储在环境变量中
|
|
306
|
-
- 永远不要记录或在错误消息中暴露
|
|
307
|
-
- 定期轮换
|
|
308
|
-
- 为不同环境使用单独的密钥
|
|
309
|
-
|
|
310
|
-
2. **用户数据**
|
|
311
|
-
- 使用 bcrypt 进行密码哈希(盐轮数 ≥ 12)
|
|
312
|
-
- 静止时加密 PII
|
|
313
|
-
- 实施数据保留政策
|
|
314
|
-
- 支持数据删除请求
|
|
315
|
-
|
|
316
|
-
3. **会话数据**
|
|
317
|
-
- 使用安全的会话存储
|
|
318
|
-
- 实施会话超时
|
|
319
|
-
- 登出时清除会话
|
|
320
|
-
- 监控会话劫持
|
|
321
|
-
|
|
322
|
-
## 日志记录和监控
|
|
323
|
-
|
|
324
|
-
### 安全事件日志
|
|
325
|
-
|
|
326
|
-
```javascript
|
|
327
|
-
const winston = require('winston');
|
|
328
|
-
|
|
329
|
-
const securityLogger = winston.createLogger({
|
|
330
|
-
level: 'info',
|
|
331
|
-
format: winston.format.combine(
|
|
332
|
-
winston.format.timestamp(),
|
|
333
|
-
winston.format.json()
|
|
334
|
-
),
|
|
335
|
-
transports: [
|
|
336
|
-
new winston.transports.File({
|
|
337
|
-
filename: 'logs/security.log',
|
|
338
|
-
level: 'warn'
|
|
339
|
-
}),
|
|
340
|
-
new winston.transports.File({
|
|
341
|
-
filename: 'logs/audit.log'
|
|
342
|
-
})
|
|
343
|
-
]
|
|
344
|
-
});
|
|
345
|
-
|
|
346
|
-
// 记录安全事件
|
|
347
|
-
securityLogger.warn('身份验证失败', {
|
|
348
|
-
username: req.body.username,
|
|
349
|
-
ip: req.ip,
|
|
350
|
-
userAgent: req.get('User-Agent'),
|
|
351
|
-
timestamp: new Date().toISOString()
|
|
352
|
-
});
|
|
353
|
-
```
|
|
354
|
-
|
|
355
|
-
### 监控的事件
|
|
356
|
-
|
|
357
|
-
- 身份验证失败
|
|
358
|
-
- 速率限制违规
|
|
359
|
-
- 可疑文件访问模式
|
|
360
|
-
- 配置变更
|
|
361
|
-
- 权限升级尝试
|
|
362
|
-
- 异常 API 使用模式
|
|
363
|
-
|
|
364
|
-
### 告警阈值
|
|
365
|
-
|
|
366
|
-
```javascript
|
|
367
|
-
const alertThresholds = {
|
|
368
|
-
failedLogins: 10, // 每小时
|
|
369
|
-
rateLimitViolations: 50, // 每小时
|
|
370
|
-
suspiciousFileAccess: 5, // 每小时
|
|
371
|
-
configChanges: 1, // 任何变更
|
|
372
|
-
errorRate: 0.05 // 5% 错误率
|
|
373
|
-
};
|
|
374
|
-
```
|
|
375
|
-
|
|
376
|
-
## 网络安全
|
|
377
|
-
|
|
378
|
-
### HTTPS 配置
|
|
379
|
-
|
|
380
|
-
```javascript
|
|
381
|
-
const https = require('https');
|
|
382
|
-
const fs = require('fs');
|
|
383
|
-
|
|
384
|
-
const options = {
|
|
385
|
-
key: fs.readFileSync('path/to/private-key.pem'),
|
|
386
|
-
cert: fs.readFileSync('path/to/certificate.pem'),
|
|
387
|
-
// 安全改进
|
|
388
|
-
secureProtocol: 'TLSv1_2_method',
|
|
389
|
-
ciphers: 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384',
|
|
390
|
-
honorCipherOrder: true
|
|
391
|
-
};
|
|
392
|
-
|
|
393
|
-
https.createServer(options, app).listen(443);
|
|
394
|
-
```
|
|
395
|
-
|
|
396
|
-
### 安全头部
|
|
397
|
-
|
|
398
|
-
```javascript
|
|
399
|
-
const helmet = require('helmet');
|
|
400
|
-
|
|
401
|
-
app.use(helmet({
|
|
402
|
-
contentSecurityPolicy: {
|
|
403
|
-
directives: {
|
|
404
|
-
defaultSrc: ["'self'"],
|
|
405
|
-
scriptSrc: ["'self'", "'unsafe-inline'"],
|
|
406
|
-
styleSrc: ["'self'", "'unsafe-inline'"],
|
|
407
|
-
imgSrc: ["'self'", "data:", "https:"]
|
|
408
|
-
}
|
|
409
|
-
},
|
|
410
|
-
hsts: {
|
|
411
|
-
maxAge: 31536000,
|
|
412
|
-
includeSubDomains: true,
|
|
413
|
-
preload: true
|
|
414
|
-
}
|
|
415
|
-
}));
|
|
416
|
-
```
|
|
417
|
-
|
|
418
|
-
### CORS 配置
|
|
419
|
-
|
|
420
|
-
```javascript
|
|
421
|
-
const cors = require('cors');
|
|
422
|
-
|
|
423
|
-
app.use(cors({
|
|
424
|
-
origin: process.env.CORS_ORIGIN || 'https://yourdomain.com',
|
|
425
|
-
credentials: true,
|
|
426
|
-
methods: ['GET', 'POST', 'PUT', 'DELETE'],
|
|
427
|
-
allowedHeaders: ['Content-Type', 'Authorization']
|
|
428
|
-
}));
|
|
429
|
-
```
|
|
430
|
-
|
|
431
|
-
## 依赖管理
|
|
432
|
-
|
|
433
|
-
### 安全扫描
|
|
434
|
-
|
|
435
|
-
```bash
|
|
436
|
-
# 定期安全审计
|
|
437
|
-
npm audit
|
|
438
|
-
npm audit fix
|
|
439
|
-
|
|
440
|
-
# 使用 yarn
|
|
441
|
-
yarn audit
|
|
442
|
-
yarn audit fix
|
|
443
|
-
|
|
444
|
-
# 使用 snyk 进行高级扫描
|
|
445
|
-
npx snyk test
|
|
446
|
-
npx snyk monitor
|
|
447
|
-
```
|
|
448
|
-
|
|
449
|
-
### 更新策略
|
|
450
|
-
|
|
451
|
-
```json
|
|
452
|
-
{
|
|
453
|
-
"scripts": {
|
|
454
|
-
"security:audit": "npm audit",
|
|
455
|
-
"security:update": "npm update",
|
|
456
|
-
"security:check": "snyk test",
|
|
457
|
-
"security:monitor": "snyk monitor"
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
```
|
|
461
|
-
|
|
462
|
-
### 自动化依赖更新
|
|
463
|
-
|
|
464
|
-
```yaml
|
|
465
|
-
# .github/dependabot.yml
|
|
466
|
-
version: 2
|
|
467
|
-
updates:
|
|
468
|
-
- package-ecosystem: "npm"
|
|
469
|
-
directory: "/"
|
|
470
|
-
schedule:
|
|
471
|
-
interval: "weekly"
|
|
472
|
-
open-pull-requests-limit: 5
|
|
473
|
-
reviewers:
|
|
474
|
-
- "security-team"
|
|
475
|
-
```
|
|
476
|
-
|
|
477
|
-
## 事件响应
|
|
478
|
-
|
|
479
|
-
### 响应程序
|
|
480
|
-
|
|
481
|
-
1. **检测**
|
|
482
|
-
- 监控安全日志
|
|
483
|
-
- 设置自动化告警
|
|
484
|
-
- 定期安全审计
|
|
485
|
-
|
|
486
|
-
2. **评估**
|
|
487
|
-
- 确定范围和影响
|
|
488
|
-
- 识别受影响的系统
|
|
489
|
-
- 对事件进行分级
|
|
490
|
-
|
|
491
|
-
3. **遏制**
|
|
492
|
-
- 隔离受影响的系统
|
|
493
|
-
- 撤销泄露的凭证
|
|
494
|
-
- 阻止恶意流量
|
|
495
|
-
|
|
496
|
-
4. **恢复**
|
|
497
|
-
- 从干净备份恢复
|
|
498
|
-
- 应用安全补丁
|
|
499
|
-
- 更新安全措施
|
|
500
|
-
|
|
501
|
-
5. **经验教训**
|
|
502
|
-
- 文件化事件详情
|
|
503
|
-
- 更新安全程序
|
|
504
|
-
- 改进监控
|
|
505
|
-
|
|
506
|
-
### 紧急联系
|
|
507
|
-
|
|
508
|
-
```javascript
|
|
509
|
-
// 应急响应配置
|
|
510
|
-
const emergencyConfig = {
|
|
511
|
-
securityTeam: {
|
|
512
|
-
primary: 'security-lead@company.com',
|
|
513
|
-
backup: 'security-backup@company.com'
|
|
514
|
-
},
|
|
515
|
-
escalation: {
|
|
516
|
-
level1: 'team-lead@company.com',
|
|
517
|
-
level2: 'engineering-manager@company.com',
|
|
518
|
-
level3: 'cto@company.com'
|
|
519
|
-
},
|
|
520
|
-
externalContacts: {
|
|
521
|
-
hosting: 'support@hosting-provider.com',
|
|
522
|
-
security: 'security@security-vendor.com'
|
|
523
|
-
}
|
|
524
|
-
};
|
|
525
|
-
```
|
|
526
|
-
|
|
527
|
-
## 安全检查清单
|
|
528
|
-
|
|
529
|
-
### 部署前
|
|
530
|
-
|
|
531
|
-
- [ ] 所有安全模块已实现
|
|
532
|
-
- [ ] 输入清理已就位
|
|
533
|
-
- [ ] 速率限制已配置
|
|
534
|
-
- [ ] 身份验证系统已测试
|
|
535
|
-
- [ ] 安全审计已完成
|
|
536
|
-
- [ ] 渗透测试已执行
|
|
537
|
-
- [ ] SSL/TLS 证书已安装
|
|
538
|
-
- [ ] 安全头部已配置
|
|
539
|
-
- [ ] 日志记录和监控活跃
|
|
540
|
-
- [ ] 事件响应计划已准备
|
|
541
|
-
|
|
542
|
-
### 部署后
|
|
543
|
-
|
|
544
|
-
- [ ] 定期安全扫描已计划
|
|
545
|
-
- [ ] 依赖更新已自动化
|
|
546
|
-
- [ ] 日志监控活跃
|
|
547
|
-
- [ ] 备份程序已测试
|
|
548
|
-
- [ ] 访问控制已审核
|
|
549
|
-
- [ ] 安全培训已完成
|
|
550
|
-
- [ ] 文档已更新
|
|
551
|
-
|
|
552
|
-
### 持续维护
|
|
553
|
-
|
|
554
|
-
- [ ] 每周审查安全日志
|
|
555
|
-
- [ ] 每月依赖更新
|
|
556
|
-
- [ ] 季度安全评估
|
|
557
|
-
- [ ] 年度渗透测试
|
|
558
|
-
- [ ] 定期备份测试
|
|
559
|
-
- [ ] 安全意识培训
|
|
560
|
-
- [ ] 事件响应演练
|
|
561
|
-
|
|
562
|
-
## 合规性和标准
|
|
563
|
-
|
|
564
|
-
### OWASP Top 10 合规性
|
|
565
|
-
|
|
566
|
-
1. **A01:2021 – 访问控制中断** ✅ 由 AuthSystem 寻址
|
|
567
|
-
2. **A02:2021 – 密码学故障** ✅ 使用强加密
|
|
568
|
-
3. **A03:2021 – 注入** ✅ 已实施输入清理
|
|
569
|
-
4. **A04:2021 – 不安全设计** ✅ 安全优先设计方法
|
|
570
|
-
5. **A05:2021 – 安全错误配置** ✅ 安全默认设置
|
|
571
|
-
6. **A06:2021 – 易受攻击的组件** ✅ 定期更新
|
|
572
|
-
7. **A07:2021 – 身份/认证故障** ✅ 强大的身份验证系统
|
|
573
|
-
8. **A08:2021 – 软件/数据完整性** ✅ 完整性检查
|
|
574
|
-
9. **A09:2021 – 日志/监控故障** ✅ 全面的日志记录
|
|
575
|
-
10. **A10:2021 – 服务器端请求伪造** ✅ URL 验证
|
|
576
|
-
|
|
577
|
-
### 行业标准
|
|
578
|
-
|
|
579
|
-
- **ISO 27001** - 信息安全管理
|
|
580
|
-
- **SOC 2** - 安全、可用性和机密性
|
|
581
|
-
- **GDPR** - 数据保护和隐私
|
|
582
|
-
- **HIPAA** - 医疗数据保护(如适用)
|
|
583
|
-
|
|
584
|
-
## 支持和资源
|
|
585
|
-
|
|
586
|
-
### 文档
|
|
587
|
-
|
|
588
|
-
- [OWASP 安全指南](https://owasp.org/www-project-top-ten/)
|
|
589
|
-
- [Node.js 安全最佳实践](https://nodejs.org/en/docs/guides/security/)
|
|
590
|
-
- [Express 安全指南](https://expressjs.com/en/advanced/best-practice-security.html)
|
|
591
|
-
|
|
592
|
-
### 工具
|
|
593
|
-
|
|
594
|
-
- [npm audit](https://docs.npmjs.com/cli/v6/commands/npm-audit)
|
|
595
|
-
- [Snyk](https://snyk.io/)
|
|
596
|
-
- [ESLint Security Plugin](https://github.com/nodesecurity/eslint-plugin-security)
|
|
597
|
-
- [Helmet.js](https://helmetjs.github.io/)
|
|
598
|
-
|
|
599
|
-
### 培训
|
|
600
|
-
|
|
601
|
-
- OWASP 安全培训
|
|
602
|
-
- Node.js 安全认证
|
|
603
|
-
- 云安全最佳实践
|
|
604
|
-
- 事件响应培训
|
|
605
|
-
|
|
606
|
-
---
|
|
607
|
-
|
|
608
|
-
**记住**:安全不是一次性的实现,而是一个持续的过程。定期审查、更新和改进对于维护安全系统至关重要。
|
|
609
|
-
|
|
610
|
-
如有问题或安全问题,请联系:security@sinapse/sinapse-ai.dev
|
package/docs/zh/security.md
DELETED
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
# 安全政策
|
|
2
|
-
|
|
3
|
-
> 🇧🇷 [葡萄牙語版本](../SECURITY-PT.md)
|
|
4
|
-
|
|
5
|
-
## 支持的版本
|
|
6
|
-
|
|
7
|
-
我们为以下版本中的安全漏洞提供补丁:
|
|
8
|
-
|
|
9
|
-
| 版本 | 支持状态 |
|
|
10
|
-
| ------ | ------------------ |
|
|
11
|
-
| 2.1.x | :white_check_mark: |
|
|
12
|
-
| < 2.1 | :x: |
|
|
13
|
-
|
|
14
|
-
## 报告漏洞
|
|
15
|
-
|
|
16
|
-
我们在 SinapseAI 非常重视安全。如果您在 SINAPSE 中发现安全漏洞,请负责任地报告。
|
|
17
|
-
|
|
18
|
-
### 如何报告
|
|
19
|
-
|
|
20
|
-
**请勿**为安全漏洞创建公开的 GitHub issue。
|
|
21
|
-
|
|
22
|
-
而是请通过以下其中一个渠道报告安全漏洞:
|
|
23
|
-
|
|
24
|
-
1. **GitHub 安全公告**(首选)
|
|
25
|
-
- 前往 [安全公告](https://github.com/SinapseAI/sinapse-ai/security/advisories)
|
|
26
|
-
- 点击"报告漏洞"
|
|
27
|
-
- 填写详细信息表单
|
|
28
|
-
|
|
29
|
-
2. **电子邮件**
|
|
30
|
-
- 发送电子邮件至:security@sinapse.ai
|
|
31
|
-
- 主题行:`[SECURITY] 简要描述`
|
|
32
|
-
|
|
33
|
-
### 包含的内容
|
|
34
|
-
|
|
35
|
-
请在您的报告中包含以下内容:
|
|
36
|
-
|
|
37
|
-
- **描述**:对漏洞的清晰描述
|
|
38
|
-
- **影响**:攻击者使用此漏洞可以达到什么目的?
|
|
39
|
-
- **重现步骤**:详细的重现问题的步骤
|
|
40
|
-
- **受影响的版本**:哪些版本受到影响?
|
|
41
|
-
- **可能的修复**:如果您对如何修复问题有建议
|
|
42
|
-
- **您的信息**:您的名字/昵称用于确认(可选)
|
|
43
|
-
|
|
44
|
-
### 预期情况
|
|
45
|
-
|
|
46
|
-
1. **确认**:我们会在 48 小时内确认收到
|
|
47
|
-
2. **初始评估**:我们将在 5 个工作日内提供初步评估
|
|
48
|
-
3. **更新**:我们将及时通知您我们的进展
|
|
49
|
-
4. **解决**:我们的目标是在 30 天内解决关键问题
|
|
50
|
-
5. **披露**:我们将与您协调披露时间
|
|
51
|
-
|
|
52
|
-
### 安全港
|
|
53
|
-
|
|
54
|
-
我们认为按照本政策进行的安全研究属于以下情况:
|
|
55
|
-
|
|
56
|
-
- 在适用的反黑客法律方面获得授权
|
|
57
|
-
- 在相关的反规避法律方面获得授权
|
|
58
|
-
- 豁免我们服务条款中可能干扰进行安全研究的限制
|
|
59
|
-
|
|
60
|
-
我们不会因为本政策的意外、善意违反而提起民事诉讼或向执法部门投诉。
|
|
61
|
-
|
|
62
|
-
## 安全最佳实践
|
|
63
|
-
|
|
64
|
-
使用 SINAPSE 框架时,我们建议:
|
|
65
|
-
|
|
66
|
-
### 环境变量
|
|
67
|
-
|
|
68
|
-
- 永远不要将 `.env` 文件提交到版本控制
|
|
69
|
-
- 使用 `.env.example` 作为模板,不包含实际值
|
|
70
|
-
- 定期轮换 API 密钥和机密
|
|
71
|
-
|
|
72
|
-
### MCP 服务器安全
|
|
73
|
-
|
|
74
|
-
- 仅启用来自可信源的 MCP 服务器
|
|
75
|
-
- 启用前审查 MCP 服务器代码
|
|
76
|
-
- 在可用时使用沙盒执行环境
|
|
77
|
-
- 将 MCP 服务器权限限制为最小必需
|
|
78
|
-
|
|
79
|
-
### AI 代理安全
|
|
80
|
-
|
|
81
|
-
- 谨慎对待执行系统操作的代理命令
|
|
82
|
-
- 在生产环境中执行之前审查生成的代码
|
|
83
|
-
- 对敏感操作使用适当的访问控制
|
|
84
|
-
|
|
85
|
-
### 依赖关系管理
|
|
86
|
-
|
|
87
|
-
- 保持依赖关系更新
|
|
88
|
-
- 定期运行 `npm audit`
|
|
89
|
-
- 审查 pull request 中的依赖关系更改
|
|
90
|
-
|
|
91
|
-
## 已知安全考虑
|
|
92
|
-
|
|
93
|
-
### 框架架构
|
|
94
|
-
|
|
95
|
-
SINAPSE 框架执行 AI 生成的代码和命令。用户应该:
|
|
96
|
-
|
|
97
|
-
- 了解 AI 代理可以执行任意代码
|
|
98
|
-
- 对不受信任的环境使用适当的沙盒
|
|
99
|
-
- 在生产部署前审查 AI 生成的输出
|
|
100
|
-
|
|
101
|
-
### 数据处理
|
|
102
|
-
|
|
103
|
-
- SINAPSE 可能通过 AI 提供商处理敏感数据
|
|
104
|
-
- 审查您的 AI 提供商的数据处理政策
|
|
105
|
-
- 使用 AI 功能时考虑数据分类
|
|
106
|
-
|
|
107
|
-
## 安全更新
|
|
108
|
-
|
|
109
|
-
安全更新通过以下方式宣布:
|
|
110
|
-
|
|
111
|
-
- [GitHub 安全公告](https://github.com/SinapseAI/sinapse-ai/security/advisories)
|
|
112
|
-
- [CHANGELOG.md](../CHANGELOG.md)
|
|
113
|
-
- GitHub 发布
|
|
114
|
-
|
|
115
|
-
## 致谢
|
|
116
|
-
|
|
117
|
-
我们感谢以下研究人员负责任地披露安全问题:
|
|
118
|
-
|
|
119
|
-
*尚无报告 - 成为第一个!*
|
|
120
|
-
|
|
121
|
-
---
|
|
122
|
-
|
|
123
|
-
*本安全政策自 2024 年 12 月起生效。*
|
|
124
|
-
*最后更新:2025-12-11*
|