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,793 +0,0 @@
|
|
|
1
|
-
# 自动工作树工作流
|
|
2
|
-
|
|
3
|
-
**版本:** 1.0
|
|
4
|
-
**创建:** 2026-01-28
|
|
5
|
-
**作者:** @architect (Aria)
|
|
6
|
-
**故事:** 1.4 - Epic 1 - 工作树管理器
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
## 概览
|
|
11
|
-
|
|
12
|
-
**自动工作树**是一个自动化工作流,为故事开发创建和管理隔离的 Git 工作树。它是**Auto-Claude ADE** (自主开发引擎)基础设施的一部分,允许多个故事的并行开发而无分支冲突。
|
|
13
|
-
|
|
14
|
-
### 主要好处
|
|
15
|
-
|
|
16
|
-
| 好处 | 描述 |
|
|
17
|
-
|------|------|
|
|
18
|
-
| **隔离** | 每个故事在单独的目录和分支中工作 |
|
|
19
|
-
| **并行性** | 多个故事可以同时开发 |
|
|
20
|
-
| **自动化** | 启动故事时自动创建工作树 |
|
|
21
|
-
| **清理** | 过时的工作树可以自动删除 |
|
|
22
|
-
|
|
23
|
-
### 工作流何时被触发
|
|
24
|
-
|
|
25
|
-
1. **事件 `story_started`**: 当 `@dev` 启动故事时
|
|
26
|
-
2. **事件 `story_assigned`**: 当 `@po` 分配故事时 (可选)
|
|
27
|
-
3. **手动命令**: `*auto-worktree`
|
|
28
|
-
|
|
29
|
-
---
|
|
30
|
-
|
|
31
|
-
## 工作流图
|
|
32
|
-
|
|
33
|
-
### 主流程
|
|
34
|
-
|
|
35
|
-
```mermaid
|
|
36
|
-
flowchart TB
|
|
37
|
-
subgraph TRIGGER["触发器"]
|
|
38
|
-
T1[story_started<br/>@dev]
|
|
39
|
-
T2[story_assigned<br/>@po]
|
|
40
|
-
T3[*auto-worktree<br/>手动]
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
subgraph PREFLIGHT["飞行前检查"]
|
|
44
|
-
PF1{Git 存储库?}
|
|
45
|
-
PF2{支持工作树?}
|
|
46
|
-
PF3{WorktreeManager?}
|
|
47
|
-
PF4{工作树限制?}
|
|
48
|
-
end
|
|
49
|
-
|
|
50
|
-
subgraph WORKFLOW["工作流序列"]
|
|
51
|
-
S1["步骤 1: 提取故事上下文<br/>提取故事 ID"]
|
|
52
|
-
S2["步骤 2: 检查现有<br/>检查现有工作树"]
|
|
53
|
-
S3["步骤 3: 自动清理<br/>清理过时的工作树"]
|
|
54
|
-
S4["步骤 4: 创建工作树<br/>创建隔离工作树"]
|
|
55
|
-
S5["步骤 5: 切换上下文<br/>切换到工作树"]
|
|
56
|
-
S6["步骤 6: 显示摘要<br/>显示摘要"]
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
subgraph OUTPUT["输出"]
|
|
60
|
-
O1[storyId]
|
|
61
|
-
O2[worktree.path]
|
|
62
|
-
O3[worktree.branch]
|
|
63
|
-
O4[worktree.status]
|
|
64
|
-
end
|
|
65
|
-
|
|
66
|
-
T1 --> PF1
|
|
67
|
-
T2 --> PF1
|
|
68
|
-
T3 --> PF1
|
|
69
|
-
|
|
70
|
-
PF1 -->|是| PF2
|
|
71
|
-
PF1 -->|否| ERR1[错误: 非 git 存储库]
|
|
72
|
-
|
|
73
|
-
PF2 -->|是| PF3
|
|
74
|
-
PF2 -->|否| ERR2[错误: Git < 2.5]
|
|
75
|
-
|
|
76
|
-
PF3 -->|存在| PF4
|
|
77
|
-
PF3 -->|不存在| ERR3[错误: SINAPSE 不完整]
|
|
78
|
-
|
|
79
|
-
PF4 -->|正常| S1
|
|
80
|
-
PF4 -->|接近限制| WARN1[警告: 接近限制]
|
|
81
|
-
WARN1 --> S1
|
|
82
|
-
|
|
83
|
-
S1 --> S2
|
|
84
|
-
S2 -->|存在| S5
|
|
85
|
-
S2 -->|不存在| S3
|
|
86
|
-
S3 --> S4
|
|
87
|
-
S4 -->|成功| S5
|
|
88
|
-
S4 -->|失败| ERR4[错误: 创建失败]
|
|
89
|
-
S5 --> S6
|
|
90
|
-
S6 --> O1
|
|
91
|
-
S6 --> O2
|
|
92
|
-
S6 --> O3
|
|
93
|
-
S6 --> O4
|
|
94
|
-
|
|
95
|
-
style TRIGGER fill:#e1f5fe
|
|
96
|
-
style PREFLIGHT fill:#fff3e0
|
|
97
|
-
style WORKFLOW fill:#e8f5e9
|
|
98
|
-
style OUTPUT fill:#f3e5f5
|
|
99
|
-
style ERR1 fill:#ffcdd2
|
|
100
|
-
style ERR2 fill:#ffcdd2
|
|
101
|
-
style ERR3 fill:#ffcdd2
|
|
102
|
-
style ERR4 fill:#ffcdd2
|
|
103
|
-
style WARN1 fill:#fff9c4
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
### 状态图
|
|
107
|
-
|
|
108
|
-
```mermaid
|
|
109
|
-
stateDiagram-v2
|
|
110
|
-
[*] --> TriggerReceived: 事件已接收
|
|
111
|
-
|
|
112
|
-
TriggerReceived --> PreFlightChecks: 启动验证
|
|
113
|
-
|
|
114
|
-
PreFlightChecks --> PreFlightFailed: 阻止检查失败
|
|
115
|
-
PreFlightChecks --> ExtractContext: 所有检查通过
|
|
116
|
-
|
|
117
|
-
PreFlightFailed --> [*]: 工作流已中止
|
|
118
|
-
|
|
119
|
-
ExtractContext --> CheckExisting: storyId 已提取
|
|
120
|
-
ExtractContext --> StoryIdNotFound: 无法提取
|
|
121
|
-
|
|
122
|
-
StoryIdNotFound --> PromptUser: 请求 ID
|
|
123
|
-
PromptUser --> CheckExisting: 已提供 ID
|
|
124
|
-
|
|
125
|
-
CheckExisting --> SwitchContext: 工作树已存在
|
|
126
|
-
CheckExisting --> AutoCleanup: 工作树不存在
|
|
127
|
-
|
|
128
|
-
AutoCleanup --> CreateWorktree: 清理完成
|
|
129
|
-
|
|
130
|
-
CreateWorktree --> CreationFailed: 创建错误
|
|
131
|
-
CreateWorktree --> SwitchContext: 工作树已创建
|
|
132
|
-
|
|
133
|
-
CreationFailed --> [*]: 工作流失败
|
|
134
|
-
|
|
135
|
-
SwitchContext --> DisplaySummary: 上下文已更新
|
|
136
|
-
|
|
137
|
-
DisplaySummary --> [*]: 工作流成功完成
|
|
138
|
-
```
|
|
139
|
-
|
|
140
|
-
### 组件架构
|
|
141
|
-
|
|
142
|
-
```mermaid
|
|
143
|
-
graph TB
|
|
144
|
-
subgraph SINAPSE["SINAPSE 核心"]
|
|
145
|
-
WF[auto-worktree.yaml<br/>工作流定义]
|
|
146
|
-
TK[create-worktree.md<br/>任务定义]
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
subgraph INFRA["基础设施"]
|
|
150
|
-
WM[worktree-manager.js<br/>WorktreeManager 类]
|
|
151
|
-
GIT[Git CLI<br/>git worktree]
|
|
152
|
-
end
|
|
153
|
-
|
|
154
|
-
subgraph FS["文件系统"]
|
|
155
|
-
WT[.sinapse/worktrees/{storyId}/<br/>工作树目录]
|
|
156
|
-
LOG[.sinapse/logs/merges/<br/>合并审计日志]
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
subgraph AGENTS["代理"]
|
|
160
|
-
DEV[@dev<br/>Gage - DevOps]
|
|
161
|
-
PO[@po<br/>产品所有者]
|
|
162
|
-
end
|
|
163
|
-
|
|
164
|
-
DEV -->|启动故事| WF
|
|
165
|
-
PO -->|分配故事| WF
|
|
166
|
-
WF -->|执行| TK
|
|
167
|
-
TK -->|使用| WM
|
|
168
|
-
WM -->|执行| GIT
|
|
169
|
-
GIT -->|创建| WT
|
|
170
|
-
WM -->|记录| LOG
|
|
171
|
-
|
|
172
|
-
style SINAPSE fill:#e3f2fd
|
|
173
|
-
style INFRA fill:#fce4ec
|
|
174
|
-
style FS fill:#f3e5f5
|
|
175
|
-
style AGENTS fill:#e8f5e9
|
|
176
|
-
```
|
|
177
|
-
|
|
178
|
-
---
|
|
179
|
-
|
|
180
|
-
## 详细步骤
|
|
181
|
-
|
|
182
|
-
### 步骤 1: 提取故事上下文
|
|
183
|
-
|
|
184
|
-
| 属性 | 值 |
|
|
185
|
-
|------|-----|
|
|
186
|
-
| **阶段** | 1 - 提取上下文 |
|
|
187
|
-
| **操作** | `extract_story_info` |
|
|
188
|
-
| **代理** | 系统 (自动) |
|
|
189
|
-
| **阻止** | 是 |
|
|
190
|
-
|
|
191
|
-
**描述:**
|
|
192
|
-
从触发器上下文提取故事 ID。在多个来源中搜索:
|
|
193
|
-
|
|
194
|
-
1. 显式参数 `storyId`
|
|
195
|
-
2. 故事文件路径 (`storyFile`)
|
|
196
|
-
3. 当前任务 (`currentTask.storyId`)
|
|
197
|
-
4. 当前分支名称 (约定 `story-X.Y`)
|
|
198
|
-
|
|
199
|
-
**输入:**
|
|
200
|
-
```typescript
|
|
201
|
-
interface TriggerContext {
|
|
202
|
-
storyId?: string;
|
|
203
|
-
storyFile?: string;
|
|
204
|
-
currentTask?: { storyId: string };
|
|
205
|
-
}
|
|
206
|
-
```
|
|
207
|
-
|
|
208
|
-
**输出:**
|
|
209
|
-
```typescript
|
|
210
|
-
{ storyId: string }
|
|
211
|
-
```
|
|
212
|
-
|
|
213
|
-
**如果失败错误:**
|
|
214
|
-
```
|
|
215
|
-
无法确定故事 ID。请明确提供。
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
---
|
|
219
|
-
|
|
220
|
-
### 步骤 2: 检查现有
|
|
221
|
-
|
|
222
|
-
| 属性 | 值 |
|
|
223
|
-
|------|-----|
|
|
224
|
-
| **阶段** | 2 - 检查现有 |
|
|
225
|
-
| **操作** | `check_worktree_exists` |
|
|
226
|
-
| **代理** | 系统 (自动) |
|
|
227
|
-
| **阻止** | 否 (可以跳过切换) |
|
|
228
|
-
|
|
229
|
-
**描述:**
|
|
230
|
-
检查故事的工作树是否已存在。如果存在,跳到步骤 5 (切换上下文)。
|
|
231
|
-
|
|
232
|
-
**逻辑:**
|
|
233
|
-
```javascript
|
|
234
|
-
const manager = new WorktreeManager();
|
|
235
|
-
const exists = await manager.exists(storyId);
|
|
236
|
-
|
|
237
|
-
if (exists) {
|
|
238
|
-
const config = await manager.getConfig();
|
|
239
|
-
if (!config.autoSwitch) {
|
|
240
|
-
return { exists: true, action: 'skip' };
|
|
241
|
-
}
|
|
242
|
-
return { exists: true, action: 'switch' };
|
|
243
|
-
}
|
|
244
|
-
return { exists: false, action: 'create' };
|
|
245
|
-
```
|
|
246
|
-
|
|
247
|
-
**输出:**
|
|
248
|
-
```typescript
|
|
249
|
-
interface CheckResult {
|
|
250
|
-
exists: boolean;
|
|
251
|
-
worktree?: WorktreeInfo;
|
|
252
|
-
action: 'switch' | 'skip' | 'create';
|
|
253
|
-
}
|
|
254
|
-
```
|
|
255
|
-
|
|
256
|
-
---
|
|
257
|
-
|
|
258
|
-
### 步骤 3: 自动清理
|
|
259
|
-
|
|
260
|
-
| 属性 | 值 |
|
|
261
|
-
|------|-----|
|
|
262
|
-
| **阶段** | 3 - 自动清理 |
|
|
263
|
-
| **操作** | `cleanup_stale_worktrees` |
|
|
264
|
-
| **代理** | @devops (Gage) |
|
|
265
|
-
| **条件** | `config.autoCleanup === true` |
|
|
266
|
-
|
|
267
|
-
**描述:**
|
|
268
|
-
在创建新的工作树前自动删除过时的工作树 (30 天未使用)。此步骤仅在配置中启用 `autoCleanup` 时执行。
|
|
269
|
-
|
|
270
|
-
**过时标准:**
|
|
271
|
-
- 工作树创建超过 `staleDays` (默认: 30 天)
|
|
272
|
-
|
|
273
|
-
**输出:**
|
|
274
|
-
```typescript
|
|
275
|
-
interface CleanupResult {
|
|
276
|
-
cleaned: number;
|
|
277
|
-
removedIds: string[];
|
|
278
|
-
}
|
|
279
|
-
```
|
|
280
|
-
|
|
281
|
-
**日志:**
|
|
282
|
-
```
|
|
283
|
-
清理了 {cleaned} 个过时的工作树
|
|
284
|
-
```
|
|
285
|
-
|
|
286
|
-
---
|
|
287
|
-
|
|
288
|
-
### 步骤 4: 创建工作树
|
|
289
|
-
|
|
290
|
-
| 属性 | 值 |
|
|
291
|
-
|------|-----|
|
|
292
|
-
| **阶段** | 4 - 创建工作树 |
|
|
293
|
-
| **操作** | `create_isolated_worktree` |
|
|
294
|
-
| **代理** | @devops (Gage) |
|
|
295
|
-
| **任务** | `create-worktree.md` |
|
|
296
|
-
| **阻止** | 是 |
|
|
297
|
-
|
|
298
|
-
**描述:**
|
|
299
|
-
使用 WorktreeManager 为故事创建新的隔离工作树。
|
|
300
|
-
|
|
301
|
-
**创建的结构:**
|
|
302
|
-
```
|
|
303
|
-
.sinapse/worktrees/{storyId}/ # 工作目录
|
|
304
|
-
分支: auto-claude/{storyId} # Git 分支
|
|
305
|
-
```
|
|
306
|
-
|
|
307
|
-
**输入:**
|
|
308
|
-
```typescript
|
|
309
|
-
{ storyId: string }
|
|
310
|
-
```
|
|
311
|
-
|
|
312
|
-
**输出:**
|
|
313
|
-
```typescript
|
|
314
|
-
interface CreateResult {
|
|
315
|
-
success: boolean;
|
|
316
|
-
worktree: WorktreeInfo;
|
|
317
|
-
path: string;
|
|
318
|
-
branch: string;
|
|
319
|
-
error?: string;
|
|
320
|
-
}
|
|
321
|
-
```
|
|
322
|
-
|
|
323
|
-
**执行的 Git 命令:**
|
|
324
|
-
```bash
|
|
325
|
-
git worktree add .sinapse/worktrees/{storyId} -b auto-claude/{storyId}
|
|
326
|
-
```
|
|
327
|
-
|
|
328
|
-
---
|
|
329
|
-
|
|
330
|
-
### 步骤 5: 切换上下文
|
|
331
|
-
|
|
332
|
-
| 属性 | 值 |
|
|
333
|
-
|------|-----|
|
|
334
|
-
| **阶段** | 5 - 切换上下文 |
|
|
335
|
-
| **操作** | `switch_to_worktree` |
|
|
336
|
-
| **代理** | 系统 (自动) |
|
|
337
|
-
| **条件** | `config.autoSwitch === true` |
|
|
338
|
-
|
|
339
|
-
**描述:**
|
|
340
|
-
配置环境变量并显示导航到工作树的说明。
|
|
341
|
-
|
|
342
|
-
**环境变量:**
|
|
343
|
-
```bash
|
|
344
|
-
SINAPSE_WORKTREE=/path/to/.sinapse/worktrees/{storyId}
|
|
345
|
-
SINAPSE_STORY={storyId}
|
|
346
|
-
```
|
|
347
|
-
|
|
348
|
-
**输出:**
|
|
349
|
-
```typescript
|
|
350
|
-
interface SwitchResult {
|
|
351
|
-
worktreePath: string;
|
|
352
|
-
instructions: string; // "cd /path/to/worktree"
|
|
353
|
-
}
|
|
354
|
-
```
|
|
355
|
-
|
|
356
|
-
---
|
|
357
|
-
|
|
358
|
-
### 步骤 6: 显示摘要
|
|
359
|
-
|
|
360
|
-
| 属性 | 值 |
|
|
361
|
-
|------|-----|
|
|
362
|
-
| **阶段** | 6 - 摘要 |
|
|
363
|
-
| **操作** | `show_summary` |
|
|
364
|
-
| **代理** | 系统 (自动) |
|
|
365
|
-
| **条件** | `config.verbose === true` |
|
|
366
|
-
|
|
367
|
-
**描述:**
|
|
368
|
-
显示操作的完整摘要,包括工作树信息和后续步骤。
|
|
369
|
-
|
|
370
|
-
**输出模板:**
|
|
371
|
-
```
|
|
372
|
-
+------------------------------------------------------------------+
|
|
373
|
-
| 自动工作树完成 |
|
|
374
|
-
+------------------------------------------------------------------+
|
|
375
|
-
|
|
376
|
-
故事: {storyId}
|
|
377
|
-
工作树: {worktree.path}
|
|
378
|
-
分支: {worktree.branch}
|
|
379
|
-
状态: {worktree.status}
|
|
380
|
-
|
|
381
|
-
-------------------------------------------------------------------
|
|
382
|
-
快速参考:
|
|
383
|
-
|
|
384
|
-
导航: cd {worktree.path}
|
|
385
|
-
状态: *list-worktrees
|
|
386
|
-
合并: *merge-worktree {storyId}
|
|
387
|
-
删除: *remove-worktree {storyId}
|
|
388
|
-
|
|
389
|
-
-------------------------------------------------------------------
|
|
390
|
-
您现在在隔离环境中工作。
|
|
391
|
-
这里的更改在合并前不会影响主分支。
|
|
392
|
-
```
|
|
393
|
-
|
|
394
|
-
---
|
|
395
|
-
|
|
396
|
-
## 参与的代理
|
|
397
|
-
|
|
398
|
-
### @devops (Gage)
|
|
399
|
-
|
|
400
|
-
| 责任 | 描述 |
|
|
401
|
-
|------|------|
|
|
402
|
-
| **工作树创建** | 执行 `create-worktree.md` 任务 |
|
|
403
|
-
| **工作树删除** | 执行 `remove-worktree.md` 任务 |
|
|
404
|
-
| **自动清理** | 删除过时的工作树 |
|
|
405
|
-
| **工作树合并** | 执行 `merge-worktree.md` 任务 |
|
|
406
|
-
|
|
407
|
-
**代理命令:**
|
|
408
|
-
- `*create-worktree {storyId}` - 创建隔离工作树
|
|
409
|
-
- `*list-worktrees` - 列表活跃工作树
|
|
410
|
-
- `*remove-worktree {storyId}` - 删除工作树
|
|
411
|
-
- `*merge-worktree {storyId}` - 合并工作树
|
|
412
|
-
- `*cleanup-worktrees` - 清理过时的工作树
|
|
413
|
-
|
|
414
|
-
### @dev (开发人员)
|
|
415
|
-
|
|
416
|
-
| 责任 | 描述 |
|
|
417
|
-
|------|------|
|
|
418
|
-
| **主要触发** | 启动故事时启动工作流 |
|
|
419
|
-
| **开发** | 在隔离工作树内工作 |
|
|
420
|
-
|
|
421
|
-
### @po (产品所有者)
|
|
422
|
-
|
|
423
|
-
| 责任 | 描述 |
|
|
424
|
-
|------|------|
|
|
425
|
-
| **次要触发** | 分配故事时可能启动创建 |
|
|
426
|
-
|
|
427
|
-
---
|
|
428
|
-
|
|
429
|
-
## 执行的任务
|
|
430
|
-
|
|
431
|
-
### create-worktree.md
|
|
432
|
-
|
|
433
|
-
| 属性 | 值 |
|
|
434
|
-
|------|-----|
|
|
435
|
-
| **位置** | `.sinapse-ai/development/tasks/create-worktree.md` |
|
|
436
|
-
| **代理** | @devops (Gage) |
|
|
437
|
-
| **版本** | 1.0 |
|
|
438
|
-
| **故事** | 1.3 |
|
|
439
|
-
|
|
440
|
-
**执行模式:**
|
|
441
|
-
|
|
442
|
-
| 模式 | 提示 | 推荐用途 |
|
|
443
|
-
|------|------|----------|
|
|
444
|
-
| **YOLO** (默认) | 0-1 | 快速故事设置 |
|
|
445
|
-
| **Interactive** | 2-3 | 新用户 |
|
|
446
|
-
|
|
447
|
-
**前置条件:**
|
|
448
|
-
- [x] 当前目录是 git 存储库
|
|
449
|
-
- [x] WorktreeManager 可用
|
|
450
|
-
- [x] 未达工作树限制
|
|
451
|
-
|
|
452
|
-
**后置条件:**
|
|
453
|
-
- [x] 工作树目录存在
|
|
454
|
-
- [x] 分支 `auto-claude/{storyId}` 存在
|
|
455
|
-
|
|
456
|
-
---
|
|
457
|
-
|
|
458
|
-
## 前置条件
|
|
459
|
-
|
|
460
|
-
### 系统要求
|
|
461
|
-
|
|
462
|
-
| 要求 | 最低版本 | 验证 |
|
|
463
|
-
|------|-----------|-------|
|
|
464
|
-
| **Git** | >= 2.5 | `git --version` |
|
|
465
|
-
| **Node.js** | >= 18 | `node --version` |
|
|
466
|
-
| **SINAPSE 核心** | 已安装 | 检查 `.sinapse-ai/` |
|
|
467
|
-
|
|
468
|
-
### NPM 依赖
|
|
469
|
-
|
|
470
|
-
| 包 | 用途 |
|
|
471
|
-
|------|-----|
|
|
472
|
-
| **execa** | Git 命令执行 |
|
|
473
|
-
| **chalk** | 终端颜色 |
|
|
474
|
-
|
|
475
|
-
### 必需的文件
|
|
476
|
-
|
|
477
|
-
```
|
|
478
|
-
.sinapse-ai/
|
|
479
|
-
infrastructure/
|
|
480
|
-
scripts/
|
|
481
|
-
worktree-manager.js # WorktreeManager 类
|
|
482
|
-
development/
|
|
483
|
-
workflows/
|
|
484
|
-
auto-worktree.yaml # 工作流定义
|
|
485
|
-
tasks/
|
|
486
|
-
create-worktree.md # 创建任务
|
|
487
|
-
list-worktrees.md # 列表任务
|
|
488
|
-
remove-worktree.md # 删除任务
|
|
489
|
-
merge-worktree.md # 合并任务
|
|
490
|
-
```
|
|
491
|
-
|
|
492
|
-
---
|
|
493
|
-
|
|
494
|
-
## 输入和输出
|
|
495
|
-
|
|
496
|
-
### 工作流输入
|
|
497
|
-
|
|
498
|
-
| 输入 | 类型 | 必需 | 来源 | 描述 |
|
|
499
|
-
|-----|------|------|------|------|
|
|
500
|
-
| `storyId` | 字符串 | 是* | 上下文或用户 | 故事 ID (例如: 故事-42, 1.3) |
|
|
501
|
-
| `storyFile` | 字符串 | 否 | 上下文 | 故事文件路径 |
|
|
502
|
-
| `currentTask` | 对象 | 否 | 上下文 | 当前执行的任务 |
|
|
503
|
-
|
|
504
|
-
*必需,但可从上下文自动提取。
|
|
505
|
-
|
|
506
|
-
### 工作流输出
|
|
507
|
-
|
|
508
|
-
| 输出 | 类型 | 描述 |
|
|
509
|
-
|-----|------|------|
|
|
510
|
-
| `storyId` | 字符串 | 已处理的故事 ID |
|
|
511
|
-
| `worktree` | WorktreeInfo | 工作树信息对象 |
|
|
512
|
-
| `path` | 字符串 | 工作树的绝对路径 |
|
|
513
|
-
| `branch` | 字符串 | 分支名称 (`auto-claude/{storyId}`) |
|
|
514
|
-
|
|
515
|
-
### WorktreeInfo 接口
|
|
516
|
-
|
|
517
|
-
```typescript
|
|
518
|
-
interface WorktreeInfo {
|
|
519
|
-
storyId: string; // 'STORY-42'
|
|
520
|
-
path: string; // '/abs/path/.sinapse/worktrees/STORY-42'
|
|
521
|
-
branch: string; // 'auto-claude/STORY-42'
|
|
522
|
-
createdAt: Date; // 创建日期
|
|
523
|
-
uncommittedChanges: number; // 未提交的更改数
|
|
524
|
-
status: 'active' | 'stale'; // 基于年龄的状态
|
|
525
|
-
}
|
|
526
|
-
```
|
|
527
|
-
|
|
528
|
-
---
|
|
529
|
-
|
|
530
|
-
## 决策点
|
|
531
|
-
|
|
532
|
-
### 决策图
|
|
533
|
-
|
|
534
|
-
```mermaid
|
|
535
|
-
flowchart TD
|
|
536
|
-
D1{config.autoWorktree.enabled?}
|
|
537
|
-
D1 -->|false| SKIP[工作流不执行]
|
|
538
|
-
D1 -->|true| D2
|
|
539
|
-
|
|
540
|
-
D2{storyId 可用?}
|
|
541
|
-
D2 -->|否| PROMPT[向用户请求]
|
|
542
|
-
D2 -->|是| D3
|
|
543
|
-
PROMPT --> D3
|
|
544
|
-
|
|
545
|
-
D3{工作树已存在?}
|
|
546
|
-
D3 -->|是| D4
|
|
547
|
-
D3 -->|否| D5
|
|
548
|
-
|
|
549
|
-
D4{config.autoSwitch?}
|
|
550
|
-
D4 -->|true| SWITCH[切换到现有工作树]
|
|
551
|
-
D4 -->|false| DONE[完成而无切换]
|
|
552
|
-
|
|
553
|
-
D5{config.autoCleanup?}
|
|
554
|
-
D5 -->|true| CLEANUP[清理过时的工作树]
|
|
555
|
-
D5 -->|false| CREATE
|
|
556
|
-
CLEANUP --> CREATE[创建新工作树]
|
|
557
|
-
|
|
558
|
-
CREATE -->|成功| D6
|
|
559
|
-
CREATE -->|失败| ERROR[处理错误]
|
|
560
|
-
|
|
561
|
-
D6{config.autoSwitch?}
|
|
562
|
-
D6 -->|true| SWITCH2[切换到新工作树]
|
|
563
|
-
D6 -->|false| D7
|
|
564
|
-
SWITCH2 --> D7
|
|
565
|
-
|
|
566
|
-
D7{config.verbose?}
|
|
567
|
-
D7 -->|true| SUMMARY[显示摘要]
|
|
568
|
-
D7 -->|false| FINISH[完成]
|
|
569
|
-
SUMMARY --> FINISH
|
|
570
|
-
|
|
571
|
-
style SKIP fill:#e0e0e0
|
|
572
|
-
style ERROR fill:#ffcdd2
|
|
573
|
-
style FINISH fill:#c8e6c9
|
|
574
|
-
```
|
|
575
|
-
|
|
576
|
-
### 影响决策的配置
|
|
577
|
-
|
|
578
|
-
| 配置 | 默认 | 影响 |
|
|
579
|
-
|------|------|------|
|
|
580
|
-
| `enabled` | true | 启用/禁用工作流 |
|
|
581
|
-
| `createOnAssign` | false | @po 分配故事时创建工作树 |
|
|
582
|
-
| `autoSwitch` | true | 自动切换到工作树 |
|
|
583
|
-
| `verbose` | true | 完成时显示摘要 |
|
|
584
|
-
| `autoCleanup` | false | 自动清理过时的工作树 |
|
|
585
|
-
| `maxWorktrees` | 10 | 同时工作树限制 |
|
|
586
|
-
| `staleDays` | 30 | 将工作树视为过时的天数 |
|
|
587
|
-
|
|
588
|
-
---
|
|
589
|
-
|
|
590
|
-
## 错误处理
|
|
591
|
-
|
|
592
|
-
### 阻止错误
|
|
593
|
-
|
|
594
|
-
| 错误 | 原因 | 解决方案 |
|
|
595
|
-
|------|------|---------|
|
|
596
|
-
| `Not a git repository` | 目录不是 git 存储库 | 执行 `git init` |
|
|
597
|
-
| `Git worktree not supported` | Git < 2.5 | 升级 Git |
|
|
598
|
-
| `WorktreeManager not found` | SINAPSE 不完整 | 重新安装 SINAPSE |
|
|
599
|
-
| `Maximum worktrees limit reached` | >= 10 个工作树 | 执行 `*cleanup-worktrees` |
|
|
600
|
-
| `Could not determine story ID` | 未找到 ID | 明确提供 ID |
|
|
601
|
-
| `Worktree creation failed` | git worktree 错误 | 检查 git 状态 |
|
|
602
|
-
|
|
603
|
-
### 非阻止错误 (警告)
|
|
604
|
-
|
|
605
|
-
| 警告 | 原因 | 操作 |
|
|
606
|
-
|------|------|------|
|
|
607
|
-
| `Approaching worktree limit` | 接近限制 | 考虑清理 |
|
|
608
|
-
| `Could not delete branch` | 分支受保护或正在使用 | 手动删除 |
|
|
609
|
-
|
|
610
|
-
### 错误恢复流程
|
|
611
|
-
|
|
612
|
-
```mermaid
|
|
613
|
-
flowchart TD
|
|
614
|
-
E1[检测到错误] --> E2{错误类型?}
|
|
615
|
-
|
|
616
|
-
E2 -->|阻止| E3[暂停工作流]
|
|
617
|
-
E2 -->|非阻止| E4[记录警告]
|
|
618
|
-
|
|
619
|
-
E3 --> E5[显示消息]
|
|
620
|
-
E5 --> E6[显示建议]
|
|
621
|
-
E6 --> E7[中止]
|
|
622
|
-
|
|
623
|
-
E4 --> E8[继续执行]
|
|
624
|
-
|
|
625
|
-
E7 --> ROLLBACK{需要回滚?}
|
|
626
|
-
ROLLBACK -->|是| E9[执行回滚]
|
|
627
|
-
ROLLBACK -->|否| END[完成]
|
|
628
|
-
E9 --> END
|
|
629
|
-
```
|
|
630
|
-
|
|
631
|
-
---
|
|
632
|
-
|
|
633
|
-
## 故障排查
|
|
634
|
-
|
|
635
|
-
### 问题: 未创建工作树
|
|
636
|
-
|
|
637
|
-
**症状:**
|
|
638
|
-
- 命令 `*create-worktree` 失败
|
|
639
|
-
- 消息 "Failed to create worktree"
|
|
640
|
-
|
|
641
|
-
**诊断:**
|
|
642
|
-
```bash
|
|
643
|
-
# 检查是否是 git 存储库
|
|
644
|
-
git rev-parse --is-inside-work-tree
|
|
645
|
-
|
|
646
|
-
# 检查 git 版本
|
|
647
|
-
git --version
|
|
648
|
-
|
|
649
|
-
# 检查现有的工作树
|
|
650
|
-
git worktree list
|
|
651
|
-
|
|
652
|
-
# 检查 WorktreeManager 存在
|
|
653
|
-
ls .sinapse-ai/infrastructure/scripts/worktree-manager.js
|
|
654
|
-
```
|
|
655
|
-
|
|
656
|
-
**解决方案:**
|
|
657
|
-
1. 初始化存储库: `git init`
|
|
658
|
-
2. 升级 Git 至 >= 2.5
|
|
659
|
-
3. 清理工作树: `*cleanup-worktrees`
|
|
660
|
-
4. 删除特定工作树: `*remove-worktree {storyId}`
|
|
661
|
-
|
|
662
|
-
---
|
|
663
|
-
|
|
664
|
-
### 问题: 达到工作树限制
|
|
665
|
-
|
|
666
|
-
**症状:**
|
|
667
|
-
- 消息 "Maximum worktrees limit (10) reached"
|
|
668
|
-
|
|
669
|
-
**诊断:**
|
|
670
|
-
```bash
|
|
671
|
-
# 列出所有工作树
|
|
672
|
-
*list-worktrees
|
|
673
|
-
|
|
674
|
-
# 检查数量
|
|
675
|
-
git worktree list | wc -l
|
|
676
|
-
```
|
|
677
|
-
|
|
678
|
-
**解决方案:**
|
|
679
|
-
1. 清理过时工作树: `*cleanup-worktrees`
|
|
680
|
-
2. 删除未使用的工作树: `*remove-worktree {storyId}`
|
|
681
|
-
3. 增加限制 (如需): 在 `.sinapse/config.yaml` 中
|
|
682
|
-
|
|
683
|
-
---
|
|
684
|
-
|
|
685
|
-
### 问题: 合并时冲突
|
|
686
|
-
|
|
687
|
-
**症状:**
|
|
688
|
-
- `*merge-worktree` 失败
|
|
689
|
-
- 带文件冲突列表的消息
|
|
690
|
-
|
|
691
|
-
**诊断:**
|
|
692
|
-
```bash
|
|
693
|
-
# 检查冲突文件
|
|
694
|
-
git diff --name-only --diff-filter=U
|
|
695
|
-
|
|
696
|
-
# 查看差异
|
|
697
|
-
git diff HEAD...auto-claude/{storyId}
|
|
698
|
-
```
|
|
699
|
-
|
|
700
|
-
**解决方案:**
|
|
701
|
-
1. 在工作树中手动解决冲突
|
|
702
|
-
2. 重新设置工作树基: `git rebase main` (在工作树内)
|
|
703
|
-
3. 使用分阶段合并: `*merge-worktree {storyId} --staged`
|
|
704
|
-
|
|
705
|
-
---
|
|
706
|
-
|
|
707
|
-
### 问题: 工作树损坏
|
|
708
|
-
|
|
709
|
-
**症状:**
|
|
710
|
-
- 工作树中 git 命令失败
|
|
711
|
-
- 工作树显示为 "locked"
|
|
712
|
-
|
|
713
|
-
**诊断:**
|
|
714
|
-
```bash
|
|
715
|
-
# 检查工作树状态
|
|
716
|
-
git worktree list
|
|
717
|
-
|
|
718
|
-
# 检查是否locked
|
|
719
|
-
ls .git/worktrees/{storyId}/locked
|
|
720
|
-
```
|
|
721
|
-
|
|
722
|
-
**解决方案:**
|
|
723
|
-
1. 删除锁: `rm .git/worktrees/{storyId}/locked`
|
|
724
|
-
2. 强制删除工作树: `*remove-worktree {storyId} --force`
|
|
725
|
-
3. 手动删除:
|
|
726
|
-
```bash
|
|
727
|
-
git worktree remove .sinapse/worktrees/{storyId} --force
|
|
728
|
-
git branch -D auto-claude/{storyId}
|
|
729
|
-
```
|
|
730
|
-
|
|
731
|
-
---
|
|
732
|
-
|
|
733
|
-
### 问题: 未检测到故事 ID
|
|
734
|
-
|
|
735
|
-
**症状:**
|
|
736
|
-
- 消息 "Could not determine story ID"
|
|
737
|
-
|
|
738
|
-
**解决方案:**
|
|
739
|
-
1. 明确提供 ID: `*auto-worktree 故事-42`
|
|
740
|
-
2. 检查故事文件是否存在
|
|
741
|
-
3. 检查当前分支名称是否遵循约定
|
|
742
|
-
|
|
743
|
-
---
|
|
744
|
-
|
|
745
|
-
## 相关命令
|
|
746
|
-
|
|
747
|
-
| 命令 | 描述 | 示例 |
|
|
748
|
-
|------|------|------|
|
|
749
|
-
| `*create-worktree` | 手动创建工作树 | `*create-worktree 故事-42` |
|
|
750
|
-
| `*list-worktrees` | 列出所有工作树 | `*list-worktrees` |
|
|
751
|
-
| `*remove-worktree` | 删除工作树 | `*remove-worktree 故事-42` |
|
|
752
|
-
| `*merge-worktree` | 合并工作树 | `*merge-worktree 故事-42` |
|
|
753
|
-
| `*cleanup-worktrees` | 清理过时的工作树 | `*cleanup-worktrees` |
|
|
754
|
-
|
|
755
|
-
---
|
|
756
|
-
|
|
757
|
-
## 参考
|
|
758
|
-
|
|
759
|
-
### 框架文件
|
|
760
|
-
|
|
761
|
-
| 文件 | 路径 |
|
|
762
|
-
|------|------|
|
|
763
|
-
| **工作流定义** | `.sinapse-ai/development/workflows/auto-worktree.yaml` |
|
|
764
|
-
| **任务创建** | `.sinapse-ai/development/tasks/create-worktree.md` |
|
|
765
|
-
| **WorktreeManager** | `.sinapse-ai/infrastructure/scripts/worktree-manager.js` |
|
|
766
|
-
|
|
767
|
-
### 相关文档
|
|
768
|
-
|
|
769
|
-
- [Git 工作树文档](https://git-scm.com/docs/git-worktree)
|
|
770
|
-
- Epic 1 - 工作树管理器 (故事 1.1-1.5)
|
|
771
|
-
- Auto-Claude ADE 架构
|
|
772
|
-
|
|
773
|
-
### 相关故事
|
|
774
|
-
|
|
775
|
-
| 故事 | 标题 |
|
|
776
|
-
|------|------|
|
|
777
|
-
| 1.1 | WorktreeManager 核心类 |
|
|
778
|
-
| 1.2 | 合并功能 |
|
|
779
|
-
| 1.3 | 工作树管理的 CLI 命令 |
|
|
780
|
-
| 1.4 | 自动工作树工作流集成 |
|
|
781
|
-
| 1.5 | 项目上下文中的工作树状态 |
|
|
782
|
-
|
|
783
|
-
---
|
|
784
|
-
|
|
785
|
-
## 版本历史
|
|
786
|
-
|
|
787
|
-
| 版本 | 日期 | 作者 | 更改 |
|
|
788
|
-
|------|------|------|------|
|
|
789
|
-
| 1.0 | 2026-01-28 | @architect (Aria) | 初始版本 |
|
|
790
|
-
|
|
791
|
-
---
|
|
792
|
-
|
|
793
|
-
*自动由 SINAPSE-FULLSTACK 生成的文档*
|