Skip to content

Commit 7e50991

Browse files
committed
PAC-973 Add AGENTS.md
1 parent cd5877e commit 7e50991

1 file changed

Lines changed: 160 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
# AGENTS.md - import-cli-simple
2+
3+
## Zweck & Verantwortung
4+
5+
Das `import-cli-simple` Modul ist die **Master CLI-Anwendung** für das Pacemaker Import-System. Es ist ein **Tier 7 Modul** und integriert **ALLE 38 anderen Module**.
6+
7+
**Hauptverantwortung:**
8+
- Vollständige CLI für Single-Threaded Imports
9+
- Integration aller Importer (Attribute, Category, Customer, Product, etc.)
10+
- Integration aller Converter Module
11+
- Integration aller EE Features
12+
- Integration aller MSI Features
13+
- Zentrale Entry Point für die meisten Use-Cases
14+
15+
## Architektur & Design Patterns
16+
17+
### Kern-Klassen
18+
- **SimpleCliApplication**: Haupt-CLI-Anwendung
19+
- **ImportCommand**: Haupt-Import-Command
20+
- **ConfigurationLoader**: Konfiguration-Loader
21+
22+
### Verwendete Patterns
23+
- **Command Pattern**: Für CLI Commands
24+
- **Facade Pattern**: Vereinfachte Schnittstelle für alle Module
25+
- **Dependency Injection**: Für Dependency Management
26+
27+
## Abhängigkeiten
28+
29+
### Externe Pakete
30+
- **egulias/email-validator** ^1.0|^2.0|^3.0|^4.0 - Email-Validierung
31+
32+
### TechDivision Dependencies (35 Module!)
33+
**Tier 3-4 (Core):**
34+
- **import** ^18.1 - Core Framework
35+
- **import-cli** ^13.1 - CLI Framework
36+
- **import-app-simple** ^19.0 - Simple Application
37+
- **import-configuration-jms** ^18.1 - JMS Configuration
38+
39+
**Tier 4 (Entity Importers):**
40+
- **import-attribute** ^23.1 - Attribute Importer
41+
- **import-category** ^22.1 - Category Importer
42+
- **import-customer** ^18.1 - Customer Importer
43+
- **import-product** ^26.2 - Product Importer
44+
- **import-converter** ^12.0 - Converter Framework
45+
- **import-ee** ^17.0 - EE Functionality
46+
47+
**Tier 5 (Specialized Importers):**
48+
- **import-attribute-set** ^18.1 - Attribute Set Importer
49+
- **import-customer-address** ^18.1 - Customer Address Importer
50+
- **import-product-bundle** ^26.1 - Bundle Product Importer
51+
- **import-product-grouped** ^20.1 - Grouped Product Importer
52+
- **import-product-link** ^26.1 - Product Link Importer
53+
- **import-product-media** ^28.1 - Product Media Importer
54+
- **import-product-msi** ^21.1 - MSI Stock Importer
55+
- **import-product-tier-price** ^19.1 - Tier Price Importer
56+
- **import-product-url-rewrite** ^26.1 - URL Rewrite Importer
57+
- **import-product-variant** ^26.1 - Configurable Product Importer
58+
59+
**Tier 5 (Converters):**
60+
- **import-converter-customer-attribute** ^4.1 - Customer Attribute Converter
61+
- **import-converter-product-attribute** ^11.1 - Product Attribute Converter
62+
- **import-converter-product-category** ^11.0 - Product Category Converter
63+
- **import-converter-ee** ^12.0 - EE Converter
64+
65+
**Tier 6 (EE Extensions):**
66+
- **import-category-ee** ^23.0 - EE Category Extensions
67+
- **import-product-ee** ^27.2 - EE Product Extensions
68+
- **import-product-bundle-ee** ^28.0 - EE Bundle Extensions
69+
- **import-product-grouped-ee** ^22.0 - EE Grouped Extensions
70+
- **import-product-link-ee** ^28.0 - EE Link Extensions
71+
- **import-product-media-ee** ^29.0 - EE Media Extensions
72+
- **import-product-variant-ee** ^28.0 - EE Variant Extensions
73+
74+
**Infrastructure (Tier 0-2):**
75+
- **import-cache** ^2.0 - Cache Interfaces
76+
- **import-dbal** ^2.0 - DBAL Interfaces
77+
- **import-serializer** ^2.1 - Serializer Interfaces
78+
- **import-dbal-collection** ^2.1 - DBAL Implementation
79+
- **import-cache-collection** ^2.0 - Cache Implementation
80+
- **import-serializer-csv** ^2.1 - CSV Serializer
81+
- **import-configuration** ^6.1 - Configuration Interfaces
82+
83+
### Abhängig von diesem Modul
84+
- **Keine** - Master CLI, kein Dependent
85+
86+
## Wichtige Entry Points
87+
88+
### CLI Application
89+
```php
90+
// Simple CLI Application
91+
SimpleCliApplication::run(): void
92+
SimpleCliApplication::execute($operation): void
93+
94+
// Import Command
95+
ImportCommand::execute(InputInterface $input, OutputInterface $output): int
96+
```
97+
98+
### Verwendungsbeispiel
99+
```bash
100+
# Attribute Import
101+
bin/magento import:attribute config.xml
102+
103+
# Category Import
104+
bin/magento import:category config.xml
105+
106+
# Product Import (mit allen Variants)
107+
bin/magento import:product config.xml
108+
109+
# Vollständiger Import (alle Entities)
110+
bin/magento import:all config.xml
111+
```
112+
113+
## Events & Extension Points
114+
115+
**Keine Events** - Tier 7 CLI-Modul
116+
117+
## Hints für KI-Agenten
118+
119+
### Wichtig zu verstehen
120+
1. **Tier 7 Modul**: Master CLI mit allen 38 anderen Modulen
121+
2. **35 TechDivision Dependencies**: Integriert alle Importer
122+
3. **Facade Pattern**: Vereinfachte Schnittstelle für alle Features
123+
4. **Single-Threaded**: Für Single-Threaded Imports
124+
5. **Entry Point**: Zentrale Entry Point für die meisten Use-Cases
125+
126+
### Architektur-Übersicht
127+
```
128+
import-cli-simple (Master CLI)
129+
├─ Tier 3-4: Core Framework (import, import-cli, import-app-simple)
130+
├─ Tier 4: Entity Importers (attribute, category, customer, product, converter, ee)
131+
├─ Tier 5: Specialized Importers (bundle, grouped, link, media, msi, tier-price, url-rewrite, variant)
132+
├─ Tier 5: Converters (customer-attr, product-attr, product-category, ee)
133+
├─ Tier 6: EE Extensions (category-ee, product-ee, bundle-ee, grouped-ee, link-ee, media-ee, variant-ee)
134+
└─ Tier 0-2: Infrastructure (cache, dbal, serializer, configuration)
135+
```
136+
137+
### Bei Änderungen
138+
- **Breaking Changes**: Beachte alle 35 Dependencies
139+
- **Backward Compatibility**: Alte Imports sollten noch funktionieren
140+
- **CLI-Kompatibilität**: Beachte CLI-Interface
141+
142+
### Implementierungs-Hinweise
143+
- Nutze Facade Pattern für einfache Schnittstelle
144+
- Beachte Dependency-Reihenfolge
145+
- Erwäge Performance bei großen Imports
146+
147+
## Bekannte Einschränkungen
148+
149+
- **Single-Threaded**: Nicht für Multi-Threaded Imports
150+
- **Memory-Intensive**: Große Datenmengen können Memory-Probleme verursachen
151+
- **Keine Transaktionen**: Transaktions-Handling erfolgt in Importern
152+
- **Keine Rollback**: Fehler können zu Daten-Inkonsistenzen führen
153+
154+
## Zusammenfassung
155+
156+
`import-cli-simple` ist das **Master CLI-Modul** des Pacemaker-Systems. Es integriert **ALLE 38 anderen Module** und bietet eine vollständige CLI für Single-Threaded Imports. Es ist die zentrale Entry Point für die meisten Use-Cases.
157+
158+
**Für Agenten:** Verstehe dieses Modul als **Master CLI** mit 35 TechDivision Dependencies, Facade Pattern, und vollständiger Integration aller Import-Features.
159+
160+
**Kritisch:** Dieses Modul ist das Herzstück des Pacemaker-Systems. Änderungen hier können alle 35 Dependents beeinflussen!

0 commit comments

Comments
 (0)