package.json 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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: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. "build:lib": "npm run build:lib --workspace ui",
  26. "preuninstall": "node dist/bin/uninstall.js",
  27. "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))\"",
  28. "dev": "tsc --watch",
  29. "build:kernel": "bash scripts/build-kernel.sh",
  30. "cli": "npm run build && node dist/bin/codegraph.js",
  31. "test": "vitest run",
  32. "test:watch": "vitest",
  33. "test:eval": "vitest run __tests__/evaluation/",
  34. "eval": "npm run build && npx tsx __tests__/evaluation/runner.ts",
  35. "clean": "node -e \"const fs=require('fs');fs.rmSync('dist',{recursive:true,force:true})\""
  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. "commander": "^14.0.2",
  47. "fast-string-width": "^3.0.2",
  48. "fast-wrap-ansi": "^0.2.0",
  49. "ignore": "^7.0.5",
  50. "jsonc-parser": "^3.3.1",
  51. "picomatch": "^4.0.3",
  52. "sisteransi": "^1.0.5",
  53. "tree-sitter-wasms": "^0.1.11",
  54. "web-tree-sitter": "^0.25.3"
  55. },
  56. "devDependencies": {
  57. "@sveltejs/vite-plugin-svelte": "^4.0.4",
  58. "@types/better-sqlite3": "^7.6.0",
  59. "@types/node": "^20.19.30",
  60. "@types/picomatch": "^4.0.2",
  61. "jsdom": "^25.0.1",
  62. "typescript": "^5.0.0",
  63. "vitest": "^2.1.9"
  64. },
  65. "engines": {
  66. "node": ">=20.0.0 <25.0.0"
  67. }
  68. }