sinapse-ai 5.0.8 → 6.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/CLAUDE.md +1 -1
- package/.claude/rules/agent-authority.md +10 -10
- package/.claude/rules/agent-memory-imports.md +4 -4
- package/.claude/rules/coderabbit-integration.md +4 -4
- package/.claude/rules/ids-principles.md +5 -5
- package/.claude/rules/story-lifecycle.md +15 -15
- package/.claude/rules/workflow-execution.md +11 -11
- package/.sinapse-ai/constitution.md +3 -3
- package/.sinapse-ai/core/code-intel/helpers/dev-helper.js +1 -1
- package/.sinapse-ai/core/code-intel/helpers/qa-helper.js +1 -1
- package/.sinapse-ai/core/code-intel/helpers/story-helper.js +7 -7
- package/.sinapse-ai/core/config/config-loader.js +1 -1
- package/.sinapse-ai/core/docs/session-update-pattern.md +1 -1
- package/.sinapse-ai/core/ids/framework-governor.js +4 -4
- package/.sinapse-ai/core/ids/index.js +1 -1
- package/.sinapse-ai/core/memory/gotchas-memory.js +1 -1
- package/.sinapse-ai/core/orchestration/agent-invoker.js +1 -1
- package/.sinapse-ai/core/orchestration/bob-surface-criteria.yaml +2 -2
- package/.sinapse-ai/core/orchestration/executor-assignment.js +1 -1
- package/.sinapse-ai/core/orchestration/executors/epic-6-executor.js +1 -1
- package/.sinapse-ai/core/orchestration/executors/epic-executor.js +1 -1
- package/.sinapse-ai/core/orchestration/greenfield-handler.js +4 -4
- package/.sinapse-ai/core/orchestration/master-orchestrator.js +1 -1
- package/.sinapse-ai/core/orchestration/skill-dispatcher.js +3 -3
- package/.sinapse-ai/core/orchestration/workflow-executor.js +1 -1
- package/.sinapse-ai/core/quality-gates/layer2-pr-automation.js +3 -3
- package/.sinapse-ai/core/quality-gates/layer3-human-review.js +1 -1
- package/.sinapse-ai/core/quality-gates/quality-gate-config.yaml +1 -1
- package/.sinapse-ai/core/session/context-loader.js +1 -1
- package/.sinapse-ai/data/agent-config-requirements.yaml +3 -3
- package/.sinapse-ai/data/entity-registry.yaml +2154 -2337
- package/.sinapse-ai/data/registry-update-log.jsonl +316 -0
- package/.sinapse-ai/data/sinapse-kb.md +13 -13
- package/.sinapse-ai/data/tech-presets/csharp.md +2 -2
- package/.sinapse-ai/data/tech-presets/go.md +2 -2
- package/.sinapse-ai/data/tech-presets/java.md +2 -2
- package/.sinapse-ai/data/tech-presets/nextjs-react.md +1 -1
- package/.sinapse-ai/data/tech-presets/php.md +2 -2
- package/.sinapse-ai/data/tech-presets/rust.md +2 -2
- package/.sinapse-ai/data/technical-preferences.md +1 -1
- package/.sinapse-ai/data/workflow-chains.yaml +15 -15
- package/.sinapse-ai/development/README.md +1 -1
- package/.sinapse-ai/development/agent-teams/team-qa-focused.yaml +7 -7
- package/.sinapse-ai/development/agents/analyst.md +6 -6
- package/.sinapse-ai/development/agents/architect.md +4 -4
- package/.sinapse-ai/development/agents/data-engineer.md +2 -2
- package/.sinapse-ai/development/agents/{dev.md → developer.md} +7 -7
- package/.sinapse-ai/development/agents/devops.md +4 -4
- package/.sinapse-ai/development/agents/{po → product-lead}/MEMORY.md +3 -3
- package/.sinapse-ai/development/agents/{po.md → product-lead.md} +25 -25
- package/.sinapse-ai/development/agents/{pm → project-lead}/MEMORY.md +2 -2
- package/.sinapse-ai/development/agents/{pm.md → project-lead.md} +15 -15
- package/.sinapse-ai/development/agents/{qa.md → quality-gate.md} +8 -8
- package/.sinapse-ai/development/agents/{sinapse-master.md → sinapse-orqx.md} +12 -12
- package/.sinapse-ai/development/agents/{sm.md → sprint-lead.md} +18 -18
- package/.sinapse-ai/development/agents/squad-creator.md +4 -4
- package/.sinapse-ai/development/agents/ux-design-expert.md +2 -2
- package/.sinapse-ai/development/checklists/brownfield-compatibility-checklist.md +1 -1
- package/.sinapse-ai/development/checklists/memory-audit-checklist.md +1 -1
- package/.sinapse-ai/development/scripts/agent-config-loader.js +1 -1
- package/.sinapse-ai/development/scripts/apply-inline-greeting-all-agents.js +1 -1
- package/.sinapse-ai/development/scripts/audit-agent-config.js +2 -2
- package/.sinapse-ai/development/scripts/batch-update-agents-session-context.js +1 -1
- package/.sinapse-ai/development/scripts/dev-context-loader.js +1 -1
- package/.sinapse-ai/development/scripts/populate-entity-registry.js +2 -2
- package/.sinapse-ai/development/scripts/test-greeting-system.js +4 -4
- package/.sinapse-ai/development/scripts/unified-activation-pipeline.js +2 -2
- package/.sinapse-ai/development/scripts/verify-workflow-gaps.js +9 -9
- package/.sinapse-ai/development/tasks/analyze-cross-artifact.md +1 -1
- package/.sinapse-ai/development/tasks/analyze-project-structure.md +4 -4
- package/.sinapse-ai/development/tasks/apply-qa-fixes.md +1 -1
- package/.sinapse-ai/development/tasks/architect-analyze-impact.md +1 -1
- package/.sinapse-ai/development/tasks/brownfield-create-epic.md +10 -10
- package/.sinapse-ai/development/tasks/brownfield-create-story.md +1 -1
- package/.sinapse-ai/development/tasks/build-autonomous.md +1 -1
- package/.sinapse-ai/development/tasks/cleanup-utilities.md +6 -6
- package/.sinapse-ai/development/tasks/create-agent.md +1 -1
- package/.sinapse-ai/development/tasks/create-brownfield-story.md +4 -4
- package/.sinapse-ai/development/tasks/create-next-story.md +12 -12
- package/.sinapse-ai/development/tasks/create-service.md +2 -2
- package/.sinapse-ai/development/tasks/create-suite.md +1 -1
- package/.sinapse-ai/development/tasks/dev-backlog-debt.md +3 -3
- package/.sinapse-ai/development/tasks/dev-develop-story.md +5 -5
- package/.sinapse-ai/development/tasks/environment-bootstrap.md +2 -2
- package/.sinapse-ai/development/tasks/execute-checklist.md +1 -1
- package/.sinapse-ai/development/tasks/execute-epic-plan.md +11 -11
- package/.sinapse-ai/development/tasks/extract-patterns.md +2 -2
- package/.sinapse-ai/development/tasks/facilitate-brainstorming-session.md +2 -2
- package/.sinapse-ai/development/tasks/github-devops-github-pr-automation.md +1 -1
- package/.sinapse-ai/development/tasks/github-devops-pre-push-quality-gate.md +1 -1
- package/.sinapse-ai/development/tasks/ids-governor.md +3 -3
- package/.sinapse-ai/development/tasks/next.md +2 -2
- package/.sinapse-ai/development/tasks/orchestrate-resume.md +1 -1
- package/.sinapse-ai/development/tasks/orchestrate-status.md +1 -1
- package/.sinapse-ai/development/tasks/orchestrate-stop.md +1 -1
- package/.sinapse-ai/development/tasks/orchestrate.md +1 -1
- package/.sinapse-ai/development/tasks/patterns.md +2 -2
- package/.sinapse-ai/development/tasks/plan-create-context.md +2 -2
- package/.sinapse-ai/development/tasks/plan-execute-subtask.md +3 -3
- package/.sinapse-ai/development/tasks/po-close-story.md +3 -3
- package/.sinapse-ai/development/tasks/project-status.md +2 -2
- package/.sinapse-ai/development/tasks/qa-after-creation.md +2 -2
- package/.sinapse-ai/development/tasks/qa-backlog-add-followup.md +3 -3
- package/.sinapse-ai/development/tasks/qa-create-fix-request.md +8 -8
- package/.sinapse-ai/development/tasks/qa-evidence-requirements.md +1 -1
- package/.sinapse-ai/development/tasks/qa-false-positive-detection.md +1 -1
- package/.sinapse-ai/development/tasks/qa-fix-issues.md +10 -10
- package/.sinapse-ai/development/tasks/qa-gate.md +3 -3
- package/.sinapse-ai/development/tasks/qa-review-build.md +3 -3
- package/.sinapse-ai/development/tasks/qa-review-story.md +2 -2
- package/.sinapse-ai/development/tasks/qa-run-tests.md +1 -1
- package/.sinapse-ai/development/tasks/run-workflow-engine.md +1 -1
- package/.sinapse-ai/development/tasks/run-workflow.md +1 -1
- package/.sinapse-ai/development/tasks/security-scan.md +2 -2
- package/.sinapse-ai/development/tasks/setup-llm-routing.md +1 -1
- package/.sinapse-ai/development/tasks/spec-critique.md +4 -4
- package/.sinapse-ai/development/tasks/spec-gather-requirements.md +4 -4
- package/.sinapse-ai/development/tasks/spec-write-spec.md +2 -2
- package/.sinapse-ai/development/tasks/story-checkpoint.md +3 -3
- package/.sinapse-ai/development/tasks/sync-registry-intel.md +1 -1
- package/.sinapse-ai/development/tasks/validate-agents.md +1 -1
- package/.sinapse-ai/development/tasks/validate-next-story.md +10 -10
- package/.sinapse-ai/development/tasks/validate-workflow.md +1 -1
- package/.sinapse-ai/development/tasks/verify-subtask.md +2 -2
- package/.sinapse-ai/development/templates/code-intel-integration-pattern.md +3 -3
- package/.sinapse-ai/development/templates/subagent-step-prompt.md +2 -2
- package/.sinapse-ai/development/workflows/README.md +2 -2
- package/.sinapse-ai/development/workflows/auto-worktree.yaml +5 -5
- package/.sinapse-ai/development/workflows/brownfield-discovery.yaml +11 -11
- package/.sinapse-ai/development/workflows/brownfield-fullstack.yaml +6 -6
- package/.sinapse-ai/development/workflows/brownfield-service.yaml +5 -5
- package/.sinapse-ai/development/workflows/brownfield-ui.yaml +5 -5
- package/.sinapse-ai/development/workflows/development-cycle.yaml +10 -10
- package/.sinapse-ai/development/workflows/epic-orchestration.yaml +6 -6
- package/.sinapse-ai/development/workflows/greenfield-fullstack.yaml +7 -7
- package/.sinapse-ai/development/workflows/greenfield-service.yaml +5 -5
- package/.sinapse-ai/development/workflows/greenfield-ui.yaml +5 -5
- package/.sinapse-ai/development/workflows/qa-loop.yaml +1 -1
- package/.sinapse-ai/development/workflows/spec-pipeline.yaml +2 -2
- package/.sinapse-ai/development/workflows/story-development-cycle.yaml +1 -1
- package/.sinapse-ai/docs/standards/AGENT-PERSONALIZATION-STANDARD-V1.md +2 -2
- package/.sinapse-ai/docs/standards/OPEN-SOURCE-VS-SERVICE-DIFFERENCES.md +1 -1
- package/.sinapse-ai/docs/standards/QUALITY-GATES-SPECIFICATION.md +1 -1
- package/.sinapse-ai/docs/standards/SINAPSE-LIVRO-DE-OURO-V2.1-COMPLETE.md +6 -6
- package/.sinapse-ai/docs/standards/STANDARDS-INDEX.md +2 -2
- package/.sinapse-ai/docs/standards/STORY-TEMPLATE-V2-SPECIFICATION.md +6 -6
- package/.sinapse-ai/infrastructure/scripts/config-loader.js +2 -2
- package/.sinapse-ai/infrastructure/scripts/gotchas-documenter.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/ide-sync/README.md +3 -3
- package/.sinapse-ai/infrastructure/scripts/ide-sync/gemini-commands.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/ide-sync/index.js +2 -2
- package/.sinapse-ai/infrastructure/scripts/ide-sync/redirect-generator.js +2 -2
- package/.sinapse-ai/infrastructure/scripts/migrate-agent.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/performance-tracker.js +2 -2
- package/.sinapse-ai/infrastructure/scripts/qa-report-generator.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/recovery-tracker.js +1 -1
- package/.sinapse-ai/infrastructure/scripts/rollback-manager.js +1 -1
- package/.sinapse-ai/infrastructure/templates/core-config/core-config-brownfield.tmpl.yaml +1 -1
- package/.sinapse-ai/infrastructure/templates/core-config/core-config-greenfield.tmpl.yaml +1 -1
- package/.sinapse-ai/infrastructure/templates/sinapse-sync.yaml.template +1 -1
- package/.sinapse-ai/install-manifest.yaml +344 -344
- package/.sinapse-ai/monitor/hooks/lib/enrich.py +1 -1
- package/.sinapse-ai/product/checklists/self-critique-checklist.md +1 -1
- package/.sinapse-ai/product/checklists/story-draft-checklist.md +3 -3
- package/.sinapse-ai/product/templates/command-rationalization-matrix.md +3 -3
- package/.sinapse-ai/product/templates/design-story-tmpl.yaml +4 -4
- package/.sinapse-ai/product/templates/ide-rules/antigravity-rules.md +1 -1
- package/.sinapse-ai/product/templates/ide-rules/claude-rules.md +2 -2
- package/.sinapse-ai/product/templates/ide-rules/codex-rules.md +6 -6
- package/.sinapse-ai/product/templates/ide-rules/cursor-rules.md +1 -1
- package/.sinapse-ai/product/templates/personalized-agent-template.md +1 -1
- package/.sinapse-ai/product/templates/personalized-task-template.md +1 -1
- package/.sinapse-ai/product/templates/personalized-template-file.yaml +1 -1
- package/.sinapse-ai/product/templates/personalized-workflow-template.yaml +3 -3
- package/.sinapse-ai/product/templates/story-tmpl.yaml +8 -8
- package/.sinapse-ai/schemas/README.md +15 -15
- package/.sinapse-ai/scripts/diagnostics/health-dashboard/package-lock.json +2 -2
- package/.sinapse-ai/user-guide.md +4 -4
- package/.sinapse-ai/working-in-the-brownfield.md +3 -3
- package/LICENSE +4 -4
- package/README.en.md +6 -6
- package/README.md +8 -8
- package/bin/cli.js +13 -11
- package/bin/sinapse.js +17 -0
- package/docs/00-shared-activation-pipeline.md +16 -16
- package/docs/FEATURE_PROCESS.md +1 -1
- package/docs/ORQX-PLAN.md +264 -0
- package/docs/core-architecture.md +2 -2
- package/docs/en/sinapse-agent-flows/README.md +2 -2
- package/docs/en/sinapse-agent-flows/dev-system.md +2 -2
- package/docs/en/sinapse-agent-flows/pm-system.md +2 -2
- package/docs/en/sinapse-agent-flows/qa-system.md +2 -2
- package/docs/en/sinapse-agent-flows/{sinapse-master-system.md → sinapse-orqx-system.md} +5 -5
- package/docs/en/sinapse-agent-flows/sm-system.md +2 -2
- package/docs/framework/entity-layer-classification.md +2 -2
- package/docs/framework/source-tree.md +17 -17
- package/docs/getting-started.md +13 -13
- package/docs/guides/IDS-CONCEITOS-EXPLICADOS.md +17 -17
- package/docs/guides/MEMORY-INTEGRATION.md +3 -3
- package/docs/guides/MEMORY-INTELLIGENCE-SYSTEM.md +4 -4
- package/docs/guides/ade-guide.md +25 -25
- package/docs/guides/agent-selection-guide.md +36 -36
- package/docs/guides/agents/ANALYST-SYSTEM.md +5 -5
- package/docs/guides/agents/ARCHITECT-SYSTEM.md +9 -9
- package/docs/guides/agents/DATA-ENGINEER-SYSTEM.md +8 -8
- package/docs/guides/agents/DEV-SYSTEM.md +27 -27
- package/docs/guides/agents/DEVOPS-SYSTEM.md +5 -5
- package/docs/guides/agents/PM-SYSTEM.md +24 -24
- package/docs/guides/agents/QA-SYSTEM.md +24 -24
- package/docs/guides/agents/SINAPSE-MASTER-SYSTEM.md +26 -26
- package/docs/guides/agents/SM-SYSTEM.md +31 -31
- package/docs/guides/agents/SQUAD-CREATOR-SYSTEM.md +2 -2
- package/docs/guides/agents/UX-DESIGN-EXPERT-SYSTEM.md +10 -10
- package/docs/guides/agents/traces/00-shared-activation-pipeline.md +16 -16
- package/docs/guides/agents/traces/00-shared-activation-pipeline.v1-act8.md +16 -16
- package/docs/guides/agents/traces/README.md +20 -20
- package/docs/guides/agents/traces/analyst-execution-trace.md +6 -6
- package/docs/guides/agents/traces/architect-execution-trace.md +3 -3
- package/docs/guides/agents/traces/data-engineer-execution-trace.md +4 -4
- package/docs/guides/agents/traces/dev-execution-trace.md +12 -12
- package/docs/guides/agents/traces/devops-execution-trace.md +6 -6
- package/docs/guides/agents/traces/pm-execution-trace.md +14 -14
- package/docs/guides/agents/traces/po-execution-trace.md +17 -17
- package/docs/guides/agents/traces/qa-execution-trace.md +15 -15
- package/docs/guides/agents/traces/{sinapse-master-execution-trace.md → sinapse-orqx-execution-trace.md} +22 -22
- package/docs/guides/agents/traces/sm-execution-trace.md +15 -15
- package/docs/guides/agents/traces/squad-creation-execution-trace.md +9 -9
- package/docs/guides/agents/traces/ux-design-expert-execution-trace.md +4 -4
- package/docs/guides/api-reference.md +27 -27
- package/docs/guides/coderabbit/README.md +9 -9
- package/docs/guides/contextual-greeting-system-guide.md +5 -5
- package/docs/guides/development-setup.md +1 -1
- package/docs/guides/project-status-feature.md +2 -2
- package/docs/guides/quality-dashboard.md +2 -2
- package/docs/guides/quality-gates.md +6 -6
- package/docs/guides/template-engine-v2.md +2 -2
- package/docs/guides/user-guide.md +13 -13
- package/docs/guides/workflows/AUTO-WORKTREE-WORKFLOW.md +3 -3
- package/docs/guides/workflows/BROWNFIELD-DISCOVERY-WORKFLOW.md +6 -6
- package/docs/guides/workflows/BROWNFIELD-FULLSTACK-WORKFLOW.md +30 -30
- package/docs/guides/workflows/BROWNFIELD-SERVICE-WORKFLOW.md +38 -38
- package/docs/guides/workflows/BROWNFIELD-UI-WORKFLOW.md +25 -25
- package/docs/guides/workflows/GREENFIELD-FULLSTACK-WORKFLOW.md +37 -37
- package/docs/guides/workflows/GREENFIELD-SERVICE-WORKFLOW.md +5 -5
- package/docs/guides/workflows/GREENFIELD-UI-WORKFLOW.md +19 -19
- package/docs/guides/workflows/QA-LOOP-WORKFLOW.md +13 -13
- package/docs/guides/workflows/SINAPSE-COMPLETE-CROSS-REFERENCE-ANALYSIS.md +19 -19
- package/docs/guides/workflows/SPEC-PIPELINE-WORKFLOW.md +25 -25
- package/docs/guides/workflows/STORY-DEVELOPMENT-CYCLE-WORKFLOW.md +28 -28
- package/docs/guides/workflows/WORKFLOW-TASK-AGENT-ANALYSIS.md +94 -94
- package/docs/guides/workflows/xref-phase2-templates.md +29 -29
- package/docs/guides/workflows/xref-phase3-scripts.md +33 -33
- package/docs/guides/workflows/xref-phase4-infra.md +2 -2
- package/docs/guides/workflows/xref-phase6-supporting.md +1 -1
- package/docs/guides/workflows-guide.md +2 -2
- package/docs/installation/faq.md +1 -1
- package/docs/installation/troubleshooting.md +2 -2
- package/docs/installation/v4-quick-start.md +2 -2
- package/docs/prd-cli-graph-dashboard.md +1 -1
- package/docs/pt/DOCUMENTATION-ROADMAP.md +1 -1
- package/docs/pt/FEATURE_PROCESS.md +1 -1
- package/docs/pt/README.md +2 -2
- package/docs/pt/agents/archetype-rationale.md +4 -4
- package/docs/pt/agents/persona-definitions.md +9 -9
- package/docs/pt/architecture/ADE-ARCHITECT-HANDOFF.md +15 -15
- package/docs/pt/architecture/ADE-EPIC1-HANDOFF.md +2 -2
- package/docs/pt/architecture/ADE-EPIC2-HANDOFF.md +2 -2
- package/docs/pt/architecture/ADE-EPIC3-HANDOFF.md +8 -8
- package/docs/pt/architecture/ade-architecture.md +4 -4
- package/docs/pt/architecture/adr/adr-hcs-health-check-system.md +3 -3
- package/docs/pt/architecture/agent-config-audit.md +4 -4
- package/docs/pt/architecture/agent-responsibility-matrix.md +20 -20
- package/docs/pt/architecture/agent-tool-integration-guide.md +8 -8
- package/docs/pt/architecture/contribution-workflow-research.md +1 -1
- package/docs/pt/architecture/dashboard-architecture.md +1 -1
- package/docs/pt/architecture/hcs-check-specifications.md +1 -1
- package/docs/pt/architecture/hcs-execution-modes.md +1 -1
- package/docs/pt/architecture/hcs-self-healing-spec.md +1 -1
- package/docs/pt/architecture/high-level-architecture.md +1 -1
- package/docs/pt/architecture/module-system.md +1 -1
- package/docs/pt/architecture/source-tree.md +1 -1
- package/docs/pt/architecture/squad-improvement-recommended-approach.md +2 -2
- package/docs/pt/architecture/utility-integration-guide.md +2 -2
- package/docs/pt/contributing.md +1 -1
- package/docs/pt/core-architecture.md +2 -2
- package/docs/pt/framework/source-tree.md +1 -1
- package/docs/pt/guides/ade-guide.md +25 -25
- package/docs/pt/guides/agent-selection-guide.md +36 -36
- package/docs/pt/guides/api-reference.md +25 -25
- package/docs/pt/guides/contextual-greeting-system-guide.md +5 -5
- package/docs/pt/guides/development-setup.md +1 -1
- package/docs/pt/guides/project-status-feature.md +2 -2
- package/docs/pt/guides/quality-dashboard.md +2 -2
- package/docs/pt/guides/quality-gates.md +6 -6
- package/docs/pt/guides/template-engine-v2.md +2 -2
- package/docs/pt/guides/user-guide.md +8 -8
- package/docs/pt/guides/workflows-guide.md +2 -2
- package/docs/pt/installation/faq.md +1 -1
- package/docs/pt/installation/troubleshooting.md +2 -2
- package/docs/pt/installation/v4-quick-start.md +2 -2
- package/docs/pt/platforms/antigravity.md +9 -9
- package/docs/pt/platforms/cursor.md +15 -15
- package/docs/pt/platforms/gemini-cli.md +3 -3
- package/docs/pt/roadmap.md +1 -1
- package/docs/pt/sinapse-nomenclature-specification.md +15 -15
- package/docs/pt/specifications/docs-agent-technical-specification.md +11 -11
- package/docs/roadmap.md +1 -1
- package/docs/sinapse-agent-flows/README.md +2 -2
- package/docs/sinapse-agent-flows/analyst-system.md +5 -5
- package/docs/sinapse-agent-flows/architect-system.md +9 -9
- package/docs/sinapse-agent-flows/data-engineer-system.md +8 -8
- package/docs/sinapse-agent-flows/dev-system.md +27 -27
- package/docs/sinapse-agent-flows/devops-system.md +5 -5
- package/docs/sinapse-agent-flows/pm-system.md +24 -24
- package/docs/sinapse-agent-flows/qa-system.md +24 -24
- package/docs/sinapse-agent-flows/{sinapse-master-system.md → sinapse-orqx-system.md} +26 -26
- package/docs/sinapse-agent-flows/sm-system.md +31 -31
- package/docs/sinapse-agent-flows/squad-creator-system.md +2 -2
- package/docs/sinapse-agent-flows/ux-design-expert-system.md +10 -10
- package/docs/sinapse-workflows/auto-worktree-workflow.md +3 -3
- package/docs/sinapse-workflows/brownfield-discovery-workflow.md +6 -6
- package/docs/sinapse-workflows/brownfield-fullstack-workflow.md +30 -30
- package/docs/sinapse-workflows/brownfield-service-workflow.md +38 -38
- package/docs/sinapse-workflows/brownfield-ui-workflow.md +25 -25
- package/docs/sinapse-workflows/greenfield-fullstack-workflow.md +37 -37
- package/docs/sinapse-workflows/greenfield-service-workflow.md +5 -5
- package/docs/sinapse-workflows/greenfield-ui-workflow.md +19 -19
- package/docs/sinapse-workflows/qa-loop-workflow.md +13 -13
- package/docs/sinapse-workflows/spec-pipeline-workflow.md +25 -25
- package/docs/sinapse-workflows/story-development-cycle-workflow.md +28 -28
- package/package.json +1 -1
- package/packages/gemini-sinapse-extension/README.md +1 -1
- package/packages/gemini-sinapse-extension/commands/lib/agent-launcher.js +1 -1
- package/packages/gemini-sinapse-extension/commands/{sinapse-master.js → sinapse-orqx.js} +1 -1
- package/packages/gemini-sinapse-extension/extension.json +3 -3
- package/packages/gemini-sinapse-extension/gemini-extension.json +3 -3
- package/packages/installer/src/config/configure-environment.js +2 -2
- package/packages/installer/src/updater/index.js +105 -0
- package/packages/installer/src/wizard/feedback.js +38 -30
- package/packages/installer/src/wizard/i18n.js +25 -182
- package/packages/installer/src/wizard/ide-config-generator.js +1 -1
- package/packages/installer/src/wizard/index.js +253 -69
- package/packages/installer/src/wizard/questions.js +35 -7
- package/packages/installer/tests/unit/artifact-copy-pipeline/artifact-copy-pipeline.test.js +1 -1
- package/packages/sinapse-install/README.md +1 -1
- package/packages/sinapse-install/src/installer.js +1 -1
- package/scripts/package-synapse.js +1 -1
- package/sinapse/agents/{sinapse-master.md → sinapse-orqx.md} +18 -18
- package/sinapse/knowledge-base/cross-squad-patterns.md +1 -1
- package/sinapse/knowledge-base/routing-catalog.md +1 -1
- package/sinapse/squad.yaml +1 -1
- package/sinapse/tasks/compose-multi-squad-plan.md +2 -2
- package/sinapse/tasks/coordinate-cross-squad.md +2 -2
- package/sinapse/tasks/diagnose-and-route.md +2 -2
- package/sinapse/tasks/onboard-user.md +2 -2
- package/sinapse/tasks/resolve-conflict.md +2 -2
- package/sinapse/tasks/squad-status-report.md +2 -2
- package/sinapse/tasks/strategic-brief.md +3 -3
- package/squads/squad-animations/agents/animations-orqx.md +2 -2
- package/squads/squad-brand/agents/brand-creative-engineer.md +1 -1
- package/squads/squad-brand/agents/brand-motion-vfx.md +1 -1
- package/squads/squad-brand/agents/brand-orqx.md +2 -2
- package/squads/squad-brand/agents/brand-sonic-designer.md +1 -1
- package/squads/squad-brand/agents/brand-system-architect.md +1 -1
- package/squads/squad-claude/agents/claude-orqx.md +2 -2
- package/squads/squad-cloning/agents/cloning-orqx.md +3 -3
- package/squads/squad-commercial/agents/commercial-orqx.md +1 -1
- package/squads/squad-commercial/agents/cs-business-auditor.md +1 -1
- package/squads/squad-commercial/agents/cs-client-success.md +1 -1
- package/squads/squad-commercial/agents/cs-crm-specialist.md +1 -1
- package/squads/squad-commercial/agents/cs-funnel-architect.md +1 -1
- package/squads/squad-commercial/agents/cs-lead-generation-strategist.md +1 -1
- package/squads/squad-commercial/agents/cs-offer-designer.md +1 -1
- package/squads/squad-commercial/agents/cs-revops-analyst.md +1 -1
- package/squads/squad-commercial/agents/cs-sales-closer.md +1 -1
- package/squads/squad-commercial/agents/cs-sales-enablement.md +1 -1
- package/squads/squad-commercial/knowledge-base/ai-as-competitive-infrastructure.md +1 -1
- package/squads/squad-content/agents/content-orqx.md +2 -2
- package/squads/squad-content/knowledge-base/ai-leverage-content-framework.md +1 -1
- package/squads/squad-copy/agents/copy-strategist.md +3 -3
- package/squads/squad-copy/knowledge-base/consequence-headline-patterns.md +1 -1
- package/squads/squad-council/agents/council-orqx.md +1 -1
- package/squads/squad-courses/agents/courses-orqx.md +1 -1
- package/squads/squad-cybersecurity/agents/cyber-orqx.md +2 -2
- package/squads/squad-design/agents/design-orqx.md +2 -2
- package/squads/squad-finance/agents/finance-orqx.md +2 -2
- package/squads/squad-growth/agents/growth-orqx.md +2 -2
- package/squads/squad-paidmedia/agents/paidmedia-orqx.md +2 -2
- package/squads/squad-product/agents/product-orqx.md +2 -2
- package/squads/squad-research/agents/research-orqx.md +2 -2
- package/squads/squad-research/tasks/create-executive-briefing.md +1 -1
- package/squads/squad-research/tasks/create-insight-deck.md +1 -1
- package/squads/squad-research/tasks/forecast-industry-trends.md +1 -1
- package/squads/squad-research/tasks/generate-actionable-recommendations.md +2 -2
- package/squads/squad-research/tasks/run-scenario-planning.md +2 -2
- package/squads/squad-research/tasks/synthesize-research-report.md +2 -2
- package/squads/squad-research/tasks/track-emerging-technologies.md +1 -1
- package/squads/squad-storytelling/agents/storytelling-orqx.md +2 -2
- package/docs/es/CHANGELOG.md +0 -117
- package/docs/es/DOCUMENTATION-ROADMAP.md +0 -216
- package/docs/es/ENVIRONMENT.md +0 -140
- package/docs/es/FEATURE_PROCESS.md +0 -99
- package/docs/es/GUIDING-PRINCIPLES.md +0 -101
- package/docs/es/README.md +0 -134
- package/docs/es/agent-reference-guide.md +0 -570
- package/docs/es/agents/archetype-rationale.md +0 -566
- package/docs/es/agents/persona-definitions.md +0 -501
- package/docs/es/api/squads-api.md +0 -753
- package/docs/es/architecture/ADE-AGENT-CHANGES.md +0 -469
- package/docs/es/architecture/ADE-ARCHITECT-HANDOFF.md +0 -338
- package/docs/es/architecture/ADE-EPIC1-HANDOFF.md +0 -85
- package/docs/es/architecture/ADE-EPIC2-HANDOFF.md +0 -106
- package/docs/es/architecture/ADE-EPIC3-HANDOFF.md +0 -327
- package/docs/es/architecture/ARCHITECTURE-INDEX.md +0 -188
- package/docs/es/architecture/ade-architecture.md +0 -586
- package/docs/es/architecture/adr/ADR-COLLAB-1-current-state-audit.md +0 -259
- package/docs/es/architecture/adr/ADR-COLLAB-2-proposed-configuration.md +0 -518
- package/docs/es/architecture/adr/adr-hcs-health-check-system.md +0 -489
- package/docs/es/architecture/adr/adr-isolated-vm-decision.md +0 -70
- package/docs/es/architecture/agent-config-audit.md +0 -222
- package/docs/es/architecture/agent-responsibility-matrix.md +0 -444
- package/docs/es/architecture/agent-tool-integration-guide.md +0 -334
- package/docs/es/architecture/ci-cd.md +0 -151
- package/docs/es/architecture/coding-standards.md +0 -896
- package/docs/es/architecture/contribution-workflow-research.md +0 -376
- package/docs/es/architecture/dashboard-architecture.md +0 -926
- package/docs/es/architecture/dashboard-realtime.md +0 -1253
- package/docs/es/architecture/hcs-check-specifications.md +0 -897
- package/docs/es/architecture/hcs-execution-modes.md +0 -519
- package/docs/es/architecture/hcs-self-healing-spec.md +0 -695
- package/docs/es/architecture/high-level-architecture.md +0 -357
- package/docs/es/architecture/introduction.md +0 -21
- package/docs/es/architecture/mcp-api-keys-management.md +0 -246
- package/docs/es/architecture/mcp-system-diagrams.md +0 -113
- package/docs/es/architecture/module-system.md +0 -382
- package/docs/es/architecture/multi-repo-strategy.md +0 -390
- package/docs/es/architecture/source-tree.md +0 -708
- package/docs/es/architecture/squad-improvement-analysis.md +0 -204
- package/docs/es/architecture/squad-improvement-recommended-approach.md +0 -390
- package/docs/es/architecture/tech-stack.md +0 -806
- package/docs/es/architecture/utility-integration-guide.md +0 -358
- package/docs/es/community/README-community-snippet-core.md +0 -57
- package/docs/es/community/README-community-snippet-mcp.md +0 -49
- package/docs/es/community/README-community-snippet-squads.md +0 -40
- package/docs/es/community.md +0 -227
- package/docs/es/core-architecture.md +0 -229
- package/docs/es/docker-mcp-setup.md +0 -426
- package/docs/es/framework/README.md +0 -99
- package/docs/es/framework/coding-standards.md +0 -892
- package/docs/es/framework/source-tree.md +0 -725
- package/docs/es/framework/tech-stack.md +0 -802
- package/docs/es/getting-started.md +0 -572
- package/docs/es/git-workflow-guide.md +0 -995
- package/docs/es/guides/README.md +0 -133
- package/docs/es/guides/ade-guide.md +0 -452
- package/docs/es/guides/agent-selection-guide.md +0 -295
- package/docs/es/guides/api-reference.md +0 -899
- package/docs/es/guides/build-recovery-guide.md +0 -270
- package/docs/es/guides/contextual-greeting-system-guide.md +0 -387
- package/docs/es/guides/contributing-squads.md +0 -256
- package/docs/es/guides/development-setup.md +0 -1111
- package/docs/es/guides/ide-sync-guide.md +0 -194
- package/docs/es/guides/installation-troubleshooting.md +0 -327
- package/docs/es/guides/llm-routing.md +0 -312
- package/docs/es/guides/mcp/desktop-commander.md +0 -368
- package/docs/es/guides/mcp/docker-gateway-tutorial.md +0 -336
- package/docs/es/guides/mcp-global-setup.md +0 -663
- package/docs/es/guides/permission-modes.md +0 -313
- package/docs/es/guides/project-status-feature.md +0 -473
- package/docs/es/guides/quality-dashboard.md +0 -367
- package/docs/es/guides/quality-gates.md +0 -614
- package/docs/es/guides/security-hardening.md +0 -1359
- package/docs/es/guides/service-discovery.md +0 -524
- package/docs/es/guides/squad-examples/README.md +0 -64
- package/docs/es/guides/squad-migration.md +0 -356
- package/docs/es/guides/squads-guide.md +0 -836
- package/docs/es/guides/squads-overview.md +0 -332
- package/docs/es/guides/template-engine-v2.md +0 -484
- package/docs/es/guides/testing-guide.md +0 -1215
- package/docs/es/guides/user-guide.md +0 -452
- package/docs/es/guides/workflows-guide.md +0 -400
- package/docs/es/how-to-contribute-with-pull-requests.md +0 -160
- package/docs/es/ide-integration.md +0 -425
- package/docs/es/installation/README.md +0 -108
- package/docs/es/installation/faq.md +0 -616
- package/docs/es/installation/linux.md +0 -311
- package/docs/es/installation/macos.md +0 -189
- package/docs/es/installation/troubleshooting.md +0 -735
- package/docs/es/installation/v4-quick-start.md +0 -269
- package/docs/es/installation/windows.md +0 -342
- package/docs/es/meta-agent-commands.md +0 -990
- package/docs/es/migration-guide.md +0 -310
- package/docs/es/npx-install.md +0 -193
- package/docs/es/performance-tuning-guide.md +0 -707
- package/docs/es/platforms/README.md +0 -283
- package/docs/es/platforms/antigravity.md +0 -510
- package/docs/es/platforms/claude-code.md +0 -650
- package/docs/es/platforms/cursor.md +0 -635
- package/docs/es/platforms/gemini-cli.md +0 -483
- package/docs/es/platforms/github-copilot.md +0 -480
- package/docs/es/roadmap.md +0 -119
- package/docs/es/security-best-practices.md +0 -613
- package/docs/es/security.md +0 -124
- package/docs/es/sinapse-agent-flows/README.md +0 -190
- package/docs/es/sinapse-agent-flows/analyst-system.md +0 -36
- package/docs/es/sinapse-agent-flows/architect-system.md +0 -36
- package/docs/es/sinapse-agent-flows/data-engineer-system.md +0 -36
- package/docs/es/sinapse-agent-flows/dev-system.md +0 -36
- package/docs/es/sinapse-agent-flows/devops-system.md +0 -36
- package/docs/es/sinapse-agent-flows/pm-system.md +0 -36
- package/docs/es/sinapse-agent-flows/qa-system.md +0 -36
- package/docs/es/sinapse-agent-flows/sinapse-master-system.md +0 -36
- package/docs/es/sinapse-agent-flows/sm-system.md +0 -36
- package/docs/es/sinapse-agent-flows/squad-creator-system.md +0 -36
- package/docs/es/sinapse-agent-flows/ux-design-expert-system.md +0 -36
- package/docs/es/sinapse-nomenclature-specification.md +0 -673
- package/docs/es/sinapse-workflows/README.md +0 -247
- package/docs/es/sinapse-workflows/auto-worktree-workflow.md +0 -39
- package/docs/es/sinapse-workflows/brownfield-discovery-workflow.md +0 -41
- package/docs/es/sinapse-workflows/brownfield-fullstack-workflow.md +0 -42
- package/docs/es/sinapse-workflows/brownfield-service-workflow.md +0 -43
- package/docs/es/sinapse-workflows/brownfield-ui-workflow.md +0 -42
- package/docs/es/sinapse-workflows/design-system-build-quality-workflow.md +0 -40
- package/docs/es/sinapse-workflows/greenfield-fullstack-workflow.md +0 -44
- package/docs/es/sinapse-workflows/greenfield-service-workflow.md +0 -43
- package/docs/es/sinapse-workflows/greenfield-ui-workflow.md +0 -43
- package/docs/es/sinapse-workflows/qa-loop-workflow.md +0 -39
- package/docs/es/sinapse-workflows/spec-pipeline-workflow.md +0 -40
- package/docs/es/sinapse-workflows/story-development-cycle-workflow.md +0 -42
- package/docs/es/specifications/docs-agent-technical-specification.md +0 -2161
- package/docs/es/troubleshooting.md +0 -887
- package/docs/es/uninstallation.md +0 -556
- package/docs/es/versioning-and-releases.md +0 -146
- package/docs/zh/CHANGELOG.md +0 -191
- package/docs/zh/ENVIRONMENT.md +0 -136
- package/docs/zh/FEATURE_PROCESS.md +0 -92
- package/docs/zh/GLOSSARY.md +0 -179
- package/docs/zh/GUIDING-PRINCIPLES.md +0 -97
- package/docs/zh/README.md +0 -133
- package/docs/zh/TRANSLATION-PLAN.md +0 -508
- package/docs/zh/agent-reference-guide.md +0 -566
- package/docs/zh/agents/archetype-rationale.md +0 -631
- package/docs/zh/agents/persona-definitions.md +0 -560
- package/docs/zh/api/squads-api.md +0 -753
- package/docs/zh/architecture/ADE-ARCHITECT-HANDOFF.md +0 -338
- package/docs/zh/architecture/ADE-EPIC1-HANDOFF.md +0 -85
- package/docs/zh/architecture/ADE-EPIC2-HANDOFF.md +0 -106
- package/docs/zh/architecture/ADE-EPIC3-HANDOFF.md +0 -327
- package/docs/zh/architecture/ARCHITECTURE-INDEX.md +0 -190
- package/docs/zh/architecture/SINAPSE-VISUAL-OVERVIEW.md +0 -595
- package/docs/zh/architecture/ade-architecture.md +0 -474
- package/docs/zh/architecture/adr/ADR-COLLAB-1-current-state-audit.md +0 -259
- package/docs/zh/architecture/adr/ADR-COLLAB-2-proposed-configuration.md +0 -518
- package/docs/zh/architecture/adr/adr-hcs-health-check-system.md +0 -489
- package/docs/zh/architecture/adr/adr-isolated-vm-decision.md +0 -70
- package/docs/zh/architecture/agent-config-audit.md +0 -220
- package/docs/zh/architecture/agent-responsibility-matrix.md +0 -444
- package/docs/zh/architecture/agent-tool-integration-guide.md +0 -336
- package/docs/zh/architecture/ci-cd.md +0 -151
- package/docs/zh/architecture/coding-standards.md +0 -898
- package/docs/zh/architecture/command-authority-matrix.md +0 -18
- package/docs/zh/architecture/contribution-workflow-research.md +0 -376
- package/docs/zh/architecture/dashboard-architecture.md +0 -569
- package/docs/zh/architecture/dashboard-realtime.md +0 -415
- package/docs/zh/architecture/hcs-check-specifications.md +0 -102
- package/docs/zh/architecture/hcs-execution-modes.md +0 -114
- package/docs/zh/architecture/hcs-self-healing-spec.md +0 -148
- package/docs/zh/architecture/high-level-architecture.md +0 -355
- package/docs/zh/architecture/introduction.md +0 -21
- package/docs/zh/architecture/mcp-api-keys-management.md +0 -248
- package/docs/zh/architecture/mcp-system-diagrams.md +0 -113
- package/docs/zh/architecture/module-system.md +0 -382
- package/docs/zh/architecture/multi-repo-strategy.md +0 -237
- package/docs/zh/architecture/source-tree.md +0 -710
- package/docs/zh/architecture/squad-improvement-analysis.md +0 -204
- package/docs/zh/architecture/squad-improvement-recommended-approach.md +0 -390
- package/docs/zh/architecture/tech-stack.md +0 -808
- package/docs/zh/architecture/utility-integration-guide.md +0 -358
- package/docs/zh/code-of-conduct.md +0 -113
- package/docs/zh/community/README-community-snippet-core.md +0 -57
- package/docs/zh/community/README-community-snippet-mcp.md +0 -49
- package/docs/zh/community/README-community-snippet-squads.md +0 -40
- package/docs/zh/community.md +0 -227
- package/docs/zh/contributing.md +0 -581
- package/docs/zh/core-architecture.md +0 -229
- package/docs/zh/docker-mcp-setup.md +0 -226
- package/docs/zh/framework/README.md +0 -97
- package/docs/zh/framework/coding-standards.md +0 -886
- package/docs/zh/framework/source-tree.md +0 -888
- package/docs/zh/framework/tech-stack.md +0 -796
- package/docs/zh/getting-started.md +0 -317
- package/docs/zh/git-workflow-guide.md +0 -988
- package/docs/zh/guides/MEMORY-INTEGRATION.md +0 -497
- package/docs/zh/guides/MEMORY-INTELLIGENCE-SYSTEM.md +0 -1083
- package/docs/zh/guides/MEMORY-SYSTEM.md +0 -1003
- package/docs/zh/guides/README.md +0 -127
- package/docs/zh/guides/ade-guide.md +0 -446
- package/docs/zh/guides/agent-selection-guide.md +0 -289
- package/docs/zh/guides/api-reference.md +0 -427
- package/docs/zh/guides/build-recovery-guide.md +0 -266
- package/docs/zh/guides/contextual-greeting-system-guide.md +0 -381
- package/docs/zh/guides/contributing-squads.md +0 -250
- package/docs/zh/guides/development-setup.md +0 -384
- package/docs/zh/guides/ide-sync-guide.md +0 -193
- package/docs/zh/guides/installation-troubleshooting.md +0 -321
- package/docs/zh/guides/llm-routing.md +0 -306
- package/docs/zh/guides/mcp/desktop-commander.md +0 -368
- package/docs/zh/guides/mcp/docker-gateway-tutorial.md +0 -336
- package/docs/zh/guides/mcp-global-setup.md +0 -696
- package/docs/zh/guides/permission-modes.md +0 -307
- package/docs/zh/guides/project-status-feature.md +0 -467
- package/docs/zh/guides/quality-dashboard.md +0 -361
- package/docs/zh/guides/quality-gates.md +0 -462
- package/docs/zh/guides/security-hardening.md +0 -1055
- package/docs/zh/guides/service-discovery.md +0 -518
- package/docs/zh/guides/squad-examples/README.md +0 -63
- package/docs/zh/guides/squad-migration.md +0 -336
- package/docs/zh/guides/template-engine-v2.md +0 -478
- package/docs/zh/guides/workflows-guide.md +0 -408
- package/docs/zh/how-to-contribute-with-pull-requests.md +0 -158
- package/docs/zh/installation/README.md +0 -106
- package/docs/zh/installation/faq.md +0 -611
- package/docs/zh/installation/linux.md +0 -447
- package/docs/zh/installation/macos.md +0 -187
- package/docs/zh/installation/troubleshooting.md +0 -729
- package/docs/zh/installation/windows.md +0 -475
- package/docs/zh/meta-agent-commands.md +0 -990
- package/docs/zh/security-best-practices.md +0 -610
- package/docs/zh/security.md +0 -124
- package/docs/zh/sinapse-agent-flows/README.md +0 -196
- package/docs/zh/sinapse-agent-flows/analyst-system.md +0 -679
- package/docs/zh/sinapse-agent-flows/architect-system.md +0 -246
- package/docs/zh/sinapse-agent-flows/data-engineer-system.md +0 -418
- package/docs/zh/sinapse-agent-flows/dev-system.md +0 -209
- package/docs/zh/sinapse-agent-flows/devops-system.md +0 -643
- package/docs/zh/sinapse-agent-flows/pm-system.md +0 -733
- package/docs/zh/sinapse-agent-flows/qa-system.md +0 -268
- package/docs/zh/sinapse-agent-flows/sinapse-master-system.md +0 -81
- package/docs/zh/sinapse-agent-flows/sm-system.md +0 -501
- package/docs/zh/sinapse-agent-flows/squad-creator-system.md +0 -704
- package/docs/zh/sinapse-agent-flows/ux-design-expert-system.md +0 -160
- package/docs/zh/sinapse-workflows/README.md +0 -247
- package/docs/zh/sinapse-workflows/auto-worktree-workflow.md +0 -793
- package/docs/zh/sinapse-workflows/brownfield-discovery-workflow.md +0 -915
- package/docs/zh/sinapse-workflows/brownfield-fullstack-workflow.md +0 -764
- package/docs/zh/sinapse-workflows/brownfield-service-workflow.md +0 -812
- package/docs/zh/sinapse-workflows/brownfield-ui-workflow.md +0 -891
- package/docs/zh/sinapse-workflows/design-system-build-quality-workflow.md +0 -845
- package/docs/zh/sinapse-workflows/greenfield-fullstack-workflow.md +0 -796
- package/docs/zh/sinapse-workflows/greenfield-service-workflow.md +0 -786
- package/docs/zh/sinapse-workflows/greenfield-ui-workflow.md +0 -922
- package/docs/zh/sinapse-workflows/qa-loop-workflow.md +0 -1111
- package/docs/zh/sinapse-workflows/spec-pipeline-workflow.md +0 -1031
- package/docs/zh/sinapse-workflows/story-development-cycle-workflow.md +0 -843
- package/docs/zh/troubleshooting.md +0 -883
- package/docs/zh/uninstallation.md +0 -348
- package/docs/zh/versioning-and-releases.md +0 -140
- /package/.sinapse-ai/development/agents/{dev → developer}/MEMORY.md +0 -0
- /package/.sinapse-ai/development/agents/{qa → quality-gate}/MEMORY.md +0 -0
- /package/.sinapse-ai/development/agents/{sm → sprint-lead}/MEMORY.md +0 -0
|
@@ -1,266 +0,0 @@
|
|
|
1
|
-
# 构建恢复指南
|
|
2
|
-
|
|
3
|
-
> [EN](../../guides/build-recovery-guide.md) | **ZH**
|
|
4
|
-
|
|
5
|
-
> **Story:** 8.4 - 构建恢复与恢复
|
|
6
|
-
> **Epic:** Epic 8 - 自主构建引擎
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
## 概述
|
|
11
|
-
|
|
12
|
-
构建恢复系统使自主构建能够在失败或中断后从检查点恢复。构建不必从头开始,而是从最后成功的点继续。
|
|
13
|
-
|
|
14
|
-
---
|
|
15
|
-
|
|
16
|
-
## 主要功能
|
|
17
|
-
|
|
18
|
-
| 功能 | 描述 |
|
|
19
|
-
| ------------------------- | -------------------------------------- |
|
|
20
|
-
| **检查点** | 每个子任务完成后自动保存 |
|
|
21
|
-
| **恢复** | 从最后一个检查点继续 |
|
|
22
|
-
| **状态监控** | 实时构建进度 |
|
|
23
|
-
| **废弃检测** | 对过时构建发出警报(> 1小时) |
|
|
24
|
-
| **失败通知** | 卡住或达到最大迭代次数时发出警报 |
|
|
25
|
-
| **尝试日志** | 完整的调试历史记录 |
|
|
26
|
-
|
|
27
|
-
---
|
|
28
|
-
|
|
29
|
-
## 命令
|
|
30
|
-
|
|
31
|
-
### 检查构建状态
|
|
32
|
-
|
|
33
|
-
```bash
|
|
34
|
-
# 单个构建
|
|
35
|
-
*build-status story-8.4
|
|
36
|
-
|
|
37
|
-
# 所有活动构建
|
|
38
|
-
*build-status --all
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
### 恢复失败的构建
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
*build-resume story-8.4
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
### 查看尝试日志
|
|
48
|
-
|
|
49
|
-
```bash
|
|
50
|
-
*build-log story-8.4
|
|
51
|
-
|
|
52
|
-
# 按子任务筛选
|
|
53
|
-
*build-log story-8.4 --subtask 2.1
|
|
54
|
-
|
|
55
|
-
# 限制输出
|
|
56
|
-
*build-log story-8.4 --limit 20
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
### 清理废弃的构建
|
|
60
|
-
|
|
61
|
-
```bash
|
|
62
|
-
*build-cleanup story-8.4
|
|
63
|
-
|
|
64
|
-
# 强制清理(即使是活动构建)
|
|
65
|
-
*build-cleanup story-8.4 --force
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
---
|
|
69
|
-
|
|
70
|
-
## 构建状态 Schema
|
|
71
|
-
|
|
72
|
-
构建状态存储在 `plan/build-state.json`:
|
|
73
|
-
|
|
74
|
-
```json
|
|
75
|
-
{
|
|
76
|
-
"storyId": "story-8.4",
|
|
77
|
-
"status": "in_progress",
|
|
78
|
-
"startedAt": "2026-01-29T10:00:00Z",
|
|
79
|
-
"lastCheckpoint": "2026-01-29T11:30:00Z",
|
|
80
|
-
"currentPhase": "phase-2",
|
|
81
|
-
"currentSubtask": "2.3",
|
|
82
|
-
"completedSubtasks": ["1.1", "1.2", "2.1", "2.2"],
|
|
83
|
-
"checkpoints": [...],
|
|
84
|
-
"metrics": {
|
|
85
|
-
"totalSubtasks": 10,
|
|
86
|
-
"completedSubtasks": 4,
|
|
87
|
-
"totalAttempts": 6,
|
|
88
|
-
"totalFailures": 2
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
---
|
|
94
|
-
|
|
95
|
-
## 状态值
|
|
96
|
-
|
|
97
|
-
| 状态 | 描述 |
|
|
98
|
-
| ------------- | ---------------------------- |
|
|
99
|
-
| `pending` | 构建已创建但尚未开始 |
|
|
100
|
-
| `in_progress` | 构建正在运行 |
|
|
101
|
-
| `paused` | 构建已手动暂停 |
|
|
102
|
-
| `abandoned` | 超过 1 小时无活动 |
|
|
103
|
-
| `failed` | 构建失败(可恢复) |
|
|
104
|
-
| `completed` | 构建成功完成 |
|
|
105
|
-
|
|
106
|
-
---
|
|
107
|
-
|
|
108
|
-
## 检查点系统
|
|
109
|
-
|
|
110
|
-
每个子任务完成后自动保存检查点:
|
|
111
|
-
|
|
112
|
-
```
|
|
113
|
-
plan/
|
|
114
|
-
├── build-state.json # 主状态文件
|
|
115
|
-
├── build-attempts.log # 尝试日志
|
|
116
|
-
└── checkpoints/ # 检查点快照
|
|
117
|
-
├── cp-lxyz123-abc.json
|
|
118
|
-
├── cp-lxyz124-def.json
|
|
119
|
-
└── ...
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
每个检查点包含:
|
|
123
|
-
|
|
124
|
-
- 时间戳
|
|
125
|
-
- 子任务 ID
|
|
126
|
-
- Git 提交(如果可用)
|
|
127
|
-
- 修改的文件
|
|
128
|
-
- 持续时间和尝试次数
|
|
129
|
-
|
|
130
|
-
---
|
|
131
|
-
|
|
132
|
-
## 与 Epic 5 的集成
|
|
133
|
-
|
|
134
|
-
构建恢复与恢复系统(Epic 5)集成:
|
|
135
|
-
|
|
136
|
-
| 组件 | 用途 |
|
|
137
|
-
| --------------------- | -------------------------- |
|
|
138
|
-
| `stuck-detector.js` | 检测循环失败 |
|
|
139
|
-
| `recovery-tracker.js` | 跟踪尝试历史 |
|
|
140
|
-
|
|
141
|
-
当构建卡住(连续 3 次以上失败)时,系统会:
|
|
142
|
-
|
|
143
|
-
1. 根据错误模式生成建议
|
|
144
|
-
2. 创建通知以供人工审核
|
|
145
|
-
3. 将子任务标记为"卡住"
|
|
146
|
-
|
|
147
|
-
---
|
|
148
|
-
|
|
149
|
-
## 废弃构建检测
|
|
150
|
-
|
|
151
|
-
如果满足以下条件,构建将被标记为废弃:
|
|
152
|
-
|
|
153
|
-
- 状态为 `in_progress`
|
|
154
|
-
- 超过 1 小时无检查点(可配置)
|
|
155
|
-
|
|
156
|
-
检测和处理:
|
|
157
|
-
|
|
158
|
-
```bash
|
|
159
|
-
# 检查是否废弃
|
|
160
|
-
*build-status story-8.4 # 如果废弃会显示警告
|
|
161
|
-
|
|
162
|
-
# 清理
|
|
163
|
-
*build-cleanup story-8.4
|
|
164
|
-
```
|
|
165
|
-
|
|
166
|
-
---
|
|
167
|
-
|
|
168
|
-
## 编程式使用
|
|
169
|
-
|
|
170
|
-
```javascript
|
|
171
|
-
const { BuildStateManager, BuildStatus } = require('.sinapse-ai/core/execution/build-state-manager');
|
|
172
|
-
|
|
173
|
-
// 创建管理器
|
|
174
|
-
const manager = new BuildStateManager('story-8.4', {
|
|
175
|
-
planDir: './plan',
|
|
176
|
-
});
|
|
177
|
-
|
|
178
|
-
// 创建或加载状态
|
|
179
|
-
const state = manager.loadOrCreateState({ totalSubtasks: 10 });
|
|
180
|
-
|
|
181
|
-
// 开始子任务
|
|
182
|
-
manager.startSubtask('1.1', { phase: 'phase-1' });
|
|
183
|
-
|
|
184
|
-
// 完成子任务(自动检查点)
|
|
185
|
-
manager.completeSubtask('1.1', {
|
|
186
|
-
duration: 5000,
|
|
187
|
-
filesModified: ['src/file.js'],
|
|
188
|
-
});
|
|
189
|
-
|
|
190
|
-
// 记录失败
|
|
191
|
-
const result = manager.recordFailure('1.2', {
|
|
192
|
-
error: 'TypeScript error',
|
|
193
|
-
attempt: 1,
|
|
194
|
-
});
|
|
195
|
-
|
|
196
|
-
// 检查是否卡住
|
|
197
|
-
if (result.isStuck) {
|
|
198
|
-
console.log('Suggestions:', result.suggestions);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
// 恢复构建
|
|
202
|
-
const context = manager.resumeBuild();
|
|
203
|
-
|
|
204
|
-
// 获取状态
|
|
205
|
-
const status = manager.getStatus();
|
|
206
|
-
console.log(`Progress: ${status.progress.percentage}%`);
|
|
207
|
-
```
|
|
208
|
-
|
|
209
|
-
---
|
|
210
|
-
|
|
211
|
-
## 配置
|
|
212
|
-
|
|
213
|
-
默认配置可以覆盖:
|
|
214
|
-
|
|
215
|
-
```javascript
|
|
216
|
-
const manager = new BuildStateManager('story-8.4', {
|
|
217
|
-
config: {
|
|
218
|
-
maxIterations: 10, // 每个子任务的最大尝试次数
|
|
219
|
-
globalTimeout: 1800000, // 30 分钟
|
|
220
|
-
abandonedThreshold: 3600000, // 1 小时
|
|
221
|
-
autoCheckpoint: true, // 自动保存检查点
|
|
222
|
-
},
|
|
223
|
-
});
|
|
224
|
-
```
|
|
225
|
-
|
|
226
|
-
---
|
|
227
|
-
|
|
228
|
-
## 故障排除
|
|
229
|
-
|
|
230
|
-
### "No build state found"
|
|
231
|
-
|
|
232
|
-
构建尚未开始。运行 `*build story-id` 以开始。
|
|
233
|
-
|
|
234
|
-
### "Build already completed"
|
|
235
|
-
|
|
236
|
-
无法恢复已完成的构建。如需要请启动新构建。
|
|
237
|
-
|
|
238
|
-
### "Worktree missing"
|
|
239
|
-
|
|
240
|
-
隔离的 worktree 已被删除。选项:
|
|
241
|
-
|
|
242
|
-
1. 重新创建 worktree 并恢复
|
|
243
|
-
2. 使用新构建重新开始
|
|
244
|
-
|
|
245
|
-
### 构建卡住
|
|
246
|
-
|
|
247
|
-
如果构建卡住(相同错误重复出现):
|
|
248
|
-
|
|
249
|
-
1. 检查通知中的建议
|
|
250
|
-
2. 查看尝试日志:`*build-log story-id`
|
|
251
|
-
3. 尝试不同的方法或升级处理
|
|
252
|
-
|
|
253
|
-
---
|
|
254
|
-
|
|
255
|
-
## 最佳实践
|
|
256
|
-
|
|
257
|
-
1. 在长时间构建期间**定期检查状态**
|
|
258
|
-
2. 调试失败时**查看日志**
|
|
259
|
-
3. **清理废弃的构建**以释放资源
|
|
260
|
-
4. **使用检查点** - 不要禁用自动检查点
|
|
261
|
-
5. **监控通知**以获取卡住警报
|
|
262
|
-
|
|
263
|
-
---
|
|
264
|
-
|
|
265
|
-
_Story 8.4 指南 - 构建恢复与恢复_
|
|
266
|
-
_Epic 8 的一部分 - 自主构建引擎_
|
|
@@ -1,381 +0,0 @@
|
|
|
1
|
-
# 上下文问候系统指南
|
|
2
|
-
|
|
3
|
-
> [EN](../../guides/contextual-greeting-system-guide.md) | [PT](../../pt/guides/contextual-greeting-system-guide.md) | [ES](../../es/guides/contextual-greeting-system-guide.md) | **ZH**
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
**故事:** 6.1.2.5 - 上下文代理加载系统
|
|
8
|
-
**状态:** 组件已实现,集成待完成
|
|
9
|
-
**日期:** 2025-01-15
|
|
10
|
-
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
## 概述
|
|
14
|
-
|
|
15
|
-
上下文问候系统是一项 UX 改进,使 SINAPSE 代理的问候变得智能和自适应,根据会话上下文显示相关信息和命令。
|
|
16
|
-
|
|
17
|
-
## 已实现的内容
|
|
18
|
-
|
|
19
|
-
### 核心组件 (Story 6.1.2.5)
|
|
20
|
-
|
|
21
|
-
1. **ContextDetector** (`.sinapse-ai/core/session/context-detector.js`)
|
|
22
|
-
- 检测会话类型: `new`、`existing` 或 `workflow`
|
|
23
|
-
- 混合方法: 对话历史 (首选) + 会话文件 (后备)
|
|
24
|
-
- 非活动会话 TTL 1 小时
|
|
25
|
-
|
|
26
|
-
2. **GitConfigDetector** (`.sinapse-ai/infrastructure/scripts/git-config-detector.js`)
|
|
27
|
-
- 检测项目的 git 配置
|
|
28
|
-
- TTL 5 分钟的缓存
|
|
29
|
-
- 1000ms 超时保护
|
|
30
|
-
|
|
31
|
-
3. **GreetingBuilder** (`.sinapse-ai/development/scripts/greeting-builder.js`)
|
|
32
|
-
- 根据会话类型构建上下文问候
|
|
33
|
-
- 按可见性过滤命令 (full/quick/key)
|
|
34
|
-
- 150ms 超时并优雅回退
|
|
35
|
-
|
|
36
|
-
4. **WorkflowNavigator** (`.sinapse-ai/development/scripts/workflow-navigator.js`)
|
|
37
|
-
- 检测当前工作流状态
|
|
38
|
-
- 根据状态建议下一个命令
|
|
39
|
-
- 预填充带上下文的命令 (story path, branch)
|
|
40
|
-
|
|
41
|
-
5. **工作流模式** (`.sinapse-ai/data/workflow-patterns.yaml`)
|
|
42
|
-
- 定义了 10 个常见工作流
|
|
43
|
-
- 带下一步建议的状态转换
|
|
44
|
-
- 根据实际项目使用验证的模式
|
|
45
|
-
|
|
46
|
-
### 待完成 (未来故事 - 6.1.4 或 6.1.6)
|
|
47
|
-
|
|
48
|
-
**与激活流程的集成:**
|
|
49
|
-
- 拦截代理激活 (当您输入 `@dev`、`@po` 等时)
|
|
50
|
-
- 自动调用 GreetingBuilder
|
|
51
|
-
- 在默认问候位置注入上下文问候
|
|
52
|
-
|
|
53
|
-
## 会话类型
|
|
54
|
-
|
|
55
|
-
### 1. 新会话
|
|
56
|
-
|
|
57
|
-
**何时:** 首次交互或 1 小时不活动后
|
|
58
|
-
|
|
59
|
-
**特点:**
|
|
60
|
-
- 完整介绍 (archetypal 问候)
|
|
61
|
-
- 代理角色描述
|
|
62
|
-
- 项目状态 (如果配置了 git)
|
|
63
|
-
- 完整命令 (visibility=full 的最多 12 个命令)
|
|
64
|
-
|
|
65
|
-
**示例:**
|
|
66
|
-
```
|
|
67
|
-
💻 Dex (Builder) 准备就绪。让我们构建一些很棒的东西!
|
|
68
|
-
|
|
69
|
-
**角色:** 专注于干净、可维护代码的全栈开发者
|
|
70
|
-
|
|
71
|
-
📊 项目状态:
|
|
72
|
-
🌿 main
|
|
73
|
-
📝 5 个修改的文件
|
|
74
|
-
📦 最后提交: feat: implement greeting system
|
|
75
|
-
|
|
76
|
-
**可用命令:**
|
|
77
|
-
- `*help`: 显示所有可用命令
|
|
78
|
-
- `*develop`: 实现故事任务
|
|
79
|
-
- `*review-code`: 审查代码更改
|
|
80
|
-
- `*run-tests`: 执行测试套件
|
|
81
|
-
- `*build`: 为生产构建
|
|
82
|
-
... (最多 12 个命令)
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
### 2. 现有会话
|
|
86
|
-
|
|
87
|
-
**何时:** 在同一会话中继续工作
|
|
88
|
-
|
|
89
|
-
**特点:**
|
|
90
|
-
- 简短介绍 (named 问候)
|
|
91
|
-
- 项目状态
|
|
92
|
-
- 当前上下文 (上次操作)
|
|
93
|
-
- 快速命令 (visibility=quick 的 6-8 个命令)
|
|
94
|
-
|
|
95
|
-
**示例:**
|
|
96
|
-
```
|
|
97
|
-
💻 Dex (Builder) 准备就绪。
|
|
98
|
-
|
|
99
|
-
📊 项目状态:
|
|
100
|
-
🌿 feature/story-6.1.2.5
|
|
101
|
-
📝 3 个修改的文件
|
|
102
|
-
|
|
103
|
-
📌 **上次操作:** review-code
|
|
104
|
-
|
|
105
|
-
**快速命令:**
|
|
106
|
-
- `*help`: 显示帮助
|
|
107
|
-
- `*develop`: 实现故事
|
|
108
|
-
- `*review-code`: 审查代码
|
|
109
|
-
- `*run-tests`: 运行测试
|
|
110
|
-
- `*qa-gate`: 运行质量门禁
|
|
111
|
-
... (6-8 个最常用的命令)
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
### 3. 工作流会话
|
|
115
|
-
|
|
116
|
-
**何时:** 在活动工作流中 (例如: 验证故事后)
|
|
117
|
-
|
|
118
|
-
**特点:**
|
|
119
|
-
- 最小介绍 (minimal 问候)
|
|
120
|
-
- 压缩的项目状态
|
|
121
|
-
- 工作流上下文 (正在处理 X)
|
|
122
|
-
- **下一步建议** (新功能!)
|
|
123
|
-
- 关键命令 (visibility=key 的 3-5 个命令)
|
|
124
|
-
|
|
125
|
-
**示例:**
|
|
126
|
-
```
|
|
127
|
-
⚖️ Pax 准备就绪。
|
|
128
|
-
|
|
129
|
-
📊 🌿 main | 📝 5 个修改 | 📖 STORY-6.1.2.5
|
|
130
|
-
|
|
131
|
-
📌 **上下文:** 正在处理 Story 6.1.2.5
|
|
132
|
-
|
|
133
|
-
**故事已验证! 下一步:**
|
|
134
|
-
|
|
135
|
-
1. `*develop-yolo story-6.1.2.5.md` - 自主模式 (无中断)
|
|
136
|
-
2. `*develop-interactive story-6.1.2.5.md` - 交互模式带检查点
|
|
137
|
-
3. `*develop-preflight story-6.1.2.5.md` - 先计划,后执行
|
|
138
|
-
|
|
139
|
-
**关键命令:**
|
|
140
|
-
- `*help`: 显示帮助
|
|
141
|
-
- `*validate-story-draft`: 验证故事
|
|
142
|
-
- `*backlog-summary`: 快速待办状态
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
## 命令可见性系统
|
|
146
|
-
|
|
147
|
-
### 命令元数据
|
|
148
|
-
|
|
149
|
-
每个命令现在有一个 `visibility` 属性,控制何时显示:
|
|
150
|
-
|
|
151
|
-
```yaml
|
|
152
|
-
commands:
|
|
153
|
-
- name: help
|
|
154
|
-
visibility: [full, quick, key] # 始终可见
|
|
155
|
-
description: "显示所有可用命令"
|
|
156
|
-
|
|
157
|
-
- name: develop
|
|
158
|
-
visibility: [full, quick, key] # 主要命令
|
|
159
|
-
description: "实现故事任务"
|
|
160
|
-
|
|
161
|
-
- name: review-code
|
|
162
|
-
visibility: [full, quick] # 经常使用,但非关键
|
|
163
|
-
description: "审查代码更改"
|
|
164
|
-
|
|
165
|
-
- name: build
|
|
166
|
-
visibility: [full] # 不常用,仅在新会话中
|
|
167
|
-
description: "为生产构建"
|
|
168
|
-
|
|
169
|
-
- name: qa-gate
|
|
170
|
-
visibility: [key] # 在工作流中关键,但不总是需要
|
|
171
|
-
description: "运行质量门禁"
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
### 分类指南
|
|
175
|
-
|
|
176
|
-
**`full` (12 个命令)** - 新会话
|
|
177
|
-
- 所有可用命令
|
|
178
|
-
- 展示代理的完整能力
|
|
179
|
-
- 适合发现
|
|
180
|
-
|
|
181
|
-
**`quick` (6-8 个命令)** - 现有会话
|
|
182
|
-
- 经常使用的命令
|
|
183
|
-
- 专注于生产力
|
|
184
|
-
- 移除不常用的命令
|
|
185
|
-
|
|
186
|
-
**`key` (3-5 个命令)** - 工作流会话
|
|
187
|
-
- 当前工作流的关键命令
|
|
188
|
-
- 最小干扰
|
|
189
|
-
- 最大效率
|
|
190
|
-
|
|
191
|
-
## 工作流导航
|
|
192
|
-
|
|
193
|
-
### 定义的工作流
|
|
194
|
-
|
|
195
|
-
**10 个常见工作流:**
|
|
196
|
-
|
|
197
|
-
1. **story_development** - 验证 → 开发 → QA → 部署
|
|
198
|
-
2. **epic_creation** - 创建史诗 → 创建故事 → 验证
|
|
199
|
-
3. **backlog_management** - 审查 → 优先级 → 安排
|
|
200
|
-
4. **architecture_review** - 分析 → 文档 → 审查
|
|
201
|
-
5. **git_workflow** - 质量门禁 → PR → 合并
|
|
202
|
-
6. **database_workflow** - 设计 → 迁移 → 测试
|
|
203
|
-
7. **code_quality_workflow** - 评估 → 重构 → 测试
|
|
204
|
-
8. **documentation_workflow** - 研究 → 文档 → 同步
|
|
205
|
-
9. **ux_workflow** - 设计 → 实现 → 验证
|
|
206
|
-
10. **research_workflow** - 头脑风暴 → 分析 → 文档
|
|
207
|
-
|
|
208
|
-
### 状态转换
|
|
209
|
-
|
|
210
|
-
每个工作流定义状态之间的转换:
|
|
211
|
-
- **Trigger:** 成功完成的命令
|
|
212
|
-
- **Greeting Message:** 上下文消息
|
|
213
|
-
- **Next Steps:** 带预填充参数的下一个命令建议
|
|
214
|
-
|
|
215
|
-
**示例 (Story Development):**
|
|
216
|
-
|
|
217
|
-
```yaml
|
|
218
|
-
story_development:
|
|
219
|
-
transitions:
|
|
220
|
-
validated:
|
|
221
|
-
trigger: "validate-story-draft 成功完成"
|
|
222
|
-
greeting_message: "故事已验证! 准备实现。"
|
|
223
|
-
next_steps:
|
|
224
|
-
- command: develop-yolo
|
|
225
|
-
args_template: "${story_path}"
|
|
226
|
-
description: "自主 YOLO 模式 (无中断)"
|
|
227
|
-
- command: develop-interactive
|
|
228
|
-
args_template: "${story_path}"
|
|
229
|
-
description: "交互模式带检查点 (默认)"
|
|
230
|
-
- command: develop-preflight
|
|
231
|
-
args_template: "${story_path}"
|
|
232
|
-
description: "先全部计划,然后执行"
|
|
233
|
-
```
|
|
234
|
-
|
|
235
|
-
## 如何测试
|
|
236
|
-
|
|
237
|
-
### 选项 1: 自动测试脚本
|
|
238
|
-
|
|
239
|
-
```bash
|
|
240
|
-
node .sinapse-ai/development/scripts/test-greeting-system.js
|
|
241
|
-
```
|
|
242
|
-
|
|
243
|
-
此脚本测试 4 种场景:
|
|
244
|
-
1. 新会话问候 (Dev)
|
|
245
|
-
2. 现有会话问候 (Dev)
|
|
246
|
-
3. 工作流会话问候 (PO)
|
|
247
|
-
4. 简单问候回退
|
|
248
|
-
|
|
249
|
-
### 选项 2: Node REPL 手动测试
|
|
250
|
-
|
|
251
|
-
```javascript
|
|
252
|
-
const GreetingBuilder = require('./.sinapse-ai/development/scripts/greeting-builder');
|
|
253
|
-
const builder = new GreetingBuilder();
|
|
254
|
-
|
|
255
|
-
// 模拟代理
|
|
256
|
-
const mockAgent = {
|
|
257
|
-
name: 'Dex',
|
|
258
|
-
icon: '💻',
|
|
259
|
-
persona_profile: {
|
|
260
|
-
greeting_levels: {
|
|
261
|
-
named: '💻 Dex (Builder) 准备就绪!'
|
|
262
|
-
}
|
|
263
|
-
},
|
|
264
|
-
persona: { role: '开发者' },
|
|
265
|
-
commands: [
|
|
266
|
-
{ name: 'help', visibility: ['full', 'quick', 'key'] }
|
|
267
|
-
]
|
|
268
|
-
};
|
|
269
|
-
|
|
270
|
-
// 测试新会话
|
|
271
|
-
builder.buildGreeting(mockAgent, { conversationHistory: [] })
|
|
272
|
-
.then(greeting => console.log(greeting));
|
|
273
|
-
```
|
|
274
|
-
|
|
275
|
-
### 选项 3: 等待完整集成
|
|
276
|
-
|
|
277
|
-
当与激活流程的集成实现后 (Story 6.1.4/6.1.6),系统将在激活任何代理时自动工作:
|
|
278
|
-
|
|
279
|
-
```
|
|
280
|
-
@dev → 自动上下文问候
|
|
281
|
-
@po → 自动上下文问候
|
|
282
|
-
@qa → 自动上下文问候
|
|
283
|
-
```
|
|
284
|
-
|
|
285
|
-
## 相关文件
|
|
286
|
-
|
|
287
|
-
### 核心脚本
|
|
288
|
-
- `.sinapse-ai/core/session/context-detector.js` - 会话类型检测
|
|
289
|
-
- `.sinapse-ai/infrastructure/scripts/git-config-detector.js` - Git 配置检测
|
|
290
|
-
- `.sinapse-ai/development/scripts/greeting-builder.js` - 问候构建
|
|
291
|
-
- `.sinapse-ai/development/scripts/workflow-navigator.js` - 工作流导航
|
|
292
|
-
- `.sinapse-ai/development/scripts/agent-exit-hooks.js` - 退出钩子 (用于持久化)
|
|
293
|
-
|
|
294
|
-
### 数据文件
|
|
295
|
-
- `.sinapse-ai/data/workflow-patterns.yaml` - 工作流定义
|
|
296
|
-
|
|
297
|
-
### 测试
|
|
298
|
-
- `tests/unit/context-detector.test.js` - 23 个测试
|
|
299
|
-
- `tests/unit/git-config-detector.test.js` - 19 个测试
|
|
300
|
-
- `tests/unit/greeting-builder.test.js` - 23 个测试
|
|
301
|
-
- `tests/integration/performance.test.js` - 性能验证
|
|
302
|
-
|
|
303
|
-
### 配置
|
|
304
|
-
- `.sinapse-ai/core-config.yaml` - 全局配置 (git + agentIdentity 部分)
|
|
305
|
-
|
|
306
|
-
### 代理 (已更新)
|
|
307
|
-
- `.sinapse-ai/agents/dev.md` - ✅ 命令可见性元数据
|
|
308
|
-
- `.sinapse-ai/agents/po.md` - ✅ 命令可见性元数据
|
|
309
|
-
- `.sinapse-ai/agents/*.md` - ⏳ 剩余 9 个代理 (待更新)
|
|
310
|
-
|
|
311
|
-
## 下一步
|
|
312
|
-
|
|
313
|
-
### 立即 (修复测试问题)
|
|
314
|
-
1. 修复测试配置问题 (1-2 小时)
|
|
315
|
-
2. 运行完整测试套件
|
|
316
|
-
3. 执行性能测试
|
|
317
|
-
|
|
318
|
-
### 短期 (Story 6.1.4 或 6.1.6)
|
|
319
|
-
1. 实现与代理激活流程的集成
|
|
320
|
-
2. 更新剩余 9 个代理的命令可见性元数据
|
|
321
|
-
3. 使用真实代理激活进行测试
|
|
322
|
-
|
|
323
|
-
### 长期 (Story 6.1.2.6)
|
|
324
|
-
1. 实现动态工作流模式学习
|
|
325
|
-
2. 添加基于使用的命令优先级
|
|
326
|
-
3. 实现代理协作提示
|
|
327
|
-
|
|
328
|
-
## 性能指标
|
|
329
|
-
|
|
330
|
-
**目标 (来自 Story 6.1.2.5):**
|
|
331
|
-
- P50 延迟: <100ms
|
|
332
|
-
- P95 延迟: <130ms
|
|
333
|
-
- P99 延迟: <150ms (硬限制)
|
|
334
|
-
|
|
335
|
-
**预期 (基于代码审查):**
|
|
336
|
-
- Git 配置 (缓存命中): <5ms ✅
|
|
337
|
-
- Git 配置 (缓存未命中): <50ms ✅
|
|
338
|
-
- 上下文检测: <50ms ✅
|
|
339
|
-
- 会话文件 I/O: <10ms ✅
|
|
340
|
-
- 工作流匹配: <20ms ✅
|
|
341
|
-
- **总计 P99:** ~100-120ms ✅ (远低于限制)
|
|
342
|
-
|
|
343
|
-
**优化:**
|
|
344
|
-
- 并行执行 (Promise.all)
|
|
345
|
-
- 基于 TTL 的缓存
|
|
346
|
-
- 超时保护
|
|
347
|
-
- 缓存命中时提前退出
|
|
348
|
-
|
|
349
|
-
## 向后兼容性
|
|
350
|
-
|
|
351
|
-
**100% 向后兼容:**
|
|
352
|
-
- 没有可见性元数据的代理显示所有命令 (最多 12)
|
|
353
|
-
- 任何错误时优雅回退到简单问候
|
|
354
|
-
- 激活流程零破坏性更改
|
|
355
|
-
- 渐进式迁移 (第 1 阶段: dev/po → 第 2 阶段: 剩余 9 个)
|
|
356
|
-
|
|
357
|
-
## 常见问题
|
|
358
|
-
|
|
359
|
-
**Q: 为什么我激活代理时问候不是上下文的?**
|
|
360
|
-
A: 与激活流程的集成尚未实现。组件存在但尚未自动调用。
|
|
361
|
-
|
|
362
|
-
**Q: 集成何时完成?**
|
|
363
|
-
A: 在未来的故事中 (可能是 6.1.4 或 6.1.6)。取决于代理配置系统。
|
|
364
|
-
|
|
365
|
-
**Q: 如何现在测试?**
|
|
366
|
-
A: 使用测试脚本: `node .sinapse-ai/development/scripts/test-greeting-system.js`
|
|
367
|
-
|
|
368
|
-
**Q: 如果代理没有可见性元数据会发生什么?**
|
|
369
|
-
A: 回退: 显示所有命令 (最多 12)。不会破坏任何东西。
|
|
370
|
-
|
|
371
|
-
**Q: 如何给我的命令添加可见性元数据?**
|
|
372
|
-
A: 参见上面的 "命令可见性系统" 部分和 dev.md 和 po.md 代理中的示例。
|
|
373
|
-
|
|
374
|
-
**Q: 我可以禁用上下文问候吗?**
|
|
375
|
-
A: 可以,通过配置: `core-config.yaml` → `agentIdentity.greeting.contextDetection: false`
|
|
376
|
-
|
|
377
|
-
---
|
|
378
|
-
|
|
379
|
-
**文档更新:** 2025-01-15
|
|
380
|
-
**作者:** Quinn (QA) + Dex (Dev)
|
|
381
|
-
**故事:** 6.1.2.5 - 上下文代理加载系统
|