@lzehrung/codegraph 2.2.1 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/README.md +1 -1
  2. package/codegraph-skill/codegraph/SKILL.md +2 -2
  3. package/dist/bin/cli.js +1376 -960
  4. package/dist/bin/queryIndexWorker.js +4 -0
  5. package/dist/cli/compileCache.d.ts +2 -2
  6. package/dist/cli/compileCache.js +2 -2
  7. package/dist/cli/doctor.d.ts.map +1 -1
  8. package/dist/cli/doctor.js +6 -3
  9. package/dist/cli/doctor.js.map +1 -1
  10. package/dist/cli/help.d.ts +1 -1
  11. package/dist/cli/help.d.ts.map +1 -1
  12. package/dist/cli/help.js +3 -3
  13. package/dist/cli/lifecycle.js +1 -1
  14. package/dist/cli/lifecycle.js.map +1 -1
  15. package/dist/indexer/build-cache/location.d.ts +4 -2
  16. package/dist/indexer/build-cache/location.d.ts.map +1 -1
  17. package/dist/indexer/build-cache/location.js +63 -15
  18. package/dist/indexer/build-cache/location.js.map +1 -1
  19. package/dist/indexer/build-cache/options.d.ts +15 -13
  20. package/dist/indexer/build-cache/options.d.ts.map +1 -1
  21. package/dist/indexer/build-cache/options.js +30 -38
  22. package/dist/indexer/build-cache/options.js.map +1 -1
  23. package/dist/indexer/build-cache/project-snapshot.d.ts.map +1 -1
  24. package/dist/indexer/build-cache/project-snapshot.js +103 -60
  25. package/dist/indexer/build-cache/project-snapshot.js.map +1 -1
  26. package/dist/indexer/build-index.d.ts.map +1 -1
  27. package/dist/indexer/build-index.js +43 -20
  28. package/dist/indexer/build-index.js.map +1 -1
  29. package/dist/indexer/imports.d.ts +4 -0
  30. package/dist/indexer/imports.d.ts.map +1 -1
  31. package/dist/indexer/imports.js +6 -5
  32. package/dist/indexer/imports.js.map +1 -1
  33. package/dist/indexer/locals-and-exports.d.ts.map +1 -1
  34. package/dist/indexer/locals-and-exports.js +10 -5
  35. package/dist/indexer/locals-and-exports.js.map +1 -1
  36. package/dist/indexer/navigation-references.d.ts +14 -1
  37. package/dist/indexer/navigation-references.d.ts.map +1 -1
  38. package/dist/indexer/navigation-references.js +29 -7
  39. package/dist/indexer/navigation-references.js.map +1 -1
  40. package/dist/indexer/navigation.d.ts.map +1 -1
  41. package/dist/indexer/navigation.js +72 -10
  42. package/dist/indexer/navigation.js.map +1 -1
  43. package/dist/indexer/types.d.ts +1 -0
  44. package/dist/indexer/types.d.ts.map +1 -1
  45. package/dist/languages/definitions/javascript.d.ts.map +1 -1
  46. package/dist/languages/definitions/javascript.js +1 -0
  47. package/dist/languages/definitions/javascript.js.map +1 -1
  48. package/dist/languages/definitions/typescript.d.ts.map +1 -1
  49. package/dist/languages/definitions/typescript.js +2 -0
  50. package/dist/languages/definitions/typescript.js.map +1 -1
  51. package/dist/languages/types.d.ts +4 -0
  52. package/dist/languages/types.d.ts.map +1 -1
  53. package/dist/languages.d.ts +1 -0
  54. package/dist/languages.d.ts.map +1 -1
  55. package/dist/languages.js +1 -0
  56. package/dist/languages.js.map +1 -1
  57. package/dist/lifecycle/gitignore.d.ts +1 -1
  58. package/dist/lifecycle/gitignore.d.ts.map +1 -1
  59. package/dist/lifecycle/gitignore.js +7 -12
  60. package/dist/lifecycle/gitignore.js.map +1 -1
  61. package/dist/lifecycle/manifest.d.ts.map +1 -1
  62. package/dist/lifecycle/manifest.js +10 -4
  63. package/dist/lifecycle/manifest.js.map +1 -1
  64. package/dist/util/git.d.ts +66 -1
  65. package/dist/util/git.d.ts.map +1 -1
  66. package/dist/util/git.js +173 -1
  67. package/dist/util/git.js.map +1 -1
  68. package/dist/util/projectFiles.d.ts +7 -6
  69. package/dist/util/projectFiles.d.ts.map +1 -1
  70. package/dist/util/projectFiles.js +268 -59
  71. package/dist/util/projectFiles.js.map +1 -1
  72. package/dist/util/resolution.d.ts.map +1 -1
  73. package/dist/util/resolution.js +2 -3
  74. package/dist/util/resolution.js.map +1 -1
  75. package/dist/worker/nativeWorkerPool.js +1 -1
  76. package/dist/worker/nativeWorkerPool.js.map +1 -1
  77. package/docs/mcp.md +1 -1
  78. package/package.json +3 -3
package/README.md CHANGED
@@ -194,7 +194,7 @@ codegraph viewer --root . --graph codegraph-out/graph.json --open
194
194
  codegraph viewer --root . --port 4173 --print-url
195
195
  ```
196
196
 
197
- The default host is `127.0.0.1` and the default port is `4173`. Without `--graph`, each UI load or reload builds a current graph projection through the automatically validated `.codegraph-cache` index; `init`, `index`, and an exported JSON file are not prerequisites. An explicit `--graph` serves that root-confined snapshot through the same `/graph.json` route, while `--print-url` only prints the deterministic URL and exits.
197
+ The default host is `127.0.0.1` and the default port is `4173`. Without `--graph`, each UI load or reload builds a current graph projection through the automatically validated `.codegraph/cache/index-v1` index; `init`, `index`, and an exported JSON file are not prerequisites. An explicit `--graph` serves that root-confined snapshot through the same `/graph.json` route, while `--print-url` only prints the deterministic URL and exits.
198
198
 
199
199
  The UI loads Sigma, Graphology, and ForceAtlas2 from bundled `docs/graph-visualization/vendor/` assets, so the viewer stays offline and self-contained once codegraph is installed.
200
200
 
@@ -118,7 +118,7 @@ Safe shorthand: `impact` and git-backed `drift` default to `HEAD..WORKTREE`; `ar
118
118
 
119
119
  `inspect --duplicates` adds the slower bounded duplicate summary. Treat duplicate matches, candidate tests, and call-compatibility hints as review leads, not proof.
120
120
 
121
- Current-state commands validate the on-disk index automatically and default to the disk cache, so `index` and `sync` only prewarm or repair state and are never prerequisites for a query. `--cache off|memory|disk` stays explicit, `--cache-verify` and `--cache-strict` request stronger checks, and `drift`/`graph-delta` keep revision-range semantics instead. `review` and `impact` diff ranges select what to analyze independently from the complete current-project index, so repeated unchanged ranges reuse a warm manifest without narrowing graph, symbol, candidate-test, or duplicate context.
121
+ Current-state commands validate the on-disk index automatically and default to the disk cache, so `index` and `sync` only prewarm or repair state and are never prerequisites for a query. `--cache off|memory|disk` stays explicit, `--cache-verify` and `--cache-strict` request stronger checks when reusable cache or manifest state exists, and `--cache-strict` has no effect with `--cache off`. `drift`/`graph-delta` keep revision-range semantics instead. `review` and `impact` diff ranges select what to analyze independently from the complete current-project index, so repeated unchanged ranges reuse a warm manifest without narrowing graph, symbol, candidate-test, or duplicate context.
122
122
 
123
123
  ## Choose Output by Consumer
124
124
 
@@ -239,7 +239,7 @@ codegraph sync --root . --init --no-update-gitignore
239
239
 
240
240
  `init` and `sync --init` use Git's effective ignore semantics before lifecycle hashing. When the untracked manifest is not already ignored, they append exactly `.codegraph/` to the resolved root's `.gitignore`; effective parent/global/info excludes are honored, tracked manifests are left unchanged with a warning, and non-Git roots are not modified.
241
241
 
242
- Use `--no-update-gitignore` to opt out during `init` or `sync --init`; ordinary `sync` never updates ignore policy. `uninit` preserves `.codegraph/server.json` and `.codegraph/server.log` even with `--force`, so stop a shared server explicitly; it leaves the root rule, while `init` and `sync` may warm or update `.codegraph-cache/index-v1/`.
242
+ Use `--no-update-gitignore` to opt out during `init` or `sync --init`; ordinary `sync` never updates ignore policy. `uninit` preserves `.codegraph/server.json`, `.codegraph/server.log`, and `.codegraph/cache/` even with `--force`, so stop a shared server explicitly; it leaves the root rule, while `init` and `sync` may warm or update `.codegraph/cache/index-v1/`. An existing `.codegraph-cache/` directory migrates automatically on the next run.
243
243
 
244
244
  Lifecycle commands accept either one positional project path or `--root <path>`, never both. Automatic ignore updates are bound to that same resolved project root.
245
245