tangled
alpha
login
or
join now
dunkirk.sh
/
traverse
1
fork
atom
snatching amp's walkthrough for my own purposes mwhahaha
traverse.dunkirk.sh/diagram/6121f05c-a5ef-4ecf-8ffc-02534c5e767c
1
fork
atom
overview
issues
pulls
pipelines
feat: add package
dunkirk.sh
1 month ago
6df2142c
51a50f1e
verified
This commit was signed with the committer's
known signature
.
dunkirk.sh
SSH Key Fingerprint:
SHA256:DqcG0RXYExE26KiWo3VxJnsxswN1QNfTBvB+bdSpk80=
+31
-2
2 changed files
expand all
collapse all
unified
split
bin
traverse.js
package.json
+21
bin/traverse.js
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
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",
0
4
"module": "src/index.ts",
5
"type": "module",
6
-
"private": true,
0
0
0
0
0
0
0
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"