@sdsrs/code-graph 0.22.1 → 0.23.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/README.md
CHANGED
|
@@ -314,6 +314,26 @@ Available when installed as a Claude Code plugin:
|
|
|
314
314
|
| HTML | .html, .htm | structural parsing |
|
|
315
315
|
| CSS | .css | structural parsing |
|
|
316
316
|
|
|
317
|
+
## Team-shared graph snapshot
|
|
318
|
+
|
|
319
|
+
Skip the full local index for team members and CI runners by publishing a
|
|
320
|
+
~3-5MB graph snapshot with each GitHub release.
|
|
321
|
+
|
|
322
|
+
**Setup (one-time):**
|
|
323
|
+
1. Copy `node_modules/code-graph-mcp/templates/code-graph-snapshot.yml`
|
|
324
|
+
into your repo's `.github/workflows/`.
|
|
325
|
+
2. Push a release tag. The workflow uploads
|
|
326
|
+
`code-graph-snapshot-<sha>.db.zst` as a release asset.
|
|
327
|
+
|
|
328
|
+
**Verify:**
|
|
329
|
+
|
|
330
|
+
```bash
|
|
331
|
+
npx code-graph-mcp snapshot inspect ./code-graph-snapshot-<sha>.db.zst
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
After setup, fresh clones automatically fetch the latest snapshot the
|
|
335
|
+
first time the MCP server starts. No client-side configuration needed.
|
|
336
|
+
|
|
317
337
|
## Storage
|
|
318
338
|
|
|
319
339
|
Uses SQLite with:
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Copy this file into .github/workflows/ in your project to publish a
|
|
2
|
+
# code-graph snapshot alongside each GitHub release. The snapshot is a
|
|
3
|
+
# small (~3-5MB) zstd-compressed SQLite database that lets first-time
|
|
4
|
+
# clones of your repo skip the initial full code-graph index.
|
|
5
|
+
#
|
|
6
|
+
# Requires: code-graph-mcp >= 0.23.0 published to npm.
|
|
7
|
+
|
|
8
|
+
name: Code Graph Snapshot
|
|
9
|
+
on:
|
|
10
|
+
release:
|
|
11
|
+
types: [published]
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
snapshot:
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
permissions:
|
|
17
|
+
contents: write
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v4
|
|
20
|
+
with:
|
|
21
|
+
fetch-depth: 0
|
|
22
|
+
- uses: actions/setup-node@v4
|
|
23
|
+
with:
|
|
24
|
+
node-version: '20'
|
|
25
|
+
- name: Build snapshot
|
|
26
|
+
run: |
|
|
27
|
+
npx -y code-graph-mcp@latest snapshot create --out snapshot.db
|
|
28
|
+
zstd -9 snapshot.db -o snapshot.db.zst
|
|
29
|
+
mv snapshot.db.zst "code-graph-snapshot-${GITHUB_SHA:0:7}.db.zst"
|
|
30
|
+
- name: Upload to release
|
|
31
|
+
env:
|
|
32
|
+
GH_TOKEN: ${{ github.token }}
|
|
33
|
+
run: |
|
|
34
|
+
gh release upload "${{ github.event.release.tag_name }}" \
|
|
35
|
+
"code-graph-snapshot-${GITHUB_SHA:0:7}.db.zst"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sdsrs/code-graph",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"description": "MCP server that indexes codebases into an AST knowledge graph with semantic search, call graph traversal, and HTTP route tracing",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"node": ">=16"
|
|
36
36
|
},
|
|
37
37
|
"optionalDependencies": {
|
|
38
|
-
"@sdsrs/code-graph-linux-x64": "0.
|
|
39
|
-
"@sdsrs/code-graph-linux-arm64": "0.
|
|
40
|
-
"@sdsrs/code-graph-darwin-x64": "0.
|
|
41
|
-
"@sdsrs/code-graph-darwin-arm64": "0.
|
|
42
|
-
"@sdsrs/code-graph-win32-x64": "0.
|
|
38
|
+
"@sdsrs/code-graph-linux-x64": "0.23.0",
|
|
39
|
+
"@sdsrs/code-graph-linux-arm64": "0.23.0",
|
|
40
|
+
"@sdsrs/code-graph-darwin-x64": "0.23.0",
|
|
41
|
+
"@sdsrs/code-graph-darwin-arm64": "0.23.0",
|
|
42
|
+
"@sdsrs/code-graph-win32-x64": "0.23.0"
|
|
43
43
|
}
|
|
44
44
|
}
|