Skip to content

Commit a909401

Browse files
docs: remove preview_thumb from update command template
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8699b50 commit a909401

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

agentic/commands/update.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,10 @@ For each library, copy the preview images to the implementations directory for G
268268

269269
```bash
270270
cp plots/{spec_id}/implementations/.update-preview/{library}/plot.png plots/{spec_id}/implementations/plot.png
271-
# Process images (thumbnail + optimization)
271+
# Process images (optimization)
272272
uv run python -m core.images process \
273273
plots/{spec_id}/implementations/plot.png \
274-
plots/{spec_id}/implementations/plot.png \
275-
plots/{spec_id}/implementations/plot_thumb.png
274+
plots/{spec_id}/implementations/plot.png
276275
```
277276

278277
Note: Since we process one library at a time for GCS upload, handle sequentially.
@@ -288,23 +287,18 @@ STAGING_PATH="gs://pyplots-images/staging/{spec_id}/{library}"
288287
gsutil cp plots/{spec_id}/implementations/plot.png "${STAGING_PATH}/plot.png"
289288
gsutil acl ch -u AllUsers:R "${STAGING_PATH}/plot.png" 2>/dev/null || true
290289

291-
# Upload thumbnail
292-
gsutil cp plots/{spec_id}/implementations/plot_thumb.png "${STAGING_PATH}/plot_thumb.png"
293-
gsutil acl ch -u AllUsers:R "${STAGING_PATH}/plot_thumb.png" 2>/dev/null || true
294-
295290
# Upload HTML if it exists (interactive libraries: plotly, bokeh, altair, highcharts, pygal, letsplot)
296291
if [ -f "plots/{spec_id}/implementations/.update-preview/{library}/plot.html" ]; then
297292
gsutil cp "plots/{spec_id}/implementations/.update-preview/{library}/plot.html" "${STAGING_PATH}/plot.html"
298293
gsutil acl ch -u AllUsers:R "${STAGING_PATH}/plot.html" 2>/dev/null || true
299294
fi
300295
```
301296

302-
Update `preview_url` and `preview_thumb` in the metadata YAML to point to the **production** URLs
297+
Update `preview_url` in the metadata YAML to point to the **production** URL
303298
(matching `impl-generate.yml` — production URLs are set from the start, `impl-merge.yml` promotes
304299
GCS files from staging to production on merge):
305300

306301
- `preview_url`: `https://storage.googleapis.com/pyplots-images/plots/{spec_id}/{library}/plot.png`
307-
- `preview_thumb`: `https://storage.googleapis.com/pyplots-images/plots/{spec_id}/{library}/plot_thumb.png`
308302

309303
#### 6f. Clean Up Preview Directory
310304

@@ -637,8 +631,7 @@ Generate thumbnail and optimize:
637631
```bash
638632
uv run python -m core.images process \
639633
plots/{SPEC_ID}/implementations/.update-preview/{LIBRARY}/plot.png \
640-
plots/{SPEC_ID}/implementations/.update-preview/{LIBRARY}/plot.png \
641-
plots/{SPEC_ID}/implementations/.update-preview/{LIBRARY}/plot_thumb.png
634+
plots/{SPEC_ID}/implementations/.update-preview/{LIBRARY}/plot.png
642635
```
643636

644637
### Step 7: Quality Evaluation & Local Repair Loop

0 commit comments

Comments
 (0)