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,306 +0,0 @@
|
|
|
1
|
-
# LLM 路由指南
|
|
2
|
-
|
|
3
|
-
> [EN](../../guides/llm-routing.md) | [PT](../../pt/guides/llm-routing.md) | [ES](../../es/guides/llm-routing.md) | **ZH**
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
**版本:** 1.0.0
|
|
8
|
-
**更新:** 2025-12-14
|
|
9
|
-
|
|
10
|
-
Claude Code 的成本效益 LLM 路由。在保持完整功能的同时节省高达 99% 的 API 成本。
|
|
11
|
-
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
## 概述
|
|
15
|
-
|
|
16
|
-
LLM 路由为不同用例提供两个命令:
|
|
17
|
-
|
|
18
|
-
| 命令 | 提供者 | 成本 | 用例 |
|
|
19
|
-
| ------------- | ----------------- | -------------- | ---------------------- |
|
|
20
|
-
| `claude-max` | Claude Max (OAuth) | 订阅 | 高级体验,复杂任务 |
|
|
21
|
-
| `claude-free` | DeepSeek | ~$0.14/M tokens | 开发,测试,简单任务 |
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
## 快速开始
|
|
26
|
-
|
|
27
|
-
### 安装
|
|
28
|
-
|
|
29
|
-
**选项 1: 如果您已克隆 sinapse-ai**
|
|
30
|
-
```bash
|
|
31
|
-
# 从 sinapse-ai 目录
|
|
32
|
-
node .sinapse-ai/infrastructure/scripts/llm-routing/install-llm-routing.js
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
**选项 2: 全新安装**
|
|
36
|
-
```bash
|
|
37
|
-
# 克隆仓库
|
|
38
|
-
git clone https://github.com/SinapseAI/sinapse-ai.git
|
|
39
|
-
cd sinapse-ai
|
|
40
|
-
|
|
41
|
-
# 运行安装程序
|
|
42
|
-
node .sinapse-ai/infrastructure/scripts/llm-routing/install-llm-routing.js
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
### 设置 DeepSeek API 密钥
|
|
46
|
-
|
|
47
|
-
1. 在此获取 API 密钥: <https://platform.deepseek.com/api_keys>
|
|
48
|
-
2. 添加到项目的 `.env` 文件:
|
|
49
|
-
|
|
50
|
-
```bash
|
|
51
|
-
DEEPSEEK_API_KEY=sk-your-key-here
|
|
52
|
-
```
|
|
53
|
-
|
|
54
|
-
### 使用
|
|
55
|
-
|
|
56
|
-
```bash
|
|
57
|
-
# 高级 Claude 体验 (使用您的 Claude Max 订阅)
|
|
58
|
-
claude-max
|
|
59
|
-
|
|
60
|
-
# 成本效益开发 (使用 DeepSeek ~$0.14/M tokens)
|
|
61
|
-
claude-free
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
---
|
|
65
|
-
|
|
66
|
-
## 命令
|
|
67
|
-
|
|
68
|
-
### claude-max
|
|
69
|
-
|
|
70
|
-
通过 OAuth 使用您的 Claude Max 订阅 (claude.ai 登录)。
|
|
71
|
-
|
|
72
|
-
**功能:**
|
|
73
|
-
- 完整 Claude 能力
|
|
74
|
-
- 无需 API 密钥
|
|
75
|
-
- 使用现有 Claude 登录
|
|
76
|
-
- 最适合复杂推理任务
|
|
77
|
-
|
|
78
|
-
**使用:**
|
|
79
|
-
```bash
|
|
80
|
-
claude-max
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
**何时使用:**
|
|
84
|
-
- 复杂代码分析
|
|
85
|
-
- 架构决策
|
|
86
|
-
- 需要高准确性的任务
|
|
87
|
-
- 生产关键工作
|
|
88
|
-
|
|
89
|
-
---
|
|
90
|
-
|
|
91
|
-
### claude-free
|
|
92
|
-
|
|
93
|
-
使用 DeepSeek API 和 Anthropic 兼容端点。
|
|
94
|
-
|
|
95
|
-
**功能:**
|
|
96
|
-
- 工具调用支持 ✅
|
|
97
|
-
- 流式传输支持 ✅
|
|
98
|
-
- ~99% 成本降低
|
|
99
|
-
- 项目 `.env` 文件支持
|
|
100
|
-
|
|
101
|
-
**使用:**
|
|
102
|
-
```bash
|
|
103
|
-
claude-free
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
**何时使用:**
|
|
107
|
-
- 开发和测试
|
|
108
|
-
- 简单代码任务
|
|
109
|
-
- 学习和实验
|
|
110
|
-
- 高量操作
|
|
111
|
-
|
|
112
|
-
---
|
|
113
|
-
|
|
114
|
-
## 成本比较
|
|
115
|
-
|
|
116
|
-
| 提供者 | 输入 Tokens | 输出 Tokens | 每月 (1M tokens) |
|
|
117
|
-
| ------------ | ------------- | ------------- | ---------------- |
|
|
118
|
-
| Claude API | $15.00/M | $75.00/M | $90.00 |
|
|
119
|
-
| Claude Max | 包含 | 包含 | $20/月 |
|
|
120
|
-
| **DeepSeek** | **$0.07/M** | **$0.14/M** | **$0.21** |
|
|
121
|
-
|
|
122
|
-
**使用 DeepSeek 的节省:** 与 Claude API 相比高达 99.7%
|
|
123
|
-
|
|
124
|
-
---
|
|
125
|
-
|
|
126
|
-
## 配置
|
|
127
|
-
|
|
128
|
-
### API 密钥来源
|
|
129
|
-
|
|
130
|
-
`claude-free` 按此顺序查找 DeepSeek API 密钥:
|
|
131
|
-
|
|
132
|
-
1. **项目 `.env` 文件** (推荐)
|
|
133
|
-
```bash
|
|
134
|
-
# 项目根目录的 .env
|
|
135
|
-
DEEPSEEK_API_KEY=sk-your-key-here
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
2. **环境变量**
|
|
139
|
-
```bash
|
|
140
|
-
# Windows
|
|
141
|
-
setx DEEPSEEK_API_KEY "sk-your-key-here"
|
|
142
|
-
|
|
143
|
-
# Unix (添加到 ~/.bashrc 或 ~/.zshrc)
|
|
144
|
-
export DEEPSEEK_API_KEY="sk-your-key-here"
|
|
145
|
-
```
|
|
146
|
-
|
|
147
|
-
### 安装位置
|
|
148
|
-
|
|
149
|
-
| 操作系统 | 安装目录 |
|
|
150
|
-
| ------------- | ----------------------------- |
|
|
151
|
-
| Windows | `%APPDATA%\npm\` |
|
|
152
|
-
| macOS/Linux | `/usr/local/bin/` 或 `~/bin/` |
|
|
153
|
-
|
|
154
|
-
---
|
|
155
|
-
|
|
156
|
-
## 工作原理
|
|
157
|
-
|
|
158
|
-
### claude-max
|
|
159
|
-
1. 清除所有替代提供者设置
|
|
160
|
-
2. 使用 Claude 的默认 OAuth 认证
|
|
161
|
-
3. 使用您的 Max 订阅启动 Claude Code
|
|
162
|
-
|
|
163
|
-
### claude-free
|
|
164
|
-
1. 搜索 `.env` 文件 (当前目录 → 父目录)
|
|
165
|
-
2. 从 `.env` 或环境加载 `DEEPSEEK_API_KEY`
|
|
166
|
-
3. 设置 DeepSeek 的 Anthropic 兼容端点
|
|
167
|
-
4. 使用 DeepSeek 后端启动 Claude Code
|
|
168
|
-
|
|
169
|
-
**DeepSeek 端点:**
|
|
170
|
-
```text
|
|
171
|
-
https://api.deepseek.com/anthropic
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
此端点提供:
|
|
175
|
-
- Anthropic API 兼容性
|
|
176
|
-
- 工具/函数调用支持
|
|
177
|
-
- 流式响应
|
|
178
|
-
|
|
179
|
-
### 安全说明: 权限绕过
|
|
180
|
-
|
|
181
|
-
`claude-max` 和 `claude-free` 命令默认使用 `--dangerously-skip-permissions` 标志。这:
|
|
182
|
-
|
|
183
|
-
- **跳过确认提示** 用于文件操作、命令执行等
|
|
184
|
-
- **应仅在受信任的仓库/环境中使用**
|
|
185
|
-
- **不推荐用于不受信任的代码库**
|
|
186
|
-
|
|
187
|
-
每次运行这些命令时会显示警告。如果您更喜欢交互式确认,请直接运行 `claude` 而不是使用路由命令。
|
|
188
|
-
|
|
189
|
-
---
|
|
190
|
-
|
|
191
|
-
## 故障排除
|
|
192
|
-
|
|
193
|
-
### 命令未找到
|
|
194
|
-
|
|
195
|
-
**Windows:**
|
|
196
|
-
```powershell
|
|
197
|
-
# 检查 npm 全局是否在 PATH 中
|
|
198
|
-
echo $env:PATH | Select-String "npm"
|
|
199
|
-
|
|
200
|
-
# 如果没有,添加它:
|
|
201
|
-
$env:PATH += ";$env:APPDATA\npm"
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
**Unix:**
|
|
205
|
-
```bash
|
|
206
|
-
# 检查 PATH
|
|
207
|
-
echo $PATH | grep -E "(local/bin|~/bin)"
|
|
208
|
-
|
|
209
|
-
# 如果 ~/bin 不在 PATH 中,添加到 ~/.bashrc:
|
|
210
|
-
export PATH="$HOME/bin:$PATH"
|
|
211
|
-
```
|
|
212
|
-
|
|
213
|
-
### DEEPSEEK_API_KEY 未找到
|
|
214
|
-
|
|
215
|
-
1. 验证 `.env` 文件存在于项目根目录
|
|
216
|
-
2. 检查密钥格式: `DEEPSEEK_API_KEY=sk-...`
|
|
217
|
-
3. `=` 周围没有空格
|
|
218
|
-
4. 值周围不需要引号
|
|
219
|
-
|
|
220
|
-
### API 错误
|
|
221
|
-
|
|
222
|
-
| 错误 | 原因 | 解决方案 |
|
|
223
|
-
| ------------------ | ---------------- | ----------------------------- |
|
|
224
|
-
| 401 Unauthorized | 无效 API 密钥 | 在 DeepSeek 仪表盘验证密钥 |
|
|
225
|
-
| 429 Rate Limited | 请求太多 | 等待并重试 |
|
|
226
|
-
| Connection refused | 网络问题 | 检查互联网连接 |
|
|
227
|
-
|
|
228
|
-
### 工具调用不工作
|
|
229
|
-
|
|
230
|
-
DeepSeek 的 `/anthropic` 端点支持工具调用。如果工具不工作:
|
|
231
|
-
1. 验证端点是 `https://api.deepseek.com/anthropic`
|
|
232
|
-
2. 检查 API 密钥有足够额度
|
|
233
|
-
3. 先尝试不带工具的简单测试
|
|
234
|
-
|
|
235
|
-
---
|
|
236
|
-
|
|
237
|
-
## 高级配置
|
|
238
|
-
|
|
239
|
-
### 自定义模型
|
|
240
|
-
|
|
241
|
-
如果需要不同模型,编辑模板文件:
|
|
242
|
-
|
|
243
|
-
**Windows:** `.sinapse-ai/infrastructure/scripts/llm-routing/templates/claude-free.cmd`
|
|
244
|
-
**Unix:** `.sinapse-ai/infrastructure/scripts/llm-routing/templates/claude-free.sh`
|
|
245
|
-
|
|
246
|
-
更改:
|
|
247
|
-
```bash
|
|
248
|
-
export ANTHROPIC_MODEL="deepseek-chat"
|
|
249
|
-
```
|
|
250
|
-
|
|
251
|
-
### 环境变量
|
|
252
|
-
|
|
253
|
-
| 变量 | 描述 | 默认值 |
|
|
254
|
-
| -------------------- | ------------- | ------------------------------------- |
|
|
255
|
-
| `ANTHROPIC_BASE_URL` | API 端点 | `https://api.deepseek.com/anthropic` |
|
|
256
|
-
| `ANTHROPIC_API_KEY` | API 密钥 | 来自 DEEPSEEK_API_KEY |
|
|
257
|
-
| `ANTHROPIC_MODEL` | 模型名称 | `deepseek-chat` |
|
|
258
|
-
| `API_TIMEOUT_MS` | 请求超时 | `600000` (10 分钟) |
|
|
259
|
-
|
|
260
|
-
---
|
|
261
|
-
|
|
262
|
-
## 卸载
|
|
263
|
-
|
|
264
|
-
### Windows
|
|
265
|
-
```powershell
|
|
266
|
-
Remove-Item "$env:APPDATA\npm\claude-free.cmd"
|
|
267
|
-
Remove-Item "$env:APPDATA\npm\claude-max.cmd"
|
|
268
|
-
```
|
|
269
|
-
|
|
270
|
-
### Unix
|
|
271
|
-
```bash
|
|
272
|
-
rm /usr/local/bin/claude-free
|
|
273
|
-
rm /usr/local/bin/claude-max
|
|
274
|
-
# 或如果安装在 ~/bin:
|
|
275
|
-
rm ~/bin/claude-free
|
|
276
|
-
rm ~/bin/claude-max
|
|
277
|
-
```
|
|
278
|
-
|
|
279
|
-
---
|
|
280
|
-
|
|
281
|
-
## 相关资源
|
|
282
|
-
|
|
283
|
-
- **工具定义:** `.sinapse-ai/infrastructure/tools/cli/llm-routing.yaml`
|
|
284
|
-
- **安装脚本:** `.sinapse-ai/infrastructure/scripts/llm-routing/install-llm-routing.js`
|
|
285
|
-
- **任务定义:** `.sinapse-ai/development/tasks/setup-llm-routing.md`
|
|
286
|
-
- **DeepSeek API:** <https://platform.deepseek.com/api_keys>
|
|
287
|
-
|
|
288
|
-
---
|
|
289
|
-
|
|
290
|
-
## 常见问题
|
|
291
|
-
|
|
292
|
-
**Q: DeepSeek 和 Claude 一样好吗?**
|
|
293
|
-
A: DeepSeek 对大多数编码任务表现出色,但在复杂问题上可能不及 Claude 的推理能力。重要工作使用 `claude-max`。
|
|
294
|
-
|
|
295
|
-
**Q: 我可以在同一会话中使用两个命令吗?**
|
|
296
|
-
A: 可以! 每个命令设置自己的环境。您可以在它们之间切换。
|
|
297
|
-
|
|
298
|
-
**Q: claude-free 可以离线工作吗?**
|
|
299
|
-
A: 不能,它需要互联网访问来连接 DeepSeek 的 API。
|
|
300
|
-
|
|
301
|
-
**Q: 我的 API 密钥安全吗?**
|
|
302
|
-
A: 密钥从 `.env` 文件 (不要提交!) 或环境变量加载。永远不要硬编码密钥。
|
|
303
|
-
|
|
304
|
-
---
|
|
305
|
-
|
|
306
|
-
*由 SINAPSE Framework 生成 - Story 6.7*
|
|
@@ -1,368 +0,0 @@
|
|
|
1
|
-
# Desktop Commander MCP
|
|
2
|
-
|
|
3
|
-
> **EN** | **ZH**
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
使用 Desktop Commander MCP 服务器和 Claude Code 的指南,用于高级终端和进程管理功能。
|
|
8
|
-
|
|
9
|
-
**版本:** 1.0.0
|
|
10
|
-
**最后更新:** 2026-01-28
|
|
11
|
-
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
## 概述
|
|
15
|
-
|
|
16
|
-
Desktop Commander 是一个 MCP 服务器,使用高级功能扩展 Claude Code,用于本地环境管理。它提供 Claude Code 的本机工具无法做到的功能,使其对某些工作流程至关重要。
|
|
17
|
-
|
|
18
|
-
### 何时使用 Desktop Commander
|
|
19
|
-
|
|
20
|
-
| 用例 | 原生 Claude Code | Desktop Commander |
|
|
21
|
-
| ------------------------------- | ---------------- | ----------------- |
|
|
22
|
-
| 持久会话(SSH、REPL) | 不支持 | **推荐** |
|
|
23
|
-
| 交互式进程 | 限制 | **推荐** |
|
|
24
|
-
| 模糊文件编辑 | 不支持 | **推荐** |
|
|
25
|
-
| 读取文件尾部(负偏移) | 不支持 | **推荐** |
|
|
26
|
-
| 内存中代码执行 | 不支持 | **推荐** |
|
|
27
|
-
| 简单文件操作 | **首选** | 较慢 |
|
|
28
|
-
| Git 操作 | **首选** | 不必要 |
|
|
29
|
-
| 文件搜索(Glob、Grep) | **首选** | 不必要 |
|
|
30
|
-
|
|
31
|
-
---
|
|
32
|
-
|
|
33
|
-
## 能力比较
|
|
34
|
-
|
|
35
|
-
### Desktop Commander 可以做而 Claude Code 不能做的事
|
|
36
|
-
|
|
37
|
-
| 功能 | Claude Code 原生 | Desktop Commander |
|
|
38
|
-
| ------------------------ | ------------------------------------------ | -------------------------------------------- |
|
|
39
|
-
| **持久会话** | Shell 状态在调用之间不持久(仅工作目录) | 维护活动会话(SSH、数据库、REPL) |
|
|
40
|
-
| **内存中代码执行** | 需要 Write → Bash | 直接 REPL 执行(Python、Node.js、R) |
|
|
41
|
-
| **模糊编辑** | Edit 需要 old_string 精确匹配 | 智能回退并模糊搜索 |
|
|
42
|
-
| **负偏移(tail)** | Read 仅具有正偏移 | 从文件末尾读取(如 Unix tail) |
|
|
43
|
-
| **交互式进程** | 限制(后台无 stdin) | 双向 stdin/stdout |
|
|
44
|
-
| **动态配置** | 需要重启 | 动态更改 shell、目录、阻止的命令 |
|
|
45
|
-
| **审计日志** | ~/.claude.json 中的基本信息 | 完整的工具历史和使用统计 |
|
|
46
|
-
|
|
47
|
-
### Claude Code 原生足够的地方
|
|
48
|
-
|
|
49
|
-
| 功能 | Claude Code 原生 | 注释 |
|
|
50
|
-
| ------------------------ | ----------------------- | ------------------------------ |
|
|
51
|
-
| **分页搜索** | Grep 有 `head_limit` 和 `offset` | 已经能够流式传输 |
|
|
52
|
-
| **多会话管理** | Task 工具 + TaskOutput + /tasks | 不同的方法但功能齐全 |
|
|
53
|
-
| **CSV/JSON 分析** | Read + Bash with jq/python | 对大多数情况都适用 |
|
|
54
|
-
|
|
55
|
-
---
|
|
56
|
-
|
|
57
|
-
## 安装
|
|
58
|
-
|
|
59
|
-
### 前置要求
|
|
60
|
-
|
|
61
|
-
- Node.js 18+
|
|
62
|
-
- Claude Code CLI 已安装
|
|
63
|
-
- MCP 支持已启用
|
|
64
|
-
|
|
65
|
-
### 设置
|
|
66
|
-
|
|
67
|
-
```bash
|
|
68
|
-
# 全局安装 desktop-commander
|
|
69
|
-
npm install -g @anthropic/desktop-commander
|
|
70
|
-
|
|
71
|
-
# 或添加到 Claude Code MCP 配置
|
|
72
|
-
claude mcp add desktop-commander
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
### 配置
|
|
76
|
-
|
|
77
|
-
添加到 `~/.claude.json`:
|
|
78
|
-
|
|
79
|
-
```json
|
|
80
|
-
{
|
|
81
|
-
"mcpServers": {
|
|
82
|
-
"desktop-commander": {
|
|
83
|
-
"command": "npx",
|
|
84
|
-
"args": ["-y", "@anthropic/desktop-commander"]
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
---
|
|
91
|
-
|
|
92
|
-
## 可用工具
|
|
93
|
-
|
|
94
|
-
### 终端管理
|
|
95
|
-
|
|
96
|
-
| 工具 | 描述 |
|
|
97
|
-
| ----------------- | -------------------------- |
|
|
98
|
-
| `execute_command` | 使用持久会话运行 shell 命令 |
|
|
99
|
-
| `read_output` | 从运行进程读取输出 |
|
|
100
|
-
| `send_input` | 向交互式进程发送输入 |
|
|
101
|
-
| `force_terminate` | 杀死运行的进程 |
|
|
102
|
-
| `list_sessions` | 列出所有活动会话 |
|
|
103
|
-
| `list_processes` | 列出运行的进程 |
|
|
104
|
-
|
|
105
|
-
### 文件操作
|
|
106
|
-
|
|
107
|
-
| 工具 | 描述 |
|
|
108
|
-
| ---------------- | ---------------------------------- |
|
|
109
|
-
| `read_file` | 读取文件,支持负偏移(tail) |
|
|
110
|
-
| `write_file` | 写入文件内容 |
|
|
111
|
-
| `edit_block` | 使用模糊匹配回退编辑 |
|
|
112
|
-
| `search_files` | 搜索带有流式传输/分页 |
|
|
113
|
-
| `get_file_info` | 获取文件元数据 |
|
|
114
|
-
| `list_directory` | 列出目录内容 |
|
|
115
|
-
|
|
116
|
-
### 代码执行
|
|
117
|
-
|
|
118
|
-
| 工具 | 描述 |
|
|
119
|
-
| -------------- | ------------------------------- |
|
|
120
|
-
| `execute_code` | 内存中运行代码(Python、Node.js、R) |
|
|
121
|
-
| `create_repl` | 创建持久 REPL 会话 |
|
|
122
|
-
| `repl_execute` | 在现有 REPL 中执行 |
|
|
123
|
-
|
|
124
|
-
### 配置
|
|
125
|
-
|
|
126
|
-
| 工具 | 描述 |
|
|
127
|
-
| ------------------ | --------------------- |
|
|
128
|
-
| `get_config` | 获取当前配置 |
|
|
129
|
-
| `set_config_value` | 动态更新配置 |
|
|
130
|
-
|
|
131
|
-
---
|
|
132
|
-
|
|
133
|
-
## 使用示例
|
|
134
|
-
|
|
135
|
-
### 持久 SSH 会话
|
|
136
|
-
|
|
137
|
-
```
|
|
138
|
-
# 创建 SSH 会话
|
|
139
|
-
execute_command: ssh user@server.com
|
|
140
|
-
|
|
141
|
-
# 向会话发送命令
|
|
142
|
-
send_input: ls -la
|
|
143
|
-
read_output: [session_id]
|
|
144
|
-
|
|
145
|
-
# 保持会话活动以进行多次交互
|
|
146
|
-
send_input: cd /var/log
|
|
147
|
-
send_input: tail -f syslog
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
### 内存中 Python 分析
|
|
151
|
-
|
|
152
|
-
```
|
|
153
|
-
# 执行 Python 而不创建文件
|
|
154
|
-
execute_code:
|
|
155
|
-
language: python
|
|
156
|
-
code: |
|
|
157
|
-
import pandas as pd
|
|
158
|
-
df = pd.read_csv('/path/to/data.csv')
|
|
159
|
-
print(df.describe())
|
|
160
|
-
print(df.head(10))
|
|
161
|
-
```
|
|
162
|
-
|
|
163
|
-
### 模糊文件编辑
|
|
164
|
-
|
|
165
|
-
```
|
|
166
|
-
# 使用近似匹配编辑(当精确匹配失败时)
|
|
167
|
-
edit_block:
|
|
168
|
-
file_path: /path/to/file.py
|
|
169
|
-
old_text: "def process_data(data)" # 近似匹配
|
|
170
|
-
new_text: "def process_data(data: dict) -> dict"
|
|
171
|
-
fuzzy: true
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
### 读取文件尾部
|
|
175
|
-
|
|
176
|
-
```
|
|
177
|
-
# 读取大日志文件的最后 100 行
|
|
178
|
-
read_file:
|
|
179
|
-
path: /var/log/application.log
|
|
180
|
-
offset: -100 # 负 = 从末尾
|
|
181
|
-
lines: 100
|
|
182
|
-
```
|
|
183
|
-
|
|
184
|
-
### 交互式 REPL
|
|
185
|
-
|
|
186
|
-
```
|
|
187
|
-
# 创建 Node.js REPL
|
|
188
|
-
create_repl:
|
|
189
|
-
language: nodejs
|
|
190
|
-
|
|
191
|
-
# 在 REPL 中执行(维护状态)
|
|
192
|
-
repl_execute: const data = require('./config.json')
|
|
193
|
-
repl_execute: Object.keys(data).length
|
|
194
|
-
repl_execute: data.settings.enabled
|
|
195
|
-
```
|
|
196
|
-
|
|
197
|
-
---
|
|
198
|
-
|
|
199
|
-
## 最佳实践
|
|
200
|
-
|
|
201
|
-
### 1. 尽可能使用原生工具
|
|
202
|
-
|
|
203
|
-
Desktop Commander 增加延迟。优先使用原生工具:
|
|
204
|
-
|
|
205
|
-
```
|
|
206
|
-
# 好的 - 使用原生 Read
|
|
207
|
-
Read 工具用于简单的文件读取
|
|
208
|
-
|
|
209
|
-
# 好的 - 使用原生 Bash
|
|
210
|
-
Bash 工具用于快速命令
|
|
211
|
-
|
|
212
|
-
# 好的 - 使用原生 Grep
|
|
213
|
-
Grep 工具用于文件搜索
|
|
214
|
-
```
|
|
215
|
-
|
|
216
|
-
### 2. 对以下情况使用 Desktop Commander
|
|
217
|
-
|
|
218
|
-
```
|
|
219
|
-
# 持久会话
|
|
220
|
-
- SSH 连接
|
|
221
|
-
- 数据库连接(psql、mysql、mongo shell)
|
|
222
|
-
- REPL 会话(python、node、irb)
|
|
223
|
-
|
|
224
|
-
# 交互式进程
|
|
225
|
-
- 长时间运行的命令,监控输出
|
|
226
|
-
- 需要 stdin 输入的进程
|
|
227
|
-
|
|
228
|
-
# 高级文件操作
|
|
229
|
-
- 需要 tail 的大文件(负偏移)
|
|
230
|
-
- 不精确匹配的编辑(模糊)
|
|
231
|
-
```
|
|
232
|
-
|
|
233
|
-
### 3. 会话管理
|
|
234
|
-
|
|
235
|
-
```
|
|
236
|
-
# 创建新会话前始终列出会话
|
|
237
|
-
list_sessions
|
|
238
|
-
|
|
239
|
-
# 清理未使用的会话
|
|
240
|
-
force_terminate: [old_session_id]
|
|
241
|
-
|
|
242
|
-
# 为清晰起见命名会话
|
|
243
|
-
execute_command:
|
|
244
|
-
command: ssh prod-server
|
|
245
|
-
session_name: prod-ssh
|
|
246
|
-
```
|
|
247
|
-
|
|
248
|
-
### 4. 错误处理
|
|
249
|
-
|
|
250
|
-
```
|
|
251
|
-
# 发送输入前检查进程状态
|
|
252
|
-
list_processes
|
|
253
|
-
|
|
254
|
-
# 为长时间运行的操作使用超时
|
|
255
|
-
execute_command:
|
|
256
|
-
command: long-running-task
|
|
257
|
-
timeout: 300000 # 5 分钟
|
|
258
|
-
```
|
|
259
|
-
|
|
260
|
-
---
|
|
261
|
-
|
|
262
|
-
## 与 SINAPSE 集成
|
|
263
|
-
|
|
264
|
-
### 工具选择优先级
|
|
265
|
-
|
|
266
|
-
根据 `.claude/rules/mcp-usage.md`:
|
|
267
|
-
|
|
268
|
-
| 任务 | 使用这个 | 不使用 desktop-commander |
|
|
269
|
-
| -------------- | -------------------- | ----------------------- |
|
|
270
|
-
| 读取本地文件 | `Read` 工具 | 较慢 |
|
|
271
|
-
| 写入本地文件 | `Write` / `Edit` 工具 | 较慢 |
|
|
272
|
-
| 运行 shell 命令 | `Bash` 工具 | 除非需要持久会话 |
|
|
273
|
-
| 搜索文件 | `Glob` 工具 | 较慢 |
|
|
274
|
-
| 搜索内容 | `Grep` 工具 | 较慢 |
|
|
275
|
-
|
|
276
|
-
### 何时需要 Desktop Commander
|
|
277
|
-
|
|
278
|
-
1. 用户明确要求持久会话
|
|
279
|
-
2. 任务需要 REPL 执行
|
|
280
|
-
3. 需要读取大文件的尾部
|
|
281
|
-
4. 编辑需要模糊匹配
|
|
282
|
-
5. 带有 stdin/stdout 的交互式进程
|
|
283
|
-
|
|
284
|
-
### 代理职责
|
|
285
|
-
|
|
286
|
-
| 代理 | Desktop Commander 用例 |
|
|
287
|
-
| ----------------- | ------------------------------------- |
|
|
288
|
-
| **@dev** | REPL 会话、调试、实时编码 |
|
|
289
|
-
| **@devops** | SSH 会话、服务器管理、日志分析 |
|
|
290
|
-
| **@data-engineer** | 数据分析 REPL、数据库连接 |
|
|
291
|
-
| **@qa** | 交互式测试、进程监控 |
|
|
292
|
-
|
|
293
|
-
---
|
|
294
|
-
|
|
295
|
-
## 故障排除
|
|
296
|
-
|
|
297
|
-
### 会话未持久化
|
|
298
|
-
|
|
299
|
-
```bash
|
|
300
|
-
# 检查 desktop-commander 是否正在运行
|
|
301
|
-
claude mcp status
|
|
302
|
-
|
|
303
|
-
# 重启 MCP 服务器
|
|
304
|
-
claude mcp restart desktop-commander
|
|
305
|
-
```
|
|
306
|
-
|
|
307
|
-
### 模糊编辑不工作
|
|
308
|
-
|
|
309
|
-
```
|
|
310
|
-
# 确保设置了 fuzzy 标志
|
|
311
|
-
edit_block:
|
|
312
|
-
fuzzy: true
|
|
313
|
-
threshold: 0.8 # 调整相似度阈值
|
|
314
|
-
```
|
|
315
|
-
|
|
316
|
-
### 进程超时
|
|
317
|
-
|
|
318
|
-
```
|
|
319
|
-
# 增加长操作的超时时间
|
|
320
|
-
execute_command:
|
|
321
|
-
timeout: 600000 # 10 分钟
|
|
322
|
-
|
|
323
|
-
# 或使用后台模式
|
|
324
|
-
execute_command:
|
|
325
|
-
background: true
|
|
326
|
-
```
|
|
327
|
-
|
|
328
|
-
### 无法连接到服务器
|
|
329
|
-
|
|
330
|
-
```bash
|
|
331
|
-
# 检查 MCP 配置
|
|
332
|
-
cat ~/.claude.json | grep -A 10 desktop-commander
|
|
333
|
-
|
|
334
|
-
# 验证 npm 包
|
|
335
|
-
npm list -g @anthropic/desktop-commander
|
|
336
|
-
|
|
337
|
-
# 如需要重新安装
|
|
338
|
-
npm install -g @anthropic/desktop-commander@latest
|
|
339
|
-
```
|
|
340
|
-
|
|
341
|
-
---
|
|
342
|
-
|
|
343
|
-
## 相关文档
|
|
344
|
-
|
|
345
|
-
- [Docker Gateway 教程](./docker-gateway-tutorial.md)
|
|
346
|
-
- [MCP 全局设置指南](../mcp-global-setup.md)
|
|
347
|
-
- [Docker MCP 设置](../../docker-mcp-setup.md)
|
|
348
|
-
- [MCP 使用规则](../../../.claude/rules/mcp-usage.md)
|
|
349
|
-
- [代理工具集成](../../architecture/agent-tool-integration-guide.md)
|
|
350
|
-
|
|
351
|
-
---
|
|
352
|
-
|
|
353
|
-
## 总结
|
|
354
|
-
|
|
355
|
-
| 特性 | 原生 Claude Code | Desktop Commander |
|
|
356
|
-
| ------------------- | --------------- | --------------------
|
|
357
|
-
| 速度 | 快 | 较慢(MCP 开销) |
|
|
358
|
-
| 持久会话 | 否 | 是 |
|
|
359
|
-
| 内存中执行 | 否 | 是 |
|
|
360
|
-
| 模糊编辑 | 否 | 是 |
|
|
361
|
-
| 负偏移 | 否 | 是 |
|
|
362
|
-
| 交互式进程 | 限制 | 完全 |
|
|
363
|
-
|
|
364
|
-
**经验法则:** 默认使用原生工具。仅当需要其独特功能时才切换到 Desktop Commander。
|
|
365
|
-
|
|
366
|
-
---
|
|
367
|
-
|
|
368
|
-
_Desktop Commander MCP 指南 v1.0.0 - SINAPSE 框架_
|