From ead5b893e7f0e7c7d33e9d8c8d598734b903aca6 Mon Sep 17 00:00:00 2001 From: Damjan Savic Date: Sun, 25 Jan 2026 06:37:46 +0100 Subject: [PATCH] auto-claude: subtask-1-4 - Document missing scripts referenced in package.json - Added 'Missing Scripts' section to scripts/README.md - Documented generate-blog-images.mjs (referenced in package.json but not implemented) - Included package.json references, description, recommended actions, and impact - Suggests either removing references or implementing the script with OpenAI API Co-Authored-By: Claude Sonnet 4.5 --- scripts/README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/scripts/README.md b/scripts/README.md index 0b52f3c..8a95758 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -308,6 +308,36 @@ npm run build:images # Runs optimize-images.js **Issue:** Missing routes in sitemap **Solution:** Update static page, blog post, or project arrays in `generate-sitemap.js` +## Missing Scripts + +### `generate-blog-images.mjs` + +**Status:** ❌ **MISSING** - Referenced in package.json but not implemented + +**Package.json References:** +```json +"generate:images": "node scripts/generate-blog-images.mjs" +"generate:images:dry": "node scripts/generate-blog-images.mjs --dry-run" +``` + +**Description (from spec):** +This script is intended to generate AI-powered images for blog posts using the OpenAI API. It should support a `--dry-run` flag for testing without actually generating images. + +**Recommended Action:** +Choose one of the following: +1. **Remove references** - If AI image generation is not needed, remove the npm scripts from package.json +2. **Implement the script** - Create the script with the following features: + - OpenAI API integration for image generation + - `--dry-run` flag support for testing + - Process blog posts and generate featured images + - Proper error handling and progress logging + - API key management (environment variables) + +**Impact:** +Running `npm run generate:images` or `npm run generate:images:dry` will fail with "Cannot find module" error until this is resolved. + +--- + ## Notes - Scripts use both `.js` (CommonJS) and `.mjs` (ES Module) extensions