package.json 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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. "workspaces": [
  20. "ui"
  21. ],
  22. "scripts": {
  23. "build": "tsc && npm run copy-assets && npm run build:textmate && npm run build:ui && node -e \"require('fs').chmodSync('dist/bin/codegraph.js', 0o755)\"",
  24. "build:ui": "npm run build --workspace ui && node scripts/check-ui-build.mjs",
  25. "preuninstall": "node dist/bin/uninstall.js",
  26. "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))\"",
  27. "dev": "tsc --watch",
  28. "build:kernel": "bash scripts/build-kernel.sh",
  29. "cli": "npm run build && node dist/bin/codegraph.js",
  30. "test": "vitest run",
  31. "test:watch": "vitest",
  32. "test:eval": "vitest run __tests__/evaluation/",
  33. "eval": "npm run build && npx tsx __tests__/evaluation/runner.ts",
  34. "clean": "node -e \"const fs=require('fs');fs.rmSync('dist',{recursive:true,force:true})\"",
  35. "build:textmate": "node scripts/prune-grammars.mjs"
  36. },
  37. "keywords": [
  38. "code-intelligence",
  39. "knowledge-graph",
  40. "static-analysis"
  41. ],
  42. "author": "",
  43. "license": "MIT",
  44. "dependencies": {
  45. "@clack/prompts": "^1.3.0",
  46. "@shikijs/core": "^4.4.3",
  47. "@shikijs/engine-javascript": "^4.4.3",
  48. "commander": "^14.0.2",
  49. "fast-string-width": "^3.0.2",
  50. "fast-wrap-ansi": "^0.2.0",
  51. "ignore": "^7.0.5",
  52. "jsonc-parser": "^3.3.1",
  53. "picomatch": "^4.0.3",
  54. "sisteransi": "^1.0.5",
  55. "tree-sitter-wasms": "^0.1.11",
  56. "web-tree-sitter": "^0.25.3"
  57. },
  58. "devDependencies": {
  59. "@shikijs/langs": "^4.4.3",
  60. "@types/better-sqlite3": "^7.6.0",
  61. "@types/node": "^20.19.30",
  62. "@types/picomatch": "^4.0.2",
  63. "typescript": "^5.0.0",
  64. "vitest": "^2.1.9"
  65. },
  66. "engines": {
  67. "node": ">=20.0.0 <25.0.0"
  68. }
  69. }