soloforge 1.1.38 → 1.1.42
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/CHANGELOG.md +149 -149
- package/README.md +130 -49
- package/dist/adapters/shared/workflow_template.js +1 -1
- package/dist/bin/commands/analyze.d.ts +7 -0
- package/dist/bin/commands/analyze.d.ts.map +1 -0
- package/dist/bin/commands/analyze.js +52 -0
- package/dist/bin/commands/analyze.js.map +1 -0
- package/dist/bin/commands/audit.d.ts.map +1 -1
- package/dist/bin/commands/audit.js +104 -83
- package/dist/bin/commands/audit.js.map +1 -1
- package/dist/bin/commands/check_bash.d.ts.map +1 -1
- package/dist/bin/commands/check_bash.js +38 -18
- package/dist/bin/commands/check_bash.js.map +1 -1
- package/dist/bin/commands/check_write.d.ts +10 -1
- package/dist/bin/commands/check_write.d.ts.map +1 -1
- package/dist/bin/commands/check_write.js +118 -95
- package/dist/bin/commands/check_write.js.map +1 -1
- package/dist/bin/commands/init.d.ts +2 -5
- package/dist/bin/commands/init.d.ts.map +1 -1
- package/dist/bin/commands/init.js +116 -137
- package/dist/bin/commands/init.js.map +1 -1
- package/dist/bin/commands/modify.d.ts +8 -0
- package/dist/bin/commands/modify.d.ts.map +1 -0
- package/dist/bin/commands/modify.js +88 -0
- package/dist/bin/commands/modify.js.map +1 -0
- package/dist/bin/commands/reasoning.d.ts +14 -0
- package/dist/bin/commands/reasoning.d.ts.map +1 -0
- package/dist/bin/commands/reasoning.js +158 -0
- package/dist/bin/commands/reasoning.js.map +1 -0
- package/dist/bin/commands/review.d.ts +8 -0
- package/dist/bin/commands/review.d.ts.map +1 -0
- package/dist/bin/commands/review.js +212 -0
- package/dist/bin/commands/review.js.map +1 -0
- package/dist/bin/commands/status.d.ts +6 -5
- package/dist/bin/commands/status.d.ts.map +1 -1
- package/dist/bin/commands/status.js +63 -120
- package/dist/bin/commands/status.js.map +1 -1
- package/dist/bin/commands/sync.d.ts +1 -1
- package/dist/bin/commands/sync.js +7 -7
- package/dist/bin/commands/sync.js.map +1 -1
- package/dist/bin/commands/validate.d.ts +4 -1
- package/dist/bin/commands/validate.d.ts.map +1 -1
- package/dist/bin/commands/validate.js +65 -95
- package/dist/bin/commands/validate.js.map +1 -1
- package/dist/bin/config_commands.d.ts +21 -20
- package/dist/bin/config_commands.d.ts.map +1 -1
- package/dist/bin/config_commands.js +209 -236
- package/dist/bin/config_commands.js.map +1 -1
- package/dist/bin/soloforge.js +42 -22
- package/dist/bin/soloforge.js.map +1 -1
- package/dist/engine/audit/evolver.d.ts.map +1 -1
- package/dist/engine/audit/evolver.js +0 -2
- package/dist/engine/audit/evolver.js.map +1 -1
- package/dist/engine/audit/governance_report.d.ts +9 -8
- package/dist/engine/audit/governance_report.d.ts.map +1 -1
- package/dist/engine/audit/governance_report.js +17 -16
- package/dist/engine/audit/governance_report.js.map +1 -1
- package/dist/engine/change_coordinator.d.ts.map +1 -1
- package/dist/engine/change_coordinator.js +1 -4
- package/dist/engine/change_coordinator.js.map +1 -1
- package/dist/engine/config/conflicts.d.ts +39 -0
- package/dist/engine/config/conflicts.d.ts.map +1 -0
- package/dist/engine/config/conflicts.js +79 -0
- package/dist/engine/config/conflicts.js.map +1 -0
- package/dist/engine/config/detector/blueprint.d.ts +25 -0
- package/dist/engine/config/detector/blueprint.d.ts.map +1 -0
- package/dist/engine/config/detector/blueprint.js +47 -0
- package/dist/engine/config/detector/blueprint.js.map +1 -0
- package/dist/engine/config/detector/fingerprint.d.ts +67 -0
- package/dist/engine/config/detector/fingerprint.d.ts.map +1 -0
- package/dist/engine/config/detector/fingerprint.js +160 -0
- package/dist/engine/config/detector/fingerprint.js.map +1 -0
- package/dist/engine/config/detector/framework_map.d.ts +89 -0
- package/dist/engine/config/detector/framework_map.d.ts.map +1 -0
- package/dist/engine/config/detector/framework_map.js +406 -0
- package/dist/engine/config/detector/framework_map.js.map +1 -0
- package/dist/engine/config/detector/index.d.ts +12 -0
- package/dist/engine/config/detector/index.d.ts.map +1 -0
- package/dist/engine/config/detector/index.js +12 -0
- package/dist/engine/config/detector/index.js.map +1 -0
- package/dist/engine/config/detector/verify.d.ts +32 -0
- package/dist/engine/config/detector/verify.d.ts.map +1 -0
- package/dist/engine/config/detector/verify.js +107 -0
- package/dist/engine/config/detector/verify.js.map +1 -0
- package/dist/engine/config/intent.d.ts +26 -0
- package/dist/engine/config/intent.d.ts.map +1 -0
- package/dist/engine/config/intent.js +81 -0
- package/dist/engine/config/intent.js.map +1 -0
- package/dist/engine/config/intent_schema.d.ts +873 -0
- package/dist/engine/config/intent_schema.d.ts.map +1 -0
- package/dist/engine/config/intent_schema.js +98 -0
- package/dist/engine/config/intent_schema.js.map +1 -0
- package/dist/engine/config/regression_matrix.d.ts.map +1 -1
- package/dist/engine/config/regression_matrix.js +19 -14
- package/dist/engine/config/regression_matrix.js.map +1 -1
- package/dist/engine/config/resolver.d.ts +136 -0
- package/dist/engine/config/resolver.d.ts.map +1 -0
- package/dist/engine/config/resolver.js +251 -0
- package/dist/engine/config/resolver.js.map +1 -0
- package/dist/engine/context_engine/bootstrap.d.ts +12 -0
- package/dist/engine/context_engine/bootstrap.d.ts.map +1 -0
- package/dist/engine/context_engine/bootstrap.js +28 -0
- package/dist/engine/context_engine/bootstrap.js.map +1 -0
- package/dist/engine/context_engine/companion_injector.d.ts +62 -0
- package/dist/engine/context_engine/companion_injector.d.ts.map +1 -0
- package/dist/engine/context_engine/companion_injector.js +350 -0
- package/dist/engine/context_engine/companion_injector.js.map +1 -0
- package/dist/engine/context_engine/context_resolver.d.ts +46 -0
- package/dist/engine/context_engine/context_resolver.d.ts.map +1 -0
- package/dist/engine/context_engine/context_resolver.js +139 -0
- package/dist/engine/context_engine/context_resolver.js.map +1 -0
- package/dist/engine/context_engine/index.d.ts +25 -0
- package/dist/engine/context_engine/index.d.ts.map +1 -0
- package/dist/engine/context_engine/index.js +25 -0
- package/dist/engine/context_engine/index.js.map +1 -0
- package/dist/engine/context_engine/view_registry.d.ts +45 -0
- package/dist/engine/context_engine/view_registry.d.ts.map +1 -0
- package/dist/engine/context_engine/view_registry.js +36 -0
- package/dist/engine/context_engine/view_registry.js.map +1 -0
- package/dist/engine/context_engine/views/change_impact.d.ts +34 -0
- package/dist/engine/context_engine/views/change_impact.d.ts.map +1 -0
- package/dist/engine/context_engine/views/change_impact.js +288 -0
- package/dist/engine/context_engine/views/change_impact.js.map +1 -0
- package/dist/engine/context_engine/views/coverage_gap.d.ts +45 -0
- package/dist/engine/context_engine/views/coverage_gap.d.ts.map +1 -0
- package/dist/engine/context_engine/views/coverage_gap.js +238 -0
- package/dist/engine/context_engine/views/coverage_gap.js.map +1 -0
- package/dist/engine/context_engine/views/dependency_graph.d.ts +45 -0
- package/dist/engine/context_engine/views/dependency_graph.d.ts.map +1 -0
- package/dist/engine/context_engine/views/dependency_graph.js +358 -0
- package/dist/engine/context_engine/views/dependency_graph.js.map +1 -0
- package/dist/engine/context_engine/views/file_impact.d.ts +46 -0
- package/dist/engine/context_engine/views/file_impact.d.ts.map +1 -0
- package/dist/engine/context_engine/views/file_impact.js +181 -0
- package/dist/engine/context_engine/views/file_impact.js.map +1 -0
- package/dist/engine/context_engine/views/knowledge_ref.d.ts +37 -0
- package/dist/engine/context_engine/views/knowledge_ref.d.ts.map +1 -0
- package/dist/engine/context_engine/views/knowledge_ref.js +264 -0
- package/dist/engine/context_engine/views/knowledge_ref.js.map +1 -0
- package/dist/engine/context_engine/views/reference_trace.d.ts +49 -0
- package/dist/engine/context_engine/views/reference_trace.d.ts.map +1 -0
- package/dist/engine/context_engine/views/reference_trace.js +227 -0
- package/dist/engine/context_engine/views/reference_trace.js.map +1 -0
- package/dist/engine/contracts/artifact_contract_registry.d.ts +1 -43
- package/dist/engine/contracts/artifact_contract_registry.d.ts.map +1 -1
- package/dist/engine/contracts/artifact_contract_registry.js +24 -100
- package/dist/engine/contracts/artifact_contract_registry.js.map +1 -1
- package/dist/engine/contracts/artifact_process_rules.d.ts.map +1 -1
- package/dist/engine/contracts/artifact_process_rules.js +0 -12
- package/dist/engine/contracts/artifact_process_rules.js.map +1 -1
- package/dist/engine/contracts/artifact_schema_registry.d.ts +2 -0
- package/dist/engine/contracts/artifact_schema_registry.d.ts.map +1 -1
- package/dist/engine/contracts/artifact_schema_registry.js +31 -25
- package/dist/engine/contracts/artifact_schema_registry.js.map +1 -1
- package/dist/engine/contracts/capability_registry.d.ts.map +1 -1
- package/dist/engine/contracts/capability_registry.js +2 -28
- package/dist/engine/contracts/capability_registry.js.map +1 -1
- package/dist/engine/contracts/contract_guard.js +8 -0
- package/dist/engine/contracts/contract_guard.js.map +1 -1
- package/dist/engine/contracts/contract_registry/builtin_contracts_core.d.ts.map +1 -1
- package/dist/engine/contracts/contract_registry/builtin_contracts_core.js +1 -19
- package/dist/engine/contracts/contract_registry/builtin_contracts_core.js.map +1 -1
- package/dist/engine/contracts/design_lifecycle_contract.d.ts.map +1 -1
- package/dist/engine/contracts/design_lifecycle_contract.js +14 -8
- package/dist/engine/contracts/design_lifecycle_contract.js.map +1 -1
- package/dist/engine/contracts/dual_layer_mechanism_registry/mechanisms_audit_tail.d.ts.map +1 -1
- package/dist/engine/contracts/dual_layer_mechanism_registry/mechanisms_audit_tail.js +0 -37
- package/dist/engine/contracts/dual_layer_mechanism_registry/mechanisms_audit_tail.js.map +1 -1
- package/dist/engine/contracts/dual_layer_mechanism_registry/mechanisms_infra.d.ts.map +1 -1
- package/dist/engine/contracts/dual_layer_mechanism_registry/mechanisms_infra.js +2 -78
- package/dist/engine/contracts/dual_layer_mechanism_registry/mechanisms_infra.js.map +1 -1
- package/dist/engine/contracts/dual_layer_mechanism_registry/shared.js +1 -1
- package/dist/engine/contracts/dual_layer_mechanism_registry/shared.js.map +1 -1
- package/dist/engine/contracts/error_path_verifier.js +2 -2
- package/dist/engine/contracts/error_path_verifier.js.map +1 -1
- package/dist/engine/contracts/first_principles.d.ts +47 -0
- package/dist/engine/contracts/first_principles.d.ts.map +1 -1
- package/dist/engine/contracts/first_principles.js +56 -0
- package/dist/engine/contracts/first_principles.js.map +1 -1
- package/dist/engine/contracts/mechanism_contract_registry/contracts-audit.d.ts +1 -1
- package/dist/engine/contracts/mechanism_contract_registry/contracts-audit.d.ts.map +1 -1
- package/dist/engine/contracts/mechanism_contract_registry/contracts-audit.js +2 -19
- package/dist/engine/contracts/mechanism_contract_registry/contracts-audit.js.map +1 -1
- package/dist/engine/contracts/mechanism_contract_registry/contracts-platform.d.ts +2 -2
- package/dist/engine/contracts/mechanism_contract_registry/contracts-platform.d.ts.map +1 -1
- package/dist/engine/contracts/mechanism_contract_registry/contracts-platform.js +4 -42
- package/dist/engine/contracts/mechanism_contract_registry/contracts-platform.js.map +1 -1
- package/dist/engine/contracts/project_knowledge_contract.d.ts +1 -0
- package/dist/engine/contracts/project_knowledge_contract.d.ts.map +1 -1
- package/dist/engine/contracts/project_knowledge_contract.js +5 -4
- package/dist/engine/contracts/project_knowledge_contract.js.map +1 -1
- package/dist/engine/contracts/slice_fix_loop.d.ts +86 -0
- package/dist/engine/contracts/slice_fix_loop.d.ts.map +1 -0
- package/dist/engine/contracts/slice_fix_loop.js +98 -0
- package/dist/engine/contracts/slice_fix_loop.js.map +1 -0
- package/dist/engine/contracts/state_machine_contracts.js +2 -2
- package/dist/engine/contracts/state_machine_contracts.js.map +1 -1
- package/dist/engine/contracts/tool_invocation_contract_registry.d.ts +29 -0
- package/dist/engine/contracts/tool_invocation_contract_registry.d.ts.map +1 -1
- package/dist/engine/contracts/tool_invocation_contract_registry.js +55 -2
- package/dist/engine/contracts/tool_invocation_contract_registry.js.map +1 -1
- package/dist/engine/contracts/user_promise.js +2 -2
- package/dist/engine/contracts/user_promise.js.map +1 -1
- package/dist/engine/core/errors.d.ts +1 -1
- package/dist/engine/core/errors.js +1 -1
- package/dist/engine/core/fail_closed.d.ts +39 -0
- package/dist/engine/core/fail_closed.d.ts.map +1 -0
- package/dist/engine/core/fail_closed.js +38 -0
- package/dist/engine/core/fail_closed.js.map +1 -0
- package/dist/engine/core/index.d.ts +3 -1
- package/dist/engine/core/index.d.ts.map +1 -1
- package/dist/engine/core/index.js +3 -1
- package/dist/engine/core/index.js.map +1 -1
- package/dist/engine/core/paths.d.ts +6 -4
- package/dist/engine/core/paths.d.ts.map +1 -1
- package/dist/engine/core/paths.js +8 -4
- package/dist/engine/core/paths.js.map +1 -1
- package/dist/engine/dependency_scanner.js +1 -1
- package/dist/engine/dependency_scanner.js.map +1 -1
- package/dist/engine/exploration.js +1 -1
- package/dist/engine/exploration.js.map +1 -1
- package/dist/engine/feasibility_checker.js +1 -1
- package/dist/engine/impact_analyzer.js +1 -1
- package/dist/engine/impact_analyzer.js.map +1 -1
- package/dist/engine/knowledge/knowledge_asset_audit.d.ts.map +1 -1
- package/dist/engine/knowledge/knowledge_asset_audit.js +1 -2
- package/dist/engine/knowledge/knowledge_asset_audit.js.map +1 -1
- package/dist/engine/knowledge/knowledge_asset_consumer.d.ts +8 -2
- package/dist/engine/knowledge/knowledge_asset_consumer.d.ts.map +1 -1
- package/dist/engine/knowledge/knowledge_asset_consumer.js +10 -7
- package/dist/engine/knowledge/knowledge_asset_consumer.js.map +1 -1
- package/dist/engine/knowledge/knowledge_asset_schema.d.ts +6 -2
- package/dist/engine/knowledge/knowledge_asset_schema.d.ts.map +1 -1
- package/dist/engine/knowledge/knowledge_asset_schema.js +3 -4
- package/dist/engine/knowledge/knowledge_asset_schema.js.map +1 -1
- package/dist/engine/knowledge/knowledge_consumption_snapshot.js +2 -2
- package/dist/engine/knowledge/knowledge_consumption_snapshot.js.map +1 -1
- package/dist/engine/knowledge/knowledge_health.d.ts.map +1 -1
- package/dist/engine/knowledge/knowledge_health.js +6 -4
- package/dist/engine/knowledge/knowledge_health.js.map +1 -1
- package/dist/engine/knowledge/knowledge_injection_boundary.d.ts +2 -1
- package/dist/engine/knowledge/knowledge_injection_boundary.d.ts.map +1 -1
- package/dist/engine/knowledge/knowledge_injection_boundary.js +35 -43
- package/dist/engine/knowledge/knowledge_injection_boundary.js.map +1 -1
- package/dist/engine/knowledge/knowledge_writer.js +1 -1
- package/dist/engine/pipeline/artifact_aliases.d.ts +56 -3
- package/dist/engine/pipeline/artifact_aliases.d.ts.map +1 -1
- package/dist/engine/pipeline/artifact_aliases.js +377 -24
- package/dist/engine/pipeline/artifact_aliases.js.map +1 -1
- package/dist/engine/pipeline/artifact_resolver.d.ts +82 -0
- package/dist/engine/pipeline/artifact_resolver.d.ts.map +1 -0
- package/dist/engine/pipeline/artifact_resolver.js +458 -0
- package/dist/engine/pipeline/artifact_resolver.js.map +1 -0
- package/dist/engine/pipeline/intent_expander/knowledge.js +4 -2
- package/dist/engine/pipeline/intent_expander/knowledge.js.map +1 -1
- package/dist/engine/pipeline/intent_expander/knowledge_resolution.d.ts +4 -4
- package/dist/engine/pipeline/intent_expander/knowledge_resolution.d.ts.map +1 -1
- package/dist/engine/pipeline/intent_expander/knowledge_resolution.js +1 -0
- package/dist/engine/pipeline/intent_expander/knowledge_resolution.js.map +1 -1
- package/dist/engine/pipeline/intent_expander/scope_acceptance.d.ts +2 -0
- package/dist/engine/pipeline/intent_expander/scope_acceptance.d.ts.map +1 -1
- package/dist/engine/pipeline/intent_expander/scope_acceptance.js +5 -1
- package/dist/engine/pipeline/intent_expander/scope_acceptance.js.map +1 -1
- package/dist/engine/pipeline/intent_expander/types.d.ts +1 -1
- package/dist/engine/pipeline/intent_expander/types.d.ts.map +1 -1
- package/dist/engine/pipeline/orchestrate_single_artifact.d.ts +185 -0
- package/dist/engine/pipeline/orchestrate_single_artifact.d.ts.map +1 -0
- package/dist/engine/pipeline/orchestrate_single_artifact.js +772 -0
- package/dist/engine/pipeline/orchestrate_single_artifact.js.map +1 -0
- package/dist/engine/pipeline/scope_lease.d.ts.map +1 -1
- package/dist/engine/pipeline/scope_lease.js +1 -3
- package/dist/engine/pipeline/scope_lease.js.map +1 -1
- package/dist/engine/pipeline/scope_resolver.js +2 -2
- package/dist/engine/pipeline/scope_resolver.js.map +1 -1
- package/dist/engine/pipeline/state_machine/audit_logger.d.ts.map +1 -1
- package/dist/engine/pipeline/state_machine/audit_logger.js +7 -1
- package/dist/engine/pipeline/state_machine/audit_logger.js.map +1 -1
- package/dist/engine/pipeline/state_machine/certainty_gate.d.ts.map +1 -1
- package/dist/engine/pipeline/state_machine/certainty_gate.js +202 -15
- package/dist/engine/pipeline/state_machine/certainty_gate.js.map +1 -1
- package/dist/engine/pipeline/state_machine/command_state_verifier.js +1 -1
- package/dist/engine/pipeline/state_machine/command_state_verifier.js.map +1 -1
- package/dist/engine/pipeline/state_machine/hook_classifier.d.ts +14 -1
- package/dist/engine/pipeline/state_machine/hook_classifier.d.ts.map +1 -1
- package/dist/engine/pipeline/state_machine/hook_classifier.js +35 -12
- package/dist/engine/pipeline/state_machine/hook_classifier.js.map +1 -1
- package/dist/engine/pipeline/state_machine/pipeline_state_machine.d.ts +7 -15
- package/dist/engine/pipeline/state_machine/pipeline_state_machine.d.ts.map +1 -1
- package/dist/engine/pipeline/state_machine/pipeline_state_machine.js +202 -102
- package/dist/engine/pipeline/state_machine/pipeline_state_machine.js.map +1 -1
- package/dist/engine/pipeline/state_machine/sf_command_parser.d.ts.map +1 -1
- package/dist/engine/pipeline/state_machine/sf_command_parser.js +24 -18
- package/dist/engine/pipeline/state_machine/sf_command_parser.js.map +1 -1
- package/dist/engine/pipeline/state_machine/stage_command_registry.d.ts.map +1 -1
- package/dist/engine/pipeline/state_machine/stage_command_registry.js +7 -0
- package/dist/engine/pipeline/state_machine/stage_command_registry.js.map +1 -1
- package/dist/engine/pipeline/state_machine/stage_executor.d.ts.map +1 -1
- package/dist/engine/pipeline/state_machine/stage_executor.js +5 -11
- package/dist/engine/pipeline/state_machine/stage_executor.js.map +1 -1
- package/dist/engine/pipeline/state_machine/state_self_diagnostic.js +3 -3
- package/dist/engine/pipeline/state_machine/state_self_diagnostic.js.map +1 -1
- package/dist/engine/pipeline/state_machine/static_route_table.d.ts +2 -0
- package/dist/engine/pipeline/state_machine/static_route_table.d.ts.map +1 -1
- package/dist/engine/pipeline/state_machine/static_route_table.js +2 -0
- package/dist/engine/pipeline/state_machine/static_route_table.js.map +1 -1
- package/dist/engine/pipeline/state_machine/uncertainty_bridge.d.ts +25 -0
- package/dist/engine/pipeline/state_machine/uncertainty_bridge.d.ts.map +1 -1
- package/dist/engine/pipeline/state_machine/uncertainty_bridge.js +18 -0
- package/dist/engine/pipeline/state_machine/uncertainty_bridge.js.map +1 -1
- package/dist/engine/pipeline/target_classifier.d.ts +48 -0
- package/dist/engine/pipeline/target_classifier.d.ts.map +1 -0
- package/dist/engine/pipeline/target_classifier.js +129 -0
- package/dist/engine/pipeline/target_classifier.js.map +1 -0
- package/dist/engine/pipeline/task_context/manager.js.map +1 -1
- package/dist/engine/pipeline/task_context/manager_setters.js +1 -1
- package/dist/engine/pipeline/task_context/manager_setters.js.map +1 -1
- package/dist/engine/pipeline/task_planner.d.ts.map +1 -1
- package/dist/engine/pipeline/task_planner.js +2 -2
- package/dist/engine/pipeline/task_planner.js.map +1 -1
- package/dist/engine/release/foundation_scenario_registry.js +3 -3
- package/dist/engine/release/foundation_scenario_registry.js.map +1 -1
- package/dist/engine/release/gate_checks/checkControlPlaneTrust.d.ts.map +1 -1
- package/dist/engine/release/gate_checks/checkControlPlaneTrust.js +1 -0
- package/dist/engine/release/gate_checks/checkControlPlaneTrust.js.map +1 -1
- package/dist/engine/release/gate_checks/checkKnowledgeAssetSchemaP0.js +1 -1
- package/dist/engine/release/gate_checks/checkKnowledgeAssetSchemaP0.js.map +1 -1
- package/dist/engine/release/gate_checks/checkWorkflowNavigation.d.ts.map +1 -1
- package/dist/engine/release/gate_checks/checkWorkflowNavigation.js +27 -60
- package/dist/engine/release/gate_checks/checkWorkflowNavigation.js.map +1 -1
- package/dist/engine/release/release_gate_scenario_registry.js +9 -9
- package/dist/engine/release/release_gate_scenario_registry.js.map +1 -1
- package/dist/engine/release/release_issue_scenario_registry/scenarios_architecture_workshop.js +17 -17
- package/dist/engine/release/release_issue_scenario_registry/scenarios_architecture_workshop.js.map +1 -1
- package/dist/engine/release/release_issue_scenario_registry/scenarios_code_observability.js +3 -3
- package/dist/engine/release/release_issue_scenario_registry/scenarios_code_observability.js.map +1 -1
- package/dist/engine/release/release_issue_scenario_registry/scenarios_decision_workshop.js +18 -18
- package/dist/engine/release/release_issue_scenario_registry/scenarios_decision_workshop.js.map +1 -1
- package/dist/engine/release/release_issue_scenario_registry/scenarios_design_pack.js +10 -10
- package/dist/engine/release/release_issue_scenario_registry/scenarios_design_pack.js.map +1 -1
- package/dist/engine/release/release_issue_scenario_registry/scenarios_template_contract.js +3 -3
- package/dist/engine/release/release_issue_scenario_registry/scenarios_template_contract.js.map +1 -1
- package/dist/engine/release/release_issue_scenario_registry/scenarios_template_visibility.js +13 -13
- package/dist/engine/release/release_issue_scenario_registry/scenarios_template_visibility.js.map +1 -1
- package/dist/engine/release/release_issue_scenario_registry/workshop_helpers.d.ts +1 -1
- package/dist/engine/release/release_issue_scenario_registry/workshop_helpers.d.ts.map +1 -1
- package/dist/engine/release/release_issue_scenario_registry/workshop_helpers.js +14 -3
- package/dist/engine/release/release_issue_scenario_registry/workshop_helpers.js.map +1 -1
- package/dist/engine/retention_policy.js +1 -1
- package/dist/engine/retention_policy.js.map +1 -1
- package/dist/engine/templates/asset_manifest.d.ts.map +1 -1
- package/dist/engine/templates/asset_manifest.js +1 -0
- package/dist/engine/templates/asset_manifest.js.map +1 -1
- package/dist/engine/templates/consumable_asset_registry/builtin_assets_core.js +2 -2
- package/dist/engine/templates/consumable_asset_registry/builtin_assets_core.js.map +1 -1
- package/dist/engine/templates/consumable_asset_registry/builtin_assets_dual_layer_core.d.ts.map +1 -1
- package/dist/engine/templates/consumable_asset_registry/builtin_assets_dual_layer_core.js +2 -22
- package/dist/engine/templates/consumable_asset_registry/builtin_assets_dual_layer_core.js.map +1 -1
- package/dist/engine/templates/consumption_trace_store.js +2 -2
- package/dist/engine/templates/consumption_trace_store.js.map +1 -1
- package/dist/engine/templates/explicit_asset_registry/artifacts_shared_part2.js +1 -1
- package/dist/engine/templates/explicit_asset_registry/artifacts_shared_part2.js.map +1 -1
- package/dist/engine/templates/explicit_asset_registry/gates.d.ts.map +1 -1
- package/dist/engine/templates/explicit_asset_registry/gates.js +50 -0
- package/dist/engine/templates/explicit_asset_registry/gates.js.map +1 -1
- package/dist/engine/templates/explicit_asset_registry/procedures_part1.d.ts.map +1 -1
- package/dist/engine/templates/explicit_asset_registry/procedures_part1.js +16 -0
- package/dist/engine/templates/explicit_asset_registry/procedures_part1.js.map +1 -1
- package/dist/engine/templates/explicit_asset_registry/procedures_part2.d.ts.map +1 -1
- package/dist/engine/templates/explicit_asset_registry/procedures_part2.js +35 -2
- package/dist/engine/templates/explicit_asset_registry/procedures_part2.js.map +1 -1
- package/dist/engine/templates/explicit_asset_registry/rules_pipeline.d.ts.map +1 -1
- package/dist/engine/templates/explicit_asset_registry/rules_pipeline.js +16 -0
- package/dist/engine/templates/explicit_asset_registry/rules_pipeline.js.map +1 -1
- package/dist/engine/templates/explicit_asset_registry/rules_shared.d.ts.map +1 -1
- package/dist/engine/templates/explicit_asset_registry/rules_shared.js +310 -0
- package/dist/engine/templates/explicit_asset_registry/rules_shared.js.map +1 -1
- package/dist/engine/templates/workflow_rule_generator.d.ts +1 -1
- package/dist/engine/templates/workflow_rule_generator.js +2 -2
- package/dist/engine/workflow/next_action_planner.d.ts.map +1 -1
- package/dist/engine/workflow/next_action_planner.js +21 -27
- package/dist/engine/workflow/next_action_planner.js.map +1 -1
- package/dist/engine/workflow/project_stage_detector.d.ts.map +1 -1
- package/dist/engine/workflow/project_stage_detector.js +6 -4
- package/dist/engine/workflow/project_stage_detector.js.map +1 -1
- package/dist/git/git_deps.d.ts +1 -0
- package/dist/git/git_deps.d.ts.map +1 -1
- package/dist/git/operations.d.ts +1 -0
- package/dist/git/operations.d.ts.map +1 -1
- package/dist/git/operations.js +2 -0
- package/dist/git/operations.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/knowledge/conflict_detector.d.ts.map +1 -1
- package/dist/knowledge/conflict_detector.js +13 -2
- package/dist/knowledge/conflict_detector.js.map +1 -1
- package/dist/knowledge/health_checker.d.ts.map +1 -1
- package/dist/knowledge/health_checker.js +5 -3
- package/dist/knowledge/health_checker.js.map +1 -1
- package/dist/knowledge/index_manager.d.ts +15 -0
- package/dist/knowledge/index_manager.d.ts.map +1 -1
- package/dist/knowledge/index_manager.js +106 -6
- package/dist/knowledge/index_manager.js.map +1 -1
- package/dist/knowledge/loader.d.ts +8 -4
- package/dist/knowledge/loader.d.ts.map +1 -1
- package/dist/knowledge/loader.js +189 -34
- package/dist/knowledge/loader.js.map +1 -1
- package/dist/knowledge/writer.js +2 -2
- package/dist/knowledge/writer.js.map +1 -1
- package/dist/server/tools/cep_assessment.d.ts +6 -0
- package/dist/server/tools/cep_assessment.d.ts.map +1 -1
- package/dist/server/tools/cep_assessment.js +23 -0
- package/dist/server/tools/cep_assessment.js.map +1 -1
- package/dist/server/tools/index.d.ts.map +1 -1
- package/dist/server/tools/index.js +11 -9
- package/dist/server/tools/index.js.map +1 -1
- package/dist/server/tools/lazy_loaders.d.ts +1 -1
- package/dist/server/tools/lazy_loaders.d.ts.map +1 -1
- package/dist/server/tools/lazy_loaders.js +2 -1
- package/dist/server/tools/lazy_loaders.js.map +1 -1
- package/dist/server/tools/middleware.d.ts +2 -0
- package/dist/server/tools/middleware.d.ts.map +1 -1
- package/dist/server/tools/middleware.js +100 -7
- package/dist/server/tools/middleware.js.map +1 -1
- package/dist/server/tools/schemas.d.ts +4 -4
- package/dist/server/tools/tool_groups/admin.d.ts.map +1 -1
- package/dist/server/tools/tool_groups/admin.js +13 -16
- package/dist/server/tools/tool_groups/admin.js.map +1 -1
- package/dist/server/tools/tool_groups/knowledge.js +2 -2
- package/dist/server/tools/tool_groups/knowledge.js.map +1 -1
- package/dist/server/tools/tool_groups/product_operations.d.ts +11 -0
- package/dist/server/tools/tool_groups/product_operations.d.ts.map +1 -0
- package/dist/server/tools/tool_groups/product_operations.js +43 -0
- package/dist/server/tools/tool_groups/product_operations.js.map +1 -0
- package/dist/server/tools/tool_groups/state_machine.d.ts +34 -3
- package/dist/server/tools/tool_groups/state_machine.d.ts.map +1 -1
- package/dist/server/tools/tool_groups/state_machine.js +812 -56
- package/dist/server/tools/tool_groups/state_machine.js.map +1 -1
- package/dist/server/tools/tool_names.d.ts +2 -1
- package/dist/server/tools/tool_names.d.ts.map +1 -1
- package/dist/server/tools/tool_names.js +4 -1
- package/dist/server/tools/tool_names.js.map +1 -1
- package/dist/types/knowledge.d.ts +2 -4
- package/dist/types/knowledge.d.ts.map +1 -1
- package/dist/types/knowledge.js.map +1 -1
- package/dist/types/pipeline.d.ts +4 -3
- package/dist/types/pipeline.d.ts.map +1 -1
- package/dist/types/state_machine.d.ts +46 -4
- package/dist/types/state_machine.d.ts.map +1 -1
- package/dist/types/state_machine.js +1 -1
- package/dist/types/state_machine.js.map +1 -1
- package/package.json +14 -14
- package/templates/artifacts/existing-system//344/270/200/351/224/256/345/274/200/345/205/263/351/205/215/347/275/256/346/250/241/347/211/210.json +24 -2
- package/templates/artifacts/existing-system//345/216/206/345/217/262/346/225/260/346/215/256/346/270/205/346/264/227/350/204/232/346/234/254/346/250/241/347/211/210.md +12 -5
- package/templates/artifacts/existing-system//345/216/206/345/217/262/351/201/227/347/225/231/351/233/267/345/214/272/346/270/205/345/215/225/346/250/241/347/211/210.md +25 -21
- package/templates/artifacts/existing-system//345/220/221/345/220/216/345/205/274/345/256/271/346/200/247/345/220/210/350/247/204/346/212/245/345/221/212/346/250/241/347/211/210.md +26 -14
- package/templates/artifacts/existing-system//345/242/236/351/207/217/350/276/271/347/225/214/347/225/214/345/256/232/346/226/207/346/241/243/346/250/241/347/211/210.md +22 -14
- package/templates/artifacts/existing-system//346/224/271/351/200/240/345/275/261/345/223/215/350/214/203/345/233/264/350/257/204/344/274/260/346/250/241/347/211/210.md +19 -6
- package/templates/artifacts/existing-system//346/225/260/346/215/256/350/241/200/347/274/230/345/233/276/346/250/241/347/211/210.md +16 -6
- package/templates/artifacts/existing-system//346/226/260/350/200/201/351/200/273/350/276/221/346/257/224/345/257/271/346/227/245/345/277/227/346/250/241/347/211/210.md +11 -6
- package/templates/artifacts/existing-system//347/264/247/346/200/245/345/233/236/346/273/232/346/211/213/345/206/214/346/250/241/347/211/210.md +49 -13
- package/templates/artifacts/existing-system//351/232/224/347/246/273/351/200/202/351/205/215/345/231/250/346/226/271/346/241/210/346/250/241/347/211/210.md +14 -7
- package/templates/artifacts/shared/ADR/346/250/241/347/211/210.md +17 -5
- package/templates/artifacts/shared/API/346/216/245/345/217/243/350/247/204/346/240/274/346/226/207/346/241/243/346/250/241/347/211/210.md +34 -73
- package/templates/artifacts/shared/Bug/345/210/206/346/236/220/346/250/241/347/211/210.md +2 -10
- package/templates/artifacts/shared/OOD/350/256/276/350/256/241/346/221/230/350/246/201/346/250/241/347/211/210.md +2 -8
- package/templates/artifacts/shared/POC/347/273/223/350/256/272/346/250/241/347/211/210.md +2 -10
- package/templates/artifacts/shared//344/273/243/347/240/201/345/256/241/346/237/245/346/212/245/345/221/212/346/250/241/347/211/210.md +47 -10
- package/templates/artifacts/shared//344/273/243/347/240/201/346/263/250/351/207/212/344/270/216/346/227/245/345/277/227/351/252/214/346/224/266/346/250/241/347/211/210.md +2 -8
- package/templates/artifacts/shared//345/210/207/347/211/207/350/256/241/345/210/222/346/250/241/347/211/210.md +126 -17
- package/templates/artifacts/shared//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 +2 -14
- package/templates/artifacts/shared//345/216/237/345/236/213/350/257/264/346/230/216/346/250/241/347/211/210.md +118 -226
- package/templates/artifacts/shared//345/220/216/347/253/257API/351/252/214/346/224/266/346/270/205/345/215/225.md +2 -13
- package/templates/artifacts/shared//345/220/216/347/253/257/345/256/236/347/216/260/351/252/214/346/224/266/346/270/205/345/215/225.md +11 -10
- package/templates/artifacts/shared//345/256/211/345/205/250/345/256/241/350/256/241/346/250/241/347/211/210.md +8 -33
- package/templates/artifacts/shared//345/256/241/346/237/245/346/221/230/350/246/201.md +10 -15
- package/templates/artifacts/shared//346/200/247/350/203/275/345/210/206/346/236/220/346/250/241/347/211/210.md +2 -10
- package/templates/artifacts/shared//346/212/200/346/234/257/351/200/211/345/236/213/351/252/214/346/224/266/346/270/205/345/215/225.md +2 -13
- package/templates/artifacts/shared//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 +54 -20
- package/templates/artifacts/shared//346/225/205/351/232/234/345/244/215/347/233/230/346/250/241/347/211/210.md +2 -11
- package/templates/artifacts/shared//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 +43 -31
- package/templates/artifacts/shared//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 +2 -15
- package/templates/artifacts/shared//346/225/260/346/215/256/345/272/223/350/256/276/350/256/241/346/226/207/346/241/243/346/250/241/347/211/210.md +123 -44
- package/templates/artifacts/shared//346/236/266/346/236/204/350/256/276/350/256/241/346/250/241/347/211/210.md +113 -76
- package/templates/artifacts/shared//346/265/213/350/257/225/350/256/241/345/210/222/346/250/241/347/211/210.md +27 -18
- package/templates/artifacts/shared//350/256/276/350/256/241/344/270/200/350/207/264/346/200/247/351/252/214/346/224/266/346/212/245/345/221/212/346/250/241/347/211/210.md +7 -29
- package/templates/artifacts/shared//350/257/246/347/273/206/350/256/276/350/256/241/346/250/241/347/211/210.md +83 -30
- package/templates/artifacts/shared//350/277/201/347/247/273/350/257/204/344/274/260/346/250/241/347/211/210.md +15 -12
- package/templates/artifacts/shared//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 +157 -36
- package/templates/artifacts/shared//351/207/215/346/236/204/346/226/271/346/241/210/346/250/241/347/211/210.md +2 -10
- package/templates/artifacts/shared//351/234/200/346/261/202/345/210/206/346/236/220/346/250/241/347/211/210.md +74 -15
- package/templates/artifacts/shared//351/234/200/346/261/202/345/216/237/345/236/213/350/256/276/350/256/241/345/256/236/347/216/260/350/277/275/350/270/252/347/237/251/351/230/265/346/250/241/347/211/210.md +45 -52
- package/templates/checklists//344/270/273/351/223/276/350/267/257/346/216/245/345/205/245/351/252/214/346/224/266/346/270/205/345/215/225.md +1 -7
- package/templates/checklists//344/274/232/350/257/235/346/201/242/345/244/215.md +2 -12
- package/templates/checklists//345/267/245/344/275/234/346/265/201/351/252/214/346/224/266/346/270/205/345/215/225.md +1 -7
- package/templates/checklists//346/240/270/345/277/203/345/267/245/347/250/213/346/211/247/350/241/214/351/252/214/346/224/266/346/270/205/345/215/225.md +1 -7
- package/templates/checklists//347/237/245/350/257/206/346/263/250/345/205/245/351/252/214/346/224/266/346/270/205/345/215/225.md +1 -7
- package/templates/checklists//351/232/220/347/247/201/345/256/241/346/237/245/346/270/205/345/215/225.md +1 -7
- package/templates/checklists//351/252/214/350/257/201/351/252/214/346/224/266/346/270/205/345/215/225.md +1 -7
- package/templates/domain//345/244/232/347/247/237/346/210/267.md +1 -13
- package/templates/domain//345/256/241/350/256/241/346/227/245/345/277/227.md +1 -12
- package/templates/domain//345/257/274/345/205/245/345/257/274/345/207/272/350/247/204/345/210/231.md +1 -14
- package/templates/domain//345/267/245/344/275/234/346/265/201/345/274/225/346/223/216.md +1 -17
- package/templates/domain//346/212/245/350/241/250/347/273/237/350/256/241.md +1 -15
- package/templates/domain//346/224/257/344/273/230/350/247/204/345/210/231.md +1 -16
- package/templates/domain//346/225/260/346/215/256/346/235/203/351/231/220.md +1 -13
- package/templates/domain//351/200/232/347/224/250/346/234/272/346/242/260/346/235/241/346/254/276.md +1 -15
- package/templates/domain//351/200/232/347/237/245/350/247/204/345/210/231.md +1 -15
- package/templates/gates/existing-system/gate-/346/236/266/346/236/204/350/256/276/350/256/241.yaml +13 -14
- package/templates/gates/existing-system/gate-/347/216/260/346/234/211/347/263/273/347/273/237/345/210/206/346/236/220.yaml +48 -0
- package/templates/gates/existing-system/gate-/347/274/226/347/240/201/344/270/216/345/215/225/345/205/203/346/265/213/350/257/225.yaml +41 -8
- package/templates/gates/existing-system/gate-/350/257/225/350/277/220/350/241/214.yaml +30 -12
- package/templates/gates/existing-system/gate-/350/257/246/347/273/206/350/256/276/350/256/241.yaml +25 -15
- package/templates/gates/shared/gate-/344/272/244/344/273/230.yaml +26 -8
- package/templates/gates/shared/gate-/344/273/243/347/240/201/345/256/241/346/237/245.yaml +54 -8
- package/templates/gates/shared/gate-/344/273/273/345/212/241/350/247/204/345/210/222.yaml +131 -5
- package/templates/gates/shared/gate-/345/210/207/347/211/207/345/256/241/346/237/245.yaml +62 -0
- package/templates/gates/shared/gate-/345/210/207/347/211/207/346/211/247/350/241/214.yaml +51 -0
- package/templates/gates/shared/gate-/345/217/221/345/270/203/345/220/216/350/247/202/345/257/237.yaml +40 -8
- package/templates/gates/shared/gate-/345/256/211/345/205/250/345/256/241/350/256/241.yaml +77 -0
- package/templates/gates/shared/gate-/346/236/266/346/236/204/350/256/276/350/256/241.yaml +136 -9
- package/templates/gates/shared/gate-/347/274/226/347/240/201/344/270/216/345/215/225/345/205/203/346/265/213/350/257/225.yaml +30 -4
- package/templates/gates/shared/gate-/347/274/226/347/240/201/345/207/206/345/244/207.yaml +40 -4
- package/templates/gates/shared/gate-/347/274/226/347/240/201/345/256/236/347/216/260.yaml +54 -4
- package/templates/gates/shared/gate-/347/274/226/347/240/201/351/252/214/350/257/201.yaml +33 -4
- package/templates/gates/shared/gate-/350/201/224/350/260/203/351/252/214/350/257/201.yaml +47 -8
- package/templates/gates/shared/gate-/350/257/246/347/273/206/350/256/276/350/256/241.yaml +118 -9
- package/templates/gates/shared/gate-/351/234/200/346/261/202/345/210/206/346/236/220.yaml +154 -8
- package/templates/internal/patterns/Diff/345/275/222/345/261/236/350/277/275/350/270/252.md +1 -10
- package/templates/internal/patterns/Hook/345/261/202/344/272/247/347/211/251/347/273/223/346/236/204/346/240/241/351/252/214.md +2 -6
- package/templates/internal/patterns/Java/350/264/250/351/207/217/351/227/250/347/246/201.md +1 -11
- package/templates/internal/patterns/LLM/351/242/204/347/256/227/347/275/221/345/205/263.md +1 -10
- package/templates/internal/patterns//344/272/247/347/211/251Schema/346/263/250/345/206/214/344/270/255/345/277/203.md +1 -5
- package/templates/internal/patterns//344/273/273/345/212/241/344/270/212/344/270/213/346/226/207/347/224/237/345/221/275/345/221/250/346/234/237.md +1 -10
- package/templates/internal/patterns//344/273/273/345/212/241/347/256/241/347/220/206/345/231/250.md +1 -11
- package/templates/internal/patterns//344/275/234/347/224/250/345/237/237/344/270/216/345/257/206/351/222/245/346/213/246/346/210/252.md +1 -10
- package/templates/internal/patterns//344/275/234/347/224/250/345/237/237/347/247/237/347/272/246.md +1 -11
- package/templates/internal/patterns//345/206/262/347/252/201/351/227/250/347/246/201.md +1 -10
- package/templates/internal/patterns//345/206/263/347/255/226/347/275/221/345/205/263.md +1 -12
- package/templates/internal/patterns//345/210/206/345/234/272/346/231/257/350/277/207/347/250/213/350/247/204/345/210/231.md +1 -5
- package/templates/internal/patterns//345/217/230/345/274/202/345/256/241/350/256/241.md +1 -11
- package/templates/internal/patterns//345/233/236/345/275/222/347/237/251/351/230/265.md +1 -10
- package/templates/internal/patterns//345/267/245/344/275/234/345/214/272/344/272/222/346/226/245/351/224/201.md +1 -10
- package/templates/internal/patterns//345/267/245/344/275/234/345/214/272/345/224/244/351/206/222.md +1 -10
- package/templates/internal/patterns//345/271/266/345/217/221/351/224/201.md +1 -12
- package/templates/internal/patterns//345/274/200/345/217/221/350/200/205/345/256/252/346/263/225.md +1 -12
- package/templates/internal/patterns//346/225/217/346/204/237/344/277/241/346/201/257/346/211/253/346/217/217.md +1 -10
- package/templates/internal/patterns//346/250/241/347/211/210Frontmatter/350/247/243/346/236/220.md +1 -5
- package/templates/internal/patterns//346/262/273/347/220/206/350/277/220/350/241/214/346/227/266/345/276/252/347/216/257.md +1 -11
- package/templates/internal/patterns//346/265/201/345/274/217/345/277/203/350/267/263.md +2 -12
- package/templates/internal/patterns//347/237/245/350/257/206/344/270/273/346/235/203.md +1 -11
- package/templates/internal/patterns//350/257/255/344/271/211/350/257/201/346/215/256.md +1 -10
- package/templates/internal/patterns//350/277/220/350/241/214/345/256/211/345/205/250/345/214/205.md +1 -11
- package/templates/internal/patterns//351/252/214/350/257/201/345/221/275/344/273/244/347/224/237/346/210/220.md +4 -12
- package/templates/internal/rules/OOD/344/270/216SOLID/350/256/276/350/256/241/350/247/204/345/210/231.md +0 -12
- package/templates/internal/rules//344/272/247/347/211/251/345/245/221/347/272/246/350/247/204/345/210/231.md +1 -7
- package/templates/internal/rules//344/273/243/347/240/201/346/263/250/351/207/212/344/270/216/346/227/245/345/277/227/345/245/221/347/272/246/350/247/204/345/210/231.md +3 -28
- package/templates/internal/rules//344/273/273/345/212/241/344/270/212/344/270/213/346/226/207/347/224/237/345/221/275/345/221/250/346/234/237/350/247/204/345/210/231.md +0 -9
- package/templates/internal/rules//345/220/216/347/253/257/345/256/236/347/216/260/345/267/245/347/250/213/345/245/221/347/272/246/350/247/204/345/210/231.md +0 -12
- package/templates/internal/rules//345/221/275/344/273/244/346/211/247/350/241/214/350/247/204/345/210/231.md +1 -7
- package/templates/internal/rules//345/221/275/344/273/244/350/267/257/347/224/261/350/247/204/345/210/231.md +0 -6
- package/templates/internal/rules//345/267/245/344/275/234/346/265/201/345/245/221/347/272/246/350/247/204/345/210/231.md +1 -7
- package/templates/internal/rules//345/267/245/344/275/234/346/265/201/345/257/274/350/210/252/345/245/221/347/272/246/350/247/204/345/210/231.md +9 -19
- package/templates/internal/rules//345/267/245/344/275/234/346/265/201/346/250/241/347/211/210/345/214/205/350/247/204/345/210/231.md +0 -7
- package/templates/internal/rules//345/267/245/345/205/267/350/260/203/347/224/250/350/247/204/345/210/231.md +1 -7
- package/templates/internal/rules//346/204/217/345/233/276/350/267/257/347/224/261/350/247/204/345/210/231.md +2 -8
- package/templates/internal/rules//346/211/247/350/241/214/345/256/210/345/215/253/350/257/204/344/274/260/350/247/204/345/210/231.md +1 -7
- package/templates/internal/rules//346/211/251/345/261/225/347/224/237/345/221/275/345/221/250/346/234/237/350/247/204/345/210/231.md +0 -7
- package/templates/internal/rules//346/212/200/346/234/257/345/206/263/347/255/226/344/270/273/346/235/203/350/247/204/345/210/231.md +0 -10
- package/templates/internal/rules//346/225/217/346/204/237/344/277/241/346/201/257/345/244/204/347/220/206/350/247/204/345/210/231.md +4 -18
- package/templates/internal/rules//346/226/275/345/267/245/346/214/207/344/273/244/345/245/221/347/272/246/350/247/204/345/210/231.md +0 -8
- package/templates/internal/rules//346/227/245/345/277/227/346/262/273/347/220/206/350/247/204/345/210/231.md +0 -11
- package/templates/internal/rules//346/234/272/345/210/266/350/207/252/346/262/273/347/220/206/350/247/204/345/210/231.md +0 -11
- package/templates/internal/rules//346/236/266/346/236/204/345/206/263/347/255/226/347/240/224/350/256/250/350/247/204/345/210/231.md +4 -6
- package/templates/internal/rules//346/240/207/345/207/206/350/265/204/344/272/247/350/246/206/347/233/226/350/247/204/345/210/231.md +0 -10
- package/templates/internal/rules//346/240/270/345/277/203/344/275/223/351/252/214/345/216/237/345/210/231.md +1 -8
- package/templates/internal/rules//346/240/270/345/277/203/345/267/245/347/250/213/346/211/247/350/241/214/345/216/237/345/210/231.md +2 -8
- package/templates/internal/rules//346/250/241/347/211/210Frontmatter/350/247/204/350/214/203.md +85 -64
- package/templates/internal/rules//346/250/241/347/211/210/350/265/204/344/272/247/345/217/257/350/247/201/346/200/247/350/247/204/345/210/231.md +0 -11
- package/templates/internal/rules//346/263/250/345/206/214/350/241/250/345/237/272/347/241/200/350/256/276/346/226/275/350/247/204/345/210/231.md +1 -7
- package/templates/internal/rules//346/274/224/350/277/233/345/233/236/345/275/222/351/227/250/346/216/247/350/247/204/345/210/231.md +0 -13
- package/templates/internal/rules//347/224/250/346/210/267/345/217/215/351/246/210/345/245/221/347/272/246/350/247/204/345/210/231.md +1 -17
- package/templates/internal/rules//347/237/245/350/257/206/346/262/273/347/220/206/350/247/204/345/210/231.md +0 -11
- package/templates/internal/rules//347/237/245/350/257/206/346/263/250/345/205/245/350/276/271/347/225/214/350/247/204/345/210/231.md +1 -7
- package/templates/internal/rules//347/237/245/350/257/206/350/265/204/344/272/247/346/262/273/347/220/206/350/247/204/345/210/231.md +1 -9
- package/templates/internal/rules//347/254/254/344/270/200/346/200/247/345/216/237/347/220/206/346/216/250/347/220/206/350/247/204/345/210/231.md +0 -10
- package/templates/internal/rules//347/273/206/350/212/202/347/272/252/345/276/213/350/247/204/345/210/231.md +0 -10
- package/templates/internal/rules//350/204/221/346/232/264/344/270/216/346/226/271/346/241/210/346/216/242/347/264/242/350/247/204/345/210/231.md +0 -10
- package/templates/internal/rules//350/256/241/345/210/222/345/211/215/347/275/256/351/227/250/350/247/204/345/210/231.md +1 -11
- package/templates/internal/rules//350/256/276/350/256/241/344/272/247/347/211/251/345/214/205/350/247/204/345/210/231.md +6 -7
- package/templates/internal/rules//350/257/201/346/215/256/351/251/261/345/212/250/344/270/216/345/217/215/345/271/273/350/247/211/350/247/204/345/210/231.md +0 -11
- package/templates/internal/rules//350/267/250/345/271/263/345/217/260/350/267/257/345/276/204/345/256/211/345/205/250/350/247/204/345/210/231.md +0 -7
- package/templates/internal/rules//350/276/223/345/205/245/346/235/220/346/226/231/345/245/221/347/272/246/350/247/204/345/210/231.md +1 -7
- package/templates/internal/rules//351/200/232/347/224/250/345/206/263/347/255/226/347/240/224/350/256/250/350/247/204/345/210/231.md +0 -15
- package/templates/internal/rules//351/205/215/347/275/256/344/274/230/345/205/210/347/272/247/350/247/204/345/210/231.md +38 -34
- package/templates/internal/rules//351/205/215/347/275/256/350/220/275/347/233/230/350/276/271/347/225/214/350/247/204/345/210/231.md +5 -14
- package/templates/internal/rules//351/230/262/345/255/244/345/262/233/345/256/236/347/216/260/350/247/204/345/210/231.md +1 -7
- package/templates/internal/rules//351/233/266/351/205/215/347/275/256/345/210/235/345/247/213/345/214/226/350/247/204/345/210/231.md +31 -34
- package/templates/internal/rules//351/252/214/346/224/266/346/250/241/347/211/210/350/276/223/345/207/272/345/245/221/347/272/246/350/247/204/345/210/231.md +0 -13
- package/templates/internal/rules//351/252/214/350/257/201/345/245/221/347/272/246/350/247/204/345/210/231.md +1 -7
- package/templates/patterns/API/350/256/276/350/256/241/350/247/204/350/214/203.md +1 -15
- package/templates/patterns/Docker/351/203/250/347/275/262/350/247/204/350/214/203.md +1 -13
- package/templates/patterns/Git/346/223/215/344/275/234/350/247/204/350/214/203.md +1 -17
- package/templates/patterns/N/345/212/2401/346/237/245/350/257/242/350/247/204/350/214/203.md +1 -16
- package/templates/patterns/React/345/210/227/350/241/250/350/241/250/346/240/274/350/247/204/350/214/203.md +1 -15
- package/templates/patterns/React/346/216/245/345/217/243/351/233/206/346/210/220/350/247/204/350/214/203.md +1 -16
- package/templates/patterns/React/347/212/266/346/200/201/347/256/241/347/220/206/350/247/204/350/214/203.md +1 -16
- package/templates/patterns/React/347/273/204/344/273/266/350/247/204/350/214/203.md +1 -15
- package/templates/patterns/React/350/241/250/345/215/225/350/247/204/350/214/203.md +1 -15
- package/templates/patterns/React/350/267/257/347/224/261/350/247/204/350/214/203.md +1 -16
- package/templates/patterns/SOLID/350/256/276/350/256/241/350/247/204/350/214/203.md +1 -8
- package/templates/patterns/Schema/345/205/274/345/256/271/350/247/204/350/214/203.md +1 -15
- package/templates/patterns/Vue/347/212/266/346/200/201/347/256/241/347/220/206/350/247/204/350/214/203.md +1 -14
- package/templates/patterns/Vue/347/273/204/344/273/266/350/247/204/350/214/203.md +1 -18
- package/templates/patterns/Vue/350/267/257/347/224/261/350/247/204/350/214/203.md +1 -13
- package/templates/patterns//344/272/213/344/273/266/351/251/261/345/212/250/350/247/204/350/214/203.md +1 -17
- package/templates/patterns//344/272/213/345/212/241/346/250/241/345/274/217/350/247/204/350/214/203.md +1 -16
- package/templates/patterns//344/274/230/351/233/205/345/201/234/346/234/272/350/247/204/350/214/203.md +1 -16
- package/templates/patterns//345/205/250/346/240/210/346/265/201/347/250/213/344/277/256/345/244/215.md +1 -14
- package/templates/patterns//345/210/206/351/241/265/346/237/245/350/257/242/350/247/204/350/214/203.md +1 -19
- package/templates/patterns//345/211/215/347/253/257/346/200/247/350/203/275/350/247/204/350/214/203.md +1 -17
- package/templates/patterns//345/220/216/347/253/257/345/256/236/347/216/260/345/267/245/347/250/213/350/247/204/350/214/203.md +1 -8
- package/templates/patterns//345/221/275/345/220/215/350/247/204/350/214/203.md +1 -14
- package/templates/patterns//345/233/275/351/231/205/345/214/226/350/247/204/350/214/203.md +1 -16
- package/templates/patterns//345/242/236/345/210/240/346/224/271/346/237/245/350/247/204/350/214/203.md +1 -16
- package/templates/patterns//345/244/226/351/203/250/344/276/235/350/265/226/350/247/204/350/214/203.md +1 -16
- package/templates/patterns//345/245/221/347/272/246/345/205/274/345/256/271/350/247/204/350/214/203.md +1 -13
- package/templates/patterns//345/256/232/346/227/266/344/273/273/345/212/241/350/247/204/350/214/203.md +1 -17
- package/templates/patterns//345/256/236/346/227/266/346/216/250/351/200/201/350/247/204/350/214/203.md +1 -15
- package/templates/patterns//345/267/245/347/250/213/347/272/252/345/276/213.md +1 -14
- package/templates/patterns//345/271/266/345/217/221/346/216/247/345/210/266/350/247/204/350/214/203.md +1 -19
- package/templates/patterns//345/274/202/346/255/245/345/257/274/345/207/272/350/247/204/350/214/203.md +1 -16
- package/templates/patterns//346/216/245/345/217/243/345/245/221/347/272/246/350/247/204/350/214/203.md +1 -14
- package/templates/patterns//346/220/234/347/264/242/346/250/241/345/274/217/350/247/204/350/214/203.md +1 -17
- package/templates/patterns//346/225/260/346/215/256/351/232/220/347/247/201/350/247/204/350/214/203.md +2 -19
- package/templates/patterns//346/226/207/344/273/266/344/270/212/344/274/240/350/247/204/350/214/203.md +1 -15
- package/templates/patterns//346/227/240/351/232/234/347/242/215/350/247/204/350/214/203.md +1 -15
- package/templates/patterns//346/227/245/345/277/227/350/247/204/350/214/203.md +1 -16
- package/templates/patterns//346/235/203/351/231/220/350/256/244/350/257/201/350/247/204/350/214/203.md +1 -19
- package/templates/patterns//346/236/266/346/236/204/347/272/242/347/272/277.md +1 -13
- package/templates/patterns//346/265/213/350/257/225/350/264/250/351/207/217/350/247/204/350/214/203.md +1 -14
- package/templates/patterns//347/206/224/346/226/255/351/231/215/347/272/247/350/247/204/350/214/203.md +1 -17
- package/templates/patterns//347/212/266/346/200/201/346/265/201/350/275/254/350/247/204/350/214/203.md +1 -14
- package/templates/patterns//347/272/246/346/235/237/345/256/236/347/216/260/350/247/204/350/214/203.md +1 -16
- package/templates/patterns//347/274/223/345/255/230/347/255/226/347/225/245/350/247/204/350/214/203.md +1 -16
- package/templates/patterns//347/274/226/347/240/201/350/264/250/351/207/217/350/247/204/350/214/203.md +1 -14
- package/templates/patterns//347/274/272/351/231/267/347/256/241/347/220/206/350/247/204/350/214/203.md +1 -13
- package/templates/patterns//350/260/203/350/257/225/346/226/271/346/263/225/350/256/272.md +1 -14
- package/templates/patterns//350/276/223/345/205/245/346/240/241/351/252/214/350/247/204/350/214/203.md +1 -16
- package/templates/patterns//351/224/231/350/257/257/345/244/204/347/220/206/350/247/204/350/214/203.md +1 -16
- package/templates/patterns//351/224/231/350/257/257/350/276/271/347/225/214/350/247/204/350/214/203.md +1 -18
- 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 +1 -15
- package/templates/procedures/OOD/350/256/276/350/256/241/345/267/245/344/275/234/346/265/201.md +41 -20
- package/templates/procedures/Schema/345/217/230/346/233/264/346/265/201/346/260/264/347/272/277.md +7 -13
- package/templates/procedures//344/270/215/347/241/256/345/256/232/346/227/266/345/244/264/350/204/221/351/243/216/346/232/264/346/265/201/347/250/213.md +92 -0
- package/templates/procedures//344/270/273/351/223/276/350/267/257/346/216/245/345/205/245/351/252/214/350/257/201/346/265/201/347/250/213.md +8 -9
- package/templates/procedures//344/273/243/347/240/201/351/227/250/347/246/201/346/265/201/347/250/213.md +1 -7
- package/templates/procedures//344/273/273/345/212/241/346/213/206/350/247/243/346/265/201/347/250/213.md +10 -9
- package/templates/procedures//344/273/273/345/212/241/350/247/204/345/210/222/345/267/245/344/275/234/346/265/201.md +83 -0
- package/templates/procedures//344/274/232/350/257/235/346/201/242/345/244/215/346/265/201/347/250/213.md +2 -10
- package/templates/procedures//345/205/250/347/224/237/345/221/275/345/221/250/346/234/237/345/267/245/344/275/234/346/265/201/345/257/274/350/210/252.md +8 -16
- package/templates/procedures//345/212/237/350/203/275/345/274/200/345/217/221/346/265/201/347/250/213.md +11 -16
- package/templates/procedures//345/220/216/347/253/257/346/216/245/345/217/243/345/256/236/347/216/260/345/267/245/344/275/234/346/265/201.md +1 -8
- package/templates/procedures//345/221/275/344/273/244/346/211/247/350/241/214/346/265/201/347/250/213.md +2 -7
- package/templates/procedures//345/221/275/344/273/244/350/267/257/347/224/261/346/265/201/347/250/213.md +0 -6
- package/templates/procedures//345/256/211/345/205/250/345/212/240/345/233/272/346/265/201/346/260/264/347/272/277.md +8 -14
- package/templates/procedures//345/267/245/345/205/267/350/260/203/347/224/250/346/265/201/347/250/213.md +2 -7
- package/templates/procedures//346/200/247/350/203/275/346/265/201/346/260/264/347/272/277.md +7 -13
- package/templates/procedures//346/204/217/345/233/276/350/267/257/347/224/261/346/265/201/347/250/213.md +3 -8
- package/templates/procedures//346/216/245/345/217/243/351/233/206/346/210/220/346/265/201/346/260/264/347/272/277.md +15 -15
- package/templates/procedures//346/225/260/346/215/256/345/272/223/350/277/201/347/247/273/346/265/201/347/250/213.md +1 -7
- package/templates/procedures//346/234/254/345/234/260/346/265/217/350/247/210/345/231/250/351/252/214/346/224/266/345/267/245/344/275/234/346/265/201.md +1 -7
- package/templates/procedures//346/236/266/346/236/204/345/206/263/347/255/226/347/240/224/350/256/250/345/267/245/344/275/234/346/265/201.md +8 -7
- package/templates/procedures//346/236/266/346/236/204/350/256/276/350/256/241/345/267/245/344/275/234/346/265/201.md +23 -11
- package/templates/procedures//346/246/202/345/277/265/351/252/214/350/257/201/346/265/201/346/260/264/347/272/277.md +8 -12
- package/templates/procedures//346/265/213/350/257/225/344/274/230/345/205/210/347/274/226/347/240/201/345/267/245/344/275/234/346/265/201.md +18 -10
- package/templates/procedures//346/272/220/347/240/201/345/216/237/345/236/213/344/272/244/344/273/230/346/265/201/347/250/213.md +9 -15
- package/templates/procedures//347/216/260/346/234/211/347/263/273/347/273/237/345/267/256/350/267/235/345/210/206/346/236/220/345/267/245/344/275/234/346/265/201.md +29 -9
- package/templates/procedures//347/237/245/350/257/206/347/273/264/346/212/244/346/265/201/346/260/264/347/272/277.md +6 -12
- package/templates/procedures//347/264/247/346/200/245/344/277/256/345/244/215/346/265/201/346/260/264/347/272/277.md +8 -14
- package/templates/procedures//347/274/226/347/240/201/345/211/215/346/276/204/346/270/205/346/265/201/347/250/213.md +7 -7
- package/templates/procedures//347/274/226/347/240/201/351/230/266/346/256/265/346/211/247/350/241/214/345/267/245/344/275/234/346/265/201.md +101 -0
- package/templates/procedures//350/207/252/344/270/273/351/200/211/345/236/213/346/265/201/347/250/213.md +1 -7
- package/templates/procedures//350/256/276/350/256/241/344/272/247/347/211/251/347/224/237/346/210/220/344/270/216/345/244/215/351/252/214/345/267/245/344/275/234/346/265/201.md +32 -13
- package/templates/procedures//350/256/276/350/256/241/345/256/241/350/256/241/346/265/201/347/250/213.md +17 -21
- package/templates/procedures//350/257/246/347/273/206/350/256/276/350/256/241/346/265/201/347/250/213.md +91 -24
- package/templates/procedures//350/260/203/350/257/225/346/216/222/346/237/245/346/265/201/347/250/213.md +31 -9
- package/templates/procedures//350/277/201/347/247/273/346/265/201/346/260/264/347/272/277.md +7 -13
- package/templates/procedures//351/203/250/347/275/262/345/217/221/345/270/203/346/265/201/347/250/213.md +35 -9
- package/templates/procedures//351/207/215/346/236/204/346/265/201/346/260/264/347/272/277.md +7 -13
- package/templates/procedures//351/233/206/346/210/220/351/252/214/350/257/201/346/265/201/347/250/213.md +9 -9
- package/templates/procedures//351/234/200/346/261/202/346/276/204/346/270/205/346/265/201/347/250/213.md +23 -16
- package/templates/procedures//351/252/214/346/224/266/346/265/213/350/257/225/350/247/204/345/210/222.md +8 -9
- package/templates/rules/existing-system//345/205/274/345/256/271/346/200/247/346/243/200/346/237/245/350/247/204/345/210/231.md +66 -23
- package/templates/rules/existing-system//350/200/201/347/263/273/347/273/237/345/210/207/347/211/207/350/247/204/345/210/222/350/247/204/345/210/231.md +35 -0
- package/templates/rules/existing-system//350/200/246/345/220/210/346/243/200/346/265/213/350/247/204/345/210/231.md +57 -20
- package/templates/rules/existing-system//350/257/225/350/277/220/350/241/214/347/206/224/346/226/255/350/247/204/345/210/231.md +49 -25
- package/templates/rules/existing-system//351/230/262/345/276/241/346/200/247/347/274/226/347/240/201/350/247/204/345/210/231.md +69 -25
- package/templates/rules/existing-system//351/233/267/345/214/272/345/217/215/346/250/241/345/274/217/346/270/205/345/215/225.md +109 -23
- package/templates/rules/new-system//350/201/224/350/260/203/350/256/276/350/256/241/347/274/272/351/231/267/345/210/244/345/256/232/350/247/204/345/210/231.md +39 -19
- package/templates/rules/shared/SOLID/344/273/243/347/240/201/345/256/241/346/237/245/350/247/204/345/210/231.md +47 -20
- package/templates/rules/shared//344/270/200/350/207/264/346/200/247/346/240/241/351/252/214/350/247/204/345/210/231.md +84 -11
- package/templates/rules/shared//344/270/212/346/270/270/344/272/244/345/217/211/351/252/214/350/257/201/350/247/204/345/210/231.md +56 -0
- package/templates/rules/shared//344/270/212/346/270/270/350/256/276/350/256/241/344/272/244/345/217/211/351/252/214/350/257/201/345/256/241/346/237/245/350/247/204/345/210/231.md +67 -0
- package/templates/rules/shared//344/272/244/344/273/230/345/256/214/345/244/207/346/200/247/345/256/241/346/237/245/350/247/204/345/210/231.md +39 -16
- package/templates/rules/shared//344/273/243/347/240/201/345/217/257/347/273/264/346/212/244/346/200/247/344/270/216/345/217/257/350/247/202/346/265/213/346/200/247/345/256/241/346/237/245.md +61 -55
- package/templates/rules/shared//344/273/243/347/240/201/346/263/250/351/207/212/344/270/216/346/227/245/345/277/227/345/245/221/347/272/246/350/247/204/345/210/231.md +122 -0
- package/templates/rules/shared//345/206/263/347/255/226/345/256/214/346/225/264/346/200/247/345/256/241/346/237/245/350/247/204/345/210/231.md +18 -11
- package/templates/rules/shared//345/210/207/347/211/207/346/211/247/350/241/214/347/272/252/345/276/213/350/247/204/345/210/231.md +96 -0
- package/templates/rules/shared//345/210/207/347/211/207/350/247/204/345/210/222/350/247/204/345/210/231.md +64 -0
- package/templates/rules/shared//345/216/237/345/236/213/346/272/220/347/240/201/346/217/220/345/217/226/350/247/204/345/210/231.md +67 -0
- package/templates/rules/shared//345/216/237/345/236/213/350/257/264/346/230/216/345/256/241/346/237/245/350/247/204/345/210/231.md +73 -0
- package/templates/rules/shared//345/217/221/345/270/203/345/220/216/345/256/241/346/237/245/350/247/204/345/210/231.md +22 -13
- package/templates/rules/shared//345/220/216/347/253/257/345/256/236/347/216/260/345/267/245/347/250/213/345/256/241/346/237/245/350/247/204/345/210/231.md +43 -18
- package/templates/rules/shared//345/256/211/345/205/250/345/256/241/346/237/245/350/247/204/345/210/231.md +53 -17
- package/templates/rules/shared//345/271/266/345/217/221/345/256/241/346/237/245/350/247/204/345/210/231.md +39 -10
- package/templates/rules/shared//346/200/247/350/203/275/345/256/241/346/237/245/350/247/204/345/210/231.md +32 -10
- package/templates/rules/shared//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 +40 -11
- package/templates/rules/shared//346/236/266/346/236/204/345/256/241/346/237/245/350/247/204/345/210/231.md +31 -11
- package/templates/rules/shared//346/236/266/346/236/204/350/256/276/350/256/241/345/256/241/346/237/245/350/247/204/345/210/231.md +102 -0
- package/templates/rules/shared//346/236/266/346/236/204/350/256/276/350/256/241/350/247/204/345/210/231.md +64 -0
- package/templates/rules/shared//347/213/254/347/253/213/345/256/241/346/237/245/350/247/204/345/210/231.md +33 -0
- package/templates/rules/shared//347/254/254/344/270/200/346/200/247/345/216/237/347/220/206/346/216/250/347/220/206/350/247/204/345/210/231.md +171 -0
- package/templates/rules/shared//347/274/226/347/240/201/345/260/261/347/273/252/345/256/241/346/237/245/350/247/204/345/210/231.md +9 -13
- package/templates/rules/shared//350/201/224/350/260/203/351/252/214/350/257/201/346/270/205/345/215/225.md +62 -16
- package/templates/rules/shared//350/246/206/347/233/226/347/216/207/346/240/207/345/207/206.md +2 -3
- package/templates/rules/shared//350/257/246/347/273/206/350/256/276/350/256/241/345/256/241/346/237/245/350/247/204/345/210/231.md +82 -0
- package/templates/rules/shared//350/264/250/351/207/217/345/256/241/346/237/245/350/247/204/345/210/231.md +17 -12
- package/templates/rules/shared//350/277/275/350/270/252/347/237/251/351/230/265ID/350/247/204/345/210/231.md +48 -0
- package/templates/rules/shared//350/277/275/350/270/252/347/237/251/351/230/265/345/256/241/346/237/245/350/247/204/345/210/231.md +51 -0
- package/templates/rules/shared//351/234/200/346/261/202/350/264/250/351/207/217/345/256/241/346/237/245/350/247/204/345/210/231.md +30 -13
- package/templates/rules/shared//351/252/214/346/224/266/346/240/207/345/207/206/345/256/241/346/237/245/350/247/204/345/210/231.md +15 -15
- package/templates//346/250/241/347/211/210/350/264/241/347/214/256/346/214/207/345/215/227.md +11 -8
- package/dist/engine/config/config_auto_repair.d.ts +0 -30
- package/dist/engine/config/config_auto_repair.d.ts.map +0 -1
- package/dist/engine/config/config_auto_repair.js +0 -261
- package/dist/engine/config/config_auto_repair.js.map +0 -1
- package/dist/engine/config/config_precedence_contract/constants.d.ts +0 -16
- package/dist/engine/config/config_precedence_contract/constants.d.ts.map +0 -1
- package/dist/engine/config/config_precedence_contract/constants.js +0 -166
- package/dist/engine/config/config_precedence_contract/constants.js.map +0 -1
- package/dist/engine/config/config_precedence_contract/evidence.d.ts +0 -38
- package/dist/engine/config/config_precedence_contract/evidence.d.ts.map +0 -1
- package/dist/engine/config/config_precedence_contract/evidence.js +0 -59
- package/dist/engine/config/config_precedence_contract/evidence.js.map +0 -1
- package/dist/engine/config/config_precedence_contract/field_class.d.ts +0 -11
- package/dist/engine/config/config_precedence_contract/field_class.d.ts.map +0 -1
- package/dist/engine/config/config_precedence_contract/field_class.js +0 -10
- package/dist/engine/config/config_precedence_contract/field_class.js.map +0 -1
- package/dist/engine/config/config_precedence_contract/governance.d.ts +0 -31
- package/dist/engine/config/config_precedence_contract/governance.d.ts.map +0 -1
- package/dist/engine/config/config_precedence_contract/governance.js +0 -232
- package/dist/engine/config/config_precedence_contract/governance.js.map +0 -1
- package/dist/engine/config/config_precedence_contract/index.d.ts +0 -21
- package/dist/engine/config/config_precedence_contract/index.d.ts.map +0 -1
- package/dist/engine/config/config_precedence_contract/index.js +0 -28
- package/dist/engine/config/config_precedence_contract/index.js.map +0 -1
- package/dist/engine/config/config_precedence_contract/project_config.d.ts +0 -20
- package/dist/engine/config/config_precedence_contract/project_config.d.ts.map +0 -1
- package/dist/engine/config/config_precedence_contract/project_config.js +0 -210
- package/dist/engine/config/config_precedence_contract/project_config.js.map +0 -1
- package/dist/engine/config/config_precedence_contract/resolution.d.ts +0 -93
- package/dist/engine/config/config_precedence_contract/resolution.d.ts.map +0 -1
- package/dist/engine/config/config_precedence_contract/resolution.js +0 -317
- package/dist/engine/config/config_precedence_contract/resolution.js.map +0 -1
- package/dist/engine/config/config_precedence_contract/types.d.ts +0 -92
- package/dist/engine/config/config_precedence_contract/types.d.ts.map +0 -1
- package/dist/engine/config/config_precedence_contract/types.js +0 -20
- package/dist/engine/config/config_precedence_contract/types.js.map +0 -1
- package/dist/engine/config/config_precedence_contract.d.ts +0 -22
- package/dist/engine/config/config_precedence_contract.d.ts.map +0 -1
- package/dist/engine/config/config_precedence_contract.js +0 -34
- package/dist/engine/config/config_precedence_contract.js.map +0 -1
- package/dist/engine/config/zero_config_init.d.ts +0 -177
- package/dist/engine/config/zero_config_init.d.ts.map +0 -1
- package/dist/engine/config/zero_config_init.js +0 -857
- package/dist/engine/config/zero_config_init.js.map +0 -1
- package/templates/internal/patterns//351/233/266/351/205/215/347/275/256/345/210/235/345/247/213/345/214/226.md +0 -62
|
@@ -0,0 +1,772 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 四层编排共享内核 — 单产物操作的统一编排函数。
|
|
3
|
+
*
|
|
4
|
+
* 三种场景共用此内核:
|
|
5
|
+
* - 场景 A:sf_command([sf] 审查/修改/生成/迭代 某某产物)
|
|
6
|
+
* - 场景 B:sf_single_artifact(结构化参数快捷入口)
|
|
7
|
+
* - 场景 C:CLI review/modify 命令
|
|
8
|
+
*
|
|
9
|
+
* 四层编排:
|
|
10
|
+
* Layer 1 — 模板层:从模板 frontmatter 读取 companion_rules / companion_gates / consumes
|
|
11
|
+
* Layer 2 — 引擎层:解析 consumes → 加载上游产物内容
|
|
12
|
+
* Layer 3 — 上下文引擎:运行 requires_context 视图
|
|
13
|
+
* Layer 4 — 规则层 + 门禁层:injectCompanions 按 operation 过滤加载
|
|
14
|
+
* Layer 5 — 范围约束:allowed_paths + read_only_paths
|
|
15
|
+
*
|
|
16
|
+
* 按方案 SoloForge-模板体系四层职责分离方案.md Section 2.4 实现。
|
|
17
|
+
*/
|
|
18
|
+
import fs from "node:fs";
|
|
19
|
+
import path from "node:path";
|
|
20
|
+
import matter from "gray-matter";
|
|
21
|
+
import { ensureCanonicalPaths, findArtifactPathsByKind, findTemplatePath, hasArtifactAlias, } from "./artifact_resolver.js";
|
|
22
|
+
import { findArtifactAlias } from "./artifact_aliases.js";
|
|
23
|
+
import { injectCompanions } from "../context_engine/companion_injector.js";
|
|
24
|
+
// ── 类型定义 ──
|
|
25
|
+
/** OperationType → injectCompanions operation 映射 */
|
|
26
|
+
const OPERATION_TO_COMPANION = {
|
|
27
|
+
extract: "execute", // 生成/创建 → 加载全部规则
|
|
28
|
+
review: "review", // 审查 → 加载 :review + :check
|
|
29
|
+
fix: "execute", // 修改/修复 → 加载全部规则
|
|
30
|
+
iterate: "execute", // 迭代/优化 → 加载全部规则
|
|
31
|
+
};
|
|
32
|
+
// ── 辅助函数 ──
|
|
33
|
+
/**
|
|
34
|
+
* 加载输入路径内容。
|
|
35
|
+
* 文件 → 读取文本;目录 → 列出子文件(.md/.yaml)+ 非文本文件清单。
|
|
36
|
+
*/
|
|
37
|
+
function loadInputContents(relPaths, base) {
|
|
38
|
+
const result = {};
|
|
39
|
+
for (const rel of relPaths) {
|
|
40
|
+
const abs = path.join(base, rel);
|
|
41
|
+
if (!fs.existsSync(abs))
|
|
42
|
+
continue;
|
|
43
|
+
try {
|
|
44
|
+
const stat = fs.statSync(abs);
|
|
45
|
+
if (stat.isDirectory()) {
|
|
46
|
+
const entries = fs.readdirSync(abs, {
|
|
47
|
+
recursive: true,
|
|
48
|
+
withFileTypes: false,
|
|
49
|
+
});
|
|
50
|
+
// 读取文本文件
|
|
51
|
+
for (const entry of entries) {
|
|
52
|
+
if (typeof entry === "string" &&
|
|
53
|
+
(entry.endsWith(".md") || entry.endsWith(".yaml") || entry.endsWith(".yml"))) {
|
|
54
|
+
try {
|
|
55
|
+
result[path.join(rel, entry)] = fs.readFileSync(path.join(abs, entry), "utf-8");
|
|
56
|
+
}
|
|
57
|
+
catch {
|
|
58
|
+
/* 跳过 */
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
// 非文本文件清单
|
|
63
|
+
const nonText = entries.filter((e) => typeof e === "string" &&
|
|
64
|
+
!e.endsWith(".md") &&
|
|
65
|
+
!e.endsWith(".yaml") &&
|
|
66
|
+
!e.endsWith(".yml"));
|
|
67
|
+
if (nonText.length > 0) {
|
|
68
|
+
result[rel] = `[目录,包含文件: ${nonText.join(", ")}]`;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
result[rel] = fs.readFileSync(abs, "utf-8");
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
catch {
|
|
76
|
+
/* 读取失败跳过 */
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return result;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* 为 review/fix 操作构建上游对比指令。
|
|
83
|
+
*
|
|
84
|
+
* 审查必须用上游产物内容校验一致性和遗漏,
|
|
85
|
+
* 否则偏差会传导至后续架构、编码、验证阶段。
|
|
86
|
+
*/
|
|
87
|
+
function buildUpstreamComparisonDirective(operation, targetName, upstreamInputs) {
|
|
88
|
+
// extract 不需要上游对比;review/fix/iterate 都需要(iterate 循环中第一轮审查必须对比上游)
|
|
89
|
+
if (operation === "extract")
|
|
90
|
+
return "";
|
|
91
|
+
const loadedInputs = upstreamInputs.filter((i) => !i.missing && Object.keys(i.contents).length > 0);
|
|
92
|
+
if (loadedInputs.length === 0)
|
|
93
|
+
return "";
|
|
94
|
+
const inputList = loadedInputs.map((i) => {
|
|
95
|
+
const contentKeys = Object.keys(i.contents);
|
|
96
|
+
return `- 「${i.ref}」(${contentKeys.length} 个文件: ${contentKeys.slice(0, 3).join(", ")}${contentKeys.length > 3 ? " ..." : ""})`;
|
|
97
|
+
}).join("\n");
|
|
98
|
+
if (operation === "review") {
|
|
99
|
+
return [
|
|
100
|
+
"## 上游对比要求(强制)",
|
|
101
|
+
"",
|
|
102
|
+
`审查「${targetName}」时,必须逐项与以下上游产物对比,检查一致性和遗漏:`,
|
|
103
|
+
inputList,
|
|
104
|
+
"",
|
|
105
|
+
"对比维度:",
|
|
106
|
+
"1. **完整性**:上游提到的每个功能点/实体/流程,目标产物是否都有覆盖?",
|
|
107
|
+
"2. **一致性**:目标产物中的数据/描述/逻辑是否与上游一致?",
|
|
108
|
+
"3. **无遗漏**:是否存在上游有但目标产物完全未提及的内容?",
|
|
109
|
+
"",
|
|
110
|
+
"对每个偏差项标注:❌ 不一致 / ⚠️ 遗漏 / ✅ 一致",
|
|
111
|
+
].join("\n");
|
|
112
|
+
}
|
|
113
|
+
// fix 操作
|
|
114
|
+
return [
|
|
115
|
+
"## 修复约束(强制)",
|
|
116
|
+
"",
|
|
117
|
+
`修复「${targetName}」时,必须参考以下上游产物确保修复后一致:`,
|
|
118
|
+
inputList,
|
|
119
|
+
"",
|
|
120
|
+
"修复原则:",
|
|
121
|
+
"1. 仅修正已标注的偏差项,不改动已正确的部分",
|
|
122
|
+
"2. 修复后必须与上游产物内容一致",
|
|
123
|
+
"3. 不得引入上游中不存在的新内容",
|
|
124
|
+
].join("\n");
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* 为 iterate 操作构建自动迭代循环指令。
|
|
128
|
+
*
|
|
129
|
+
* 核心流程:review → 发现问题 → fix → 再 review → 直到全部通过。
|
|
130
|
+
* 这不是内核的自动化循环(内核不运行 AI),而是在 injection_text 中
|
|
131
|
+
* 告诉 AI 遵循的迭代协议。
|
|
132
|
+
*/
|
|
133
|
+
export function buildIterateDirective(operation, targetName, targetPaths, gateNames) {
|
|
134
|
+
// extract 是首次创建,不需要迭代循环;review/fix/iterate 都需要
|
|
135
|
+
if (operation === "extract")
|
|
136
|
+
return "";
|
|
137
|
+
const maxIterations = 5;
|
|
138
|
+
const gatesSection = gateNames.length > 0
|
|
139
|
+
? gateNames.map((g) => `「${g}」`).join("、")
|
|
140
|
+
: "结构完整性检查";
|
|
141
|
+
return [
|
|
142
|
+
"## 对抗性审查-修复协议(强制)",
|
|
143
|
+
"",
|
|
144
|
+
`你正在处理「${targetName}」。你是严格的质量审查员,你的职责是发现问题,不是放行。`,
|
|
145
|
+
"",
|
|
146
|
+
"### 审查原则(违反任何一条等同审查失败)",
|
|
147
|
+
"",
|
|
148
|
+
"1. 默认立场:每一条门禁检查项都是 ❌,除非你能引用产物中的具体内容作为证据",
|
|
149
|
+
"2. 无证据的 ✅ 等同于 ❌ — 你必须引用章节名或行号 + 原文",
|
|
150
|
+
"3. 你不可以批量标记 ✅ — 每条必须独立检查并附证据",
|
|
151
|
+
"4. 你不可以跳过任何检查项",
|
|
152
|
+
"",
|
|
153
|
+
"### 执行流程",
|
|
154
|
+
"",
|
|
155
|
+
`阶段 A: 对抗性审查`,
|
|
156
|
+
` 对每一条门禁检查项(${gatesSection}):`,
|
|
157
|
+
" 1. 读取产物文件的相关部分",
|
|
158
|
+
" 2. 引用具体内容(章节名/行号 + 引文)",
|
|
159
|
+
" 3. 标注 ❌ + 问题描述 + 修复方案,或 ✅ + 证据(引用原文)",
|
|
160
|
+
" → 产出完整审查报告",
|
|
161
|
+
"",
|
|
162
|
+
"阶段 B: 强制修复",
|
|
163
|
+
" 对审查报告中的每一个 ❌ 和 ⚠️ 项:",
|
|
164
|
+
" 1. 按修复方案逐项修复",
|
|
165
|
+
` 2. 修复后重写完整产物到: ${targetPaths.join(" 或 ")}`,
|
|
166
|
+
" 3. 不允许只报告不修复",
|
|
167
|
+
"",
|
|
168
|
+
"阶段 C: 独立重审(强制)",
|
|
169
|
+
" 修复完成后,你必须再次调用 [sf] 审查 工具进行独立重审。",
|
|
170
|
+
" 这不是可选的——这是强制性的质量保证步骤。",
|
|
171
|
+
" 独立重审会以全新视角重新加载门禁规则,确保审查不受修复过程的偏见影响。",
|
|
172
|
+
` 如果重审发现问题 → 回到阶段 B 继续修复(最多 ${maxIterations} 轮)。`,
|
|
173
|
+
"",
|
|
174
|
+
"### 终止条件",
|
|
175
|
+
"",
|
|
176
|
+
"1. 审查报告零 ❌/⚠️ 项 → 结束,报告「审查通过」",
|
|
177
|
+
`2. 达到最大 ${maxIterations} 轮 → 结束,报告剩余未修复项`,
|
|
178
|
+
"",
|
|
179
|
+
"### 输出要求",
|
|
180
|
+
"",
|
|
181
|
+
`- 每轮修复后必须将完整产物写入: ${targetPaths.join(" 或 ")}`,
|
|
182
|
+
"- 最终输出审查通过的产物内容",
|
|
183
|
+
"- 附上迭代摘要:修复了哪些问题、经过几轮",
|
|
184
|
+
"",
|
|
185
|
+
"⚠️ 绝对不允许只输出审查报告就停下来。必须看到产物被修复并通过审查。",
|
|
186
|
+
"⚠️ 绝对不允许无证据地批量标记 ✅。",
|
|
187
|
+
].join("\n");
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* 构建 extract 操作的质量纪律指令。
|
|
191
|
+
*
|
|
192
|
+
* extract 是首次创建产物,无迭代循环也无上游对比。
|
|
193
|
+
* 此函数注入创建质量纪律,防止 AI 产出空洞内容。
|
|
194
|
+
*/
|
|
195
|
+
export function buildExtractQualityDirective(operation, targetName, targetPaths, gateNames) {
|
|
196
|
+
// 仅 extract 操作需要此指令
|
|
197
|
+
if (operation !== "extract")
|
|
198
|
+
return "";
|
|
199
|
+
const gatesSection = gateNames.length > 0
|
|
200
|
+
? `门禁检查:${gateNames.map((g) => `「${g}」`).join("、")}`
|
|
201
|
+
: "结构完整性检查";
|
|
202
|
+
return [
|
|
203
|
+
"## 创建质量纪律(强制)",
|
|
204
|
+
"",
|
|
205
|
+
`你正在创建「${targetName}」。以下纪律不可违反:`,
|
|
206
|
+
"",
|
|
207
|
+
"### 禁止空洞(anti-laziness 基线)",
|
|
208
|
+
"1. 每个模板章节必须填写完整内容,禁止留空、使用占位符(如「待补充」「TBD」)",
|
|
209
|
+
"2. 必须穷尽上游产物中引用的所有实体/流程/字段 — 上游提到的每个名词都必须在产物中有对应描述",
|
|
210
|
+
"3. 无上游内容的章节必须基于模板要求自行补全,不可以「上游未提供」为由留空",
|
|
211
|
+
"",
|
|
212
|
+
"### 完整性自检(产出后必须执行)",
|
|
213
|
+
`产出完成后,逐条核对以下${gatesSection}:`,
|
|
214
|
+
"- 对每条门禁:引用你产物中的具体内容作为证据",
|
|
215
|
+
"- 如果任何门禁无法提供证据 → 立即补充内容,不要停下来问用户",
|
|
216
|
+
"- 自检不通过 → 修复 → 重新自检(最多 5 轮)",
|
|
217
|
+
"",
|
|
218
|
+
"### 输出要求",
|
|
219
|
+
`- 完整产物写入: ${targetPaths.join(" 或 ")}`,
|
|
220
|
+
"- 附自检报告:每条门禁 ✅ + 证据 或 ❌ + 修复说明",
|
|
221
|
+
].join("\n");
|
|
222
|
+
}
|
|
223
|
+
// ── 核心函数 ──
|
|
224
|
+
/**
|
|
225
|
+
* 四层编排共享内核 — 单产物操作统一入口。
|
|
226
|
+
*
|
|
227
|
+
* @param params.kind - 产物类型(ArtifactKind)
|
|
228
|
+
* @param params.operation - 操作类型(extract/review/fix/iterate)
|
|
229
|
+
* @param params.projectPath - 项目根路径
|
|
230
|
+
* @returns 编排结果(OrchestrateResult)
|
|
231
|
+
*/
|
|
232
|
+
export async function orchestrateSingleArtifact(params) {
|
|
233
|
+
const { kind, operation, projectPath, original_command } = params;
|
|
234
|
+
// ── Step 0: 获取 alias 元数据 ──
|
|
235
|
+
const alias = findArtifactAlias(kind);
|
|
236
|
+
if (!alias) {
|
|
237
|
+
return {
|
|
238
|
+
mode: "single_artifact",
|
|
239
|
+
status: "error",
|
|
240
|
+
error: `未注册的产物类型: "${kind}"`,
|
|
241
|
+
target_kind: kind,
|
|
242
|
+
target_name: kind,
|
|
243
|
+
target_paths: [],
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
// ── Step 0b: 确保产物文件名与 canonical_paths 一致,再查找 ──
|
|
247
|
+
ensureCanonicalPaths(kind, projectPath);
|
|
248
|
+
const existingPaths = findArtifactPathsByKind(kind, projectPath);
|
|
249
|
+
// ── Layer 1: 模板层 ──
|
|
250
|
+
const templatePath = alias.template
|
|
251
|
+
? findTemplatePath(alias.template, projectPath)
|
|
252
|
+
: null;
|
|
253
|
+
if (!templatePath) {
|
|
254
|
+
return {
|
|
255
|
+
mode: "single_artifact",
|
|
256
|
+
status: "no_template",
|
|
257
|
+
error: alias.template
|
|
258
|
+
? `找不到模板文件: "${alias.template}"`
|
|
259
|
+
: `产物类型「${alias.defaultName}」无模板定义,不支持自动编排`,
|
|
260
|
+
target_kind: kind,
|
|
261
|
+
target_name: alias.defaultName,
|
|
262
|
+
target_paths: existingPaths,
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
const templateRaw = fs.readFileSync(templatePath, "utf-8");
|
|
266
|
+
const templateParsed = matter(templateRaw);
|
|
267
|
+
const fm = (templateParsed.data ?? {});
|
|
268
|
+
// 解析 frontmatter 字段 — 支持 structured YAML 和 旧字符串格式
|
|
269
|
+
const fmConsumes = fm.consumes ?? [];
|
|
270
|
+
const fmCompanionRules = fm.companion_rules;
|
|
271
|
+
const fmCompanionGates = fm.companion_gates;
|
|
272
|
+
const fmRequiresContext = fm.requires_context ?? [];
|
|
273
|
+
// 老系统管线专属规则:companion_rules_legacy 仅在 systemType="老系统" 时合并
|
|
274
|
+
if (params.systemType === "老系统") {
|
|
275
|
+
const legacyRules = fm.companion_rules_legacy;
|
|
276
|
+
if (legacyRules && legacyRules.length > 0) {
|
|
277
|
+
fmCompanionRules.push(...legacyRules);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
// ── Layer 2: Consumes 解析(上游输入加载) ──
|
|
281
|
+
const upstreamInputs = [];
|
|
282
|
+
for (const ref of fmConsumes) {
|
|
283
|
+
// 跳过 mechanism ID(mc- 前缀)——不是产物 kind
|
|
284
|
+
if (typeof ref === "string" && ref.startsWith("mc-")) {
|
|
285
|
+
continue;
|
|
286
|
+
}
|
|
287
|
+
// 策略 1:已注册的 artifact kind → 查 canonical_paths
|
|
288
|
+
if (hasArtifactAlias(ref)) {
|
|
289
|
+
ensureCanonicalPaths(ref, projectPath);
|
|
290
|
+
const resolvedPaths = findArtifactPathsByKind(ref, projectPath);
|
|
291
|
+
const contents = loadInputContents(resolvedPaths, projectPath);
|
|
292
|
+
const missing = resolvedPaths.length === 0;
|
|
293
|
+
upstreamInputs.push({ ref, resolved_kind: ref, paths: resolvedPaths, contents, missing });
|
|
294
|
+
continue;
|
|
295
|
+
}
|
|
296
|
+
// 策略 2:非 kind 路径兜底(如 docs/api/openapi.yaml)
|
|
297
|
+
const fullPath = path.join(projectPath, ref);
|
|
298
|
+
if (fs.existsSync(fullPath)) {
|
|
299
|
+
const contents = loadInputContents([ref], projectPath);
|
|
300
|
+
upstreamInputs.push({ ref, paths: [ref], contents, missing: false });
|
|
301
|
+
}
|
|
302
|
+
else {
|
|
303
|
+
// 非核心路径缺失不阻断(如 openapi.yaml 可能还未生成)
|
|
304
|
+
upstreamInputs.push({ ref, paths: [], contents: {}, missing: false });
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
// ── Consumes OR 替代:缺失的 kind 查 consumes_alternatives ──
|
|
308
|
+
// 当模板 frontmatter 声明了 consumes_alternatives(如 prototype_spec → data_lineage_diagram),
|
|
309
|
+
// 缺失的 kind 会尝试用替代产物补充
|
|
310
|
+
const fmAlternatives = fm.consumes_alternatives;
|
|
311
|
+
if (fmAlternatives) {
|
|
312
|
+
for (let i = 0; i < upstreamInputs.length; i++) {
|
|
313
|
+
const input = upstreamInputs[i];
|
|
314
|
+
if (!input.missing || !input.resolved_kind)
|
|
315
|
+
continue;
|
|
316
|
+
const alternatives = fmAlternatives[input.ref] ?? fmAlternatives[input.resolved_kind];
|
|
317
|
+
if (!alternatives || alternatives.length === 0)
|
|
318
|
+
continue;
|
|
319
|
+
for (const altKind of alternatives) {
|
|
320
|
+
if (!hasArtifactAlias(altKind))
|
|
321
|
+
continue;
|
|
322
|
+
ensureCanonicalPaths(altKind, projectPath);
|
|
323
|
+
const altPaths = findArtifactPathsByKind(altKind, projectPath);
|
|
324
|
+
if (altPaths.length > 0) {
|
|
325
|
+
const altContents = loadInputContents(altPaths, projectPath);
|
|
326
|
+
upstreamInputs[i] = {
|
|
327
|
+
ref: `${input.ref}(替代:${altKind})`,
|
|
328
|
+
resolved_kind: altKind,
|
|
329
|
+
paths: altPaths,
|
|
330
|
+
contents: altContents,
|
|
331
|
+
missing: false,
|
|
332
|
+
};
|
|
333
|
+
break;
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
// ── 缺失上游检测 ──
|
|
339
|
+
const missingInputs = upstreamInputs.filter((i) => i.missing);
|
|
340
|
+
const availableInputs = upstreamInputs.filter((i) => !i.missing);
|
|
341
|
+
if (missingInputs.length > 0) {
|
|
342
|
+
const missingWithTemplates = missingInputs.map((input) => {
|
|
343
|
+
const inputAlias = input.resolved_kind ? findArtifactAlias(input.resolved_kind) : undefined;
|
|
344
|
+
const templatePathForMissing = inputAlias?.template
|
|
345
|
+
? findTemplatePath(inputAlias.template, projectPath)
|
|
346
|
+
: null;
|
|
347
|
+
return {
|
|
348
|
+
ref: input.ref,
|
|
349
|
+
kind: input.resolved_kind,
|
|
350
|
+
template_name: inputAlias?.template,
|
|
351
|
+
template_path: templatePathForMissing,
|
|
352
|
+
available_upstream: availableInputs.map((ai) => ({
|
|
353
|
+
ref: ai.ref,
|
|
354
|
+
kind: ai.resolved_kind,
|
|
355
|
+
paths: ai.paths,
|
|
356
|
+
missing: ai.missing,
|
|
357
|
+
})),
|
|
358
|
+
message: `上游产物「${inputAlias?.defaultName ?? input.ref}」缺失`,
|
|
359
|
+
};
|
|
360
|
+
});
|
|
361
|
+
return {
|
|
362
|
+
mode: "single_artifact",
|
|
363
|
+
status: "missing_upstream",
|
|
364
|
+
target_kind: kind,
|
|
365
|
+
target_name: alias.defaultName,
|
|
366
|
+
target_paths: existingPaths,
|
|
367
|
+
missing_inputs: missingWithTemplates,
|
|
368
|
+
available_inputs: availableInputs.map((ai) => ({
|
|
369
|
+
ref: ai.ref,
|
|
370
|
+
kind: ai.resolved_kind,
|
|
371
|
+
paths: ai.paths,
|
|
372
|
+
missing: ai.missing,
|
|
373
|
+
})),
|
|
374
|
+
suggested_action: {
|
|
375
|
+
produce_first: `请先读取模板产出缺失的上游产物,已有上游内容已附在 available_inputs 中`,
|
|
376
|
+
then_resume: original_command
|
|
377
|
+
? `上游产物就绪后,重新执行: ${original_command}`
|
|
378
|
+
: `上游产物就绪后,重新执行操作`,
|
|
379
|
+
},
|
|
380
|
+
original_task: {
|
|
381
|
+
kind,
|
|
382
|
+
description: alias.defaultName,
|
|
383
|
+
command: original_command ?? "",
|
|
384
|
+
},
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
// ── 非 extract 操作 + 产物不存在 → 引导补产 ──
|
|
388
|
+
// review/fix/iterate 要求产物已存在,不存在时应引导用户先 extract
|
|
389
|
+
if (operation !== "extract" && existingPaths.length === 0) {
|
|
390
|
+
return {
|
|
391
|
+
mode: "single_artifact",
|
|
392
|
+
status: "missing_upstream",
|
|
393
|
+
target_kind: kind,
|
|
394
|
+
target_name: alias.defaultName,
|
|
395
|
+
target_paths: [],
|
|
396
|
+
missing_inputs: [{
|
|
397
|
+
ref: kind,
|
|
398
|
+
kind,
|
|
399
|
+
template_name: alias.template,
|
|
400
|
+
template_path: alias.template ? findTemplatePath(alias.template, projectPath) : null,
|
|
401
|
+
available_upstream: availableInputs.map((ai) => ({
|
|
402
|
+
ref: ai.ref,
|
|
403
|
+
kind: ai.resolved_kind,
|
|
404
|
+
paths: ai.paths,
|
|
405
|
+
missing: ai.missing,
|
|
406
|
+
})),
|
|
407
|
+
message: `目标产物「${alias.defaultName}」尚未创建,${operation} 操作要求产物已存在`,
|
|
408
|
+
}],
|
|
409
|
+
available_inputs: availableInputs.map((ai) => ({
|
|
410
|
+
ref: ai.ref,
|
|
411
|
+
kind: ai.resolved_kind,
|
|
412
|
+
paths: ai.paths,
|
|
413
|
+
missing: ai.missing,
|
|
414
|
+
})),
|
|
415
|
+
suggested_action: {
|
|
416
|
+
produce_first: `请先使用 extract 操作创建「${alias.defaultName}」,模板和上游内容已准备就绪`,
|
|
417
|
+
then_resume: original_command
|
|
418
|
+
? `产物创建完成后,重新执行: ${original_command}`
|
|
419
|
+
: `产物创建完成后,重新执行 ${operation} 操作`,
|
|
420
|
+
},
|
|
421
|
+
original_task: {
|
|
422
|
+
kind,
|
|
423
|
+
description: alias.defaultName,
|
|
424
|
+
command: original_command ?? "",
|
|
425
|
+
},
|
|
426
|
+
};
|
|
427
|
+
}
|
|
428
|
+
// ── 目标路径解析 ──
|
|
429
|
+
// 合并已存在路径 + 缺失的精确 canonical_paths(存在则覆盖,不存在则新建)
|
|
430
|
+
// 通配符路径由 expandGlob 展开到 existingPaths,不再额外添加 pattern
|
|
431
|
+
const targetPaths = [...existingPaths];
|
|
432
|
+
for (const cp of alias.canonical_paths) {
|
|
433
|
+
// 跳过通配符路径(已由 expandGlob 展开)
|
|
434
|
+
if (cp.includes("*") || cp.includes("**"))
|
|
435
|
+
continue;
|
|
436
|
+
if (!targetPaths.includes(cp)) {
|
|
437
|
+
targetPaths.push(cp);
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
// ── Layer 3: 上下文引擎 ──
|
|
441
|
+
let contextAnalysis;
|
|
442
|
+
if (fmRequiresContext.length > 0) {
|
|
443
|
+
try {
|
|
444
|
+
const { resolveContext } = await import("../context_engine/index.js");
|
|
445
|
+
const { getView, dispatchView } = await import("../context_engine/view_registry.js");
|
|
446
|
+
for (const viewName of fmRequiresContext) {
|
|
447
|
+
const resolved = resolveContext({ view: viewName, source: "auto" }, null, // single_artifact 无管线阶段
|
|
448
|
+
{ scopeRoots: targetPaths });
|
|
449
|
+
if (getView(resolved.view)) {
|
|
450
|
+
const vr = await dispatchView(resolved.view, projectPath, {
|
|
451
|
+
targets: resolved.targets,
|
|
452
|
+
scope: resolved.scope,
|
|
453
|
+
});
|
|
454
|
+
if (!contextAnalysis)
|
|
455
|
+
contextAnalysis = vr.summary;
|
|
456
|
+
else
|
|
457
|
+
contextAnalysis += "\n\n" + vr.summary;
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
catch {
|
|
462
|
+
// 上下文引擎失败不阻断
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
// ── Layer 4 + 5: 规则层 + 门禁层 ──
|
|
466
|
+
const companionOperation = OPERATION_TO_COMPANION[operation];
|
|
467
|
+
const companionResult = injectCompanions({
|
|
468
|
+
baseDir: projectPath,
|
|
469
|
+
companion_rules: fmCompanionRules,
|
|
470
|
+
companion_gates: fmCompanionGates,
|
|
471
|
+
operation: companionOperation,
|
|
472
|
+
systemType: params.systemType,
|
|
473
|
+
});
|
|
474
|
+
// ── Layer 6: 范围约束 ──
|
|
475
|
+
const consumedPaths = upstreamInputs.flatMap((input) => input.paths);
|
|
476
|
+
// ── 注入上游对比指令(review/fix 操作必须对比上游) ──
|
|
477
|
+
const upstreamComparisonDirective = buildUpstreamComparisonDirective(operation, alias.defaultName, upstreamInputs);
|
|
478
|
+
// ── 注入迭代循环指令(iterate 操作的自循环协议) ──
|
|
479
|
+
const iterateDirective = buildIterateDirective(operation, alias.defaultName, targetPaths, companionResult.gates.map((g) => g.name));
|
|
480
|
+
// ── 注入创建质量纪律(extract 操作的 anti-laziness) ──
|
|
481
|
+
const extractQualityDirective = buildExtractQualityDirective(operation, alias.defaultName, targetPaths, companionResult.gates.map((g) => g.name));
|
|
482
|
+
const finalInjectionText = [
|
|
483
|
+
upstreamComparisonDirective,
|
|
484
|
+
companionResult.injection_text,
|
|
485
|
+
extractQualityDirective,
|
|
486
|
+
iterateDirective,
|
|
487
|
+
].filter(Boolean).join("\n\n");
|
|
488
|
+
// ── 构建结果 ──
|
|
489
|
+
return {
|
|
490
|
+
mode: "single_artifact",
|
|
491
|
+
status: "ready",
|
|
492
|
+
operation,
|
|
493
|
+
// 产物信息
|
|
494
|
+
target_kind: kind,
|
|
495
|
+
target_name: alias.defaultName,
|
|
496
|
+
target_paths: targetPaths,
|
|
497
|
+
suggested_target_paths: undefined,
|
|
498
|
+
// 模板
|
|
499
|
+
template_name: alias.template,
|
|
500
|
+
template_body: templateParsed.content,
|
|
501
|
+
// Layer 2: 上游输入
|
|
502
|
+
upstream_inputs: upstreamInputs.map((input) => ({
|
|
503
|
+
ref: input.ref,
|
|
504
|
+
kind: input.resolved_kind,
|
|
505
|
+
paths: input.paths,
|
|
506
|
+
missing: input.missing,
|
|
507
|
+
contents: input.contents,
|
|
508
|
+
})),
|
|
509
|
+
// Layer 3: 引擎分析
|
|
510
|
+
context_analysis: contextAnalysis,
|
|
511
|
+
// Layer 4 + 5: 规则与门禁
|
|
512
|
+
rules: companionResult.rules,
|
|
513
|
+
missing_rules: companionResult.missing_rules,
|
|
514
|
+
gates: companionResult.gates,
|
|
515
|
+
missing_gates: companionResult.missing_gates,
|
|
516
|
+
injection_text: finalInjectionText,
|
|
517
|
+
// Layer 6: 范围约束
|
|
518
|
+
scope: {
|
|
519
|
+
allowed_paths: targetPaths,
|
|
520
|
+
read_only_paths: consumedPaths,
|
|
521
|
+
},
|
|
522
|
+
};
|
|
523
|
+
}
|
|
524
|
+
/** 将单产物状态映射为阶段级摘要状态 */
|
|
525
|
+
function mapSingleStatus(status) {
|
|
526
|
+
if (status === "ready")
|
|
527
|
+
return "ready";
|
|
528
|
+
if (status === "missing_upstream" || status === "need_target_info")
|
|
529
|
+
return "missing_upstream";
|
|
530
|
+
if (status === "no_template")
|
|
531
|
+
return "no_template";
|
|
532
|
+
return "missing_target";
|
|
533
|
+
}
|
|
534
|
+
/** 构建阶段级审查 injection_text */
|
|
535
|
+
export function buildStageReviewInjection(stage, results, gates) {
|
|
536
|
+
const ready = results.filter((r) => r.status === "ready");
|
|
537
|
+
const skipped = results.filter((r) => r.status !== "ready");
|
|
538
|
+
const lines = [];
|
|
539
|
+
// 标题
|
|
540
|
+
lines.push(`# 阶段级审查 —「${stage}」`);
|
|
541
|
+
lines.push("");
|
|
542
|
+
// 审查范围
|
|
543
|
+
lines.push("## 审查范围");
|
|
544
|
+
lines.push("");
|
|
545
|
+
if (ready.length > 0) {
|
|
546
|
+
lines.push("### 可审查产物");
|
|
547
|
+
for (const item of ready) {
|
|
548
|
+
lines.push(`- **${item.name}** (${item.kind}): ${item.paths.join(", ")}`);
|
|
549
|
+
}
|
|
550
|
+
lines.push("");
|
|
551
|
+
}
|
|
552
|
+
if (skipped.length > 0) {
|
|
553
|
+
lines.push("### 跳过的产物(缺失上游或无模板)");
|
|
554
|
+
for (const item of skipped) {
|
|
555
|
+
lines.push(`- ~~${item.name}~~ (${item.status}): ${item.error ?? item.status}`);
|
|
556
|
+
}
|
|
557
|
+
lines.push("");
|
|
558
|
+
}
|
|
559
|
+
// 审查顺序
|
|
560
|
+
lines.push("## 阶段级审查-修复循环协议(强制)");
|
|
561
|
+
lines.push("");
|
|
562
|
+
lines.push(`你现在必须执行「${stage}」阶段全部 ${ready.length} 个产物的审查-修复循环,禁止中途停下来。`);
|
|
563
|
+
lines.push("");
|
|
564
|
+
lines.push("### 审查顺序");
|
|
565
|
+
for (let i = 0; i < ready.length; i++) {
|
|
566
|
+
lines.push(`${i + 1}. 审查「${ready[i].name}」`);
|
|
567
|
+
}
|
|
568
|
+
lines.push("");
|
|
569
|
+
// ── 审查原则(对抗性框架 — 同改造 3 统一原则)──
|
|
570
|
+
lines.push("### 审查原则(违反任何一条等同审查失败)");
|
|
571
|
+
lines.push("");
|
|
572
|
+
lines.push("1. **默认立场**:每一条门禁检查项都是 ❌,除非你能引用产物中的具体内容作为证据");
|
|
573
|
+
lines.push("2. **无证据的 ✅ 等同于 ❌** — 你必须引用章节名或行号 + 原文");
|
|
574
|
+
lines.push("3. **禁止批量标记 ✅** — 每条必须独立检查并附证据");
|
|
575
|
+
lines.push("4. **禁止跳过任何检查项** — 包括跨产物一致性检查");
|
|
576
|
+
lines.push("");
|
|
577
|
+
// ── 门禁 ──
|
|
578
|
+
const uniqueGates = [...new Map(gates.map((g) => [g.name, g])).values()];
|
|
579
|
+
if (uniqueGates.length > 0) {
|
|
580
|
+
lines.push("### 质量标准");
|
|
581
|
+
lines.push("");
|
|
582
|
+
lines.push(`门禁检查:${uniqueGates.map((g) => `「${g.name}」`).join("、")} — 全部通过才可结束`);
|
|
583
|
+
lines.push("");
|
|
584
|
+
}
|
|
585
|
+
// ── 每个产物的专属审查规则 ──
|
|
586
|
+
for (const item of ready) {
|
|
587
|
+
if (item.injection_text) {
|
|
588
|
+
lines.push(`## 「${item.name}」专属审查规则`);
|
|
589
|
+
lines.push("");
|
|
590
|
+
lines.push(item.injection_text);
|
|
591
|
+
lines.push("");
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
// ── 执行流程(三阶段:对抗审查 → 强制修复 → 独立重审)──
|
|
595
|
+
lines.push("### 执行流程");
|
|
596
|
+
lines.push("");
|
|
597
|
+
// 阶段 A: 对抗性审查
|
|
598
|
+
lines.push("**阶段 A: 对抗性审查**");
|
|
599
|
+
lines.push("");
|
|
600
|
+
lines.push(`对「${stage}」阶段全部 ${ready.length} 个产物执行逐个审查:`);
|
|
601
|
+
for (const item of ready) {
|
|
602
|
+
lines.push(`- 读取「${item.name}」产物的相关部分`);
|
|
603
|
+
}
|
|
604
|
+
lines.push("对每一条门禁检查项:");
|
|
605
|
+
lines.push(" 1. 引用产物具体内容(章节名/行号 + 引文)");
|
|
606
|
+
lines.push(" 2. 标注 ❌ + 问题描述 + 修复方案,或 ✅ + 证据(引用原文)");
|
|
607
|
+
lines.push("→ 产出完整审查报告");
|
|
608
|
+
lines.push("");
|
|
609
|
+
// 跨产物一致性(多产物时额外要求)
|
|
610
|
+
if (ready.length > 1) {
|
|
611
|
+
lines.push("**阶段 A-2: 跨产物一致性校验(强制)**");
|
|
612
|
+
lines.push("");
|
|
613
|
+
lines.push(`除逐个审查外,你还必须检查「${stage}」阶段内各产物之间的一致性:`);
|
|
614
|
+
lines.push("");
|
|
615
|
+
lines.push("1. **术语一致**:同一实体/概念在不同产物中的命名是否一致?引用两个产物中的原文作为证据");
|
|
616
|
+
lines.push("2. **引用一致**:产物 A 引用的设计决策/实体在产物 B 中是否有对应描述?引用对应段落");
|
|
617
|
+
lines.push("3. **覆盖完整**:架构设计文档中的每个模块是否都有对应的数据库表和 API 端点?逐一列出映射关系");
|
|
618
|
+
lines.push("4. **无冲突**:不同产物之间是否存在互相矛盾的描述?引用矛盾处原文");
|
|
619
|
+
lines.push("");
|
|
620
|
+
lines.push("⚠️ 跨产物一致性检查也适用审查原则:无证据的 ✅ 等同于 ❌。必须引用两个产物中的对应内容。");
|
|
621
|
+
lines.push("");
|
|
622
|
+
}
|
|
623
|
+
// 阶段 B: 强制修复
|
|
624
|
+
lines.push("**阶段 B: 强制修复**");
|
|
625
|
+
lines.push("");
|
|
626
|
+
lines.push("对审查报告中的每一个 ❌ 和 ⚠️ 项:");
|
|
627
|
+
lines.push(" 1. 按修复方案逐项修复");
|
|
628
|
+
lines.push(" 2. 修复后重写完整产物到对应文件");
|
|
629
|
+
lines.push(" 3. 不允许只报告不修复");
|
|
630
|
+
lines.push("");
|
|
631
|
+
// 阶段 C: 独立重审
|
|
632
|
+
lines.push("**阶段 C: 独立重审(强制)**");
|
|
633
|
+
lines.push("");
|
|
634
|
+
lines.push("修复完成后,你必须再次调用 `[sf] 审查 ${stage}` 工具进行独立重审。");
|
|
635
|
+
lines.push("这不是可选的——这是强制性的质量保证步骤。");
|
|
636
|
+
lines.push("独立重审会以全新视角重新加载门禁规则,确保审查不受修复过程的偏见影响。");
|
|
637
|
+
lines.push("如果重审发现问题 → 回到阶段 B 继续修复(最多 5 轮)。");
|
|
638
|
+
lines.push("");
|
|
639
|
+
// 终止条件
|
|
640
|
+
lines.push("### 终止条件");
|
|
641
|
+
lines.push("");
|
|
642
|
+
lines.push("1. 全部产物审查报告零 ❌/⚠️ 项(含跨产物一致性) → 结束,报告「审查通过」");
|
|
643
|
+
lines.push("2. 达到最大 5 轮 → 结束,报告剩余未修复项");
|
|
644
|
+
lines.push("");
|
|
645
|
+
// 输出要求
|
|
646
|
+
lines.push("### 输出要求");
|
|
647
|
+
lines.push("");
|
|
648
|
+
lines.push("- 每轮修复后必须将完整产物写入对应文件");
|
|
649
|
+
lines.push("- 每条门禁检查项必须附证据:✅ + 引用原文 或 ❌ + 修复说明");
|
|
650
|
+
lines.push("- 最终输出阶段级审查通过的确认 + 迭代摘要");
|
|
651
|
+
lines.push("");
|
|
652
|
+
lines.push("⚠️ 绝对不允许只输出审查报告就停下来。必须看到所有产物被修复并通过审查。");
|
|
653
|
+
lines.push("⚠️ 绝对不允许无证据地批量标记 ✅。");
|
|
654
|
+
lines.push("⚠️ 独立重审是强制步骤,不是可选建议。");
|
|
655
|
+
return lines.join("\n");
|
|
656
|
+
}
|
|
657
|
+
/**
|
|
658
|
+
* 阶段级审查编排 — 审查指定阶段的全部产出。
|
|
659
|
+
*
|
|
660
|
+
* 对该阶段的所有注册产物逐一调用 orchestrateSingleArtifact(review),
|
|
661
|
+
* 聚合结果为统一的 StageReviewResult。
|
|
662
|
+
*/
|
|
663
|
+
export async function orchestrateStageReview(params) {
|
|
664
|
+
const { stage, projectPath, original_command, systemType } = params;
|
|
665
|
+
const { getArtifactsByStage } = await import("./artifact_aliases.js");
|
|
666
|
+
const aliases = getArtifactsByStage(stage, systemType);
|
|
667
|
+
if (aliases.length === 0) {
|
|
668
|
+
return {
|
|
669
|
+
mode: "stage_review",
|
|
670
|
+
status: "no_artifacts",
|
|
671
|
+
stage,
|
|
672
|
+
artifact_results: [],
|
|
673
|
+
injection_text: `阶段「${stage}」没有可审查的产物。`,
|
|
674
|
+
};
|
|
675
|
+
}
|
|
676
|
+
// 逐一编排
|
|
677
|
+
const artifactResults = [];
|
|
678
|
+
const allReady = [];
|
|
679
|
+
const partialIssues = [];
|
|
680
|
+
const allGates = [];
|
|
681
|
+
const allAllowedPaths = [];
|
|
682
|
+
const allReadOnlyPaths = [];
|
|
683
|
+
for (const alias of aliases) {
|
|
684
|
+
let singleResult = await orchestrateSingleArtifact({
|
|
685
|
+
kind: alias.kind,
|
|
686
|
+
operation: "review",
|
|
687
|
+
projectPath,
|
|
688
|
+
original_command,
|
|
689
|
+
systemType,
|
|
690
|
+
});
|
|
691
|
+
// 阶段级审查:产物不存在(status=missing_upstream 且仅自身缺失)
|
|
692
|
+
// → 回退到 extract 模式创建+审查
|
|
693
|
+
// 条件:仅当缺失项只有产物本身(上游全部就绪),且 extract 产出非空 injection_text
|
|
694
|
+
const isOnlySelfMissing = singleResult.status === "missing_upstream"
|
|
695
|
+
&& singleResult.missing_inputs?.length === 1
|
|
696
|
+
&& singleResult.missing_inputs[0].ref === alias.kind
|
|
697
|
+
&& singleResult.missing_inputs[0].message?.includes("尚未创建");
|
|
698
|
+
if (isOnlySelfMissing) {
|
|
699
|
+
// 额外守卫:
|
|
700
|
+
// 1. 根产物(consumes=[])在空项目中无上游内容可创建,跳过回退
|
|
701
|
+
// 2. extract 必须产出非空 injection_text 才采纳
|
|
702
|
+
const hasUpstreamContent = singleResult.upstream_inputs
|
|
703
|
+
&& singleResult.upstream_inputs.length > 0;
|
|
704
|
+
if (hasUpstreamContent) {
|
|
705
|
+
const extractResult = await orchestrateSingleArtifact({
|
|
706
|
+
kind: alias.kind,
|
|
707
|
+
operation: "extract",
|
|
708
|
+
projectPath,
|
|
709
|
+
original_command,
|
|
710
|
+
systemType,
|
|
711
|
+
});
|
|
712
|
+
if (extractResult.status === "ready" && extractResult.injection_text) {
|
|
713
|
+
singleResult = {
|
|
714
|
+
...extractResult,
|
|
715
|
+
injection_text: `# 阶段审查 — 创建并审查「${alias.defaultName}」\n\n`
|
|
716
|
+
+ `此产物尚未存在,阶段级审查要求你先创建再审查。\n\n`
|
|
717
|
+
+ `---\n\n${extractResult.injection_text}`,
|
|
718
|
+
};
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
const entry = {
|
|
723
|
+
kind: alias.kind,
|
|
724
|
+
name: alias.defaultName,
|
|
725
|
+
paths: singleResult.target_paths,
|
|
726
|
+
status: mapSingleStatus(singleResult.status),
|
|
727
|
+
injection_text: singleResult.injection_text,
|
|
728
|
+
upstream_inputs: singleResult.upstream_inputs,
|
|
729
|
+
template_body: singleResult.template_body,
|
|
730
|
+
rules: singleResult.rules,
|
|
731
|
+
gates: singleResult.gates,
|
|
732
|
+
missing_inputs: singleResult.missing_inputs,
|
|
733
|
+
error: singleResult.error,
|
|
734
|
+
};
|
|
735
|
+
artifactResults.push(entry);
|
|
736
|
+
// 收集 scope
|
|
737
|
+
if (singleResult.scope) {
|
|
738
|
+
allAllowedPaths.push(...singleResult.scope.allowed_paths);
|
|
739
|
+
allReadOnlyPaths.push(...singleResult.scope.read_only_paths);
|
|
740
|
+
}
|
|
741
|
+
// 收集门禁
|
|
742
|
+
if (singleResult.gates)
|
|
743
|
+
allGates.push(...singleResult.gates);
|
|
744
|
+
// 统计状态
|
|
745
|
+
if (singleResult.status === "ready") {
|
|
746
|
+
allReady.push(alias.defaultName);
|
|
747
|
+
}
|
|
748
|
+
else {
|
|
749
|
+
partialIssues.push(`「${alias.defaultName}」: ${singleResult.status}`);
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
// 构建聚合 injection_text
|
|
753
|
+
const injectionText = buildStageReviewInjection(stage, artifactResults, allGates);
|
|
754
|
+
// 总体状态
|
|
755
|
+
const overallStatus = partialIssues.length === 0
|
|
756
|
+
? "ready"
|
|
757
|
+
: allReady.length > 0
|
|
758
|
+
? "partial"
|
|
759
|
+
: "no_artifacts";
|
|
760
|
+
return {
|
|
761
|
+
mode: "stage_review",
|
|
762
|
+
status: overallStatus,
|
|
763
|
+
stage,
|
|
764
|
+
artifact_results: artifactResults,
|
|
765
|
+
injection_text: injectionText,
|
|
766
|
+
scope: {
|
|
767
|
+
allowed_paths: [...new Set(allAllowedPaths)],
|
|
768
|
+
read_only_paths: [...new Set(allReadOnlyPaths)],
|
|
769
|
+
},
|
|
770
|
+
};
|
|
771
|
+
}
|
|
772
|
+
//# sourceMappingURL=orchestrate_single_artifact.js.map
|