제품 팩토리
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소유와 상속이 섹션으로 연결되는 링크: 소유와 상속
제품이 소유하는 것
- 이름, 패키지, 번들, 제품 라인
- 버티컬 기능 및 i18n 키
- 내비게이션 탭
- RBAC 권한 문자열
- 대시보드 위젯
- AI 스킬 및 도구 바인딩
- 강조 색상 및 모노그램
플랫폼이 제공하는 것
- 인증 및 슈퍼관리자
- 멤버십 또는 조직
- RBAC 엔진 및 감사 로그
- 캘린더, 작업, 문서
- 알림 및 분석
- 워크플로, 대시보드, 검색 엔진
- 디자인 시스템, 스플래시, CI
명령이 섹션으로 연결되는 링크: 명령
powershell -File scripts\validate_product_spec.ps1 -SpecPath factory\specs\examples\super_airport.product.spec.yaml# 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 -DryRuncd ..\superairport
flutter create .
flutter pub get
flutter analyze
flutter test재생성이 섹션으로 연결되는 링크: 재생성
변경된 스펙으로 생성기를 다시 실행하면 사람이 작성한 기능 코드는 그대로 두고 골격 파일만 업데이트합니다.