package.json 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {
  2. "name": "@colbymchenry/codegraph",
  3. "version": "1.6.0",
  4. "description": "Supercharge AI coding agents with semantic code intelligence — surgical context, fewer tool calls, faster answers. 100% local.",
  5. "repository": {
  6. "type": "git",
  7. "url": "git+https://github.com/colbymchenry/codegraph.git"
  8. },
  9. "main": "dist/index.js",
  10. "types": "dist/index.d.ts",
  11. "bin": {
  12. "codegraph": "./dist/bin/codegraph.js"
  13. },
  14. "files": [
  15. "dist",
  16. "scripts",
  17. "README.md"
  18. ],
  19. "scripts": {
  20. "build": "tsc && npm run copy-assets && node -e \"require('fs').chmodSync('dist/bin/codegraph.js', 0o755)\"",
  21. "preuninstall": "node dist/bin/uninstall.js",
  22. "copy-assets": "node -e \"const fs=require('fs');fs.mkdirSync('dist/db',{recursive:true});fs.copyFileSync('src/db/schema.sql','dist/db/schema.sql');fs.mkdirSync('dist/extraction/wasm',{recursive:true});fs.readdirSync('src/extraction/wasm').filter(f=>f.endsWith('.wasm')).forEach(f=>fs.copyFileSync('src/extraction/wasm/'+f,'dist/extraction/wasm/'+f))\"",
  23. "dev": "tsc --watch",
  24. "build:kernel": "bash scripts/build-kernel.sh",
  25. "cli": "npm run build && node dist/bin/codegraph.js",
  26. "test": "vitest run",
  27. "test:watch": "vitest",
  28. "test:eval": "vitest run __tests__/evaluation/",
  29. "eval": "npm run build && npx tsx __tests__/evaluation/runner.ts",
  30. "clean": "node -e \"const fs=require('fs');fs.rmSync('dist',{recursive:true,force:true})\""
  31. },
  32. "keywords": [
  33. "code-intelligence",
  34. "knowledge-graph",
  35. "static-analysis"
  36. ],
  37. "author": "",
  38. "license": "MIT",
  39. "dependencies": {
  40. "@clack/prompts": "^1.3.0",
  41. "commander": "^14.0.2",
  42. "fast-string-width": "^3.0.2",
  43. "fast-wrap-ansi": "^0.2.0",
  44. "ignore": "^7.0.5",
  45. "jsonc-parser": "^3.3.1",
  46. "picomatch": "^4.0.3",
  47. "sisteransi": "^1.0.5",
  48. "tree-sitter-wasms": "^0.1.11",
  49. "web-tree-sitter": "^0.25.3"
  50. },
  51. "devDependencies": {
  52. "@types/better-sqlite3": "^7.6.0",
  53. "@types/node": "^20.19.30",
  54. "@types/picomatch": "^4.0.2",
  55. "typescript": "^5.0.0",
  56. "vitest": "^2.1.9"
  57. },
  58. "engines": {
  59. "node": ">=20.0.0 <25.0.0"
  60. }
  61. }