Scope — kontekst EA
Czym jest Scope?
Scope to mechanizm przekazywania elementów EA bezpośrednio do kontekstu rozmowy z AI. Zamiast opisywać słowami "mam komponent X z właściwościami Y", po prostu przypinasz element — AI automatycznie otrzymuje jego nazwę, typ, stereotyp, tagi i relacje.
Przyciski Scope
| Przycisk | Działanie |
|---|---|
| 📌 Pin | Przypina pakiet aktualnie zaznaczony w drzewie EA jako korzeń zakresu. Uwaga: akceptuje wyłącznie pakiety — element lub diagram spowoduje błąd. |
| + Add selected | Dodaje jeden lub więcej zaznaczonych elementów (wielokrotny wybór) jako kontekst informacyjny do promptu. |
| Wyczyść | Usuwa wszystkie elementy ze scope i kontekstu. |
| ▼ | Zwija / rozwija panel scope. |
Pin vs. Add selected — dwie różne role
| Akcja | Co robi | Zawęża SQL? |
|---|---|---|
| Pin pakietu | Ustawia pakiet jako korzeń zakresu — AI ogranicza wszystkie zapytania (w tym SQL) do tego pakietu i jego potomków | ✅ Tak |
| Add selected | Dodaje pełny JSON elementów (typ, stereotype, tagged values, atrybuty) do promptu jako kontekst informacyjny | ❌ Nie |
Wskazówki
- Scope jest trwały podczas sesji — nie zmienia się przy każdej wiadomości
- Scope + Metamodel = AI rozumie zarówno konkretne dane jak i wzorzec struktury
- Za dużo elementów w scope może przekroczyć limit kontekstu modelu — monitoruj rozmiar
Trwałość scope
Scope i kontekst są przechowywane tylko w pamięci — nie są zapisywane na dysk. Znikają po zamknięciu EA. „New conversation” ani „Clear” historii NIE czyszczą scope — czyści go wyłącznie przycisk „Clear” kontekstu lub krzyżyk (×) przy wpisie.
Scope — EA Context
What is Scope?
Scope is a mechanism for passing EA elements directly into the AI conversation context. Instead of describing "I have component X with properties Y", you simply pin the element — AI automatically receives its name, type, stereotype, tagged values and relations.
Scope Buttons
| Button | Action |
|---|---|
| 📌 Pin | Pins the package currently selected in the EA tree as the scope root. Note: accepts packages only — an element or diagram will produce an error. |
| + Add selected | Adds one or more selected elements (multiselect) as informational context to the prompt. |
| Clear | Removes all elements from scope and context. |
| ▼ | Collapse / expand the scope panel. |
Pin vs. Add selected — Two Different Roles
| Action | What it does | Narrows SQL? |
|---|---|---|
| Pin package | Sets the package as the scope root — AI restricts all queries (including SQL) to that package and its descendants | ✅ Yes |
| Add selected | Adds full JSON of elements (type, stereotype, tagged values, attributes) to the prompt as informational context | ❌ No |
Tips
- Scope is persistent during the session — it does not change with each message
- Scope + Metamodel = AI understands both specific data and structural patterns
- Too many elements in scope may exceed the model context limit — monitor the size
Scope Persistence
Scope and context are stored in memory only — not saved to disk. They disappear when EA is closed. "New conversation" and history "Clear" do NOT clear the scope — only the context "Clear" button or the × on an entry does.