重构 改为标准化输出

This commit is contained in:
2026-09-01 14:10:23 +08:00
parent 7533b298f1
commit bc87bd6d2d
10151 changed files with 1709487 additions and 11776 deletions
+2 -1
View File
@@ -13,6 +13,7 @@ from pathlib import Path
from typing import Any, Iterable
from .runtime_types import CapabilityResult, FeaturePlanNode, HoleSpec, RuntimeDiagnostic
from .operation_contracts import materialized_feature_contracts
_SELECTOR_REQUIRED = frozenset({"fillet", "chamfer"})
@@ -123,7 +124,7 @@ def pattern_transform_blocker(source: FeaturePlanNode) -> str | None:
def _schema_contract() -> dict[str, dict[str, Any]]:
path = Path(__file__).with_name("profile_schema.json")
return json.loads(path.read_text(encoding="utf-8"))["feature_atomic_ids"]
return materialized_feature_contracts(json.loads(path.read_text(encoding="utf-8")))
def sketch_ids_required_by_contract(cdsl: dict[str, Any]) -> frozenset[str]: