# הקשר להמשך ישיר — 0015
תאריך: 2026-05-20 06:53
אפליקציה: VitStudio (פלאגין Revit)

## מה בנוי עכשיו — M2 שלב 1 ✓ (build נקי, אפס אזהרות)
- **NuGet:** `IxMilia.Dxf 0.8.4` ב-`VitStudio.Core.csproj`
- **Core — פיצול נקי Revit-agnostic** (`netstandard2.0`, ללא ref ל-RevitAPI):
  - `src\VitStudio.Core\Dwg\DwgLink.cs` — DTO (ElementId/Name/Kind/SourcePath/IsLoaded)
  - `src\VitStudio.Core\Dwg\IDwgLinkProvider.cs` — interface
  - `src\VitStudio.Core\Dwg\DwgLinkScanner.cs` — resolve + סיווג DWG/DXF לפי header (לא רק סיומת)
  - `src\VitStudio.Core\Telemetry\ITelemetry.cs` + `NoOpTelemetry.cs` — seam בלבד, אפס תלות
- **Revit2024 — provider:** `src\VitStudio.Revit2024\Dwg\RevitDwgLinkProvider.cs` — `FilteredElementCollector` על `ImportInstance` → `CADLinkType.GetExternalFileReference()` לחילוץ נתיב. `RevitLinkInstance` *לא* נסרק (זה .rvt, לא CAD — מתועד בקוד).
- **תוכנית מעודכנת:** `D:\Vitruvius Ecosystem\VitStudio\PLAN.md` — סעיף "תשתית דאטה" מלא + סעיף "אבטחה ופרטיות" עם 3 ממצאי סוכן סקיוריטי + שורה בטבלת סיכונים. עותק מסונכרן ב-`C:\Users\elyas\.claude\plans\inherited-nibbling-steele.md`.
- **4 תרשימים חדשים** ב-`D:\Vitruvius Ecosystem\VitStudio\`: VIT-005 (Architecture) · VIT-006 (Roadmap) · VIT-007 (Security) · VIT-008 (Data ⨉ Security).

## הצעד הבא — M2 שלב 2: TextStyleDetector + Guard F1
1. **F1 (פרטיות, לא-backfillable):** מימוש Guard מבני בתוך `Track()` — allowlist keys מה-taxonomy ב-PLAN, value enum/num/bool/short-token בלבד, regex חוסם נתיבים (`[A-Za-z]:\\` / `/`) → drop + debug-assert. עדיף לסגור עכשיו לפני שמופיע call site ראשון.
2. **TextStyleDetector:** `src\VitStudio.Core\Dwg\TextStyleDetector.cs` — מקבל `DwgScanResult` ומשתמש ב-`IxMilia.Dxf` (כש-Format=Dxf) לחילוץ Text Style table + שמות פונטי SHX. בינארי DWG בשלב הזה: stub שמחזיר `null`/`empty` (parser בינארי נדחה אם בטא יראה שצריך).
3. **כפתור פקודה זמני** ב-Revit2024 (`ScanFontsCommand` תחת `Commands\`) שמרכיב `RevitDwgLinkProvider` + `DwgLinkScanner` + `TextStyleDetector` ומציג ב-TaskDialog את רשימת ה-SHX שזוהו — אימות מול fixture `A_Mivne roi.rvt`.

## קבצים רלוונטיים לסשן הבא
- `D:\Vitruvius Ecosystem\VitStudio\PLAN.md` — סעיף "Event Taxonomy" (ה-allowlist ל-Guard) + "אבטחה ופרטיות → פעולות M2"
- `D:\Vitruvius Ecosystem\VitStudio\src\VitStudio.Core\Dwg\DwgLinkScanner.cs` — מקבל בנייה של TextStyleDetector לידו
- `D:\Vitruvius Ecosystem\VitStudio\src\VitStudio.Core\Telemetry\ITelemetry.cs` — להחליף `NoOpTelemetry` כברירת מחדל במימוש שמכיל את ה-Guard
- fixture: מודל Revit `A_Mivne roi.rvt` (Reflected Ceiling Plan, ג'יבריש `crzk eubxyruemhv`)
- Build: `MSBuild.exe VitStudio.slnx -t:Build -p:Configuration=Debug`
- Deploy (לכפתור הזמני): DLLs → `C:\ProgramData\Autodesk\Revit\Addins\2024\VitStudio\` — לארכב ישן ל-`OLD\` לפי הכלל הגלובלי. הערה: `CopyLocalLockFileAssemblies=false` ב-Revit2024 → לוודא ש-`IxMilia.Dxf.dll` נפרס ידנית לתת-תיקייה.
