feat: unify CAD workflows on DesignIR 3.0

This commit is contained in:
Jerry
2026-07-28 14:41:26 +08:00
parent 6e33bc0e11
commit b5738e9109
36 changed files with 9690 additions and 1305 deletions
@@ -33,6 +33,11 @@
"backend_hint": {
"enum": ["auto", "build123d", "simplecadapi"]
},
"applied_experience_ids": {
"type": "array",
"items": {"type": "string"},
"uniqueItems": true
},
"reconstruction_status": {
"enum": ["ready", "partial", "unsupported_feature_vocabulary"]
},
@@ -177,6 +182,12 @@
"minItems": 3,
"maxItems": 3
},
"valueVector3": {
"type": "array",
"items": {"$ref": "#/$defs/value"},
"minItems": 3,
"maxItems": 3
},
"parameter": {
"type": "object",
"additionalProperties": false,
@@ -186,6 +197,28 @@
"unit": {"enum": ["mm", "deg", "count", "ratio"]},
"editable": {"type": "boolean"},
"role": {"type": "string"},
"semantic_aliases": {
"type": "array",
"items": {"type": "string"},
"uniqueItems": true
},
"inference": {
"type": "object",
"additionalProperties": false,
"required": ["status", "confidence"],
"properties": {
"status": {
"enum": ["user_specified", "inferred_from_final_brep", "validated"]
},
"confidence": {"type": "number", "minimum": 0, "maximum": 1},
"evidence_kind": {"type": "string"}
}
},
"affects_feature_ids": {
"type": "array",
"items": {"type": "string"},
"uniqueItems": true
},
"minimum": {"type": "number"},
"maximum": {"type": "number"}
}
@@ -228,8 +261,17 @@
"depth": {"$ref": "#/$defs/value"},
"count": {"$ref": "#/$defs/value"},
"pitch_diameter": {"$ref": "#/$defs/value"},
"axis": {"type": "string"},
"center": {"$ref": "#/$defs/vector3"},
"axis": {
"oneOf": [
{"type": "string"},
{"$ref": "#/$defs/vector3"}
]
},
"center": {"$ref": "#/$defs/valueVector3"},
"anchor": {
"enum": ["base_center", "geometric_center"],
"default": "base_center"
},
"host": {"type": "string"}
}
}