-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
199 lines (199 loc) · 10.2 KB
/
Copy pathpackage.json
File metadata and controls
199 lines (199 loc) · 10.2 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
{
"name": "@lzehrung/codegraph",
"version": "2.1.0",
"type": "module",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"default": "./dist/index.js"
},
"./agent": {
"types": "./dist/agent.d.ts",
"import": "./dist/agent.js",
"default": "./dist/agent.js"
},
"./graphs": {
"types": "./dist/graphs.d.ts",
"import": "./dist/graphs.js",
"default": "./dist/graphs.js"
},
"./impact": {
"types": "./dist/impact/index.d.ts",
"import": "./dist/impact/index.js",
"default": "./dist/impact/index.js"
},
"./indexer": {
"types": "./dist/indexer.d.ts",
"import": "./dist/indexer.js",
"default": "./dist/indexer.js"
},
"./languages": {
"types": "./dist/languages.d.ts",
"import": "./dist/languages.js",
"default": "./dist/languages.js"
},
"./mcp": {
"types": "./dist/mcp.d.ts",
"import": "./dist/mcp.js",
"default": "./dist/mcp.js"
}
},
"bin": {
"codegraph": "dist/bin/cli.js"
},
"files": [
"dist",
"codegraph-skill",
"THIRD_PARTY_NOTICES",
"docs/mcp.md",
"docs/graph-visualization"
],
"scripts": {
"clean": "node -e \"import('node:fs').then(({ rmSync }) => rmSync('dist', { recursive: true, force: true }))\"",
"check": "npm run security:production && npm run lint && npm run format:check && npm run build && npm run test:native && npm run test:coverage && npm run fixtures:check-clean",
"build": "npm run clean && tsc -p tsconfig.json && node ./scripts/bundle-cli.mjs && node ./scripts/stage-core-package.mjs && node ./scripts/build-native-if-available.mjs",
"generate:duplicate-keywords": "node ./scripts/generate-duplicate-keywords.mjs",
"format": "prettier --write . --ignore-unknown",
"lint": "npx eslint \"src/**/*.ts\" \"tests/**/*.ts\"",
"lint:fix": "npx eslint \"src/**/*.ts\" \"tests/**/*.ts\" --fix",
"prepare": "node ./scripts/prepare-package.mjs",
"security:production": "node ./scripts/check-production-audit.mjs",
"fixtures:check-clean": "node ./scripts/check-fixture-cleanliness.mjs",
"certify:packages": "node ./scripts/certification/run-package-smoke.mjs",
"test": "npm run test:fast",
"test:all": "npm run test:native && npm run test:ci",
"test:fast": "node ./scripts/ensure-dist-for-tests.mjs && vitest run --exclude tests/bench-harness.test.ts --exclude tests/cli-regressions.test.ts --exclude tests/impact-cli.test.ts --exclude tests/esm-language-loading.test.ts --exclude tests/native-fallback-reporting.test.ts --exclude tests/native-fallback-contract.test.ts --exclude tests/native-tree-sitter.test.ts --exclude tests/native-parse-tree.test.ts --exclude tests/native-semantic-parity.test.ts --exclude tests/native-query-ownership-parity.test.ts --exclude tests/native-query-scope.test.ts --exclude tests/native-worker-parity.test.ts --exclude tests/native-parser-ownership.test.ts --exclude tests/detailed-symbol-native-only.test.ts",
"test:integration": "node ./scripts/ensure-dist-for-tests.mjs && vitest run tests/cli-regressions.test.ts tests/impact-cli.test.ts tests/esm-language-loading.test.ts tests/native-fallback-reporting.test.ts tests/native-fallback-contract.test.ts",
"test:ci": "node ./scripts/ensure-dist-for-tests.mjs && node -e \"import('node:fs').then(({ mkdirSync }) => mkdirSync('.vitest', { recursive: true }))\" && vitest run --reporter=default --reporter=json --outputFile=.vitest/slow-tests.json --exclude tests/bench-harness.test.ts --exclude tests/detailed-symbol-native-only.test.ts && node ./scripts/report-slow-tests.mjs .vitest/slow-tests.json",
"test:coverage": "node ./scripts/coverage.mjs js",
"test:coverage:native": "node ./scripts/coverage.mjs native",
"test:coverage:all": "node ./scripts/coverage.mjs all",
"coverage:markdown": "node ./scripts/coverage-markdown.mjs all",
"coverage:setup:native": "rustup component add llvm-tools-preview && cargo install cargo-llvm-cov --locked",
"test:native": "npm run test:native:rust && npm run test:native:required && npm run test:native:fallback",
"test:native:rust": "cargo test --manifest-path packages/codegraph-native/Cargo.toml",
"test:native:required": "node ./scripts/run-native-required-tests.mjs",
"test:native:fallback": "node ./scripts/ensure-dist-for-tests.mjs && vitest run tests/native-fallback-reporting.test.ts tests/native-fallback-contract.test.ts",
"bench:native": "node ./scripts/bench-native.mjs",
"bench:native:smoke": "node ./scripts/bench-native.mjs --runs 3 --fixtures typescript,python,go,rust,mixed --workloads full --temperatures cold --max-slowdown 4",
"bench:native:full": "node ./scripts/bench-native.mjs --runs 1 --fixtures typescript,python,go,rust,mixed --workloads full,graph --temperatures cold",
"bench:docs": "node ./scripts/ensure-dist-for-tests.mjs && node ./scripts/benchmarks/run-scenario.mjs --output docs/benchmarks/results.example.json --require-complete && node ./scripts/benchmarks/summarize-results.mjs --input docs/benchmarks/results.example.json --scenario-file docs/benchmarks/scenarios.json --readme docs/benchmarks/README.md --write",
"bench:docs:check": "node ./scripts/benchmarks/summarize-results.mjs --input docs/benchmarks/results.example.json --scenario-file docs/benchmarks/scenarios.json --readme docs/benchmarks/README.md --check",
"bench:fixtures": "node ./scripts/benchmarks/generate-fixture-matrix.mjs",
"bench:fixtures:check": "node ./scripts/benchmarks/generate-fixture-matrix.mjs --check",
"bench:query": "node ./scripts/benchmarks/measure-query-substrate.mjs",
"build:standalone": "node ./scripts/standalone/build-standalone.mjs",
"smoke:onboarding": "node ./scripts/onboarding/run-funnel-smoke.mjs",
"test:ui": "node ./scripts/ensure-dist-for-tests.mjs && vitest --ui",
"test:run": "node ./scripts/ensure-dist-for-tests.mjs && vitest run",
"test:bench": "node ./scripts/ensure-dist-for-tests.mjs && vitest tests/bench-harness.test.ts tests/native-query-scope.test.ts",
"test:watch": "node ./scripts/ensure-dist-for-tests.mjs && vitest --watch",
"preversion": "npm run test:ci && npm run build",
"postversion": "git push && git push --tags",
"release:patch": "node ./scripts/release.mjs patch",
"release:minor": "node ./scripts/release.mjs minor",
"release:major": "node ./scripts/release.mjs major",
"release:resume": "node ./scripts/release.mjs resume",
"publish:patch": "node ./scripts/release.mjs patch --publish",
"publish:minor": "node ./scripts/release.mjs minor --publish",
"publish:major": "node ./scripts/release.mjs major --publish",
"publish:resume": "node ./scripts/release.mjs resume --publish",
"graph:default": "node ./dist/cli.js graph ./",
"graph:root": "node ./dist/cli.js graph --root",
"graph:json:root": "node ./dist/cli.js graph --root --json --symbols-detailed --progress --compact-json --stdout",
"graph:json": "node ./dist/cli.js graph --json --symbols-detailed --progress --compact-json --output codegraph.json",
"graph:mermaid": "node ./dist/cli.js graph --mermaid --progress --symbols-detailed --output graph.mermaid.mmd",
"graph:dot": "node ./dist/cli.js graph --dot --progress --symbols-detailed --output graph.dot",
"visualizer:start": "http-server ./docs/graph-visualization -p 4173 -c-1",
"build:native": "npm run build --workspace=@lzehrung/codegraph-native",
"native:create-npm-dirs": "npm run create-npm-dirs --workspace=@lzehrung/codegraph-native",
"native:artifacts": "npm run artifacts --workspace=@lzehrung/codegraph-native",
"native:check-artifacts": "node ./scripts/check-native-artifacts.mjs",
"native:stage-local": "node ./scripts/stage-native-package.mjs",
"native:sync-meta": "node ./scripts/sync-native-meta.mjs",
"publish:native:targets": "node ./scripts/publish-native-targets.mjs",
"publish:native:meta": "npm publish --workspace=@lzehrung/codegraph-native --registry=https://registry.npmjs.org --access=public",
"bundle:cli": "node ./scripts/bundle-cli.mjs",
"viewer:vendor": "node ./scripts/vendor-graph-viewer.mjs",
"build:core": "node ./scripts/stage-core-package.mjs",
"format:check": "prettier --check . --ignore-unknown"
},
"repository": {
"type": "git",
"url": "git+https://github.com/lzehrung/codegraph.git"
},
"homepage": "https://github.com/lzehrung/codegraph#readme",
"engines": {
"node": ">=22.16"
},
"workspaces": [
"packages/*"
],
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org"
},
"keywords": [
"codegraph",
"mcp",
"mcp-server",
"ai-agent",
"llm",
"code-search",
"tree-sitter",
"dependency-graph",
"symbol-index",
"go-to-definition",
"find-references",
"monorepo",
"static-analysis"
],
"author": "Luke Zehrung",
"license": "MIT",
"description": "Multi-language repository map for agents and humans: MCP tools, dependency graphs, symbol indexes, impact review, and bounded source evidence.",
"devDependencies": {
"@eslint/js": "^9.39.2",
"@modelcontextprotocol/client": "^2.0.0",
"@napi-rs/cli": "^3.5.1",
"@stylistic/eslint-plugin": "^5.10.0",
"@types/node": "~22.16.0",
"@types/picomatch": "^4.0.2",
"@vitest/coverage-v8": "^4.1.8",
"@vitest/ui": "^4.1.8",
"esbuild": "^0.27.2",
"eslint": "^9.39.2",
"graphology": "^0.26.0",
"graphology-layout-forceatlas2": "^0.10.1",
"http-server": "^14.1.1",
"jsdom": "^29.0.1",
"prettier": "^3.7.4",
"sigma": "^3.0.0-beta.33",
"tsx": "^4.20.6",
"typescript": "^5.9.3",
"typescript-eslint": "^8.53.1",
"vitest": "^4.1.8"
},
"dependencies": {
"@lzehrung/codegraph-core": "2.1.0",
"@modelcontextprotocol/node": "^2.0.0",
"@modelcontextprotocol/server": "^2.0.0",
"fast-glob": "^3.3.3",
"jsonc-parser": "^3.3.1",
"picomatch": "^4.0.3",
"piscina": "^4.5.1",
"smol-toml": "^1.7.1",
"tsconfig-paths": "^4.2.0",
"zod": "^4.4.3"
},
"overrides": {
"@hono/node-server": "^2.0.5",
"@emnapi/core": "1.11.3",
"@emnapi/runtime": "1.11.3"
},
"optionalDependencies": {
"@lzehrung/codegraph-native": "^1.9.0"
}
}