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,415 +0,0 @@
|
|
|
1
|
-
# SINAPSE Dashboard - 实时可观测性架构
|
|
2
|
-
|
|
3
|
-
> [EN](../../architecture/dashboard-realtime.md) | [PT](../../pt/architecture/dashboard-realtime.md) | [ES](../../es/architecture/dashboard-realtime.md) | **ZH**
|
|
4
|
-
|
|
5
|
-
> **版本:** 1.0.0
|
|
6
|
-
> **日期:** 2026-01-29
|
|
7
|
-
> **状态:** 提案
|
|
8
|
-
> **作者:** @architect (Aria)
|
|
9
|
-
> **相关:** [dashboard-architecture.md](./dashboard-architecture.md)
|
|
10
|
-
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
## 目录
|
|
14
|
-
|
|
15
|
-
1. [概述](#概述)
|
|
16
|
-
2. [当前问题](#当前问题)
|
|
17
|
-
3. [提议的架构](#提议的架构)
|
|
18
|
-
4. [事件发射器 (CLI)](#事件发射器-cli)
|
|
19
|
-
5. [事件 Schema](#事件-schema)
|
|
20
|
-
6. [增强的 SSE 端点](#增强的-sse-端点)
|
|
21
|
-
7. [事件 Store](#事件-store)
|
|
22
|
-
8. [新 UI 组件](#新-ui-组件)
|
|
23
|
-
9. [完整数据流](#完整数据流)
|
|
24
|
-
10. [分阶段实施](#分阶段实施)
|
|
25
|
-
|
|
26
|
-
---
|
|
27
|
-
|
|
28
|
-
## 概述
|
|
29
|
-
|
|
30
|
-
本文档描述了 SINAPSE Dashboard **实时可观测性**的架构,允许用户以最大的视觉细节跟踪 CLI 中执行的命令。
|
|
31
|
-
|
|
32
|
-
### 主要用例
|
|
33
|
-
|
|
34
|
-
```
|
|
35
|
-
用户在 CLI 中执行命令 → Dashboard 实时显示所有内容
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
### 原则
|
|
39
|
-
|
|
40
|
-
1. **零配置** - CLI 和 Dashboard 同时活动时自动工作
|
|
41
|
-
2. **基于文件** - 通过文件系统通信(不需要额外服务器)
|
|
42
|
-
3. **仅追加事件** - 用于调试的不可变事件日志
|
|
43
|
-
4. **优雅降级** - Dashboard 在没有事件时也能工作(回退到轮询)
|
|
44
|
-
|
|
45
|
-
---
|
|
46
|
-
|
|
47
|
-
## 当前问题
|
|
48
|
-
|
|
49
|
-
### Dashboard 今天显示什么
|
|
50
|
-
|
|
51
|
-
| CLI 中的事件 | 当前 Dashboard | 备注 |
|
|
52
|
-
| ---------------- | -------------------------- | -------- |
|
|
53
|
-
| `@agent` 激活 | ✅ 状态栏显示 | 正常工作 |
|
|
54
|
-
| `*exit` 代理 | ✅ 代理进入待机状态 | 正常工作 |
|
|
55
|
-
| Story 状态变更 | ⚠️ 看板更新 | 无通知 |
|
|
56
|
-
|
|
57
|
-
### Dashboard 不显示什么
|
|
58
|
-
|
|
59
|
-
| CLI 中的事件 | 当前 Dashboard |
|
|
60
|
-
| ------------------------ | -------------- |
|
|
61
|
-
| 命令 `*xxx` 正在执行 | ❌ 无 |
|
|
62
|
-
| Claude "思考中" | ❌ 无 |
|
|
63
|
-
| 工具调用 (Read/Write/Bash) | ❌ 无 |
|
|
64
|
-
| 任务进度 | ❌ 无 |
|
|
65
|
-
| Claude 输出 | ❌ 无 |
|
|
66
|
-
| git commit/push | ❌ 无 |
|
|
67
|
-
| 错误 | ❌ 无 |
|
|
68
|
-
| 任务完成 | ❌ 无 |
|
|
69
|
-
|
|
70
|
-
### 视觉差距
|
|
71
|
-
|
|
72
|
-
```
|
|
73
|
-
┌─────────────────────────────────────────────────────────────────────────┐
|
|
74
|
-
│ 流程: CLI → Dashboard 实时 │
|
|
75
|
-
├─────────────────────────────────────────────────────────────────────────┤
|
|
76
|
-
│ │
|
|
77
|
-
│ 您在 CLI 中 DASHBOARD │
|
|
78
|
-
│ ──────────── ───────── │
|
|
79
|
-
│ │
|
|
80
|
-
│ @architect ─────────────────────────────▶ ✅ 代理激活显示 │
|
|
81
|
-
│ (激活代理) (StatusBar + AgentMonitor) │
|
|
82
|
-
│ │
|
|
83
|
-
│ *create-architecture ───────────────────▶ ❌ 不显示正在执行的命令 │
|
|
84
|
-
│ (执行任务) │
|
|
85
|
-
│ │
|
|
86
|
-
│ [Claude 思考中...] ─────────────────────▶ ❌ 不显示实时进度 │
|
|
87
|
-
│ │
|
|
88
|
-
│ [创建文件 X] ───────────────────────────▶ ❌ 不显示正在创建/编辑的文件 │
|
|
89
|
-
│ [编辑文件 Y] │
|
|
90
|
-
│ │
|
|
91
|
-
│ [Story 更新] ───────────────────────────▶ ⚠️ 部分 - 状态变更但无详情 │
|
|
92
|
-
│ │
|
|
93
|
-
│ [git commit] ───────────────────────────▶ ❌ 不显示实时提交 │
|
|
94
|
-
│ │
|
|
95
|
-
│ *exit ──────────────────────────────────▶ ✅ 代理进入待机 │
|
|
96
|
-
│ │
|
|
97
|
-
└─────────────────────────────────────────────────────────────────────────┘
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
---
|
|
101
|
-
|
|
102
|
-
## 提议的架构
|
|
103
|
-
|
|
104
|
-
### 总体图
|
|
105
|
-
|
|
106
|
-
```
|
|
107
|
-
┌─────────────────────────────────────────────────────────────────────────┐
|
|
108
|
-
│ CLI / SINAPSE 代理 │
|
|
109
|
-
│ ┌─────────────────────────────────────────────────────────────────┐ │
|
|
110
|
-
│ │ Claude Code 会话 │ │
|
|
111
|
-
│ │ @architect → *create-architecture → [思考中...] → [文件操作] │ │
|
|
112
|
-
│ └────────────────────────────┬────────────────────────────────────┘ │
|
|
113
|
-
│ │ │
|
|
114
|
-
│ │ 发射事件 │
|
|
115
|
-
│ ▼ │
|
|
116
|
-
│ ┌─────────────────────────────────────────────────────────────────┐ │
|
|
117
|
-
│ │ .sinapse/dashboard/events.jsonl (仅追加) │ │
|
|
118
|
-
│ │ {"type":"agent:activated","agent":"architect","ts":"..."} │ │
|
|
119
|
-
│ │ {"type":"command:start","cmd":"*create-architecture","ts":"..."}│ │
|
|
120
|
-
│ │ {"type":"command:complete","cmd":"*create","success":true,"ts":""}│ │
|
|
121
|
-
│ └────────────────────────────┬────────────────────────────────────┘ │
|
|
122
|
-
│ │ │
|
|
123
|
-
└───────────────────────────────────┼──────────────────────────────────────┘
|
|
124
|
-
│
|
|
125
|
-
│ SSE 流
|
|
126
|
-
▼
|
|
127
|
-
┌─────────────────────────────────────────────────────────────────────────┐
|
|
128
|
-
│ DASHBOARD │
|
|
129
|
-
│ ┌───────────────────────────────────────────────────────────────────┐ │
|
|
130
|
-
│ │ /api/events (增强的 SSE) │ │
|
|
131
|
-
│ │ - 监视 events.jsonl 的变化 │ │
|
|
132
|
-
│ │ - 将新事件流式传输到连接的客户端 │ │
|
|
133
|
-
│ │ - 在内存中保持最近 N 个事件 │ │
|
|
134
|
-
│ └────────────────────────────┬──────────────────────────────────────┘ │
|
|
135
|
-
│ │ │
|
|
136
|
-
│ ▼ │
|
|
137
|
-
│ ┌───────────────────────────────────────────────────────────────────┐ │
|
|
138
|
-
│ │ events-store (新增) │ │
|
|
139
|
-
│ │ - currentCommand: { name, startedAt, status } │ │
|
|
140
|
-
│ │ - recentEvents: Event[] (循环缓冲) │ │
|
|
141
|
-
│ │ - errors: Error[] │ │
|
|
142
|
-
│ └────────────────────────────┬──────────────────────────────────────┘ │
|
|
143
|
-
│ │ │
|
|
144
|
-
│ ▼ │
|
|
145
|
-
│ ┌─────────────────────────────────────────────────────────────────┐ │
|
|
146
|
-
│ │ UI 组件 │ │
|
|
147
|
-
│ │ ┌─────────────────┐ ┌─────────────────┐ ┌─────────────────┐ │ │
|
|
148
|
-
│ │ │ CommandPanel │ │ ActivityFeed │ │ SessionIndicator│ │ │
|
|
149
|
-
│ │ │ ───────────── │ │ ──────────── │ │ ─────────────── │ │ │
|
|
150
|
-
│ │ │ *create-arch │ │ 02:45 命令完成 │ │ ● 会话活跃 │ │ │
|
|
151
|
-
│ │ │ ████████░░ 80% │ │ 02:44 命令开始 │ │ 5 分钟 │ │ │
|
|
152
|
-
│ │ └─────────────────┘ └─────────────────┘ └─────────────────┘ │ │
|
|
153
|
-
│ └──────────────────────────────────────────────────────────────────┘ │
|
|
154
|
-
└──────────────────────────────────────────────────────────────────────────┘
|
|
155
|
-
```
|
|
156
|
-
|
|
157
|
-
---
|
|
158
|
-
|
|
159
|
-
## 事件发射器 (CLI)
|
|
160
|
-
|
|
161
|
-
### 位置
|
|
162
|
-
|
|
163
|
-
```
|
|
164
|
-
.sinapse-ai/core/events/dashboard-emitter.ts
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
### 接口
|
|
168
|
-
|
|
169
|
-
```typescript
|
|
170
|
-
// .sinapse-ai/core/events/types.ts
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* 仅高级事件 (决策 #2)
|
|
174
|
-
* 专注于监控,而非调试
|
|
175
|
-
*/
|
|
176
|
-
export type DashboardEventType =
|
|
177
|
-
// 代理生命周期
|
|
178
|
-
| 'agent:activated'
|
|
179
|
-
| 'agent:deactivated'
|
|
180
|
-
|
|
181
|
-
// 命令执行
|
|
182
|
-
| 'command:start'
|
|
183
|
-
| 'command:complete'
|
|
184
|
-
| 'command:error'
|
|
185
|
-
|
|
186
|
-
// Story 更新
|
|
187
|
-
| 'story:status-change'
|
|
188
|
-
|
|
189
|
-
// 会话
|
|
190
|
-
| 'session:start'
|
|
191
|
-
| 'session:end';
|
|
192
|
-
|
|
193
|
-
export interface DashboardEvent {
|
|
194
|
-
id: string; // UUID v4
|
|
195
|
-
type: DashboardEventType;
|
|
196
|
-
timestamp: string; // ISO 8601
|
|
197
|
-
agentId?: string; // 事件发生时的活跃代理
|
|
198
|
-
sessionId?: string; // 会话标识符
|
|
199
|
-
data: Record<string, unknown>; // 事件特定的负载
|
|
200
|
-
}
|
|
201
|
-
```
|
|
202
|
-
|
|
203
|
-
---
|
|
204
|
-
|
|
205
|
-
## 事件 Schema
|
|
206
|
-
|
|
207
|
-
### 文件位置
|
|
208
|
-
|
|
209
|
-
```
|
|
210
|
-
.sinapse/dashboard/events.jsonl
|
|
211
|
-
```
|
|
212
|
-
|
|
213
|
-
### 格式
|
|
214
|
-
|
|
215
|
-
JSON Lines (JSONL) - 每行一个 JSON 对象,仅追加。
|
|
216
|
-
|
|
217
|
-
### 按类型的事件负载 (仅高级)
|
|
218
|
-
|
|
219
|
-
#### 代理事件
|
|
220
|
-
|
|
221
|
-
```jsonl
|
|
222
|
-
{"id":"uuid","type":"agent:activated","timestamp":"2026-01-29T14:30:00.000Z","sessionId":"uuid","data":{"agentId":"architect","agentName":"Aria"}}
|
|
223
|
-
{"id":"uuid","type":"agent:deactivated","timestamp":"2026-01-29T15:45:00.000Z","agentId":"architect","sessionId":"uuid","data":{"agentId":"architect"}}
|
|
224
|
-
```
|
|
225
|
-
|
|
226
|
-
#### 命令事件
|
|
227
|
-
|
|
228
|
-
```jsonl
|
|
229
|
-
{"id":"uuid","type":"command:start","timestamp":"...","agentId":"architect","data":{"command":"*create-architecture"}}
|
|
230
|
-
{"id":"uuid","type":"command:complete","timestamp":"...","agentId":"architect","data":{"command":"*create-architecture","success":true}}
|
|
231
|
-
{"id":"uuid","type":"command:error","timestamp":"...","agentId":"architect","data":{"command":"*create-architecture","error":"读取配置文件失败"}}
|
|
232
|
-
```
|
|
233
|
-
|
|
234
|
-
#### Story 事件
|
|
235
|
-
|
|
236
|
-
```jsonl
|
|
237
|
-
{
|
|
238
|
-
"id": "uuid",
|
|
239
|
-
"type": "story:status-change",
|
|
240
|
-
"timestamp": "...",
|
|
241
|
-
"agentId": "architect",
|
|
242
|
-
"data": {
|
|
243
|
-
"storyId": "SINAPSE-123",
|
|
244
|
-
"oldStatus": "in-progress",
|
|
245
|
-
"newStatus": "review"
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
```
|
|
249
|
-
|
|
250
|
-
#### 会话事件
|
|
251
|
-
|
|
252
|
-
```jsonl
|
|
253
|
-
{"id":"uuid","type":"session:start","timestamp":"...","data":{"sessionId":"uuid"}}
|
|
254
|
-
{"id":"uuid","type":"session:end","timestamp":"...","data":{"sessionId":"uuid"}}
|
|
255
|
-
```
|
|
256
|
-
|
|
257
|
-
### 文件轮转
|
|
258
|
-
|
|
259
|
-
当 `events.jsonl` 超过 10MB 时:
|
|
260
|
-
|
|
261
|
-
1. 重命名为 `events.{timestamp}.jsonl`
|
|
262
|
-
2. 创建新的 `events.jsonl`
|
|
263
|
-
3. 保留最近 5 个轮转文件
|
|
264
|
-
|
|
265
|
-
---
|
|
266
|
-
|
|
267
|
-
## 新 UI 组件
|
|
268
|
-
|
|
269
|
-
### 需要的组件 (仅高级)
|
|
270
|
-
|
|
271
|
-
| 组件 | 职责 | 优先级 |
|
|
272
|
-
| ------------------- | --------------------- | ------ |
|
|
273
|
-
| `CommandPanel` | 显示当前命令和状态 | P0 |
|
|
274
|
-
| `ActivityFeed` | 最近事件时间线 | P0 |
|
|
275
|
-
| `SessionIndicator` | 活跃会话状态 | P1 |
|
|
276
|
-
| `RetentionSettings` | 事件保留配置 | P2 |
|
|
277
|
-
|
|
278
|
-
### CommandPanel
|
|
279
|
-
|
|
280
|
-
```typescript
|
|
281
|
-
// apps/dashboard/src/components/realtime/CommandPanel.tsx
|
|
282
|
-
|
|
283
|
-
'use client';
|
|
284
|
-
|
|
285
|
-
import { useEventsStore, selectCurrentCommand } from '@/stores/events-store';
|
|
286
|
-
import { useEffect, useState } from 'react';
|
|
287
|
-
import { cn } from '@/lib/utils';
|
|
288
|
-
import { Loader2, CheckCircle, XCircle, Terminal } from 'lucide-react';
|
|
289
|
-
|
|
290
|
-
export function CommandPanel() {
|
|
291
|
-
const currentCommand = useEventsStore(selectCurrentCommand);
|
|
292
|
-
const [elapsed, setElapsed] = useState(0);
|
|
293
|
-
|
|
294
|
-
// ... 实现细节
|
|
295
|
-
}
|
|
296
|
-
```
|
|
297
|
-
|
|
298
|
-
### ActivityFeed
|
|
299
|
-
|
|
300
|
-
```typescript
|
|
301
|
-
// apps/dashboard/src/components/realtime/ActivityFeed.tsx
|
|
302
|
-
|
|
303
|
-
'use client';
|
|
304
|
-
|
|
305
|
-
import { useEventsStore, selectRecentEvents } from '@/stores/events-store';
|
|
306
|
-
|
|
307
|
-
// 仅高级事件 (决策 #2)
|
|
308
|
-
const EVENT_CONFIG: Record<
|
|
309
|
-
string,
|
|
310
|
-
{ icon: React.ElementType; color: string; label: string }
|
|
311
|
-
> = {
|
|
312
|
-
'agent:activated': { icon: User, color: 'text-purple-400', label: '代理已激活' },
|
|
313
|
-
'agent:deactivated': { icon: User, color: 'text-gray-400', label: '代理已停用' },
|
|
314
|
-
'command:start': { icon: Terminal, color: 'text-blue-400', label: '命令' },
|
|
315
|
-
'command:complete': { icon: Terminal, color: 'text-green-400', label: '命令完成' },
|
|
316
|
-
'command:error': { icon: AlertCircle, color: 'text-red-400', label: '错误' },
|
|
317
|
-
'story:status-change': { icon: Kanban, color: 'text-orange-400', label: 'Story' },
|
|
318
|
-
'session:start': { icon: Play, color: 'text-green-400', label: '会话开始' },
|
|
319
|
-
'session:end': { icon: Square, color: 'text-gray-400', label: '会话结束' },
|
|
320
|
-
};
|
|
321
|
-
```
|
|
322
|
-
|
|
323
|
-
---
|
|
324
|
-
|
|
325
|
-
## 分阶段实施 (简化)
|
|
326
|
-
|
|
327
|
-
### 第一阶段: 基础 (P0)
|
|
328
|
-
|
|
329
|
-
| 项目 | 描述 | 工作量 |
|
|
330
|
-
| --------------------------- | ----------------------- | ------ |
|
|
331
|
-
| Claude Code Hooks 集成 | 连接到原生 hooks | 2h |
|
|
332
|
-
| events.jsonl | 高级格式 | 1h |
|
|
333
|
-
| 增强的 SSE | 监视 events.jsonl | 2h |
|
|
334
|
-
| events-store | 简化的 Store | 1h |
|
|
335
|
-
|
|
336
|
-
**交付物:** 高级事件从 CLI 流向 Dashboard
|
|
337
|
-
|
|
338
|
-
### 第二阶段: 核心 UI (P1)
|
|
339
|
-
|
|
340
|
-
| 项目 | 描述 | 工作量 |
|
|
341
|
-
| ------------------- | --------------------- | ------ |
|
|
342
|
-
| CommandPanel | 当前命令 + 状态 | 1h |
|
|
343
|
-
| ActivityFeed | 简化的时间线 | 1h |
|
|
344
|
-
| SessionIndicator | 会话状态 | 30min |
|
|
345
|
-
| StatusBar 集成 | 集成新指标 | 1h |
|
|
346
|
-
|
|
347
|
-
**交付物:** Dashboard 实时显示高级活动
|
|
348
|
-
|
|
349
|
-
### 第三阶段: 配置 (P2)
|
|
350
|
-
|
|
351
|
-
| 项目 | 描述 | 工作量 |
|
|
352
|
-
| ---------------------- | ----------------------------- | ------ |
|
|
353
|
-
| RetentionSettings UI | 切换 session/hours/persistent | 1h |
|
|
354
|
-
| Settings 集成 | 偏好持久化 | 1h |
|
|
355
|
-
| localStorage/IndexedDB | 实现保留模式 | 2h |
|
|
356
|
-
|
|
357
|
-
**交付物:** 用户可配置的事件保留
|
|
358
|
-
|
|
359
|
-
---
|
|
360
|
-
|
|
361
|
-
## 已做出的决策
|
|
362
|
-
|
|
363
|
-
### 1. 事件来源 ✅
|
|
364
|
-
|
|
365
|
-
**决策:** Claude Code Hooks
|
|
366
|
-
|
|
367
|
-
| 方面 | 详情 |
|
|
368
|
-
| -------- | ----------------------------------- |
|
|
369
|
-
| 实现 | 使用 Claude Code 的原生 hooks |
|
|
370
|
-
| 优势 | 自动、完整、无需额外包装器 |
|
|
371
|
-
| 依赖 | Claude Code hooks API |
|
|
372
|
-
|
|
373
|
-
### 2. 详细程度 ✅
|
|
374
|
-
|
|
375
|
-
**决策:** 仅高级
|
|
376
|
-
|
|
377
|
-
| 包含的事件 | 排除的事件 |
|
|
378
|
-
| ------------------------------ | ----------------------------- |
|
|
379
|
-
| `agent:activated/deactivated` | `tool:call` (Read/Write/Bash) |
|
|
380
|
-
| `command:start/complete/error` | `file:read/write/create` |
|
|
381
|
-
| `session:start/end` | `llm:thinking/responding` |
|
|
382
|
-
| `story:status-change` | 输出流 |
|
|
383
|
-
|
|
384
|
-
**理由:** 专注于监控而非调试。更少的数据量,更好的性能。
|
|
385
|
-
|
|
386
|
-
### 3. 事件保留 ✅
|
|
387
|
-
|
|
388
|
-
**决策:** 用户可配置
|
|
389
|
-
|
|
390
|
-
```typescript
|
|
391
|
-
interface EventRetentionSettings {
|
|
392
|
-
mode: 'session' | 'hours' | 'persistent';
|
|
393
|
-
hoursToKeep?: number; // 当 mode = 'hours'
|
|
394
|
-
maxEvents?: number; // 任何模式下的最大限制
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
// 默认值
|
|
398
|
-
const DEFAULT_RETENTION: EventRetentionSettings = {
|
|
399
|
-
mode: 'session',
|
|
400
|
-
hoursToKeep: 24,
|
|
401
|
-
maxEvents: 1000,
|
|
402
|
-
};
|
|
403
|
-
```
|
|
404
|
-
|
|
405
|
-
| 模式 | 行为 | 存储 |
|
|
406
|
-
| ------------ | ----------------------- | ------------ |
|
|
407
|
-
| `session` | 关闭 dashboard 时清除 | 内存 |
|
|
408
|
-
| `hours` | 保留最近 N 小时 | localStorage |
|
|
409
|
-
| `persistent` | 保留到达限制 | IndexedDB |
|
|
410
|
-
|
|
411
|
-
**UI:** 在 Settings → Events → Retention 中切换
|
|
412
|
-
|
|
413
|
-
---
|
|
414
|
-
|
|
415
|
-
_文档由 @architect (Aria) 生成 - SINAPSE Core v2.0_
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
<!-- 翻译: ZH-CN | 原始: /docs/en/architecture/hcs-check-specifications.md | 同步: 2026-02-22 -->
|
|
2
|
-
|
|
3
|
-
# HCS 检查规范
|
|
4
|
-
|
|
5
|
-
> 🌐 [EN](../../architecture/hcs-check-specifications.md) | [PT](../../pt/architecture/hcs-check-specifications.md) | **ZH**
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
**版本:** 1.0
|
|
10
|
-
**状态:** 提议
|
|
11
|
-
**创建:** 2025-12-30
|
|
12
|
-
**故事:** HCS-1 调查
|
|
13
|
-
**作者:** @architect (Aria) via @dev (Dex)
|
|
14
|
-
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
## 目录
|
|
18
|
-
|
|
19
|
-
- [概览](#概览)
|
|
20
|
-
- [检查架构](#检查架构)
|
|
21
|
-
- [域 1: 项目一致性](#域-1-项目一致性)
|
|
22
|
-
- [域 2: 本地环境](#域-2-本地环境)
|
|
23
|
-
- [域 3: 存储库健康](#域-3-存储库健康)
|
|
24
|
-
- [域 4: 部署环境](#域-4-部署环境)
|
|
25
|
-
- [域 5: 服务集成](#域-5-服务集成)
|
|
26
|
-
- [IDE/CLI 检查矩阵](#idecli-检查矩阵)
|
|
27
|
-
- [自定义检查扩展](#自定义检查扩展)
|
|
28
|
-
- [性能考虑](#性能考虑)
|
|
29
|
-
|
|
30
|
-
---
|
|
31
|
-
|
|
32
|
-
## 概览
|
|
33
|
-
|
|
34
|
-
健康检查系统 (HCS) 在 5 个域中执行诊断检查,总共超过 33 个单独检查。每个检查包含:
|
|
35
|
-
|
|
36
|
-
- **唯一 ID:** 用于跟踪和报告
|
|
37
|
-
- **严重性:** CRITICAL、HIGH、MEDIUM、LOW、INFO
|
|
38
|
-
- **自动恢复级别:** 1(静默)、2(需确认)、3(手动指南)、N/A
|
|
39
|
-
- **模式:** quick(仅快速检查)、full(所有检查)
|
|
40
|
-
- **目标持续时间:** 预期执行时间
|
|
41
|
-
|
|
42
|
-
### 检查计数摘要
|
|
43
|
-
|
|
44
|
-
| 域 | 总检查数 | 快速模式 | 完整模式 |
|
|
45
|
-
| ------------------- | -------- | -------- | -------- |
|
|
46
|
-
| 项目一致性 | 8 | 4 | 8 |
|
|
47
|
-
| 本地环境 | 8 | 5 | 8 |
|
|
48
|
-
| 存储库健康 | 8 | 3 | 8 |
|
|
49
|
-
| 部署环境 | 5 | 2 | 5 |
|
|
50
|
-
| 服务集成 | 4 | 4 | 4 |
|
|
51
|
-
| **总计** | **33** | **18** | **33** |
|
|
52
|
-
|
|
53
|
-
---
|
|
54
|
-
|
|
55
|
-
## 检查架构
|
|
56
|
-
|
|
57
|
-
### 架构决策: 混合模式
|
|
58
|
-
|
|
59
|
-
基于行业研究,HCS 使用**混合架构**结合:
|
|
60
|
-
|
|
61
|
-
1. **基于代码的检查** 用于核心功能(性能、复杂逻辑)
|
|
62
|
-
2. **基于 YAML 的检查** 用于可扩展性(自定义检查、项目特定)
|
|
63
|
-
|
|
64
|
-
### 检查接口
|
|
65
|
-
|
|
66
|
-
```javascript
|
|
67
|
-
// 核心检查接口 (JavaScript)
|
|
68
|
-
class BaseCheck {
|
|
69
|
-
constructor(options) {
|
|
70
|
-
this.id = options.id; // 例如: "PC-001"
|
|
71
|
-
this.name = options.name; // 人类可读名称
|
|
72
|
-
this.domain = options.domain; // project | local | repo | deploy | services
|
|
73
|
-
this.severity = options.severity; // CRITICAL | HIGH | MEDIUM | LOW | INFO
|
|
74
|
-
this.tier = options.tier; // 1 | 2 | 3 | null
|
|
75
|
-
this.mode = options.mode; // quick | full
|
|
76
|
-
this.timeout = options.timeout || 5000; // ms
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
// 在子类中覆盖
|
|
80
|
-
async check(context) {
|
|
81
|
-
// 返回 { passed: boolean, message: string, details?: any }
|
|
82
|
-
throw new Error('未实现');
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
// 可选: 恢复逻辑
|
|
86
|
-
async heal(context) {
|
|
87
|
-
return { healed: false, message: '无自动修复可用' };
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
---
|
|
93
|
-
|
|
94
|
-
## 文档相关
|
|
95
|
-
|
|
96
|
-
- [ADR: HCS 架构](./adr/adr-hcs-health-check-system.md)
|
|
97
|
-
- [HCS 执行模式](./hcs-execution-modes.md)
|
|
98
|
-
- [HCS 自动恢复规范](./hcs-self-healing-spec.md)
|
|
99
|
-
|
|
100
|
-
---
|
|
101
|
-
|
|
102
|
-
_文档作为 Story HCS-1 调查的一部分创建_
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
<!-- 翻译: ZH-CN | 原始: /docs/en/architecture/hcs-execution-modes.md | 同步: 2026-02-22 -->
|
|
2
|
-
|
|
3
|
-
# HCS 执行模式规范
|
|
4
|
-
|
|
5
|
-
> 🌐 [EN](../../architecture/hcs-execution-modes.md) | [PT](../../pt/architecture/hcs-execution-modes.md) | **ZH**
|
|
6
|
-
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
**版本:** 1.0
|
|
10
|
-
**状态:** 提议
|
|
11
|
-
**创建:** 2025-12-30
|
|
12
|
-
**故事:** HCS-1 调查
|
|
13
|
-
**作者:** @architect (Aria) via @dev (Dex)
|
|
14
|
-
|
|
15
|
-
---
|
|
16
|
-
|
|
17
|
-
## 执行摘要
|
|
18
|
-
|
|
19
|
-
本文档定义了 SINAPSE 健康检查系统 (HCS) 的执行模式,基于 Kubernetes、VS Code、Terraform、npm/yarn 和 CLI "doctor" 模式(Flutter、Homebrew、WP-CLI)的行业最佳实践研究。
|
|
20
|
-
|
|
21
|
-
### 主要建议
|
|
22
|
-
|
|
23
|
-
1. **主模式:** 按需手动(`*health-check` 命令)
|
|
24
|
-
2. **次模式:** 计划 CI 集成(merge 后触发)
|
|
25
|
-
3. **可选模式:** IDE 中的后台检查(仅高级用户)
|
|
26
|
-
4. **不推荐:** 预提交钩子(太慢,造成摩擦)
|
|
27
|
-
|
|
28
|
-
---
|
|
29
|
-
|
|
30
|
-
## 执行模式比较矩阵
|
|
31
|
-
|
|
32
|
-
| 模式 | 触发方式 | 持续时间 | UX 影响 | 用例 | 建议 |
|
|
33
|
-
| ------------------------ | -------------- | -------- | -------------------------- | -------------- | ------------------- |
|
|
34
|
-
| **手动** (`*health-check`) | 用户命令 | 10-60s | 无(用户启动) | 按需诊断 | ✅ **主模式** |
|
|
35
|
-
| **预提交钩子** | `git commit` | 10-30s | 高摩擦 | 早期捕获问题 | ❌ 不推荐 |
|
|
36
|
-
| **后提交钩子** | 提交后 | 10-60s | 中等摩擦 | 本地验证 | ⚠️ 可选 |
|
|
37
|
-
| **CI 计划** | Cron/工作流 | 60-300s | 无 | 持续监控 | ✅ **次模式** |
|
|
38
|
-
| **merge 后触发** | PR 合并 | 60-120s | 无 | 合并后验证 | ✅ **第三模式** |
|
|
39
|
-
| **IDE 后台** | 保存/间隔 | 5-15s | 细微指示器 | 实时反馈 | ⚠️ 仅高级用户 |
|
|
40
|
-
| **安装/启动时** | `npx sinapse install` | 60-120s | 预期的 | 设置验证 | ✅ **强制** |
|
|
41
|
-
|
|
42
|
-
---
|
|
43
|
-
|
|
44
|
-
## 推荐配置
|
|
45
|
-
|
|
46
|
-
### 默认配置
|
|
47
|
-
|
|
48
|
-
```yaml
|
|
49
|
-
healthCheck:
|
|
50
|
-
enabled: true
|
|
51
|
-
|
|
52
|
-
modes:
|
|
53
|
-
manual:
|
|
54
|
-
enabled: true
|
|
55
|
-
command: '*health-check'
|
|
56
|
-
defaultMode: 'quick'
|
|
57
|
-
autoFix: true
|
|
58
|
-
|
|
59
|
-
scheduled:
|
|
60
|
-
enabled: true
|
|
61
|
-
frequency: 'daily'
|
|
62
|
-
ciProvider: 'github-actions'
|
|
63
|
-
mode: 'full'
|
|
64
|
-
reportArtifact: true
|
|
65
|
-
|
|
66
|
-
postMerge:
|
|
67
|
-
enabled: true
|
|
68
|
-
branches: ['main', 'develop']
|
|
69
|
-
mode: 'quick'
|
|
70
|
-
|
|
71
|
-
ideBackground:
|
|
72
|
-
enabled: false
|
|
73
|
-
interval: 300
|
|
74
|
-
mode: 'quick'
|
|
75
|
-
|
|
76
|
-
postCommit:
|
|
77
|
-
enabled: false
|
|
78
|
-
mode: 'quick'
|
|
79
|
-
|
|
80
|
-
onInstall:
|
|
81
|
-
enabled: true
|
|
82
|
-
mode: 'full'
|
|
83
|
-
failOnCritical: true
|
|
84
|
-
|
|
85
|
-
performance:
|
|
86
|
-
quickModeTimeout: 10
|
|
87
|
-
fullModeTimeout: 60
|
|
88
|
-
parallelChecks: true
|
|
89
|
-
cacheResults: true
|
|
90
|
-
cacheTTL: 300
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
---
|
|
94
|
-
|
|
95
|
-
## 相关文档
|
|
96
|
-
|
|
97
|
-
- [ADR: HCS 架构](./adr/adr-hcs-health-check-system.md)
|
|
98
|
-
- [HCS 自动恢复规范](./hcs-self-healing-spec.md)
|
|
99
|
-
- [HCS 检查规范](./hcs-check-specifications.md)
|
|
100
|
-
|
|
101
|
-
---
|
|
102
|
-
|
|
103
|
-
## 研究来源
|
|
104
|
-
|
|
105
|
-
- [Kubernetes 健康探针](https://kubernetes.io/docs/concepts/configuration/liveness-readiness-startup-probes/)
|
|
106
|
-
- [Terraform 漂移检测](https://developer.hashicorp.com/terraform/tutorials/state/resource-drift)
|
|
107
|
-
- [npm 锁文件完整性](https://medium.com/node-js-cybersecurity/lockfile-poisoning-and-how-hashes-verify-integrity-in-node-js-lockfiles)
|
|
108
|
-
- [VS Code 扩展健康](https://code.visualstudio.com/blogs/2021/02/16/extension-bisect)
|
|
109
|
-
- [Flutter Doctor 模式](https://quickcoder.org/flutter-doctor/)
|
|
110
|
-
- [WP-CLI Doctor 命令](https://github.com/wp-cli/doctor-command)
|
|
111
|
-
|
|
112
|
-
---
|
|
113
|
-
|
|
114
|
-
_文档作为 Story HCS-1 调查的一部分创建_
|