@reposkein/mcp 0.1.7 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/binary-digests.json +4 -4
- package/dist/cli/view.d.ts +40 -0
- package/dist/cli/view.js +334 -0
- package/dist/cli/view.js.map +1 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/viz/assets/graph.worker-CC7BeE-8.js +3 -0
- package/dist/viz/assets/index-BaCE5jX2.js +4198 -0
- package/dist/viz/index.html +26 -0
- package/package.json +2 -2
- package/scripts/bundle-viz.mjs +32 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>RepoSkein Constellation</title>
|
|
7
|
+
<style>
|
|
8
|
+
html,
|
|
9
|
+
body,
|
|
10
|
+
#root {
|
|
11
|
+
margin: 0;
|
|
12
|
+
height: 100%;
|
|
13
|
+
width: 100%;
|
|
14
|
+
background: #05060c;
|
|
15
|
+
color: #e8ecf4;
|
|
16
|
+
font-family:
|
|
17
|
+
ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
}
|
|
20
|
+
</style>
|
|
21
|
+
<script type="module" crossorigin src="./assets/index-BaCE5jX2.js"></script>
|
|
22
|
+
</head>
|
|
23
|
+
<body>
|
|
24
|
+
<div id="root"></div>
|
|
25
|
+
</body>
|
|
26
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reposkein/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Deterministic code-graph (GraphRAG) MCP server — give your AI agent callers/callees, change-impact, and semantic search over your repo instead of grep. 7 languages, zero-infra, git-native.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"typecheck": "tsc --noEmit",
|
|
48
48
|
"test": "vitest run",
|
|
49
49
|
"start": "node dist/index.js",
|
|
50
|
-
"prepare": "npm run build && node scripts/bundle-skill.mjs",
|
|
50
|
+
"prepare": "npm run build && node scripts/bundle-skill.mjs && node scripts/bundle-viz.mjs",
|
|
51
51
|
"postinstall": "node scripts/postinstall.mjs",
|
|
52
52
|
"bench": "tsx bench/run.ts"
|
|
53
53
|
},
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// Copies the prebuilt viz/ SPA bundle (viz/dist) into mcp/dist/viz so the
|
|
2
|
+
// `reposkein-mcp view` server can serve it and it ships in the npm tarball.
|
|
3
|
+
//
|
|
4
|
+
// The viz/ package is on pnpm and is NOT built here automatically (to keep
|
|
5
|
+
// mcp's npm-only build hermetic). If viz/dist is missing, this prints how to
|
|
6
|
+
// build it and exits 0 (a registry/git install already carries dist/viz).
|
|
7
|
+
//
|
|
8
|
+
// To produce viz/dist: cd ../viz && pnpm install && pnpm run build
|
|
9
|
+
import { existsSync, mkdirSync, cpSync, rmSync } from "node:fs";
|
|
10
|
+
import { dirname, join } from "node:path";
|
|
11
|
+
import { fileURLToPath } from "node:url";
|
|
12
|
+
|
|
13
|
+
const here = dirname(fileURLToPath(import.meta.url)); // mcp/scripts
|
|
14
|
+
const src = join(here, "..", "..", "viz", "dist"); // repo-root viz/dist
|
|
15
|
+
const dest = join(here, "..", "dist", "viz"); // mcp/dist/viz
|
|
16
|
+
|
|
17
|
+
if (existsSync(join(src, "index.html"))) {
|
|
18
|
+
rmSync(dest, { recursive: true, force: true });
|
|
19
|
+
mkdirSync(dirname(dest), { recursive: true });
|
|
20
|
+
cpSync(src, dest, { recursive: true });
|
|
21
|
+
console.error(`reposkein: bundled viz/ -> ${dest}`);
|
|
22
|
+
} else {
|
|
23
|
+
if (existsSync(join(dest, "index.html"))) {
|
|
24
|
+
console.error("reposkein: viz/dist not found; using existing dist/viz bundle.");
|
|
25
|
+
} else {
|
|
26
|
+
console.error(
|
|
27
|
+
"reposkein: viz/dist not found and no dist/viz present.\n" +
|
|
28
|
+
" Build the viewer first: cd viz && pnpm install && pnpm run build\n" +
|
|
29
|
+
" (the `reposkein-mcp view` command will report a missing bundle until then)."
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
}
|