Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.
HTML agent-skillsai-agentsarchitecture-diagramclaude-codeclaude-skillscodexcoding-agentsdeepseek-harnessdeveloper-toolsdiagramsdiagrams-as-codedsh-pluginflowchartllmmermaidopencodesequence-diagramsoftware-architecturesystem-designvisualization
fix(showcase): resolve Windows tool paths natively
杨嘉伟8f17ec2ddb1b
diff --git a/docs/assets/archify-live-proof.gif b/docs/assets/archify-live-proof.gifindex 47c2e75f..8ca32236 100644Binary files a/docs/assets/archify-live-proof.gif and b/docs/assets/archify-live-proof.gif differdiff --git a/docs/assets/archify-live-proof.json b/docs/assets/archify-live-proof.jsonindex 826092b2..8d98c4cf 100644--- a/docs/assets/archify-live-proof.json+++ b/docs/assets/archify-live-proof.json@@ -7,8 +7,8 @@"fps": 10,"frameCount": 54,"durationSeconds": 5.4,- "bytes": 802522,- "sha256": "4e9e2b231406b5be309662c778e3a26723201cb06685a96e0b1cee9745ebd5ad",+ "bytes": 819494,+ "sha256": "c3f9949f152c84926d05683656ba83deb59886d6e54fb3aff5e4975ac0fdbc71","scenes": [{"id": "signal-flow",diff --git a/scripts/build-readme-showcase.mjs b/scripts/build-readme-showcase.mjsindex 55b9c3a7..8527e7e0 100644--- a/scripts/build-readme-showcase.mjs+++ b/scripts/build-readme-showcase.mjs@@ -69,6 +69,12 @@ function executable(file) {}function commandPath(command) {+ if (process.platform === 'win32') {+ const result = spawnSync('where.exe', [command], {+ encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'], windowsHide: true,+ });+ return result.status === 0 ? result.stdout.trim().split(/\r?\n/)[0] : null;+ }const result = spawnSync('sh', ['-c', 'command -v "$1"', 'archify-showcase', command], {encoding: 'utf8',stdio: ['ignore', 'pipe', 'ignore'],@@ -315,7 +321,7 @@ function buildGif(ffmpeg, framesRoot) {'-i', path.join(framesRoot, 'frame-%04d.png'),'-filter_complex', filter, '-loop', '0', outputPath,], { encoding: 'utf8' });- if (result.status !== 0) throw new Error(`ffmpeg failed:\n${result.stderr || result.stdout}`);+ if (result.status !== 0) throw new Error(`ffmpeg failed:\n${result.error?.message || result.stderr || result.stdout}`);}async function main() {diff --git a/test/readme-showcase.test.mjs b/test/readme-showcase.test.mjsindex 6671de88..305c0c92 100644--- a/test/readme-showcase.test.mjs+++ b/test/readme-showcase.test.mjs@@ -142,6 +142,9 @@ test('README motion proof is compact, looping, and backed by current gallery artassert.match(builder, /\?embed=1&theme=dark\$\{scene\.hash\}/);assert.doesNotMatch(builder, /play=1|#view=/);assert.match(builder, /path\.relative\(from, to\)\.split\(path\.sep\)\.join\('\/'\)/);+ assert.match(builder, /process\.platform === 'win32'/);+ assert.match(builder, /spawnSync\('where\.exe', \[command\]/);+ assert.match(builder, /result\.error\?\.message/);const buffer = fs.readFileSync(assetPath);const receipt = JSON.parse(fs.readFileSync(receiptPath, 'utf8'));const inspected = inspectGif(buffer);