snatching amp's walkthrough for my own purposes mwhahaha traverse.dunkirk.sh/diagram/6121f05c-a5ef-4ecf-8ffc-02534c5e767c

feat: add package

dunkirk.sh 6df2142c 51a50f1e

verified
+31 -2
+21
bin/traverse.js
···
··· 1 + #!/usr/bin/env node 2 + 3 + const { execSync, execFileSync } = require("child_process"); 4 + const { resolve } = require("path"); 5 + 6 + try { 7 + execSync("bun --version", { stdio: "ignore" }); 8 + } catch { 9 + console.error("Traverse requires Bun to run."); 10 + console.error(""); 11 + console.error(" Install it: curl -fsSL https://bun.sh/install | bash"); 12 + console.error(" Learn more: https://bun.sh"); 13 + process.exit(1); 14 + } 15 + 16 + const entry = resolve(__dirname, "..", "src", "index.ts"); 17 + try { 18 + execFileSync("bun", ["run", entry], { stdio: "inherit" }); 19 + } catch (e) { 20 + process.exit(e.status ?? 1); 21 + }
+10 -2
package.json
··· 1 { 2 - "name": "traverse", 3 "version": "0.1.0", 4 "module": "src/index.ts", 5 "type": "module", 6 - "private": true, 7 "scripts": { 8 "start": "bun run src/index.ts", 9 "dev": "bun --hot run src/index.ts"
··· 1 { 2 + "name": "@taciturnaxolotl/traverse", 3 "version": "0.1.0", 4 + "description": "Interactive code walkthrough diagrams via MCP", 5 "module": "src/index.ts", 6 "type": "module", 7 + "bin": { 8 + "traverse": "./bin/traverse.js" 9 + }, 10 + "files": [ 11 + "src", 12 + "bin", 13 + "icon.svg" 14 + ], 15 "scripts": { 16 "start": "bun run src/index.ts", 17 "dev": "bun --hot run src/index.ts"