soloforge 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +203 -0
- package/dist/adapters/claude_code/claude_md.d.ts +3 -0
- package/dist/adapters/claude_code/claude_md.d.ts.map +1 -0
- package/dist/adapters/claude_code/claude_md.js +79 -0
- package/dist/adapters/claude_code/claude_md.js.map +1 -0
- package/dist/adapters/claude_code/hooks.d.ts +3 -0
- package/dist/adapters/claude_code/hooks.d.ts.map +1 -0
- package/dist/adapters/claude_code/hooks.js +30 -0
- package/dist/adapters/claude_code/hooks.js.map +1 -0
- package/dist/adapters/claude_code/server.d.ts +10 -0
- package/dist/adapters/claude_code/server.d.ts.map +1 -0
- package/dist/adapters/claude_code/server.js +75 -0
- package/dist/adapters/claude_code/server.js.map +1 -0
- package/dist/adapters/claude_code/tools.d.ts +15 -0
- package/dist/adapters/claude_code/tools.d.ts.map +1 -0
- package/dist/adapters/claude_code/tools.js +758 -0
- package/dist/adapters/claude_code/tools.js.map +1 -0
- package/dist/adapters/trae/trae_config.d.ts +2 -0
- package/dist/adapters/trae/trae_config.d.ts.map +1 -0
- package/dist/adapters/trae/trae_config.js +22 -0
- package/dist/adapters/trae/trae_config.js.map +1 -0
- package/dist/adapters/trae/trae_rules.d.ts +3 -0
- package/dist/adapters/trae/trae_rules.d.ts.map +1 -0
- package/dist/adapters/trae/trae_rules.js +85 -0
- package/dist/adapters/trae/trae_rules.js.map +1 -0
- package/dist/bin/soloforge.d.ts +3 -0
- package/dist/bin/soloforge.d.ts.map +1 -0
- package/dist/bin/soloforge.js +353 -0
- package/dist/bin/soloforge.js.map +1 -0
- package/dist/engine/adr_recorder.d.ts +13 -0
- package/dist/engine/adr_recorder.d.ts.map +1 -0
- package/dist/engine/adr_recorder.js +132 -0
- package/dist/engine/adr_recorder.js.map +1 -0
- package/dist/engine/change_coordinator.d.ts +17 -0
- package/dist/engine/change_coordinator.d.ts.map +1 -0
- package/dist/engine/change_coordinator.js +138 -0
- package/dist/engine/change_coordinator.js.map +1 -0
- package/dist/engine/classifier.d.ts +7 -0
- package/dist/engine/classifier.d.ts.map +1 -0
- package/dist/engine/classifier.js +135 -0
- package/dist/engine/classifier.js.map +1 -0
- package/dist/engine/code_reviewer.d.ts +15 -0
- package/dist/engine/code_reviewer.d.ts.map +1 -0
- package/dist/engine/code_reviewer.js +371 -0
- package/dist/engine/code_reviewer.js.map +1 -0
- package/dist/engine/confidence_scorer.d.ts +11 -0
- package/dist/engine/confidence_scorer.d.ts.map +1 -0
- package/dist/engine/confidence_scorer.js +30 -0
- package/dist/engine/confidence_scorer.js.map +1 -0
- package/dist/engine/contract_guard.d.ts +10 -0
- package/dist/engine/contract_guard.d.ts.map +1 -0
- package/dist/engine/contract_guard.js +471 -0
- package/dist/engine/contract_guard.js.map +1 -0
- package/dist/engine/convention_detector.d.ts +7 -0
- package/dist/engine/convention_detector.d.ts.map +1 -0
- package/dist/engine/convention_detector.js +93 -0
- package/dist/engine/convention_detector.js.map +1 -0
- package/dist/engine/debt_reporter.d.ts +4 -0
- package/dist/engine/debt_reporter.d.ts.map +1 -0
- package/dist/engine/debt_reporter.js +67 -0
- package/dist/engine/debt_reporter.js.map +1 -0
- package/dist/engine/debt_tracker.d.ts +20 -0
- package/dist/engine/debt_tracker.d.ts.map +1 -0
- package/dist/engine/debt_tracker.js +152 -0
- package/dist/engine/debt_tracker.js.map +1 -0
- package/dist/engine/debugger.d.ts +3 -0
- package/dist/engine/debugger.d.ts.map +1 -0
- package/dist/engine/debugger.js +291 -0
- package/dist/engine/debugger.js.map +1 -0
- package/dist/engine/delivery.d.ts +15 -0
- package/dist/engine/delivery.d.ts.map +1 -0
- package/dist/engine/delivery.js +182 -0
- package/dist/engine/delivery.js.map +1 -0
- package/dist/engine/dependency_scanner.d.ts +13 -0
- package/dist/engine/dependency_scanner.d.ts.map +1 -0
- package/dist/engine/dependency_scanner.js +275 -0
- package/dist/engine/dependency_scanner.js.map +1 -0
- package/dist/engine/evolver.d.ts +15 -0
- package/dist/engine/evolver.d.ts.map +1 -0
- package/dist/engine/evolver.js +167 -0
- package/dist/engine/evolver.js.map +1 -0
- package/dist/engine/failure_classifier.d.ts +11 -0
- package/dist/engine/failure_classifier.d.ts.map +1 -0
- package/dist/engine/failure_classifier.js +120 -0
- package/dist/engine/failure_classifier.js.map +1 -0
- package/dist/engine/feasibility_checker.d.ts +6 -0
- package/dist/engine/feasibility_checker.d.ts.map +1 -0
- package/dist/engine/feasibility_checker.js +88 -0
- package/dist/engine/feasibility_checker.js.map +1 -0
- package/dist/engine/git_deps.d.ts +37 -0
- package/dist/engine/git_deps.d.ts.map +1 -0
- package/dist/engine/git_deps.js +3 -0
- package/dist/engine/git_deps.js.map +1 -0
- package/dist/engine/impact_analyzer.d.ts +10 -0
- package/dist/engine/impact_analyzer.d.ts.map +1 -0
- package/dist/engine/impact_analyzer.js +171 -0
- package/dist/engine/impact_analyzer.js.map +1 -0
- package/dist/engine/intent_expander.d.ts +17 -0
- package/dist/engine/intent_expander.d.ts.map +1 -0
- package/dist/engine/intent_expander.js +447 -0
- package/dist/engine/intent_expander.js.map +1 -0
- package/dist/engine/knowledge_manager.d.ts +76 -0
- package/dist/engine/knowledge_manager.d.ts.map +1 -0
- package/dist/engine/knowledge_manager.js +781 -0
- package/dist/engine/knowledge_manager.js.map +1 -0
- package/dist/engine/migration_guard.d.ts +3 -0
- package/dist/engine/migration_guard.d.ts.map +1 -0
- package/dist/engine/migration_guard.js +235 -0
- package/dist/engine/migration_guard.js.map +1 -0
- package/dist/engine/observability.d.ts +33 -0
- package/dist/engine/observability.d.ts.map +1 -0
- package/dist/engine/observability.js +312 -0
- package/dist/engine/observability.js.map +1 -0
- package/dist/engine/onboarding.d.ts +27 -0
- package/dist/engine/onboarding.d.ts.map +1 -0
- package/dist/engine/onboarding.js +362 -0
- package/dist/engine/onboarding.js.map +1 -0
- package/dist/engine/prompt_experiment.d.ts +18 -0
- package/dist/engine/prompt_experiment.d.ts.map +1 -0
- package/dist/engine/prompt_experiment.js +127 -0
- package/dist/engine/prompt_experiment.js.map +1 -0
- package/dist/engine/resilience.d.ts +20 -0
- package/dist/engine/resilience.d.ts.map +1 -0
- package/dist/engine/resilience.js +210 -0
- package/dist/engine/resilience.js.map +1 -0
- package/dist/engine/scaffolder.d.ts +9 -0
- package/dist/engine/scaffolder.d.ts.map +1 -0
- package/dist/engine/scaffolder.js +222 -0
- package/dist/engine/scaffolder.js.map +1 -0
- package/dist/engine/scope_controller.d.ts +3 -0
- package/dist/engine/scope_controller.d.ts.map +1 -0
- package/dist/engine/scope_controller.js +121 -0
- package/dist/engine/scope_controller.js.map +1 -0
- package/dist/engine/task_context.d.ts +34 -0
- package/dist/engine/task_context.d.ts.map +1 -0
- package/dist/engine/task_context.js +321 -0
- package/dist/engine/task_context.js.map +1 -0
- package/dist/engine/task_planner.d.ts +11 -0
- package/dist/engine/task_planner.d.ts.map +1 -0
- package/dist/engine/task_planner.js +267 -0
- package/dist/engine/task_planner.js.map +1 -0
- package/dist/engine/team_awareness.d.ts +12 -0
- package/dist/engine/team_awareness.d.ts.map +1 -0
- package/dist/engine/team_awareness.js +121 -0
- package/dist/engine/team_awareness.js.map +1 -0
- package/dist/engine/test_generator.d.ts +9 -0
- package/dist/engine/test_generator.d.ts.map +1 -0
- package/dist/engine/test_generator.js +241 -0
- package/dist/engine/test_generator.js.map +1 -0
- package/dist/engine/test_quality.d.ts +9 -0
- package/dist/engine/test_quality.d.ts.map +1 -0
- package/dist/engine/test_quality.js +256 -0
- package/dist/engine/test_quality.js.map +1 -0
- package/dist/engine/traceability.d.ts +3 -0
- package/dist/engine/traceability.d.ts.map +1 -0
- package/dist/engine/traceability.js +137 -0
- package/dist/engine/traceability.js.map +1 -0
- package/dist/engine/verifier.d.ts +3 -0
- package/dist/engine/verifier.d.ts.map +1 -0
- package/dist/engine/verifier.js +202 -0
- package/dist/engine/verifier.js.map +1 -0
- package/dist/engine/workspace_manager.d.ts +29 -0
- package/dist/engine/workspace_manager.d.ts.map +1 -0
- package/dist/engine/workspace_manager.js +77 -0
- package/dist/engine/workspace_manager.js.map +1 -0
- package/dist/git/operations.d.ts +57 -0
- package/dist/git/operations.d.ts.map +1 -0
- package/dist/git/operations.js +215 -0
- package/dist/git/operations.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -0
- package/dist/knowledge/conflict_detector.d.ts +6 -0
- package/dist/knowledge/conflict_detector.d.ts.map +1 -0
- package/dist/knowledge/conflict_detector.js +19 -0
- package/dist/knowledge/conflict_detector.js.map +1 -0
- package/dist/knowledge/health_checker.d.ts +10 -0
- package/dist/knowledge/health_checker.d.ts.map +1 -0
- package/dist/knowledge/health_checker.js +61 -0
- package/dist/knowledge/health_checker.js.map +1 -0
- package/dist/knowledge/index_manager.d.ts +35 -0
- package/dist/knowledge/index_manager.d.ts.map +1 -0
- package/dist/knowledge/index_manager.js +209 -0
- package/dist/knowledge/index_manager.js.map +1 -0
- package/dist/knowledge/loader.d.ts +13 -0
- package/dist/knowledge/loader.d.ts.map +1 -0
- package/dist/knowledge/loader.js +161 -0
- package/dist/knowledge/loader.js.map +1 -0
- package/dist/knowledge/writer.d.ts +15 -0
- package/dist/knowledge/writer.d.ts.map +1 -0
- package/dist/knowledge/writer.js +98 -0
- package/dist/knowledge/writer.js.map +1 -0
- package/dist/types.d.ts +724 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +3 -0
- package/dist/types.js.map +1 -0
- package/package.json +54 -0
- package/templates/config.yaml +53 -0
- package/templates/knowledge/acceptance_templates/Bug/345/210/206/346/236/220/346/250/241/347/211/210.md +45 -0
- package/templates/knowledge/acceptance_templates/POC/347/273/223/350/256/272/346/250/241/347/211/210.md +39 -0
- package/templates/knowledge/acceptance_templates//345/211/215/347/253/257/351/241/265/351/235/242/351/252/214/346/224/266/346/270/205/345/215/225.md +27 -0
- package/templates/knowledge/acceptance_templates//345/216/237/345/236/213/350/257/264/346/230/216/346/250/241/347/211/210.md +180 -0
- package/templates/knowledge/acceptance_templates//345/220/216/347/253/257API/351/252/214/346/224/266/346/270/205/345/215/225.md +26 -0
- package/templates/knowledge/acceptance_templates//345/256/211/345/205/250/345/256/241/350/256/241/346/250/241/347/211/210.md +51 -0
- package/templates/knowledge/acceptance_templates//346/200/247/350/203/275/345/210/206/346/236/220/346/250/241/347/211/210.md +45 -0
- package/templates/knowledge/acceptance_templates//346/216/245/345/217/243/345/257/271/346/216/245/346/226/271/346/241/210/346/250/241/347/211/210.md +45 -0
- package/templates/knowledge/acceptance_templates//346/216/245/345/217/243/350/256/276/350/256/241/346/250/241/347/211/210.md +58 -0
- package/templates/knowledge/acceptance_templates//346/225/205/351/232/234/345/244/215/347/233/230/346/250/241/347/211/210.md +53 -0
- package/templates/knowledge/acceptance_templates//346/225/260/346/215/256/345/272/223/345/217/230/346/233/264/346/226/271/346/241/210/346/250/241/347/211/210.md +45 -0
- package/templates/knowledge/acceptance_templates//346/225/260/346/215/256/345/272/223/345/217/230/346/233/264/351/252/214/346/224/266/346/270/205/345/215/225.md +24 -0
- package/templates/knowledge/acceptance_templates//346/236/266/346/236/204/350/256/276/350/256/241/346/250/241/347/211/210.md +42 -0
- package/templates/knowledge/acceptance_templates//346/265/213/350/257/225/350/256/241/345/210/222/346/250/241/347/211/210.md +39 -0
- package/templates/knowledge/acceptance_templates//350/257/246/347/273/206/350/256/276/350/256/241/346/250/241/347/211/210.md +40 -0
- package/templates/knowledge/acceptance_templates//350/277/201/347/247/273/350/257/204/344/274/260/346/250/241/347/211/210.md +42 -0
- package/templates/knowledge/acceptance_templates//351/200/232/347/224/250/350/264/250/351/207/217/351/252/214/346/224/266/346/270/205/345/215/225.md +26 -0
- package/templates/knowledge/acceptance_templates//351/207/215/346/236/204/346/226/271/346/241/210/346/250/241/347/211/210.md +47 -0
- package/templates/knowledge/acceptance_templates//351/234/200/346/261/202/345/210/206/346/236/220/346/250/241/347/211/210.md +44 -0
- package/templates/knowledge/domain//345/244/232/347/247/237/346/210/267.md +35 -0
- package/templates/knowledge/domain//345/256/241/350/256/241/346/227/245/345/277/227.md +34 -0
- package/templates/knowledge/domain//345/257/274/345/205/245/345/257/274/345/207/272/350/247/204/345/210/231.md +37 -0
- package/templates/knowledge/domain//345/267/245/344/275/234/346/265/201/345/274/225/346/223/216.md +37 -0
- package/templates/knowledge/domain//346/212/245/350/241/250/347/273/237/350/256/241.md +36 -0
- package/templates/knowledge/domain//346/224/257/344/273/230/350/247/204/345/210/231.md +38 -0
- package/templates/knowledge/domain//346/225/260/346/215/256/346/235/203/351/231/220.md +34 -0
- package/templates/knowledge/domain//351/200/232/347/224/250/346/234/272/346/242/260/346/235/241/346/254/276.md +24 -0
- package/templates/knowledge/domain//351/200/232/347/237/245/350/247/204/345/210/231.md +36 -0
- package/templates/knowledge/procedures/Figma/344/272/244/344/273/230/346/265/201/347/250/213.md +35 -0
- package/templates/knowledge/procedures/Schema/345/217/230/346/233/264/346/265/201/346/260/264/347/272/277.md +28 -0
- package/templates/knowledge/procedures//344/273/243/347/240/201/351/227/250/347/246/201/346/265/201/347/250/213.md +33 -0
- package/templates/knowledge/procedures//344/273/273/345/212/241/346/213/206/350/247/243/346/265/201/347/250/213.md +31 -0
- package/templates/knowledge/procedures//345/212/237/350/203/275/345/274/200/345/217/221/346/265/201/347/250/213.md +37 -0
- package/templates/knowledge/procedures//345/256/211/345/205/250/345/212/240/345/233/272/346/265/201/346/260/264/347/272/277.md +43 -0
- package/templates/knowledge/procedures//346/200/247/350/203/275/346/265/201/346/260/264/347/272/277.md +27 -0
- package/templates/knowledge/procedures//346/216/245/345/217/243/351/233/206/346/210/220/346/265/201/346/260/264/347/272/277.md +46 -0
- package/templates/knowledge/procedures//346/225/260/346/215/256/345/272/223/350/277/201/347/247/273/346/265/201/347/250/213.md +38 -0
- package/templates/knowledge/procedures//346/236/266/346/236/204/350/256/276/350/256/241/346/265/201/347/250/213.md +30 -0
- package/templates/knowledge/procedures//346/246/202/345/277/265/351/252/214/350/257/201/346/265/201/346/260/264/347/272/277.md +24 -0
- package/templates/knowledge/procedures//347/237/245/350/257/206/347/273/264/346/212/244/346/265/201/346/260/264/347/272/277.md +40 -0
- package/templates/knowledge/procedures//347/264/247/346/200/245/344/277/256/345/244/215/346/265/201/346/260/264/347/272/277.md +45 -0
- package/templates/knowledge/procedures//347/264/247/346/200/245/344/277/256/345/244/215/346/265/201/347/250/213.md +33 -0
- package/templates/knowledge/procedures//347/274/272/351/231/267/344/277/256/345/244/215/346/265/201/346/260/264/347/272/277.md +28 -0
- package/templates/knowledge/procedures//350/257/246/347/273/206/350/256/276/350/256/241/346/265/201/347/250/213.md +29 -0
- package/templates/knowledge/procedures//350/260/203/350/257/225/346/216/222/346/237/245/346/265/201/347/250/213.md +43 -0
- package/templates/knowledge/procedures//350/277/201/347/247/273/346/265/201/346/260/264/347/272/277.md +27 -0
- package/templates/knowledge/procedures//351/203/250/347/275/262/345/217/221/345/270/203/346/265/201/347/250/213.md +45 -0
- package/templates/knowledge/procedures//351/207/215/346/236/204/346/265/201/346/260/264/347/272/277.md +27 -0
- package/templates/knowledge/procedures//351/233/206/346/210/220/351/252/214/350/257/201/346/265/201/347/250/213.md +36 -0
- package/templates/knowledge/procedures//351/234/200/346/261/202/346/276/204/346/270/205/346/265/201/347/250/213.md +32 -0
- package/templates/knowledge/procedures//351/252/214/346/224/266/346/265/213/350/257/225/350/247/204/345/210/222.md +40 -0
- package/templates/knowledge/procedures//351/252/214/350/257/201/350/256/241/345/210/222/346/265/201/347/250/213.md +32 -0
- package/templates/knowledge/product_profiles/b2b-internal.yaml +35 -0
- package/templates/knowledge/product_profiles/b2c.yaml +37 -0
- package/templates/knowledge/product_profiles/saas.yaml +35 -0
- package/templates/knowledge/review_rules//345/256/211/345/205/250/345/256/241/346/237/245/350/247/204/345/210/231.md +79 -0
- package/templates/knowledge/review_rules//345/271/266/345/217/221/345/256/241/346/237/245/350/247/204/345/210/231.md +67 -0
- package/templates/knowledge/review_rules//346/200/247/350/203/275/345/256/241/346/237/245/350/247/204/345/210/231.md +61 -0
- package/templates/knowledge/review_rules//346/216/245/345/217/243/345/245/221/347/272/246/345/256/241/346/237/245/350/247/204/345/210/231.md +67 -0
- package/templates/knowledge/review_rules//346/236/266/346/236/204/345/256/241/346/237/245/350/247/204/345/210/231.md +62 -0
- package/templates/knowledge/review_rules//350/264/250/351/207/217/345/256/241/346/237/245/350/247/204/345/210/231.md +80 -0
- package/templates/patterns/API/350/256/276/350/256/241/350/247/204/350/214/203.md +31 -0
- package/templates/patterns/Docker/351/203/250/347/275/262/350/247/204/350/214/203.md +31 -0
- package/templates/patterns/Git/346/223/215/344/275/234/350/247/204/350/214/203.md +31 -0
- package/templates/patterns/N/345/212/2401/346/237/245/350/257/242/350/247/204/350/214/203.md +32 -0
- package/templates/patterns/React/345/210/227/350/241/250/350/241/250/346/240/274/350/247/204/350/214/203.md +29 -0
- package/templates/patterns/React/346/216/245/345/217/243/351/233/206/346/210/220/350/247/204/350/214/203.md +28 -0
- package/templates/patterns/React/347/212/266/346/200/201/347/256/241/347/220/206/350/247/204/350/214/203.md +28 -0
- package/templates/patterns/React/347/273/204/344/273/266/350/247/204/350/214/203.md +28 -0
- package/templates/patterns/React/350/241/250/345/215/225/350/247/204/350/214/203.md +29 -0
- package/templates/patterns/React/350/267/257/347/224/261/350/247/204/350/214/203.md +29 -0
- package/templates/patterns/Schema/345/205/274/345/256/271/350/247/204/350/214/203.md +28 -0
- package/templates/patterns/Vue/347/212/266/346/200/201/347/256/241/347/220/206/350/247/204/350/214/203.md +28 -0
- package/templates/patterns/Vue/347/273/204/344/273/266/350/247/204/350/214/203.md +28 -0
- package/templates/patterns/Vue/350/267/257/347/224/261/350/247/204/350/214/203.md +29 -0
- package/templates/patterns//344/272/213/344/273/266/351/251/261/345/212/250/350/247/204/350/214/203.md +32 -0
- package/templates/patterns//344/272/213/345/212/241/346/250/241/345/274/217/350/247/204/350/214/203.md +28 -0
- package/templates/patterns//344/274/230/351/233/205/345/201/234/346/234/272/350/247/204/350/214/203.md +30 -0
- package/templates/patterns//345/205/250/346/240/210/346/265/201/347/250/213/344/277/256/345/244/215.md +31 -0
- package/templates/patterns//345/210/206/351/241/265/346/237/245/350/257/242/350/247/204/350/214/203.md +27 -0
- package/templates/patterns//345/211/215/347/253/257/346/200/247/350/203/275/350/247/204/350/214/203.md +33 -0
- package/templates/patterns//345/221/275/345/220/215/350/247/204/350/214/203.md +32 -0
- package/templates/patterns//345/233/275/351/231/205/345/214/226/350/247/204/350/214/203.md +31 -0
- package/templates/patterns//345/242/236/345/210/240/346/224/271/346/237/245/350/247/204/350/214/203.md +31 -0
- package/templates/patterns//345/244/226/351/203/250/344/276/235/350/265/226/350/247/204/350/214/203.md +29 -0
- package/templates/patterns//345/245/221/347/272/246/345/205/274/345/256/271/350/247/204/350/214/203.md +28 -0
- package/templates/patterns//345/256/232/346/227/266/344/273/273/345/212/241/350/247/204/350/214/203.md +25 -0
- package/templates/patterns//345/256/236/346/227/266/346/216/250/351/200/201/350/247/204/350/214/203.md +33 -0
- package/templates/patterns//345/267/245/347/250/213/347/272/252/345/276/213.md +39 -0
- package/templates/patterns//345/271/266/345/217/221/346/216/247/345/210/266/350/247/204/350/214/203.md +34 -0
- package/templates/patterns//345/274/202/346/255/245/345/257/274/345/207/272/350/247/204/350/214/203.md +27 -0
- package/templates/patterns//346/216/245/345/217/243/345/245/221/347/272/246/350/247/204/350/214/203.md +30 -0
- package/templates/patterns//346/220/234/347/264/242/346/250/241/345/274/217/350/247/204/350/214/203.md +32 -0
- package/templates/patterns//346/225/260/346/215/256/351/232/220/347/247/201/350/247/204/350/214/203.md +31 -0
- package/templates/patterns//346/226/207/344/273/266/344/270/212/344/274/240/350/247/204/350/214/203.md +31 -0
- package/templates/patterns//346/227/240/351/232/234/347/242/215/350/247/204/350/214/203.md +33 -0
- package/templates/patterns//346/227/245/345/277/227/350/247/204/350/214/203.md +31 -0
- package/templates/patterns//346/235/203/351/231/220/350/256/244/350/257/201/350/247/204/350/214/203.md +35 -0
- package/templates/patterns//346/236/266/346/236/204/347/272/242/347/272/277.md +30 -0
- package/templates/patterns//346/265/213/350/257/225/350/264/250/351/207/217/350/247/204/350/214/203.md +30 -0
- package/templates/patterns//347/206/224/346/226/255/351/231/215/347/272/247/350/247/204/350/214/203.md +33 -0
- package/templates/patterns//347/212/266/346/200/201/346/265/201/350/275/254/350/247/204/350/214/203.md +29 -0
- package/templates/patterns//347/272/246/346/235/237/345/256/236/347/216/260/350/247/204/350/214/203.md +32 -0
- package/templates/patterns//347/274/223/345/255/230/347/255/226/347/225/245/350/247/204/350/214/203.md +31 -0
- package/templates/patterns//347/274/226/347/240/201/350/264/250/351/207/217/350/247/204/350/214/203.md +31 -0
- package/templates/patterns//347/274/272/351/231/267/347/256/241/347/220/206/350/247/204/350/214/203.md +30 -0
- package/templates/patterns//350/260/203/350/257/225/346/226/271/346/263/225/350/256/272.md +28 -0
- package/templates/patterns//350/276/223/345/205/245/346/240/241/351/252/214/350/247/204/350/214/203.md +30 -0
- package/templates/patterns//351/224/231/350/257/257/345/244/204/347/220/206/350/247/204/350/214/203.md +32 -0
- package/templates/patterns//351/224/231/350/257/257/350/276/271/347/225/214/350/247/204/350/214/203.md +24 -0
- package/templates/patterns//351/242/206/345/237/237/351/251/261/345/212/250/350/256/276/350/256/241/350/247/204/350/214/203.md +29 -0
- package/templates/scaffolds/react/Form.tsx.hbs +16 -0
- package/templates/scaffolds/react/List.tsx.hbs +28 -0
- package/templates/scaffolds/react/Page.test.tsx.hbs +10 -0
- package/templates/scaffolds/react/Page.tsx.hbs +14 -0
- package/templates/scaffolds/react/README.md.hbs +44 -0
- package/templates/scaffolds/react/service.ts.hbs +37 -0
- package/templates/scaffolds/react/types.ts.hbs +6 -0
- package/templates/scaffolds/react/use{{ModuleName}}.ts.hbs +88 -0
- package/templates/scaffolds/spring-boot/ApiContract.md.hbs +110 -0
- package/templates/scaffolds/spring-boot/Controller.java.hbs +43 -0
- package/templates/scaffolds/spring-boot/DTO.java.hbs +9 -0
- package/templates/scaffolds/spring-boot/Entity.java.hbs +12 -0
- package/templates/scaffolds/spring-boot/ErrorCode.java.hbs +28 -0
- package/templates/scaffolds/spring-boot/Mapper.java.hbs +9 -0
- package/templates/scaffolds/spring-boot/PageResponse.java.hbs +29 -0
- package/templates/scaffolds/spring-boot/Service.java.hbs +12 -0
- package/templates/scaffolds/spring-boot/ServiceImpl.java.hbs +48 -0
- package/templates/scaffolds/spring-boot/ServiceTest.java.hbs +22 -0
|
@@ -0,0 +1,758 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { classify } from "../../engine/classifier.js";
|
|
3
|
+
import { expand } from "../../engine/intent_expander.js";
|
|
4
|
+
import { generateVerifyCommands } from "../../engine/verifier.js";
|
|
5
|
+
import { evolve } from "../../engine/evolver.js";
|
|
6
|
+
import { planTask } from "../../engine/task_planner.js";
|
|
7
|
+
import { analyzeImpact } from "../../engine/impact_analyzer.js";
|
|
8
|
+
import { reviewCode } from "../../engine/code_reviewer.js";
|
|
9
|
+
import { DebtTracker } from "../../engine/debt_tracker.js";
|
|
10
|
+
import { generateScaffold } from "../../engine/scaffolder.js";
|
|
11
|
+
import { deliver } from "../../engine/delivery.js";
|
|
12
|
+
import { checkConflicts } from "../../engine/change_coordinator.js";
|
|
13
|
+
import { getTeamStatus } from "../../engine/team_awareness.js";
|
|
14
|
+
import { checkContractChanges } from "../../engine/contract_guard.js";
|
|
15
|
+
import { onboard } from "../../engine/onboarding.js";
|
|
16
|
+
import { realGitOps } from "../../engine/git_deps.js";
|
|
17
|
+
import { auditKnowledge, addKnowledge, updateKnowledge } from "../../engine/knowledge_manager.js";
|
|
18
|
+
import { checkFeasibility } from "../../engine/feasibility_checker.js";
|
|
19
|
+
import { debugError } from "../../engine/debugger.js";
|
|
20
|
+
import { generateReport } from "../../engine/observability.js";
|
|
21
|
+
import { analyzeMigration } from "../../engine/migration_guard.js";
|
|
22
|
+
import { generateTestGuide } from "../../engine/test_generator.js";
|
|
23
|
+
import { analyzeTestQuality } from "../../engine/test_quality.js";
|
|
24
|
+
import { scanDependencies } from "../../engine/dependency_scanner.js";
|
|
25
|
+
import { generateDebtReport } from "../../engine/debt_reporter.js";
|
|
26
|
+
// ── Zod Schema 定义 ──
|
|
27
|
+
const ClassifySchema = {
|
|
28
|
+
intent: z.string().describe("开发者意图描述"),
|
|
29
|
+
project_path: z.string().optional().describe("项目路径(默认当前目录)"),
|
|
30
|
+
};
|
|
31
|
+
const ExpandSchema = {
|
|
32
|
+
task_id: z.string().describe("sf_classify 返回的任务 ID"),
|
|
33
|
+
clarification_answers: z.array(z.string()).optional().describe("对澄清问题的回答"),
|
|
34
|
+
};
|
|
35
|
+
const VerifySchema = {
|
|
36
|
+
task_id: z.string().describe("任务 ID"),
|
|
37
|
+
changed_files: z.array(z.string()).describe("本次修改的文件列表"),
|
|
38
|
+
};
|
|
39
|
+
const LearnSchema = {
|
|
40
|
+
task_id: z.string().describe("任务 ID"),
|
|
41
|
+
result: z.enum(["success", "failure"]).describe("执行结果"),
|
|
42
|
+
failure_type: z.enum(["deterministic", "fixable", "scope_insufficient"]).optional().describe("失败类型"),
|
|
43
|
+
verify_output: z.object({
|
|
44
|
+
build_passed: z.boolean(),
|
|
45
|
+
tests_passed: z.boolean(),
|
|
46
|
+
acceptance_results: z.record(z.string(), z.boolean()).optional(),
|
|
47
|
+
}).optional().describe("验证输出"),
|
|
48
|
+
};
|
|
49
|
+
const StatusSchema = {
|
|
50
|
+
task_id: z.string().optional().describe("任务 ID(不传则查当前任务)"),
|
|
51
|
+
action: z.enum(["current", "recent", "resume", "cancel"]).optional().describe("操作类型"),
|
|
52
|
+
};
|
|
53
|
+
const PlanSchema = {
|
|
54
|
+
task_id: z.string().describe("sf_classify 返回的任务 ID"),
|
|
55
|
+
};
|
|
56
|
+
const AnalyzeSchema = {
|
|
57
|
+
task_id: z.string().describe("sf_expand 返回的任务 ID(需要先执行 expand)"),
|
|
58
|
+
};
|
|
59
|
+
const ReviewSchema = {
|
|
60
|
+
task_id: z.string().describe("任务 ID"),
|
|
61
|
+
changed_files: z.array(z.string()).describe("本次修改的文件列表"),
|
|
62
|
+
file_contents: z.record(z.string(), z.string()).optional().describe("变更文件的当前内容(key=文件路径,value=文件内容),不传则自动读取"),
|
|
63
|
+
};
|
|
64
|
+
const ScaffoldSchema = {
|
|
65
|
+
task_id: z.string().describe("sf_classify 返回的任务 ID(task_type 应为 scaffold)"),
|
|
66
|
+
};
|
|
67
|
+
const DeliverSchema = {
|
|
68
|
+
task_id: z.string().describe("任务 ID"),
|
|
69
|
+
changed_files: z.array(z.string()).optional().describe("变更文件列表(不传则使用任务记录中的文件)"),
|
|
70
|
+
skip_push: z.boolean().optional().describe("跳过推送"),
|
|
71
|
+
skip_pr: z.boolean().optional().describe("跳过 PR 创建"),
|
|
72
|
+
};
|
|
73
|
+
const CoordCheckSchema = {
|
|
74
|
+
task_id: z.string().optional().describe("任务 ID(用于获取变更文件列表)"),
|
|
75
|
+
branch: z.string().optional().describe("指定分支(不传则使用当前分支)"),
|
|
76
|
+
};
|
|
77
|
+
const TeamStatusSchema = {
|
|
78
|
+
since: z.string().optional().describe("起始日期(ISO 格式,默认 7 天前)"),
|
|
79
|
+
include_knowledge: z.boolean().optional().describe("包含知识库更新信息"),
|
|
80
|
+
};
|
|
81
|
+
const ContractCheckSchema = {
|
|
82
|
+
task_id: z.string().describe("任务 ID"),
|
|
83
|
+
changed_files: z.array(z.string()).optional().describe("变更文件列表(不传则从任务记录获取)"),
|
|
84
|
+
};
|
|
85
|
+
const OnboardSchema = {
|
|
86
|
+
step: z.enum(["project_overview", "code_tour", "knowledge_review", "first_task"]).optional().describe("当前引导步骤"),
|
|
87
|
+
reset: z.boolean().optional().describe("重置引导会话"),
|
|
88
|
+
};
|
|
89
|
+
const FeasibilityCheckSchema = {
|
|
90
|
+
task_id: z.string().describe("任务 ID(需要已完成 classify)"),
|
|
91
|
+
};
|
|
92
|
+
const DebugSchema = {
|
|
93
|
+
error_output: z.string().describe("错误输出文本"),
|
|
94
|
+
task_id: z.string().optional().describe("关联任务 ID"),
|
|
95
|
+
};
|
|
96
|
+
const ObservabilitySchema = {
|
|
97
|
+
period_days: z.number().optional().describe("报告周期天数(默认 30)"),
|
|
98
|
+
};
|
|
99
|
+
const MigrationCheckSchema = {
|
|
100
|
+
content: z.string().describe("迁移文件内容(SQL/DDL)"),
|
|
101
|
+
filename: z.string().describe("文件名(如 V001__create_users.sql)"),
|
|
102
|
+
};
|
|
103
|
+
const TestGuideSchema = {
|
|
104
|
+
changed_files: z.array(z.string()).describe("变更文件列表"),
|
|
105
|
+
};
|
|
106
|
+
const TestQualitySchema = {
|
|
107
|
+
content: z.string().describe("测试文件内容"),
|
|
108
|
+
filename: z.string().describe("测试文件名"),
|
|
109
|
+
};
|
|
110
|
+
const DependencyScanSchema = {
|
|
111
|
+
content: z.string().describe("依赖声明文件内容(package.json / pom.xml / build.gradle)"),
|
|
112
|
+
filename: z.string().describe("文件名"),
|
|
113
|
+
};
|
|
114
|
+
// ── 工具注册 ──
|
|
115
|
+
export function registerTools(server, deps, options) {
|
|
116
|
+
const { config, knowledgeIndex, taskContext } = deps;
|
|
117
|
+
const projectPath = config._projectPath || process.cwd();
|
|
118
|
+
// 统一错误处理包装器
|
|
119
|
+
function registerSafeTool(name, desc, schema, handler) {
|
|
120
|
+
server.tool(name, desc, schema, async (args) => {
|
|
121
|
+
try {
|
|
122
|
+
return await handler(args);
|
|
123
|
+
}
|
|
124
|
+
catch (err) {
|
|
125
|
+
return {
|
|
126
|
+
content: [{ type: "text", text: JSON.stringify({ error: err instanceof Error ? err.message : String(err) }) }],
|
|
127
|
+
isError: true,
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
// ── sf_classify ──
|
|
133
|
+
registerSafeTool("sf_classify", "分析开发者意图,返回任务类型、风险、复杂度和执行策略", ClassifySchema, async (args) => {
|
|
134
|
+
// 检查是否存在进行中的任务
|
|
135
|
+
const existing = await taskContext.getCurrentTask();
|
|
136
|
+
if (existing && !["done", "failed"].includes(existing.status)) {
|
|
137
|
+
return {
|
|
138
|
+
content: [{
|
|
139
|
+
type: "text",
|
|
140
|
+
text: JSON.stringify({
|
|
141
|
+
warning: "存在未完成的任务",
|
|
142
|
+
existing_task_id: existing.task_id,
|
|
143
|
+
existing_status: existing.status,
|
|
144
|
+
existing_intent: existing.intent,
|
|
145
|
+
hint: "调用 sf_status action=cancel 取消旧任务,或继续完成它",
|
|
146
|
+
}),
|
|
147
|
+
}],
|
|
148
|
+
isError: true,
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
// 创建任务上下文
|
|
152
|
+
const ctx = await taskContext.create(args.intent, config.product_profile);
|
|
153
|
+
const input = { intent: args.intent, project_path: projectPath };
|
|
154
|
+
const classification = classify(input);
|
|
155
|
+
// 存储分类结果
|
|
156
|
+
await taskContext.setClassification(ctx.task_id, classification);
|
|
157
|
+
// 转换到膨胀阶段
|
|
158
|
+
await taskContext.updateStatus(ctx.task_id, "expanding");
|
|
159
|
+
return {
|
|
160
|
+
content: [{
|
|
161
|
+
type: "text",
|
|
162
|
+
text: JSON.stringify({
|
|
163
|
+
task_id: ctx.task_id,
|
|
164
|
+
...classification,
|
|
165
|
+
}, null, 2),
|
|
166
|
+
}],
|
|
167
|
+
};
|
|
168
|
+
});
|
|
169
|
+
// ── sf_expand ──
|
|
170
|
+
registerSafeTool("sf_expand", "将意图膨胀为结构化 prompt,包含 scope、验收标准和知识匹配。当存在计划时自动注入当前阶段上下文和输出模板", ExpandSchema, async (args) => {
|
|
171
|
+
const ctx = await taskContext.load(args.task_id);
|
|
172
|
+
if (!ctx || !ctx.classification) {
|
|
173
|
+
return {
|
|
174
|
+
content: [{ type: "text", text: JSON.stringify({ error: "任务不存在或尚未分类,请先调用 sf_classify" }) }],
|
|
175
|
+
isError: true,
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
// 构建计划上下文(如果存在计划)
|
|
179
|
+
let planContext;
|
|
180
|
+
if (ctx.planning && ctx.planning.sub_tasks.length > 0 && ctx.planning.current_step_index < ctx.planning.sub_tasks.length) {
|
|
181
|
+
const currentStep = ctx.planning.sub_tasks[ctx.planning.current_step_index];
|
|
182
|
+
const previousOutputs = {};
|
|
183
|
+
// 读取前序步骤的产出文件(P3: 产物系统)
|
|
184
|
+
for (let i = 0; i < ctx.planning.current_step_index; i++) {
|
|
185
|
+
const step = ctx.planning.sub_tasks[i];
|
|
186
|
+
if (step.output_path) {
|
|
187
|
+
try {
|
|
188
|
+
const fs = await import("node:fs/promises");
|
|
189
|
+
const content = await fs.readFile(step.output_path, "utf-8");
|
|
190
|
+
previousOutputs[step.title] = content;
|
|
191
|
+
}
|
|
192
|
+
catch {
|
|
193
|
+
// 文件不存在则跳过
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
planContext = { current_step: currentStep, previous_outputs: previousOutputs };
|
|
198
|
+
}
|
|
199
|
+
const expansion = await expand({
|
|
200
|
+
intent: ctx.intent,
|
|
201
|
+
classification: ctx.classification,
|
|
202
|
+
projectPath,
|
|
203
|
+
config,
|
|
204
|
+
knowledgeIndex,
|
|
205
|
+
clarificationAnswers: args.clarification_answers,
|
|
206
|
+
plan_context: planContext,
|
|
207
|
+
});
|
|
208
|
+
expansion.task_id = args.task_id;
|
|
209
|
+
// 存储膨胀结果
|
|
210
|
+
await taskContext.setExpansion(args.task_id, expansion);
|
|
211
|
+
// 转换到执行阶段
|
|
212
|
+
await taskContext.updateStatus(args.task_id, "executing");
|
|
213
|
+
return {
|
|
214
|
+
content: [{
|
|
215
|
+
type: "text",
|
|
216
|
+
text: JSON.stringify(expansion, null, 2),
|
|
217
|
+
}],
|
|
218
|
+
};
|
|
219
|
+
});
|
|
220
|
+
// ── sf_verify ──
|
|
221
|
+
registerSafeTool("sf_verify", "根据变更文件生成验证命令(构建、测试、验收检查),由 Claude Code Bash 执行", VerifySchema, async (args) => {
|
|
222
|
+
const ctx = await taskContext.load(args.task_id);
|
|
223
|
+
if (!ctx) {
|
|
224
|
+
return {
|
|
225
|
+
content: [{ type: "text", text: JSON.stringify({ error: "任务不存在" }) }],
|
|
226
|
+
isError: true,
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
// 转换到验证阶段
|
|
230
|
+
await taskContext.updateStatus(args.task_id, "verifying");
|
|
231
|
+
const acceptanceItems = ctx.expansion
|
|
232
|
+
? [...ctx.expansion.acceptance.automated, ...ctx.expansion.acceptance.manual]
|
|
233
|
+
: [];
|
|
234
|
+
const verifyResult = generateVerifyCommands(config, args.changed_files, acceptanceItems);
|
|
235
|
+
verifyResult.task_id = args.task_id;
|
|
236
|
+
// 记录变更文件
|
|
237
|
+
await taskContext.setExecution(args.task_id, args.changed_files);
|
|
238
|
+
// 存储验证结果
|
|
239
|
+
await taskContext.setVerification(args.task_id, verifyResult);
|
|
240
|
+
return {
|
|
241
|
+
content: [{
|
|
242
|
+
type: "text",
|
|
243
|
+
text: JSON.stringify(verifyResult, null, 2),
|
|
244
|
+
}],
|
|
245
|
+
};
|
|
246
|
+
});
|
|
247
|
+
// ── sf_learn ──
|
|
248
|
+
registerSafeTool("sf_learn", "从任务执行结果中提取知识,低置信度暂存,高置信度直接入库", LearnSchema, async (args) => {
|
|
249
|
+
const ctx = await taskContext.load(args.task_id);
|
|
250
|
+
if (!ctx) {
|
|
251
|
+
return {
|
|
252
|
+
content: [{ type: "text", text: JSON.stringify({ error: "任务不存在" }) }],
|
|
253
|
+
isError: true,
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
// 如适用,记录失败
|
|
257
|
+
if (args.result === "failure" && args.failure_type) {
|
|
258
|
+
await taskContext.setExecution(args.task_id, [], {
|
|
259
|
+
attempt: (ctx.execution?.attempt_count ?? 0) + 1,
|
|
260
|
+
type: args.failure_type,
|
|
261
|
+
message: args.verify_output
|
|
262
|
+
? `build=${args.verify_output.build_passed} tests=${args.verify_output.tests_passed}`
|
|
263
|
+
: "unknown failure",
|
|
264
|
+
timestamp: new Date().toISOString(),
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
// 转换到学习阶段
|
|
268
|
+
await taskContext.updateStatus(args.task_id, "learning");
|
|
269
|
+
const learnResult = await evolve({
|
|
270
|
+
taskContext: ctx,
|
|
271
|
+
result: args.result,
|
|
272
|
+
verifyOutput: args.verify_output,
|
|
273
|
+
failureType: args.failure_type,
|
|
274
|
+
retryCount: ctx.execution?.attempt_count ?? 0,
|
|
275
|
+
}, projectPath);
|
|
276
|
+
// 确定最终状态: 重试或完成
|
|
277
|
+
const attemptCount = (ctx.execution?.attempt_count ?? 0) + (args.result === "failure" ? 1 : 0);
|
|
278
|
+
const maxAttempts = ctx.execution?.max_attempts ?? 3;
|
|
279
|
+
if (args.result === "failure" && attemptCount < maxAttempts && args.failure_type !== "deterministic") {
|
|
280
|
+
// 可重试: 转换到重试阶段
|
|
281
|
+
await taskContext.updateStatus(args.task_id, "retrying");
|
|
282
|
+
learnResult.retry_hint = `第 ${attemptCount}/${maxAttempts} 次尝试失败,${args.failure_type === "scope_insufficient" ? "需要扩大范围" : "请修复后重试"}`;
|
|
283
|
+
}
|
|
284
|
+
else {
|
|
285
|
+
// 最终: 转换到完成(或所有重试耗尽后标记为失败)
|
|
286
|
+
const finalStatus = args.result === "failure" ? "failed" : "done";
|
|
287
|
+
await taskContext.updateStatus(args.task_id, finalStatus);
|
|
288
|
+
}
|
|
289
|
+
return {
|
|
290
|
+
content: [{
|
|
291
|
+
type: "text",
|
|
292
|
+
text: JSON.stringify(learnResult, null, 2),
|
|
293
|
+
}],
|
|
294
|
+
};
|
|
295
|
+
});
|
|
296
|
+
// ── sf_status ──
|
|
297
|
+
registerSafeTool("sf_status", "查询当前任务状态、列出近期任务、恢复中断任务或取消任务", StatusSchema, async (args) => {
|
|
298
|
+
const action = args.action || "current";
|
|
299
|
+
switch (action) {
|
|
300
|
+
case "current": {
|
|
301
|
+
const ctx = args.task_id
|
|
302
|
+
? await taskContext.load(args.task_id)
|
|
303
|
+
: await taskContext.getCurrentTask();
|
|
304
|
+
if (!ctx) {
|
|
305
|
+
return {
|
|
306
|
+
content: [{ type: "text", text: JSON.stringify({ message: "当前无活跃任务" }) }],
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
const resumable = taskContext.isResumable(ctx);
|
|
310
|
+
const result = {
|
|
311
|
+
task_id: ctx.task_id,
|
|
312
|
+
intent: ctx.intent,
|
|
313
|
+
status: ctx.status,
|
|
314
|
+
created_at: ctx.created_at,
|
|
315
|
+
resumable,
|
|
316
|
+
};
|
|
317
|
+
if (resumable) {
|
|
318
|
+
result.resume_hint = taskContext.getResumeHint(ctx);
|
|
319
|
+
}
|
|
320
|
+
if (ctx.classification) {
|
|
321
|
+
result.task_type = ctx.classification.task_type;
|
|
322
|
+
result.risk = ctx.classification.risk;
|
|
323
|
+
result.strategy = ctx.classification.strategy;
|
|
324
|
+
}
|
|
325
|
+
if (ctx.execution) {
|
|
326
|
+
result.changed_files = ctx.execution.changed_files;
|
|
327
|
+
result.attempt_count = ctx.execution.attempt_count;
|
|
328
|
+
}
|
|
329
|
+
return {
|
|
330
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
331
|
+
};
|
|
332
|
+
}
|
|
333
|
+
case "recent": {
|
|
334
|
+
const recent = await taskContext.listRecent(10);
|
|
335
|
+
return {
|
|
336
|
+
content: [{ type: "text", text: JSON.stringify({ tasks: recent }, null, 2) }],
|
|
337
|
+
};
|
|
338
|
+
}
|
|
339
|
+
case "resume": {
|
|
340
|
+
if (!args.task_id) {
|
|
341
|
+
return {
|
|
342
|
+
content: [{ type: "text", text: JSON.stringify({ error: "恢复任务需要 task_id" }) }],
|
|
343
|
+
isError: true,
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
const ctx = await taskContext.load(args.task_id);
|
|
347
|
+
if (!ctx) {
|
|
348
|
+
return {
|
|
349
|
+
content: [{ type: "text", text: JSON.stringify({ error: "任务不存在" }) }],
|
|
350
|
+
isError: true,
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
if (!taskContext.isResumable(ctx)) {
|
|
354
|
+
return {
|
|
355
|
+
content: [{ type: "text", text: JSON.stringify({ error: `任务状态 ${ctx.status} 不可恢复`, status: ctx.status }) }],
|
|
356
|
+
isError: true,
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
return {
|
|
360
|
+
content: [{
|
|
361
|
+
type: "text",
|
|
362
|
+
text: JSON.stringify({
|
|
363
|
+
task_id: ctx.task_id,
|
|
364
|
+
intent: ctx.intent,
|
|
365
|
+
status: ctx.status,
|
|
366
|
+
resume_hint: taskContext.getResumeHint(ctx),
|
|
367
|
+
classification: ctx.classification,
|
|
368
|
+
expansion: ctx.expansion ? {
|
|
369
|
+
scope: ctx.expansion.scope,
|
|
370
|
+
matched_patterns: ctx.expansion.matched_patterns,
|
|
371
|
+
} : undefined,
|
|
372
|
+
execution: ctx.execution ? {
|
|
373
|
+
changed_files: ctx.execution.changed_files,
|
|
374
|
+
attempt_count: ctx.execution.attempt_count,
|
|
375
|
+
} : undefined,
|
|
376
|
+
}, null, 2),
|
|
377
|
+
}],
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
case "cancel": {
|
|
381
|
+
if (!args.task_id) {
|
|
382
|
+
return {
|
|
383
|
+
content: [{ type: "text", text: JSON.stringify({ error: "取消任务需要 task_id" }) }],
|
|
384
|
+
isError: true,
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
const cancelled = await taskContext.cancel(args.task_id);
|
|
388
|
+
return {
|
|
389
|
+
content: [{
|
|
390
|
+
type: "text",
|
|
391
|
+
text: JSON.stringify({ task_id: args.task_id, cancelled }),
|
|
392
|
+
}],
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
default:
|
|
396
|
+
return {
|
|
397
|
+
content: [{ type: "text", text: JSON.stringify({ error: `未知操作: ${action}` }) }],
|
|
398
|
+
isError: true,
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
});
|
|
402
|
+
// ── sf_plan ──
|
|
403
|
+
registerSafeTool("sf_plan", "将复杂意图拆解为子任务列表。支持知识驱动的 pipeline_procedure 流程(自动绑定模板)和仓库边界拆分两种策略。仅在 complexity=high 时有效", PlanSchema, async (args) => {
|
|
404
|
+
const ctx = await taskContext.load(args.task_id);
|
|
405
|
+
if (!ctx?.classification) {
|
|
406
|
+
return {
|
|
407
|
+
content: [{ type: "text", text: JSON.stringify({ error: "任务不存在或尚未分类" }) }],
|
|
408
|
+
isError: true,
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
const result = planTask({
|
|
412
|
+
intent: ctx.intent,
|
|
413
|
+
classification: ctx.classification,
|
|
414
|
+
config,
|
|
415
|
+
knowledgeIndex,
|
|
416
|
+
});
|
|
417
|
+
result.task_id = args.task_id;
|
|
418
|
+
await taskContext.setPlanning(args.task_id, result);
|
|
419
|
+
return {
|
|
420
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
421
|
+
};
|
|
422
|
+
});
|
|
423
|
+
// ── sf_plan_advance ──
|
|
424
|
+
registerSafeTool("sf_plan_advance", "将多阶段计划推进到下一步。完成当前阶段后调用,自动更新 current_step_index 并返回下一阶段信息", PlanSchema, async (args) => {
|
|
425
|
+
const ctx = await taskContext.load(args.task_id);
|
|
426
|
+
if (!ctx?.planning || ctx.planning.sub_tasks.length === 0) {
|
|
427
|
+
return {
|
|
428
|
+
content: [{ type: "text", text: JSON.stringify({ error: "任务没有多阶段计划,请先调用 sf_plan" }) }],
|
|
429
|
+
isError: true,
|
|
430
|
+
};
|
|
431
|
+
}
|
|
432
|
+
const plan = ctx.planning;
|
|
433
|
+
const previousStep = plan.sub_tasks[plan.current_step_index];
|
|
434
|
+
const previousStepTitle = previousStep?.title ?? "未知";
|
|
435
|
+
const nextIndex = plan.current_step_index + 1;
|
|
436
|
+
if (nextIndex >= plan.sub_tasks.length) {
|
|
437
|
+
return {
|
|
438
|
+
content: [{ type: "text", text: JSON.stringify({
|
|
439
|
+
task_id: args.task_id,
|
|
440
|
+
previous_step: previousStepTitle,
|
|
441
|
+
current_step_index: plan.current_step_index,
|
|
442
|
+
total_steps: plan.sub_tasks.length,
|
|
443
|
+
is_completed: true,
|
|
444
|
+
message: `所有 ${plan.sub_tasks.length} 个阶段已完成`,
|
|
445
|
+
}, null, 2) }],
|
|
446
|
+
};
|
|
447
|
+
}
|
|
448
|
+
// 推进阶段索引
|
|
449
|
+
plan.current_step_index = nextIndex;
|
|
450
|
+
await taskContext.setPlanning(args.task_id, plan);
|
|
451
|
+
const nextStep = plan.sub_tasks[nextIndex];
|
|
452
|
+
return {
|
|
453
|
+
content: [{
|
|
454
|
+
type: "text",
|
|
455
|
+
text: JSON.stringify({
|
|
456
|
+
task_id: args.task_id,
|
|
457
|
+
previous_step: previousStepTitle,
|
|
458
|
+
current_step_index: nextIndex,
|
|
459
|
+
current_step: {
|
|
460
|
+
id: nextStep.id,
|
|
461
|
+
title: nextStep.title,
|
|
462
|
+
output_path: nextStep.output_path,
|
|
463
|
+
},
|
|
464
|
+
total_steps: plan.sub_tasks.length,
|
|
465
|
+
is_completed: false,
|
|
466
|
+
message: `阶段推进: ${previousStepTitle} → ${nextStep.title}`,
|
|
467
|
+
}, null, 2),
|
|
468
|
+
}],
|
|
469
|
+
};
|
|
470
|
+
});
|
|
471
|
+
// ── sf_analyze ──
|
|
472
|
+
registerSafeTool("sf_analyze", "分析意图的影响范围,对比声明范围,提示是否需要扩大作用域。建议性,不强制", AnalyzeSchema, async (args) => {
|
|
473
|
+
const ctx = await taskContext.load(args.task_id);
|
|
474
|
+
if (!ctx?.expansion) {
|
|
475
|
+
return {
|
|
476
|
+
content: [{ type: "text", text: JSON.stringify({ error: "任务尚未膨胀,请先调用 sf_expand" }) }],
|
|
477
|
+
isError: true,
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
const result = await analyzeImpact({
|
|
481
|
+
intent: ctx.intent,
|
|
482
|
+
classification: ctx.classification,
|
|
483
|
+
expansion: ctx.expansion,
|
|
484
|
+
config,
|
|
485
|
+
projectPath,
|
|
486
|
+
});
|
|
487
|
+
result.task_id = args.task_id;
|
|
488
|
+
return {
|
|
489
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
490
|
+
};
|
|
491
|
+
});
|
|
492
|
+
// ── sf_review ──
|
|
493
|
+
registerSafeTool("sf_review", "审查代码变更的质量、安全、性能和技术债务。hotfix 场景可跳过。建议性,不强制修复", ReviewSchema, async (args) => {
|
|
494
|
+
const ctx = await taskContext.load(args.task_id);
|
|
495
|
+
if (!ctx) {
|
|
496
|
+
return {
|
|
497
|
+
content: [{ type: "text", text: JSON.stringify({ error: "任务不存在" }) }],
|
|
498
|
+
isError: true,
|
|
499
|
+
};
|
|
500
|
+
}
|
|
501
|
+
const tracker = new DebtTracker(projectPath);
|
|
502
|
+
const result = await reviewCode({
|
|
503
|
+
changedFiles: args.changed_files,
|
|
504
|
+
projectPath,
|
|
505
|
+
config,
|
|
506
|
+
classification: ctx.classification,
|
|
507
|
+
fileContents: args.file_contents,
|
|
508
|
+
knowledgeIndex,
|
|
509
|
+
uncertainty_triggers: ctx.expansion?.uncertainty_triggers,
|
|
510
|
+
}, tracker);
|
|
511
|
+
result.task_id = args.task_id;
|
|
512
|
+
await taskContext.setCodeReview(args.task_id, result);
|
|
513
|
+
return {
|
|
514
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
515
|
+
};
|
|
516
|
+
});
|
|
517
|
+
// ── sf_scaffold ──
|
|
518
|
+
registerSafeTool("sf_scaffold", "根据项目模板生成标准化代码骨架(Controller/Service/DTO/测试等)。仅在 task_type=scaffold 时使用", ScaffoldSchema, async (args) => {
|
|
519
|
+
const ctx = await taskContext.load(args.task_id);
|
|
520
|
+
if (!ctx?.classification) {
|
|
521
|
+
return {
|
|
522
|
+
content: [{ type: "text", text: JSON.stringify({ error: "任务不存在或尚未分类" }) }],
|
|
523
|
+
isError: true,
|
|
524
|
+
};
|
|
525
|
+
}
|
|
526
|
+
if (ctx.classification.task_type !== "scaffold") {
|
|
527
|
+
return {
|
|
528
|
+
content: [{
|
|
529
|
+
type: "text",
|
|
530
|
+
text: JSON.stringify({
|
|
531
|
+
error: "sf_scaffold 仅适用于 scaffold 类型任务",
|
|
532
|
+
current_type: ctx.classification.task_type,
|
|
533
|
+
}),
|
|
534
|
+
}],
|
|
535
|
+
isError: true,
|
|
536
|
+
};
|
|
537
|
+
}
|
|
538
|
+
const result = await generateScaffold({
|
|
539
|
+
intent: ctx.intent,
|
|
540
|
+
classification: ctx.classification,
|
|
541
|
+
config,
|
|
542
|
+
projectPath,
|
|
543
|
+
});
|
|
544
|
+
result.task_id = args.task_id;
|
|
545
|
+
return {
|
|
546
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
547
|
+
};
|
|
548
|
+
});
|
|
549
|
+
// ── sf_deliver ──
|
|
550
|
+
registerSafeTool("sf_deliver", "验收后自动提交代码、推送、创建 PR 和生成变更日志", DeliverSchema, async (args) => {
|
|
551
|
+
const ctx = await taskContext.load(args.task_id);
|
|
552
|
+
if (!ctx) {
|
|
553
|
+
return {
|
|
554
|
+
content: [{ type: "text", text: JSON.stringify({ error: "任务不存在" }) }],
|
|
555
|
+
isError: true,
|
|
556
|
+
};
|
|
557
|
+
}
|
|
558
|
+
const result = await deliver({
|
|
559
|
+
taskContext: ctx,
|
|
560
|
+
config,
|
|
561
|
+
knowledgeIndex,
|
|
562
|
+
projectPath,
|
|
563
|
+
gitOps: realGitOps,
|
|
564
|
+
skipPush: args.skip_push,
|
|
565
|
+
skipPr: args.skip_pr,
|
|
566
|
+
});
|
|
567
|
+
await taskContext.setDelivery(args.task_id, result);
|
|
568
|
+
return {
|
|
569
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
570
|
+
};
|
|
571
|
+
});
|
|
572
|
+
// ── sf_coord_check ──
|
|
573
|
+
registerSafeTool("sf_coord_check", "预测性冲突检测和跨仓库协调提示,检查分支状态、本地变更和潜在冲突", CoordCheckSchema, async (args) => {
|
|
574
|
+
const result = await checkConflicts({
|
|
575
|
+
projectPath,
|
|
576
|
+
config,
|
|
577
|
+
branch: args.branch,
|
|
578
|
+
gitOps: realGitOps,
|
|
579
|
+
});
|
|
580
|
+
return {
|
|
581
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
582
|
+
};
|
|
583
|
+
});
|
|
584
|
+
// ── sf_team_status ──
|
|
585
|
+
registerSafeTool("sf_team_status", "查询团队活动流、成员工作负载、过期分支和知识库更新状态", TeamStatusSchema, async (args) => {
|
|
586
|
+
const result = await getTeamStatus({
|
|
587
|
+
projectPath,
|
|
588
|
+
config,
|
|
589
|
+
since: args.since,
|
|
590
|
+
gitOps: realGitOps,
|
|
591
|
+
knowledgeIndex: args.include_knowledge ? knowledgeIndex : undefined,
|
|
592
|
+
});
|
|
593
|
+
return {
|
|
594
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
595
|
+
};
|
|
596
|
+
});
|
|
597
|
+
// ── sf_contract_check ──
|
|
598
|
+
registerSafeTool("sf_contract_check", "检测 API 契约变更(路由、DTO 字段等),评估破坏性影响和跨服务依赖", ContractCheckSchema, async (args) => {
|
|
599
|
+
let changedFiles = args.changed_files;
|
|
600
|
+
if (!changedFiles) {
|
|
601
|
+
const ctx = await taskContext.load(args.task_id);
|
|
602
|
+
changedFiles = ctx?.execution?.changed_files ?? [];
|
|
603
|
+
}
|
|
604
|
+
const result = await checkContractChanges({
|
|
605
|
+
changedFiles,
|
|
606
|
+
projectPath,
|
|
607
|
+
config,
|
|
608
|
+
gitOps: realGitOps,
|
|
609
|
+
});
|
|
610
|
+
return {
|
|
611
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
612
|
+
};
|
|
613
|
+
});
|
|
614
|
+
// ── sf_onboard ──
|
|
615
|
+
registerSafeTool("sf_onboard", "新人分步引导:项目概览 → 代码导览 → 知识回顾 → 首个任务建议", OnboardSchema, async (args) => {
|
|
616
|
+
const result = await onboard({
|
|
617
|
+
config,
|
|
618
|
+
projectPath,
|
|
619
|
+
knowledgeIndex,
|
|
620
|
+
gitOps: realGitOps,
|
|
621
|
+
currentStep: args.step,
|
|
622
|
+
reset: args.reset,
|
|
623
|
+
});
|
|
624
|
+
return {
|
|
625
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
626
|
+
};
|
|
627
|
+
});
|
|
628
|
+
// ── sf_feasibility_check ──
|
|
629
|
+
registerSafeTool("sf_feasibility_check", "分析任务可行性:可行/风险/不可行三档评估,纯建议不阻断流程", FeasibilityCheckSchema, async (args) => {
|
|
630
|
+
const ctx = await taskContext.load(args.task_id);
|
|
631
|
+
if (!ctx?.classification) {
|
|
632
|
+
return {
|
|
633
|
+
content: [{ type: "text", text: JSON.stringify({ error: "任务不存在或未完成分类,请先调用 sf_classify" }) }],
|
|
634
|
+
isError: true,
|
|
635
|
+
};
|
|
636
|
+
}
|
|
637
|
+
const result = checkFeasibility(ctx.classification, config);
|
|
638
|
+
return {
|
|
639
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
640
|
+
};
|
|
641
|
+
});
|
|
642
|
+
// ── sf_debug ──
|
|
643
|
+
registerSafeTool("sf_debug", "智能排障:解析错误 → 追踪调用链 → 根因分析 → 修复方案 → 测试建议", DebugSchema, async (args) => {
|
|
644
|
+
const projectScope = [
|
|
645
|
+
...config.scope.backend,
|
|
646
|
+
...config.scope.frontend,
|
|
647
|
+
];
|
|
648
|
+
const result = debugError(args.error_output, args.task_id || `debug-${Date.now()}`, projectScope);
|
|
649
|
+
return {
|
|
650
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
651
|
+
};
|
|
652
|
+
});
|
|
653
|
+
// ── sf_observability ──
|
|
654
|
+
registerSafeTool("sf_observability", "系统可观测:运行指标、成本估算、告警检测、周期报告", ObservabilitySchema, async (args) => {
|
|
655
|
+
const stateDir = taskContext.getStateDir();
|
|
656
|
+
const result = await generateReport(stateDir, args.period_days);
|
|
657
|
+
return {
|
|
658
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
659
|
+
};
|
|
660
|
+
});
|
|
661
|
+
// ── sf_migration_check ──
|
|
662
|
+
registerSafeTool("sf_migration_check", "分析数据库迁移文件安全性:检测破坏性操作(DROP/DELETE/TRUNCATE)并生成回滚建议", MigrationCheckSchema, async (args) => {
|
|
663
|
+
const result = analyzeMigration(args.content, args.filename);
|
|
664
|
+
return {
|
|
665
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
666
|
+
};
|
|
667
|
+
});
|
|
668
|
+
// ── sf_test_guide ──
|
|
669
|
+
registerSafeTool("sf_test_guide", "根据变更文件类型生成测试指引:推荐测试类型、场景、Mock 点和断言模板", TestGuideSchema, async (args) => {
|
|
670
|
+
const result = generateTestGuide(args.changed_files, [], config);
|
|
671
|
+
return {
|
|
672
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
673
|
+
};
|
|
674
|
+
});
|
|
675
|
+
// ── sf_test_quality ──
|
|
676
|
+
registerSafeTool("sf_test_quality", "评估测试文件质量:断言密度、边界覆盖、命名、重复率、场景覆盖五维评分", TestQualitySchema, async (args) => {
|
|
677
|
+
const result = analyzeTestQuality(args.content, args.filename);
|
|
678
|
+
return {
|
|
679
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
680
|
+
};
|
|
681
|
+
});
|
|
682
|
+
// ── sf_dependency_scan ──
|
|
683
|
+
registerSafeTool("sf_dependency_scan", "扫描依赖声明文件漏洞:已知 CVE 规则匹配、未锁定版本检测、支持 npm/maven/gradle", DependencyScanSchema, async (args) => {
|
|
684
|
+
const result = scanDependencies(args.content, args.filename);
|
|
685
|
+
return {
|
|
686
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
687
|
+
};
|
|
688
|
+
});
|
|
689
|
+
// ── sf_debt_report ──
|
|
690
|
+
registerSafeTool("sf_debt_report", "生成技术债务报告:按分类/严重度聚合、30 天趋势、优先级排序 Top 5", {}, async () => {
|
|
691
|
+
const tracker = new DebtTracker(projectPath);
|
|
692
|
+
const result = await generateDebtReport(tracker);
|
|
693
|
+
return {
|
|
694
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
695
|
+
};
|
|
696
|
+
});
|
|
697
|
+
// ── Self-maintenance tools (only registered when running inside SoloForge's own project) ──
|
|
698
|
+
if (options?.isSelfProject) {
|
|
699
|
+
// ── sf_knowledge_audit ──
|
|
700
|
+
registerSafeTool("sf_knowledge_audit", "审计知识库:识别过时条目、重复触发词、格式缺失、覆盖缺口。定期执行或手动触发", {}, async () => {
|
|
701
|
+
const result = await auditKnowledge(knowledgeIndex, config);
|
|
702
|
+
return {
|
|
703
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
704
|
+
};
|
|
705
|
+
});
|
|
706
|
+
// ── sf_knowledge_add ──
|
|
707
|
+
const KnowledgeAddSchema = {
|
|
708
|
+
title: z.string().describe("知识条目标题(英文 kebab-case,如 payment-rules)"),
|
|
709
|
+
type: z.enum(["pattern", "procedure", "pipeline_procedure", "domain", "acceptance_template", "review_rule"]).describe("知识类型"),
|
|
710
|
+
scope: z.array(z.string()).describe("适用范围(如 [backend]、[frontend]、[backend, frontend])"),
|
|
711
|
+
when_triggers: z.string().describe("触发关键词(逗号分隔)"),
|
|
712
|
+
decision_rules: z.string().optional().describe("决策规则(每行一条)"),
|
|
713
|
+
save_to_drafts: z.boolean().optional().describe("是否保存为草稿(默认 true,需人工 review 后移入正式目录)"),
|
|
714
|
+
auto_enrich: z.boolean().optional().describe("是否返回行业最佳实践探索指引(默认 true,宿主 AI 将自动执行探索并填充内容)"),
|
|
715
|
+
};
|
|
716
|
+
registerSafeTool("sf_knowledge_add", "新增知识条目。默认保存为草稿到 .soloforge/knowledge/drafts/,人工确认后移入正式目录", KnowledgeAddSchema, async (args) => {
|
|
717
|
+
const result = await addKnowledge({
|
|
718
|
+
title: args.title,
|
|
719
|
+
type: args.type,
|
|
720
|
+
scope: args.scope,
|
|
721
|
+
when_triggers: args.when_triggers,
|
|
722
|
+
decision_rules: args.decision_rules,
|
|
723
|
+
save_to_drafts: args.save_to_drafts,
|
|
724
|
+
auto_enrich: args.auto_enrich,
|
|
725
|
+
}, config);
|
|
726
|
+
return {
|
|
727
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
728
|
+
};
|
|
729
|
+
});
|
|
730
|
+
// ── sf_knowledge_update ──
|
|
731
|
+
const KnowledgeUpdateSchema = {
|
|
732
|
+
entry_name: z.string().describe("要更新的知识条目名称(如 payment-rules)"),
|
|
733
|
+
when_triggers: z.string().optional().describe("新的触发关键词(替换现有)"),
|
|
734
|
+
add_decision_rules: z.array(z.string()).optional().describe("追加的决策规则"),
|
|
735
|
+
add_acceptance_criteria: z.array(z.string()).optional().describe("追加的验收项"),
|
|
736
|
+
status: z.enum(["active", "deprecated"]).optional().describe("更新条目状态"),
|
|
737
|
+
};
|
|
738
|
+
registerSafeTool("sf_knowledge_update", "更新已有知识条目:追加规则、更新触发词、标记废弃。自动创建备份", KnowledgeUpdateSchema, async (args) => {
|
|
739
|
+
const result = await updateKnowledge({
|
|
740
|
+
entry_name: args.entry_name,
|
|
741
|
+
updates: {
|
|
742
|
+
when_triggers: args.when_triggers,
|
|
743
|
+
add_decision_rules: args.add_decision_rules,
|
|
744
|
+
add_acceptance_criteria: args.add_acceptance_criteria,
|
|
745
|
+
status: args.status,
|
|
746
|
+
},
|
|
747
|
+
}, knowledgeIndex, config);
|
|
748
|
+
// 重载知识索引
|
|
749
|
+
if (result.success) {
|
|
750
|
+
await knowledgeIndex.reload();
|
|
751
|
+
}
|
|
752
|
+
return {
|
|
753
|
+
content: [{ type: "text", text: JSON.stringify(result, null, 2) }],
|
|
754
|
+
};
|
|
755
|
+
});
|
|
756
|
+
} // end isSelfProject guard
|
|
757
|
+
}
|
|
758
|
+
//# sourceMappingURL=tools.js.map
|