slides-grab 1.2.5 → 1.3.0

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.
package/README-ko.md ADDED
@@ -0,0 +1,256 @@
1
+ # slides-grab 한국어 README
2
+
3
+ <p align="center">AI가 만든 HTML 슬라이드에서 원하는 영역을 직접 선택하고, 그 영역을 다시 AI에게 편집시킬 수 있는 에이전트 우선 발표 자료 프레임워크입니다.</p>
4
+
5
+ <p align="center">
6
+ <a href="README.md">English README</a> | <strong>한국어</strong>
7
+ </p>
8
+
9
+ <p align="center">
10
+ <a href="https://github.com/vkehfdl1/slides-grab/releases/download/v0.0.1-demo/demo.mp4">
11
+ <img src="docs/assets/demo.gif" alt="slides-grab 데모" width="720">
12
+ </a>
13
+ </p>
14
+
15
+ <p align="center">
16
+ <strong>👉 slides-grab으로 무엇을 만들 수 있는지 확인하세요:</strong>
17
+ <a href="https://vkehfdl1.github.io/slides-grab/"><strong>라이브 쇼케이스 갤러리</strong></a><br>
18
+ slides-grab으로 만든 실제 발표 자료를 열고 슬라이드를 넘겨볼 수 있습니다.
19
+ </p>
20
+
21
+ ---
22
+
23
+ ## 빠른 시작
24
+
25
+ slides-grab은 슬라이드를 HTML과 CSS로 작성하고, 브라우저 기반 편집기에서 영역을 드래그해 수정 요청을 보낸 뒤 PDF 또는 실험적/불안정한 PPTX·Figma용 PPTX로 내보내는 도구입니다.
26
+
27
+ AI 코딩 에이전트에 아래 안내 중 하나를 붙여넣어 설치를 시작할 수 있습니다.
28
+
29
+ **Claude Code:**
30
+
31
+ ```text
32
+ Read https://raw.githubusercontent.com/vkehfdl1/slides-grab/main/docs/installation/claude.md and follow every step.
33
+ ```
34
+
35
+ **Codex:**
36
+
37
+ ```text
38
+ Read https://raw.githubusercontent.com/vkehfdl1/slides-grab/main/docs/installation/codex.md and follow every step.
39
+ ```
40
+
41
+ 저장소를 직접 개발하거나 수정하려면 다음을 실행합니다.
42
+
43
+ ```bash
44
+ git clone https://github.com/vkehfdl1/slides-grab.git && cd slides-grab
45
+ npm ci && npx playwright install chromium
46
+ ```
47
+
48
+ > Node.js **20 이상**이 필요합니다.
49
+
50
+ ### 설치: 저장소를 클론하지 않는 방법
51
+
52
+ CLI와 공유 에이전트 스킬만 사용하려면 npm 패키지를 설치하면 됩니다.
53
+
54
+ ```bash
55
+ npm install slides-grab
56
+ npx playwright install chromium
57
+ npx skills add ./node_modules/slides-grab -g -a codex -a claude-code --yes --copy
58
+ ```
59
+
60
+ 이 방법은 일반적인 사용에 충분합니다. slides-grab 자체를 수정하거나 기여하려는 경우에만 저장소를 클론하세요.
61
+
62
+ ## 왜 slides-grab인가요?
63
+
64
+ 많은 AI 도구가 슬라이드 HTML을 생성하지만, 사용자가 화면에서 **수정하고 싶은 부분을 직접 가리키고** 그 자리에서 반복 편집할 수 있게 해 주는 도구는 드뭅니다. slides-grab은 다음 흐름을 제공합니다.
65
+
66
+ - **Plan** — 에이전트가 주제나 파일을 바탕으로 슬라이드 아웃라인을 만듭니다.
67
+ - **Design** — 에이전트가 각 슬라이드를 독립적인 HTML 파일로 작성합니다.
68
+ - **Edit** — 브라우저 편집기에서 bbox 영역 선택, 직접 텍스트 편집, 에이전트 기반 재작성을 수행합니다.
69
+ - **Export** — 한 명령으로 PDF를 만들고, 실험적/불안정한 PPTX 또는 Figma 가져오기용 PPTX도 생성할 수 있습니다.
70
+
71
+ ## CLI 명령어
72
+
73
+ 워크플로 명령은 `--slides-dir <path>`를 지원하며 기본값은 `slides`입니다.
74
+
75
+ 새 클론에서는 `--help`, `list-templates`, `list-styles`, `preview-styles` 같은 탐색 명령은 덱 없이도 동작합니다. `edit`, `build-viewer`, `validate`, `convert`, `pdf`는 `slide-*.html` 파일이 들어 있는 슬라이드 작업공간이 필요합니다.
76
+
77
+ ```bash
78
+ slides-grab edit # 시각적 슬라이드 편집기 실행
79
+ slides-grab build-viewer # 단일 viewer.html 생성
80
+ slides-grab validate # Playwright 기반 슬라이드 HTML 검증
81
+ slides-grab convert # 실험적/불안정한 PPTX로 내보내기
82
+ slides-grab convert --resolution 2160p # 고해상도 래스터 PPTX 내보내기
83
+ slides-grab figma # Figma Slides 가져오기용 실험적/불안정한 PPTX 생성
84
+ slides-grab pdf # 캡처 모드 PDF 내보내기(기본값)
85
+ slides-grab pdf --resolution 2160p # 고해상도 이미지 기반 PDF 내보내기
86
+ slides-grab pdf --mode print # 검색/선택 가능한 텍스트 PDF 내보내기
87
+ slides-grab png # 슬라이드별 PNG 렌더링(기본 2160p)
88
+ slides-grab png --slide-mode card-news # 인스타그램용 정사각형 PNG 렌더링
89
+ slides-grab image --prompt "..." # 로컬 슬라이드 이미지 생성
90
+ slides-grab fetch-video --url <youtube-url> --slides-dir decks/my-deck # yt-dlp로 동영상 에셋 다운로드
91
+ slides-grab tldraw # .tldr 다이어그램을 슬라이드 크기의 로컬 SVG로 렌더링
92
+ slides-grab list-templates # 사용 가능한 슬라이드 템플릿 표시
93
+ slides-grab list-styles # 번들된 35개 디자인 스타일 표시
94
+ slides-grab preview-styles # 35개 스타일 미리보기 갤러리를 브라우저에서 열기
95
+ ```
96
+
97
+ ## 디자인 스타일 모음
98
+
99
+ slides-grab은 [corazzon/pptx-design-styles](https://github.com/corazzon/pptx-design-styles)에서 파생된 30개 스타일과 slides-grab 고유 스타일 5개, 총 35개 디자인 스타일을 제공합니다. 에이전트에게 특정 스타일을 요청하거나 완전히 커스텀 디자인을 요청할 수 있습니다.
100
+
101
+ ```bash
102
+ slides-grab list-styles
103
+ slides-grab preview-styles
104
+ ```
105
+
106
+ ## 에셋 규칙
107
+
108
+ 슬라이드에서 사용하는 로컬 이미지와 동영상은 `<slides-dir>/assets/`에 저장하고 각 `slide-XX.html`에서는 `./assets/<file>` 형식으로 참조하세요.
109
+
110
+ - 권장 이미지: `<img src="./assets/example.png" alt="...">`
111
+ - 권장 동영상: `<video src="./assets/demo.mp4" poster="./assets/demo-poster.png"></video>`
112
+ - 허용: 완전한 자체 포함 슬라이드를 위한 `data:` URL
113
+ - 저장된 슬라이드에서 금지: 원격 `http(s)://` 이미지 URL
114
+ - 지원하지 않음: `/Users/...` 또는 `C:\...` 같은 절대 파일 경로
115
+ - 저장된 슬라이드에서 지원하지 않음: 원격 동영상 URL. 먼저 `<slides-dir>/assets/`로 다운로드하세요.
116
+
117
+ 내보내기 전에 다음 명령으로 누락된 로컬 에셋과 권장하지 않는 경로 형식을 확인하세요.
118
+
119
+ ```bash
120
+ slides-grab validate --slides-dir <path>
121
+ ```
122
+
123
+ ## 이미지 생성
124
+
125
+ `slides-grab image`는 프롬프트로 슬라이드용 이미지를 생성하고 결과를 `<slides-dir>/assets/`에 저장한 뒤 HTML에서 사용할 `./assets/<file>` 참조를 출력합니다.
126
+
127
+ ```bash
128
+ codex login
129
+ slides-grab image --slides-dir decks/my-deck --prompt "Editorial hero image of a robotics warehouse at dawn"
130
+ ```
131
+
132
+ 기본 이미지 생성 공급자는 로컬 Codex ChatGPT 로그인(`~/.codex/auth.json`)을 재사용할 수 있습니다. 선택적으로 `--provider codex`에는 `OPENAI_API_KEY`, `--provider nano-banana`에는 `GOOGLE_API_KEY` 또는 `GEMINI_API_KEY`가 필요할 수 있습니다.
133
+
134
+ > 경고: 일부 이미지 생성 경로는 지원되지 않는 비공개 백엔드 또는 계정 권한에 의존할 수 있으므로, 실패하면 웹 검색과 로컬 다운로드 방식으로 대체하세요.
135
+
136
+ 내보내기 전에는 항상 `slides-grab validate --slides-dir <path>`를 실행해 누락된 로컬 에셋과 권장하지 않는 경로 형식을 먼저 확인하세요.
137
+
138
+ `slides-grab pdf`는 이제 기본적으로 `--mode capture`를 사용합니다. 이 모드는 렌더링된 각 슬라이드를 PDF 안에 래스터 이미지로 캡처해 시각적 충실도를 높입니다. 브라우저 텍스트를 검색하거나 선택할 수 있는 PDF가 더 중요하다면 `--mode print`를 사용하세요.
139
+
140
+ 슬라이드에 `<video>`가 포함되어 있으면 PDF 내보내기는 라이브 자동 재생 프레임 대신 동영상의 poster/썸네일 정지 이미지를 사용합니다. 안정적인 출력이 필요하면 `poster="./assets/<file>"`를 지정하는 방식을 권장합니다.
141
+
142
+ `slides-grab pdf`와 `slides-grab convert`는 더 선명한 결과물을 위해 기본적으로 `2160p` / `4k` 래스터 출력을 사용합니다. 더 작거나 빠른 산출물이 필요하면 `--resolution <preset>`으로 `720p`, `1080p`, `1440p`, `2160p`, `4k` 중 하나를 지정할 수 있습니다.
143
+
144
+ ### 웹 동영상을 덱 에셋으로 다운로드
145
+
146
+ 원본 동영상이 YouTube 또는 `yt-dlp`가 지원하는 다른 페이지에 있다면 먼저 덱의 assets 폴더로 다운로드하세요.
147
+
148
+ ```bash
149
+ slides-grab fetch-video \
150
+ --url https://www.youtube.com/watch?v=EXAMPLE \
151
+ --slides-dir decks/my-deck \
152
+ --output-name hero-video
153
+ ```
154
+
155
+ 이 명령은 저장된 파일 경로와 슬라이드 HTML에 붙여 넣을 `./assets/<file>` 참조를 출력합니다. `PATH`에서 동작하는 `yt-dlp` 바이너리가 필요합니다.
156
+
157
+ ## 여러 덱 작업 흐름
158
+
159
+ 먼저 `decks/my-deck/`에 덱을 만들거나 생성한 뒤 다음처럼 작업할 수 있습니다.
160
+
161
+ ```bash
162
+ slides-grab edit --slides-dir decks/my-deck
163
+ slides-grab validate --slides-dir decks/my-deck
164
+ slides-grab pdf --slides-dir decks/my-deck --output decks/my-deck.pdf
165
+ slides-grab pdf --slides-dir decks/my-deck --mode print --output decks/my-deck-searchable.pdf
166
+ slides-grab png --slides-dir decks/my-deck --output-dir decks/my-deck/out-png
167
+ slides-grab convert --slides-dir decks/my-deck --output decks/my-deck.pptx
168
+ slides-grab figma --slides-dir decks/my-deck --output decks/my-deck-figma.pptx
169
+ ```
170
+
171
+ > **주의:** `slides-grab convert`와 `slides-grab figma`는 현재 **실험적/불안정한** 기능입니다. 출력은 최선의 결과이며 PowerPoint 또는 Figma에서 수동 정리가 필요할 수 있습니다.
172
+
173
+ ## 카드뉴스 작업 흐름
174
+
175
+ 인스타그램식 카드뉴스는 720pt × 720pt 정사각형 프레임을 사용합니다. 모든 단계에서 `--mode card-news` 또는 `--slide-mode card-news`를 맞춰 사용하고, 최종 배포물은 `slides-grab png`를 우선 권장합니다.
176
+
177
+ ```bash
178
+ slides-grab edit --slides-dir decks/my-cards --mode card-news
179
+ slides-grab validate --slides-dir decks/my-cards --mode card-news
180
+ slides-grab png --slides-dir decks/my-cards --slide-mode card-news --resolution 2160p
181
+ slides-grab pdf --slides-dir decks/my-cards --slide-mode card-news --output decks/my-cards.pdf
182
+ slides-grab convert --slides-dir decks/my-cards --mode card-news --output decks/my-cards.pptx
183
+ ```
184
+
185
+ ## Tldraw 다이어그램 에셋
186
+
187
+ 정확한 슬라이드 영역에 맞고 내보내기에 안전한 로컬 SVG 다이어그램을 새로 만들고 싶다면 `slides-grab tldraw`를 사용하세요. 이 명령은 현재 형식의 `.tldr` 파일과 store-snapshot JSON을 지원합니다. 오래된 pre-records `.tldr` 파일은 먼저 최신 `tldraw` 빌드에서 다시 열고 저장해야 합니다.
188
+
189
+ ```bash
190
+ slides-grab tldraw \
191
+ --input decks/my-deck/assets/system.tldr \
192
+ --output decks/my-deck/assets/system.svg \
193
+ --width 640 \
194
+ --height 320 \
195
+ --padding 16
196
+ ```
197
+
198
+ 생성된 SVG는 일반 로컬 이미지처럼 슬라이드 HTML에서 참조하세요.
199
+
200
+ ```html
201
+ <img src="./assets/system.svg" alt="System architecture diagram">
202
+ ```
203
+
204
+ 내장 `diagram-tldraw` 템플릿은 이 작업 흐름을 시작하기 위한 간단한 출발점입니다.
205
+
206
+ ## Figma 작업 흐름
207
+
208
+ ```bash
209
+ slides-grab figma --slides-dir decks/my-deck --output decks/my-deck-figma.pptx
210
+ ```
211
+
212
+ 이 명령은 HTML→PPTX 파이프라인을 재사용해 Figma Slides의 `Import`로 수동 가져오기 할 수 있는 `.pptx` 덱을 만듭니다. Figma에 직접 업로드하지 않습니다. Figma 내보내기 경로는 **실험적/불안정**하며 최선의 결과만 기대해야 합니다.
213
+
214
+ ## 설치 가이드
215
+
216
+ 자세한 에이전트별 설치 안내는 아래 문서를 참고하세요.
217
+
218
+ - [Claude 상세 가이드](docs/installation/claude.md)
219
+ - [Codex 상세 가이드](docs/installation/codex.md)
220
+
221
+ ## npm 패키지
222
+
223
+ 독립 실행형 CLI와 스킬 사용을 위해 npm 패키지로도 사용할 수 있습니다.
224
+
225
+ ```bash
226
+ npm install slides-grab
227
+ ```
228
+
229
+ Vercel Agent Skills로 공유 에이전트 스킬을 설치하려면 다음을 실행하세요.
230
+
231
+ ```bash
232
+ npx skills add ./node_modules/slides-grab -g -a codex -a claude-code --yes --copy
233
+ ```
234
+
235
+ 이 npm 설치 경로는 일반적인 사용에 충분합니다. slides-grab 자체를 수정하거나 기여하려는 경우에만 저장소를 클론하세요.
236
+
237
+ ## 프로젝트 구조
238
+
239
+ ```text
240
+ bin/ CLI 진입점
241
+ src/editor/ 시각 편집기(HTML + JS 클라이언트 모듈)
242
+ scripts/ 빌드, 검증, 변환, 편집기 서버 스크립트
243
+ templates/ 슬라이드 HTML 템플릿(cover, content, chart 등)
244
+ src/ 디자인 스타일 데이터, 스타일 설정, 경로 해석
245
+ skills/ 공유 가능한 에이전트 스킬과 참고 문서
246
+ docs/ 설치 및 사용 가이드
247
+ showcase/ GitHub Pages로 배포되는 정적 갤러리
248
+ ```
249
+
250
+ ## 라이선스
251
+
252
+ [MIT](LICENSE)
253
+
254
+ ## 감사의 말
255
+
256
+ 이 프로젝트는 Builder Josh의 [ppt_team_agent](https://github.com/uxjoseph/ppt_team_agent)를 바탕으로 만들어졌습니다. 감사드립니다!
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  <h1 align="center">slides-grab</h1>
2
2
 
3
+ <p align="center"><a href="README-ko.md">한국어 README</a> | <a href="README.md">English</a></p>
4
+
3
5
  <p align="center">Select context for agents directly from AI-generated HTML slides</p>
4
6
 
5
7
  <p align="center">
@@ -17,11 +19,17 @@ The editor is pure javascript file. You can easily add up new features like addi
17
19
  </p>
18
20
 
19
21
  <p align="center">
20
- <a href="https://github.com/vkehfdl1/slides-grab/releases/download/v0.0.1-demo/demo.mp4">
22
+ <a href="https://github.com/NomaDamas/slides-grab/releases/download/v0.0.1-demo/demo.mp4">
21
23
  <img src="docs/assets/demo.gif" alt="slides-grab demo" width="720">
22
24
  </a>
23
25
  </p>
24
26
 
27
+ <p align="center">
28
+ <strong>👉 See what slides-grab can do:</strong>
29
+ <a href="https://nomadamas.github.io/slides-grab/"><strong>Live Showcase Gallery</strong></a><br>
30
+ Real presentations built with slides-grab — open any deck and flip through the slides.
31
+ </p>
32
+
25
33
  ---
26
34
 
27
35
  ## Quick Start
@@ -33,23 +41,23 @@ Paste one of these into your coding agent:
33
41
  **Claude Code:**
34
42
 
35
43
  ```
36
- Read https://raw.githubusercontent.com/vkehfdl1/slides-grab/main/docs/installation/claude.md and follow every step.
44
+ Read https://raw.githubusercontent.com/NomaDamas/slides-grab/main/docs/installation/claude.md and follow every step.
37
45
  ```
38
46
 
39
47
  **Codex:**
40
48
 
41
49
  ```
42
- Read https://raw.githubusercontent.com/vkehfdl1/slides-grab/main/docs/installation/codex.md and follow every step.
50
+ Read https://raw.githubusercontent.com/NomaDamas/slides-grab/main/docs/installation/codex.md and follow every step.
43
51
  ```
44
52
 
45
53
  Or use the repo directly if you want to develop on slides-grab itself:
46
54
 
47
55
  ```bash
48
- git clone https://github.com/vkehfdl1/slides-grab.git && cd slides-grab
56
+ git clone https://github.com/NomaDamas/slides-grab.git && cd slides-grab
49
57
  npm ci && npx playwright install chromium
50
58
  ```
51
59
 
52
- > Requires **Node.js >= 18**.
60
+ > Requires **Node.js >= 20**.
53
61
 
54
62
  ### No-clone install
55
63
 
@@ -86,7 +94,7 @@ slides-grab pdf --resolution 2160p # Higher-resolution image-backed PDF export
86
94
  slides-grab pdf --mode print # Export searchable/selectable text PDF
87
95
  slides-grab png # Render one PNG per slide (default 2160p)
88
96
  slides-grab png --slide-mode card-news # Render square 1:1 PNGs for Instagram
89
- slides-grab image --prompt "..." # Generate a local slide image with Nano Banana Pro
97
+ slides-grab image --prompt "..." # Generate a local slide image with god-tibo-imagen by default (uses your local Codex ChatGPT login — no API key required)
90
98
  slides-grab fetch-video --url <youtube-url> --slides-dir decks/my-deck # Download a local video asset with yt-dlp
91
99
  slides-grab tldraw # Render a .tldr diagram into a slide-sized local SVG asset
92
100
  slides-grab list-templates # Show available slide templates
@@ -116,14 +124,23 @@ Slides should store local image and video files in `<slides-dir>/assets/` and re
116
124
  - Unsupported: absolute filesystem paths such as `/Users/...` or `C:\\...`
117
125
  - Unsupported for saved slides: remote video URLs; download them into `<slides-dir>/assets/` first
118
126
 
119
- For bespoke generated imagery, prefer Nano Banana Pro:
127
+ For bespoke generated imagery, slides-grab bundles **god-tibo-imagen** as the default provider. It reuses your local Codex ChatGPT login (`~/.codex/auth.json`), so **no separate OpenAI/Google API key is required** — you only need a Codex CLI ChatGPT login on an account that is entitled to image generation:
120
128
 
121
129
  ```bash
122
- export GOOGLE_API_KEY=...
130
+ codex login # one-time setup if not already logged in
123
131
  slides-grab image --slides-dir decks/my-deck --prompt "Editorial hero image of a robotics warehouse at dawn"
124
132
  ```
125
133
 
126
- The command saves the result into `<slides-dir>/assets/` and prints the portable `./assets/<file>` reference to use from slide HTML. If `GOOGLE_API_KEY` (or `GEMINI_API_KEY`) is unavailable, ask for a Google API key or fall back to web search + local download into `assets/`.
134
+ The command saves the result into `<slides-dir>/assets/` and prints the portable `./assets/<file>` reference to use from slide HTML.
135
+
136
+ > ⚠️ **WARNING**: god-tibo-imagen calls an unsupported private Codex backend that may break without notice. It also requires a Codex/ChatGPT account that is entitled to image generation; not all ChatGPT accounts have this entitlement.
137
+
138
+ Optional alternative providers via `--provider`:
139
+
140
+ - `--provider codex` (alias `openai`): Codex/OpenAI `gpt-image-2`. Requires `OPENAI_API_KEY`. Maps `--aspect-ratio` to the nearest supported OpenAI image size (`16:9` defaults to a landscape `1536x1024` request).
141
+ - `--provider nano-banana` (alias `gemini`): Google `gemini-3-pro-image-preview`. Requires `GOOGLE_API_KEY` (or `GEMINI_API_KEY`). Supports `--image-size 2K|4K`.
142
+
143
+ If the default god-tibo-imagen call fails, slides-grab automatically falls back to whichever optional provider has credentials available; otherwise it asks you to fall back to web search + local download into `assets/`.
127
144
 
128
145
  Run `slides-grab validate --slides-dir <path>` before export to catch missing local assets and discouraged path forms.
129
146
 
@@ -235,6 +252,7 @@ templates/ Slide HTML templates (cover, content, chart, ...)
235
252
  src/ Design styles data, style config, path resolution
236
253
  skills/ Shared Vercel-installable agent skills + references
237
254
  docs/ Installation & usage guides
255
+ showcase/ Static gallery deployed to GitHub Pages (https://nomadamas.github.io/slides-grab/)
238
256
  ```
239
257
 
240
258
  ## License
package/bin/ppt-agent.js CHANGED
@@ -227,19 +227,31 @@ program
227
227
 
228
228
  program
229
229
  .command('image')
230
- .description('Generate a local slide image asset with Nano Banana Pro')
230
+ .description('Generate a local slide image asset (default: god-tibo-imagen via your Codex ChatGPT login — no OpenAI/Google API key required)')
231
231
  .option('--prompt <text>', 'Prompt for image generation')
232
232
  .option('--slides-dir <path>', 'Slide directory', 'slides')
233
233
  .option('--output <path>', 'Optional output path inside <slides-dir>/assets/')
234
234
  .option('--name <slug>', 'Optional asset basename without extension')
235
- .option('--model <id>', 'Model id (default: gemini-3-pro-image-preview)')
236
- .option('--aspect-ratio <ratio>', 'Aspect ratio (default: 16:9)')
237
- .option('--image-size <size>', 'Image size preset: 2K or 4K (default: 4K)')
235
+ .option('--provider <name>', 'Image provider: god-tibo (default), codex (OpenAI), or nano-banana. Aliases: codex-cli → god-tibo, openai → codex, gemini → nano-banana')
236
+ .option('--model <id>', 'Model id (default: gpt-5.4 for god-tibo, gpt-image-2 for codex, gemini-3-pro-image-preview for nano-banana)')
237
+ .option('--aspect-ratio <ratio>', 'Aspect ratio; for god-tibo it is injected as a prompt hint, for codex it maps to the nearest supported OpenAI size (default: 16:9)')
238
+ .option('--image-size <size>', 'Nano Banana image size preset: 2K or 4K (default: 4K)')
239
+ .addHelpText('after', [
240
+ '',
241
+ 'Auth:',
242
+ ' Default (god-tibo): run `codex login` once to populate ~/.codex/auth.json. No OpenAI/Google API key required;',
243
+ ' requires a Codex/ChatGPT account entitled to image generation.',
244
+ ' Codex/OpenAI provider: set OPENAI_API_KEY.',
245
+ ' Nano Banana provider: set GOOGLE_API_KEY or GEMINI_API_KEY.',
246
+ '',
247
+ 'WARNING: god-tibo-imagen calls an unsupported private Codex backend that may break without notice.',
248
+ ].join('\n'))
238
249
  .action(async (options = {}) => {
239
250
  const args = ['--slides-dir', options.slidesDir];
240
251
  if (options.prompt) args.push('--prompt', String(options.prompt));
241
252
  if (options.output) args.push('--output', String(options.output));
242
253
  if (options.name) args.push('--name', String(options.name));
254
+ if (options.provider) args.push('--provider', String(options.provider));
243
255
  if (options.model) args.push('--model', String(options.model));
244
256
  if (options.aspectRatio) args.push('--aspect-ratio', String(options.aspectRatio));
245
257
  if (options.imageSize) args.push('--image-size', String(options.imageSize));
@@ -319,6 +331,115 @@ program
319
331
  }
320
332
  });
321
333
 
334
+ program
335
+ .command('import-design')
336
+ .description('Fetch a remote DESIGN.md (https only) and save it locally as a custom slide design source')
337
+ .argument('<url>', 'HTTPS URL to a DESIGN.md / markdown design system file')
338
+ .option('--output <path>', 'Output path for the saved file', 'DESIGN.md')
339
+ .option('--max-bytes <number>', 'Maximum allowed response size in bytes', '262144')
340
+ .option('--timeout-ms <number>', 'Fetch timeout in milliseconds', '15000')
341
+ .action(async (url, options = {}) => {
342
+ try {
343
+ const { fetchDesignMarkdown, formatImportedDesignMarkdown, saveImportedDesign } =
344
+ await import('../src/design-import.js');
345
+ const maxBytes = Number(options.maxBytes) || 262144;
346
+ const timeoutMs = Number(options.timeoutMs) || 15000;
347
+ const result = await fetchDesignMarkdown(url, { maxBytes, timeoutMs });
348
+ const markdown = formatImportedDesignMarkdown({
349
+ url: result.url,
350
+ content: result.text,
351
+ fetchedAt: result.fetchedAt,
352
+ });
353
+ const savedPath = saveImportedDesign({ outputPath: options.output, markdown });
354
+ console.log(`Saved ${result.bytes} bytes to ${savedPath}`);
355
+ console.log(
356
+ 'Saved web-flavored design source. Next convert it to DESIGN.slides.md, then set ' +
357
+ '"style: ./DESIGN.slides.md" in your slide-outline.md.',
358
+ );
359
+ } catch (error) {
360
+ reportCliError(error);
361
+ }
362
+ });
363
+
364
+ program
365
+ .command('show-design')
366
+ .description('Parse a local design markdown file (DESIGN.slides.md preferred, falls back to DESIGN.md) or a bundled style id and print the slides-grab design summary the agent will use')
367
+ .argument('<ref>', 'Path to DESIGN.slides.md / DESIGN.md / a directory containing one, or a bundled style id (e.g. glassmorphism)')
368
+ .action(async (ref) => {
369
+ try {
370
+ const { loadDesignStyleRef, detectLocalDesignMarkdown } = await import('../src/design-styles.js');
371
+ const { renderDesignStyleForPrompt } = await import('../src/design-md-parser.js');
372
+ const { existsSync, statSync } = await import('node:fs');
373
+ const { dirname, resolve } = await import('node:path');
374
+
375
+ let effectiveRef = ref;
376
+ let detection = null;
377
+ let explicitWebShadowed = false;
378
+ const absoluteRef = resolve(ref);
379
+ if (existsSync(absoluteRef) && statSync(absoluteRef).isDirectory()) {
380
+ detection = detectLocalDesignMarkdown({ baseDir: absoluteRef });
381
+ if (!detection.path) {
382
+ console.error(`No DESIGN.slides.md or DESIGN.md found in directory "${ref}".`);
383
+ process.exitCode = 1;
384
+ return;
385
+ }
386
+ effectiveRef = detection.path;
387
+ } else if (existsSync(absoluteRef) && statSync(absoluteRef).isFile() && absoluteRef.endsWith('/DESIGN.md')) {
388
+ const siblingDetection = detectLocalDesignMarkdown({ baseDir: dirname(absoluteRef) });
389
+ if (siblingDetection.kind === 'slides') {
390
+ detection = siblingDetection;
391
+ explicitWebShadowed = true;
392
+ effectiveRef = siblingDetection.path;
393
+ }
394
+ }
395
+
396
+ const style = loadDesignStyleRef(effectiveRef);
397
+ if (!style) {
398
+ console.error(`No design style or design markdown file found at "${ref}".`);
399
+ process.exitCode = 1;
400
+ return;
401
+ }
402
+ const isCustom = style?.source?.type === 'design-md';
403
+ if (isCustom) {
404
+ if (detection) {
405
+ const activeName = detection.kind === 'slides' ? 'DESIGN.slides.md' : 'DESIGN.md';
406
+ const otherPresent = detection.kind === 'slides' && detection.webPath;
407
+ console.log(`# Active file: ${activeName} (${detection.path})`);
408
+ if (otherPresent) {
409
+ const explicitPrefix = explicitWebShadowed ? ' explicit DESIGN.md reference was redirected;' : '';
410
+ console.log(`# Note:${explicitPrefix} DESIGN.md is also present at ${detection.webPath} but is shadowed by DESIGN.slides.md.`);
411
+ } else if (detection.kind === 'web') {
412
+ console.log('# Note: only the web-flavored DESIGN.md was found. Consider converting it to DESIGN.slides.md before generating slides (see skills/slides-grab-plan/references/design-md-to-slides-conversion.md).');
413
+ }
414
+ console.log('');
415
+ }
416
+ console.log(renderDesignStyleForPrompt(style));
417
+ } else {
418
+ console.log(`# Bundled style: ${style.title} (${style.id})`);
419
+ console.log(`Mood: ${style.mood}`);
420
+ console.log(`Best for: ${style.bestFor}`);
421
+ if (Array.isArray(style.background)) {
422
+ console.log('\n## Background');
423
+ for (const b of style.background) console.log(`- ${b}`);
424
+ }
425
+ if (Array.isArray(style.colors)) {
426
+ console.log('\n## Colors');
427
+ for (const c of style.colors) console.log(`- ${c.role}: ${c.label} (${c.hex})`);
428
+ }
429
+ if (Array.isArray(style.fonts)) {
430
+ console.log('\n## Typography');
431
+ for (const f of style.fonts) console.log(`- ${f}`);
432
+ }
433
+ if (Array.isArray(style.layout)) {
434
+ console.log('\n## Layout');
435
+ for (const l of style.layout) console.log(`- ${l}`);
436
+ }
437
+ }
438
+ } catch (error) {
439
+ reportCliError(error);
440
+ }
441
+ });
442
+
322
443
  program
323
444
  .command('show-template')
324
445
  .description('Print the contents of a template file')
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "slides-grab",
3
- "version": "1.2.5",
3
+ "version": "1.3.0",
4
4
  "description": "Agent-first presentation framework — plan, design, and visually edit HTML slides with Claude Code or Codex, then export to PDF or experimental/unstable PPTX/Figma formats",
5
5
  "license": "MIT",
6
6
  "author": "vkehfdl1",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "git+https://github.com/vkehfdl1/slides-grab.git"
9
+ "url": "git+https://github.com/NomaDamas/slides-grab.git"
10
10
  },
11
- "homepage": "https://github.com/vkehfdl1/slides-grab#readme",
11
+ "homepage": "https://github.com/NomaDamas/slides-grab#readme",
12
12
  "bugs": {
13
- "url": "https://github.com/vkehfdl1/slides-grab/issues"
13
+ "url": "https://github.com/NomaDamas/slides-grab/issues"
14
14
  },
15
15
  "keywords": [
16
16
  "presentation",
@@ -24,7 +24,7 @@
24
24
  "ppt"
25
25
  ],
26
26
  "engines": {
27
- "node": ">=18.0.0"
27
+ "node": ">=20.0.0"
28
28
  },
29
29
  "type": "module",
30
30
  "bin": {
@@ -37,6 +37,7 @@
37
37
  "scripts/download-video.js",
38
38
  "scripts/editor-server.js",
39
39
  "scripts/generate-image.js",
40
+ "src/god-tibo-imagen.js",
40
41
  "scripts/figma-export.js",
41
42
  "scripts/html2pdf.js",
42
43
  "scripts/html2pptx.js",
@@ -46,19 +47,22 @@
46
47
  "src/",
47
48
  "templates/",
48
49
  "LICENSE",
49
- "README.md"
50
+ "README.md",
51
+ "README-ko.md"
50
52
  ],
51
53
  "scripts": {
52
54
  "html2pptx": "node scripts/html2pptx.js",
53
55
  "build-viewer": "node scripts/build-viewer.js",
56
+ "build:showcase": "node showcase/scripts/build-manifest.js",
54
57
  "validate": "node scripts/validate-slides.js",
55
58
  "convert": "node convert.cjs",
56
- "test": "node --test --test-concurrency=1 tests/design/design-styles.test.js tests/editor/editor-codex-edit.test.js tests/editor/editor-server.test.js tests/nano-banana/nano-banana.test.js tests/pdf/html2pdf.test.js tests/pdf/html2pdf.e2e.test.js tests/figma/figma-export.test.js tests/image-contract/image-contract.test.js tests/tldraw/render-tldraw.test.js tests/validation/validate-slides.test.js tests/viewer/build-viewer.test.js tests/skills/installable-skills.test.js tests/video/download-video.test.js",
59
+ "test": "node --test --test-concurrency=1 tests/docs/readme-ko.test.js tests/design/design-styles.test.js tests/design/design-md-parser.test.js tests/editor/editor-codex-edit.test.js tests/editor/edit-subprocess-abort.test.js tests/editor/editor-server.test.js tests/editor/editor-server-orphan-prevention.test.js tests/editor/editor-model-dispatch.test.js tests/god-tibo/god-tibo.test.js tests/nano-banana/nano-banana.test.js tests/pdf/html2pdf.test.js tests/pdf/html2pdf.e2e.test.js tests/figma/figma-export.test.js tests/image-contract/image-contract.test.js tests/tldraw/render-tldraw.test.js tests/validation/validate-slides.test.js tests/viewer/build-viewer.test.js tests/skills/installable-skills.test.js tests/video/download-video.test.js",
57
60
  "test:e2e": "node --test tests/editor/editor-ui.e2e.test.js tests/editor/editor-concurrency.e2e.test.js"
58
61
  },
59
62
  "dependencies": {
60
63
  "commander": "^12.1.0",
61
64
  "express": "^5.2.1",
65
+ "god-tibo-imagen": "0.2.0",
62
66
  "lucide-react": "^1.7.0",
63
67
  "pdf-lib": "^1.17.1",
64
68
  "playwright": "^1.40.0",