-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
165 lines (165 loc) · 8.28 KB
/
Copy pathpackage.json
File metadata and controls
165 lines (165 loc) · 8.28 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
{
"name": "@lzehrung/codegraph",
"version": "1.8.87",
"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"
}
},
"bin": {
"codegraph": "dist/cli.js"
},
"files": [
"dist",
"codegraph-skill",
"docs/mcp.md"
],
"scripts": {
"clean": "node -e \"import('node:fs').then(({ rmSync }) => rmSync('dist', { recursive: true, force: true }))\"",
"check": "npm run lint && npm run format && npm run build && npm run test",
"build": "npm run clean && tsc -p tsconfig.json && 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",
"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/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 && 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 1 --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",
"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"
},
"repository": {
"type": "git",
"url": "git+https://github.com/lzehrung/codegraph.git"
},
"engines": {
"node": ">=24.10"
},
"workspaces": [
"packages/*"
],
"publishConfig": {
"registry": "https://npm.pkg.github.com"
},
"keywords": [
"dependency graph",
"symbol index",
"go to definition",
"find references",
"AST grep",
"monorepo",
"npm",
"yarn",
"pnpm",
"lerna",
"python"
],
"author": "Luke Zehrung",
"license": "MIT",
"description": "Multi-language repo navigation and code analysis with dependency graphs, symbol indexes, go-to-definition, references, chunking, and PR impact reports.",
"devDependencies": {
"@eslint/js": "^9.39.2",
"@napi-rs/cli": "^3.5.1",
"@stylistic/eslint-plugin": "^5.10.0",
"@types/node": "^24.7.2",
"@types/picomatch": "^4.0.2",
"@vitest/coverage-v8": "^4.1.8",
"@vitest/ui": "^4.1.8",
"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",
"tsx": "^4.20.6",
"typescript": "^5.9.3",
"typescript-eslint": "^8.53.1",
"vitest": "^4.1.8"
},
"dependencies": {
"@modelcontextprotocol/sdk": "^1.29.0",
"fast-glob": "^3.3.3",
"picomatch": "^4.0.3",
"piscina": "^4.5.1",
"tsconfig-paths": "^4.2.0",
"zod": "^4.4.3"
},
"overrides": {
"node-addon-api": "^8.5.0"
},
"optionalDependencies": {
"@lzehrung/codegraph-native": "^1.8.66"
}
}