@lzehrung/codegraph 2.3.18 → 2.3.20

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 (58) hide show
  1. package/codegraph-skill/codegraph/SKILL.md +3 -1
  2. package/dist/bin/cli.js +1835 -2440
  3. package/dist/bin/queryIndexWorker.js +28 -5
  4. package/dist/cli/index.d.ts.map +1 -1
  5. package/dist/cli/index.js +12 -5
  6. package/dist/cli/index.js.map +1 -1
  7. package/dist/cli/invocationContext.d.ts.map +1 -1
  8. package/dist/cli/invocationContext.js +94 -31
  9. package/dist/cli/invocationContext.js.map +1 -1
  10. package/dist/graphs/symbol-graph-detailed/ast.d.ts.map +1 -1
  11. package/dist/graphs/symbol-graph-detailed/ast.js +22 -1
  12. package/dist/graphs/symbol-graph-detailed/ast.js.map +1 -1
  13. package/dist/graphs/symbol-graph-detailed/edgePasses.d.ts +5 -0
  14. package/dist/graphs/symbol-graph-detailed/edgePasses.d.ts.map +1 -1
  15. package/dist/graphs/symbol-graph-detailed/edgePasses.js +110 -8
  16. package/dist/graphs/symbol-graph-detailed/edgePasses.js.map +1 -1
  17. package/dist/graphs/symbol-graph-detailed/receiverCalls.d.ts +69 -0
  18. package/dist/graphs/symbol-graph-detailed/receiverCalls.d.ts.map +1 -0
  19. package/dist/graphs/symbol-graph-detailed/receiverCalls.js +408 -0
  20. package/dist/graphs/symbol-graph-detailed/receiverCalls.js.map +1 -0
  21. package/dist/graphs/symbol-graph-detailed.d.ts.map +1 -1
  22. package/dist/graphs/symbol-graph-detailed.js +22 -0
  23. package/dist/graphs/symbol-graph-detailed.js.map +1 -1
  24. package/dist/indexer/build-cache/options.d.ts +7 -1
  25. package/dist/indexer/build-cache/options.d.ts.map +1 -1
  26. package/dist/indexer/build-cache/options.js +7 -1
  27. package/dist/indexer/build-cache/options.js.map +1 -1
  28. package/dist/indexer/build-index.d.ts.map +1 -1
  29. package/dist/indexer/build-index.js +102 -47
  30. package/dist/indexer/build-index.js.map +1 -1
  31. package/dist/indexer/build-manifest.d.ts +5 -0
  32. package/dist/indexer/build-manifest.d.ts.map +1 -1
  33. package/dist/indexer/build-manifest.js +20 -2
  34. package/dist/indexer/build-manifest.js.map +1 -1
  35. package/dist/indexer/finalize.d.ts.map +1 -1
  36. package/dist/indexer/finalize.js +13 -6
  37. package/dist/indexer/finalize.js.map +1 -1
  38. package/dist/indexer/navigation-goto.d.ts +6 -0
  39. package/dist/indexer/navigation-goto.d.ts.map +1 -1
  40. package/dist/indexer/navigation-goto.js +6 -1
  41. package/dist/indexer/navigation-goto.js.map +1 -1
  42. package/dist/indexer/types.d.ts +9 -1
  43. package/dist/indexer/types.d.ts.map +1 -1
  44. package/dist/lifecycle/manifest.d.ts.map +1 -1
  45. package/dist/lifecycle/manifest.js +76 -9
  46. package/dist/lifecycle/manifest.js.map +1 -1
  47. package/dist/util/memberAccess.d.ts.map +1 -1
  48. package/dist/util/memberAccess.js +12 -2
  49. package/dist/util/memberAccess.js.map +1 -1
  50. package/dist/util/paths.d.ts +2 -2
  51. package/dist/util/paths.d.ts.map +1 -1
  52. package/dist/util/paths.js +27 -7
  53. package/dist/util/paths.js.map +1 -1
  54. package/dist/util/projectFiles.d.ts +8 -1
  55. package/dist/util/projectFiles.d.ts.map +1 -1
  56. package/dist/util/projectFiles.js +40 -8
  57. package/dist/util/projectFiles.js.map +1 -1
  58. package/package.json +3 -3
@@ -65,6 +65,8 @@ Use the portable callable handle from `symbols` with `codegraph callers <handle>
65
65
 
66
66
  Call hierarchy contains resolved semantic `calls` edges only. `--include-heuristic` is accepted but currently adds no guessed dynamic calls; use `refs` for all references and `deps` or `rdeps` for file relationships.
67
67
 
68
+ Receiver method calls (`this.m()`, `$this->m()`, `const l = new Lib(); l.target()`) are resolved `calls` edges, including inherited members. `super`/`base`/`parent` follow class `extends` ancestors only. Unproven receivers and Go methods declared outside the type emit no edge.
69
+
68
70
  Use a portable handle, unique exact symbol name, single-definition file, or source location with `codegraph supertypes <target>`, `codegraph subtypes <target>`, or `codegraph implementations <target>`. Hierarchy depth defaults to 1 and caps at 10; all result limits default to 100 and cap at 500, and the default output is the concise human-readable form.
69
71
 
70
72
  Hierarchy results contain only proven indexed `extends` and `implements` relationships. Implementation targets are interfaces, traits, abstract types, and members with proven implementation or override relationships; exact declarations are returned, while overloads, dynamic or structural conformance, unrelated same-name methods, and unresolved external bases are not guessed.
@@ -134,7 +136,7 @@ Current-state commands validate the on-disk index automatically and default to t
134
136
  - Repeated agent queries over one repo snapshot: prefer MCP so the index stays warm. MCP inputs are flat JSON objects and the server root is fixed at startup; send only fields in the mounted tool schema, never CLI flags such as `--root` or `--json`. Unknown tool fields are rejected as invalid parameters. If the first MCP call fails at startup or loses its transport, do not retry the same server; run `codegraph doctor`, use the equivalent CLI command for this session, and restart the agent client after package upgrades.
135
137
  - Durable graph handoff: use `codegraph graph --root . ./src --json --output codegraph.json` rather than parsing display text. `graph --json` and `index --json` payloads include an `analysis` object (`mode`, `backend`, `label`, fallback counts); when `mode` is `mixed` or `reduced` the run used regex/graph-only extraction for some or all files, so treat symbol accuracy accordingly. Degraded runs also print a `Backend:` warning on stderr even without `--progress`.
136
138
  - Search and inspect performance diagnosis: add `--report` for JSON on stderr or `--report-file <path>` for a file while keeping normal command output unchanged.
137
- - Index discovery diagnosis: `--report` timing JSON can include `sourceDiscoveryMs`, `metadataDiscoveryMs`, `gitListMs`, `filesystemScanMs`, and `cacheProbeMs` when those steps run. Named `steps` can also include discovery and post-parse persistence durations (`cache-probe`, `persist-cache`, `workspace-manifests`, `index-manifest`, `finalize`, `snapshot-write`); incremental updates include `snapshot-write` when the project snapshot is rewritten.
139
+ - Index discovery diagnosis: `--report` timing JSON can include `sourceDiscoveryMs`, `metadataDiscoveryMs`, `gitListMs`, `filesystemScanMs`, and `cacheProbeMs` when those steps run. Named `steps` cover discovery (`git-list`, `git-ignore`, `filesystem-scan`, `cache-probe`, `metadata-discovery`), an incremental build's manifest-reuse preamble (`file-identity`, `clear-resolution-caches`, `load-manifest`, `diff-build-options`, `config-hash`), and post-parse persistence (`persist-cache`, `workspace-manifests`, `index-manifest`, `finalize`, `snapshot-write`). `index-manifest` totals its sub-steps `git-head`, `config-hash`, `manifest-transform`, `manifest-write`, and `cache-prune`. Incremental updates include `snapshot-write` when the project snapshot is rewritten.
138
140
 
139
141
  ### Human Graph Viewer
140
142