مصنع المنتجات
product.spec.yaml، والمولّد، وما يملكه المنتج وما يرثه.
إصدار التوثيق: supercore main · الحزم 1.0.0
خط المعالجةرابط إلى هذا القسم: خط المعالجة
ثلاثة أجزاء: المواصفة التي يملكها المنتج، وسكربت المولّد، وسجل الوحدات الذي يربط كل وحدة مشتركة بالحزمة التي تملكها.
- 01
الفكرة
- 02
النطاق
- 03
الوحدات
- 04
غلاف المنتج
- 05
النشر
product.spec.yamlرابط إلى هذا القسم: product.spec.yaml
يُتحقَّق منها مقابل factory/schema/product.spec.schema.json. علامات التبويب التي تحتوي module: والأدوات من النوع module لا تُنتج أي شيفرة؛ إذ يتولاها الغلاف الموروث.
apiVersion: after.ai/v1
kind: SuperApp
metadata:
name: SuperAirport # PascalCase, must start with a capital
package: super_airport # snake_case pubspec name
bundle: com.overstein.superairport
productLine: enterprise # consumer | enterprise
spec:
domain: Airport / aviation operations
reference: SuperHospital # SuperGarage | SuperHospital
features: # VERTICAL ONLY. No OS modules here.
- id: flights
titleKey: features.flights
icon: flight_takeoff_outlined
requiredPermission: airport.flights.read
navigation:
tabs: # 2–6 tabs, matching family shell
- id: home
labelKey: nav.home
- id: flights
labelKey: nav.flights
feature: flights
- id: tasks
module: tasks # inherited OS module — no code emitted
permissions:
- airport.flights.read
- airport.gates.write
branding:
accent: "#0EA5E9"
monogram: SAالمصدر supercore/docs/PRODUCT_FACTORY.md (يُفتح في علامة تبويب جديدة)
المملوك مقابل الموروثرابط إلى هذا القسم: المملوك مقابل الموروث
يملك المنتج
- الاسم، والحزمة، ومعرّف bundle، وخط المنتجات
- الميزات الرأسية ومفاتيح الترجمة
- علامات تبويب التنقل
- سلاسل أذونات RBAC
- أدوات لوحة المعلومات
- مهارات الذكاء الاصطناعي وربط الأدوات
- اللون المميّز والشعار الحرفي
توفّر المنصة
- المصادقة وصلاحيات المشرف العام
- العضوية أو المؤسسة
- محرك RBAC وسجل التدقيق
- التقويم، والمهام، والمستندات
- الإشعارات والتحليلات
- محركات سير العمل ولوحة المعلومات والبحث
- نظام التصميم، وشاشة البداية، وCI
الأوامررابط إلى هذا القسم: الأوامر
powershell -File scripts\validate_product_spec.ps1 -SpecPath factory\specs\examples\super_airport.product.spec.yamlالمصدر supercore/factory/README.md (يُفتح في علامة تبويب جديدة)
# From a spec
powershell -File scripts\generate_product.ps1 -SpecPath factory\specs\examples\super_airport.product.spec.yaml
# From a name only (quick starter)
powershell -File scripts\generate_product.ps1 -Name SuperAirport -Reference SuperHospital
# Preview without writing files
powershell -File scripts\generate_product.ps1 -SpecPath factory\specs\examples\super_airport.product.spec.yaml -DryRunالمصدر supercore/factory/README.md (يُفتح في علامة تبويب جديدة)
cd ..\superairport
flutter create .
flutter pub get
flutter analyze
flutter testالمصدر supercore/scripts/generate_product.ps1 (يُفتح في علامة تبويب جديدة)
إعادة التوليدرابط إلى هذا القسم: إعادة التوليد
إعادة تشغيل المولّد بمواصفة مطوَّرة تحدّث ملفات الهيكل دون إتلاف شيفرة الميزات التي كتبها المطوّرون.