@saeroon/cli 0.2.2 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +21 -3
  2. package/dist/index.js +1371 -258
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -54,6 +54,7 @@ npx @saeroon/cli deploy --target production
54
54
  | `add` | schema.json에 블록 추가 (기본 props + 부모 children 자동 연결) |
55
55
  | `upload` | 이미지를 Saeroon CDN에 업로드. `--replace-in`으로 경로 자동 교체 |
56
56
  | `generate` | AI로 사이트 스키마 생성 (`--ref` URL 분석 / `--prompt` 텍스트) |
57
+ | `analyze` | 레퍼런스 URL 분석 (스크린샷 + DOM/CSS + 비디오 감지 + Pexels 스톡 매칭) |
57
58
  | `compare` | 레퍼런스 ↔ 프리뷰 시각 비교 (Playwright 스크린샷 diff) |
58
59
 
59
60
  ### Deployment
@@ -89,9 +90,9 @@ init ──→ preview ──→ validate ──→ deploy --target staging
89
90
  ### AI-Assisted Creation
90
91
 
91
92
  ```
92
- generate --ref <url> ──→ validate --local ──→ add <블록> ──→ preview
93
- or
94
- generate --prompt <text> upload ./assets/
93
+ analyze <url> ──→ generate --ref <url> ──→ validate --local ──→ preview
94
+ (스크린샷 + or
95
+ 비디오 매칭) generate --prompt <text> upload ./assets/
95
96
  --replace-in schema.json
96
97
 
97
98
  compare --ref ──→ deploy
@@ -197,6 +198,10 @@ npx @saeroon/cli deploy --dry-run
197
198
  ~/.saeroon/config.json ← API 키, 기본 설정 (login으로 생성)
198
199
  ./saeroon.config.json ← 프로젝트별 siteId, templateId (init으로 생성)
199
200
  ./schema.json ← 사이트 스키마 정의
201
+
202
+ # 환경변수
203
+ SAEROON_API_KEY ← Saeroon API Key
204
+ PEXELS_API_KEY ← Pexels API Key (비디오 스톡 검색, 무료 — pexels.com/api)
200
205
  ```
201
206
 
202
207
  ## Block Scaffolding
@@ -214,6 +219,19 @@ npx @saeroon/cli add image-block --parent root --after hero-1
214
219
  npx @saeroon/cli add content-showcase --id insights --parent main --page about
215
220
  ```
216
221
 
222
+ ## Reference Analysis
223
+
224
+ ```bash
225
+ # 레퍼런스 URL 분석 (스크린샷 4장 + DOM/CSS + 비디오 감지)
226
+ npx @saeroon/cli analyze https://example.com
227
+
228
+ # 업종 지정 (비디오 검색 키워드에 사용)
229
+ npx @saeroon/cli analyze https://example.com --industry cafe
230
+
231
+ # Pexels API Key 설정 시 비디오 자동 매칭 (video-stock-map.json 생성)
232
+ # 설정: PEXELS_API_KEY 환경변수 또는 .saeroon/config.json의 pexelsApiKey
233
+ ```
234
+
217
235
  ## AI Generation
218
236
 
219
237
  ```bash