优化skill,添加特征树、编辑窗口
This commit is contained in:
@@ -15,7 +15,11 @@ Choose a backend before modeling, keep its source as the editable authority, and
|
||||
only its promoted schema `2.0` generalized library.
|
||||
Never read `cad-experience-plugin/parser/input`, `parser/output`, or private
|
||||
case JSON during creation, modification, or reconstruction.
|
||||
2. Run the deterministic router from this skill directory:
|
||||
2. Run the deterministic router from this skill directory. For a new model it
|
||||
matches only the requested primary part against the SimpleCADAPI standard
|
||||
part catalog in `scripts/capabilities.json`. A catalog match selects
|
||||
SimpleCADAPI; every unmatched request selects text-to-cad/build123d. It does
|
||||
not read capability documents or let an LLM choose the backend:
|
||||
|
||||
```bash
|
||||
python3 scripts/route.py "<request>" --explain
|
||||
@@ -46,9 +50,9 @@ Choose a backend before modeling, keep its source as the editable authority, and
|
||||
geometry acceptance, parameter perturbation acceptance, and artifact
|
||||
publication. A route decision alone is not a completed reconstruction.
|
||||
3. Follow the selected route unless a hard environmental constraint makes it unavailable. If overriding it, record the reason in the task manifest.
|
||||
4. Load only the selected backend reference from `references/capabilities.md` and the matching installed Skill:
|
||||
- `build123d`: use `$cad`; prefer it for custom brackets, housings, shafts, flanges, fixtures, source-level assemblies, and freeform/custom surface work.
|
||||
- `simplecadapi`: use an installed SimpleCADAPI 2.0.2 Skill/runtime; prefer it when a standard factory exists, or when replayable ModelResult graphs, semantic lineage, physical units, tolerance chains, scene packages, or CAD translators materially improve the result. Its standard library includes gears, racks, ring and bevel gears, bearings, bolts, nuts, roller-chain sprockets, cycloidal parts, and reducer families.
|
||||
4. Use the selected backend directly:
|
||||
- `build123d`: use `$cad` for custom brackets, housings, shafts, flanges, fixtures, source-level assemblies, and every new part outside the catalog.
|
||||
- `simplecadapi`: use the installed SimpleCADAPI 2.0.2 runtime only for catalogued standard primary parts: gears, ring gears, racks, cycloidal discs, ball bearings, roller-chain sprockets, bolts, and nuts.
|
||||
5. When the route reports `requirement_refinement` or `visual_repair`, refine the brief, generate, execute, inspect multiple views, and repair no more than three visual mismatch rounds before asking the user.
|
||||
6. Generate into a task-owned directory and start CAD Viewer with that task directory as `--dir`; do not expose the repository-wide fixture library for a task review. Write one DesignIR 3.0 `*.designir.json` per part and treat it as the editable geometry contract; keep `cad-task.json` as the execution record. Read `references/designir-3.0.md` for both semantic authoring and uploaded STEP reconstruction. `references/designir-2.0.md` is migration-only. Never change backend during an edit unless conversion is explicitly requested; modify the recorded authoritative layer.
|
||||
For a supplied STEP/STP, use `scripts/route.py --execute`; do not manually
|
||||
@@ -90,8 +94,9 @@ Choose a backend before modeling, keep its source as the editable authority, and
|
||||
- Prefer an explicit user backend when it can produce the editable STEP contract.
|
||||
- Preserve the backend of an explicitly supplied DesignIR or Python generator unless conversion is requested.
|
||||
- Do not assign a permanent default backend. Score native-source continuity, factory coverage, semantic/replay needs, geometry vocabulary, assembly needs, and validation needs.
|
||||
- Prefer SimpleCADAPI when a supported standard mechanical factory or its model graph, semantic topology, unit/tolerance, scene, or translator capabilities materially improve editability and verification.
|
||||
- Prefer build123d for custom machined parts, source-driven assemblies, and freeform or surface-heavy work not covered by a SimpleCADAPI factory or tested operation vocabulary.
|
||||
- For a new model, do not use semantic, graph, tolerance, assembly, or generic mechanical keywords to choose a backend. Use the standard-part catalog only.
|
||||
- Select SimpleCADAPI only when the primary requested part matches an entry in `scripts/capabilities.json`. Standard-part words used only as features, such as bolt holes or bearing seats, are excluded from that match.
|
||||
- Select build123d for every unmatched new request, including custom machined parts, source-driven assemblies, and freeform or surface-heavy work.
|
||||
- For uploaded STEP, report SurfaceIR as the effective reconstruction engine. The selected authoring backend describes future semantic repair/edit work; it is not allowed to read the teacher STEP during reconstruction.
|
||||
- Prefer source quality and future modification over the shortest first generation.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user