-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
51 lines (51 loc) · 2.85 KB
/
Copy pathpackage.json
File metadata and controls
51 lines (51 loc) · 2.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
"name": "code-atlas",
"version": "1.9.0",
"private": true,
"type": "module",
"description": "Code Atlas —— 把任意代码库扫成一份可读的中间数据(bundle),供人探索、供 AI 查询",
"license": "MIT",
"bin": {
"atlas": "src/cli.mjs"
},
"//scripts": [
"⚠ test 与 test:ci 跑的是**两张不同的图**,改引擎/自检时两条都要跑:",
" test —— 自检跑 dist(本仓库自己的图,有 src/ 与 configs/)",
" test:ci —— 与 .github/workflows/ci.yml **逐字一致**:现扫 tests/fixtures 再自检",
"两者内容不同 → '本地全绿'和 'CI 红'可以同时成立(2026-09-23 真踩过:一条门写死了 src/mcp.mjs,",
"dist 有、fixtures 没有 → 假红藏了一整轮)。"
],
"scripts": {
"scan": "node src/cli.mjs scan",
"serve": "node src/cli.mjs serve",
"test": "node tests/run-fixtures.mjs && node tests/probe-web-color.mjs && node tests/probe-runtime.mjs && node tests/mcp-selftest.mjs",
"test:ci": "node tests/run-fixtures.mjs && node tests/probe-web-color.mjs && node tests/probe-runtime.mjs && node src/cli.mjs scan tests/fixtures --out tests/.out/ci --lang csharp,typescript,javascript,tsx,go,rust,lua && node tests/mcp-selftest.mjs tests/.out/ci",
"probe": "node tests/probe-nodes.mjs",
"probe:profile": "node tests/probe-profile-nodes.mjs",
"probe:web": "node tests/probe-web-color.mjs",
"probe:runtime": "node tests/probe-runtime.mjs",
"probe:payload": "node tests/probe-payload-quote.mjs",
"probe:abi": "node tests/probe-abi.mjs",
"probe:mem": "node tests/probe-grammars.mjs",
"probe:tree": "node tools/probe-tree.mjs",
"diag:unresolved": "node tools/unresolved-report.mjs",
"diff:bundles": "node tools/diff-bundles.mjs",
"verify:edges": "node tools/verify-edges.mjs",
"diff:rescan": "node tools/diff-rescan-logs.mjs",
"mcp": "node src/cli.mjs mcp",
"launcher": "dotnet publish launcher/CodeAtlas.Launcher.csproj -c Release -o .",
"payload": "node tools/build-payload.mjs",
"payload:lite": "node tools/build-payload.mjs --no-node",
"publish:sc": "node tools/build-payload.mjs && dotnet publish launcher/CodeAtlas.Launcher.csproj -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true -p:EnableCompressionInSingleFile=true -p:CodeAtlasEdition=full -p:CodeAtlasPayload=payload.zip -o publish-sc",
"publish:lite": "node tools/build-payload.mjs --no-node && dotnet publish launcher/CodeAtlas.Launcher.csproj -c Release -r win-x64 --self-contained false -p:PublishSingleFile=true -p:CodeAtlasEdition=lite -p:CodeAtlasPayload=payload-lite.zip -o publish-lite",
"publish": "npm run publish:sc && npm run publish:lite"
},
"engines": {
"node": ">=20"
},
"dependencies": {
"d3": "^7.9.0",
"tree-sitter-wasm": "^2.0.1",
"web-tree-sitter": "^0.27.0"
}
}