gitnexus 1.6.10-rc.1 → 1.6.10-rc.100
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.
- package/README.md +116 -30
- package/dist/_shared/graph/types.d.ts +8 -8
- package/dist/_shared/index.d.ts +1 -0
- package/dist/_shared/index.d.ts.map +1 -1
- package/dist/_shared/index.js.map +1 -1
- package/dist/_shared/integrations/resilient-fetch.d.ts +3 -1
- package/dist/_shared/integrations/resilient-fetch.d.ts.map +1 -1
- package/dist/_shared/integrations/resilient-fetch.js +4 -3
- package/dist/_shared/integrations/resilient-fetch.js.map +1 -1
- package/dist/_shared/scope-resolution/callable-flow-site.d.ts +110 -0
- package/dist/_shared/scope-resolution/callable-flow-site.d.ts.map +1 -0
- package/dist/_shared/scope-resolution/callable-flow-site.js +11 -0
- package/dist/_shared/scope-resolution/callable-flow-site.js.map +1 -0
- package/dist/_shared/scope-resolution/finalize-algorithm.d.ts +1 -1
- package/dist/_shared/scope-resolution/finalize-algorithm.d.ts.map +1 -1
- package/dist/_shared/scope-resolution/finalize-algorithm.js +1 -1
- package/dist/_shared/scope-resolution/finalize-algorithm.js.map +1 -1
- package/dist/_shared/scope-resolution/parsed-file.d.ts +7 -0
- package/dist/_shared/scope-resolution/parsed-file.d.ts.map +1 -1
- package/dist/_shared/scope-resolution/reference-site.d.ts +9 -1
- package/dist/_shared/scope-resolution/reference-site.d.ts.map +1 -1
- package/dist/_shared/scope-resolution/types.d.ts +25 -3
- package/dist/_shared/scope-resolution/types.d.ts.map +1 -1
- package/dist/cli/ai-context.d.ts +7 -0
- package/dist/cli/ai-context.js +58 -46
- package/dist/cli/analyze.d.ts +5 -2
- package/dist/cli/analyze.js +187 -11
- package/dist/cli/clean.js +17 -3
- package/dist/cli/cli-message.d.ts +1 -1
- package/dist/cli/doctor.d.ts +29 -0
- package/dist/cli/doctor.js +114 -5
- package/dist/cli/editor-targets.js +11 -0
- package/dist/cli/embeddings.d.ts +12 -0
- package/dist/cli/embeddings.js +49 -0
- package/dist/cli/eval-server.d.ts +23 -1
- package/dist/cli/eval-server.js +126 -8
- package/dist/cli/help-i18n.js +6 -0
- package/dist/cli/i18n/en.d.ts +17 -7
- package/dist/cli/i18n/en.js +17 -7
- package/dist/cli/i18n/resources.d.ts +27 -7
- package/dist/cli/i18n/zh-CN.d.ts +10 -0
- package/dist/cli/i18n/zh-CN.js +17 -7
- package/dist/cli/index.js +20 -6
- package/dist/cli/lazy-action.d.ts +7 -0
- package/dist/cli/lazy-action.js +27 -0
- package/dist/cli/mcp.js +6 -3
- package/dist/cli/setup.d.ts +8 -0
- package/dist/cli/setup.js +59 -28
- package/dist/cli/skill-gen.js +88 -18
- package/dist/cli/standard-skills.d.ts +76 -0
- package/dist/cli/standard-skills.js +45 -0
- package/dist/cli/status.d.ts +4 -1
- package/dist/cli/status.js +57 -4
- package/dist/cli/tool.js +11 -0
- package/dist/cli/uninstall.js +7 -2
- package/dist/cli/wiki.d.ts +1 -0
- package/dist/cli/wiki.js +7 -1
- package/dist/config/ignore-service.d.ts +2 -0
- package/dist/config/ignore-service.js +27 -0
- package/dist/core/analysis-features.d.ts +21 -0
- package/dist/core/analysis-features.js +59 -0
- package/dist/core/analyzer-identity.d.ts +74 -0
- package/dist/core/analyzer-identity.js +1820 -0
- package/dist/core/augmentation/engine.js +13 -8
- package/dist/core/embeddings/embedder.d.ts +3 -2
- package/dist/core/embeddings/embedder.js +24 -7
- package/dist/core/embeddings/embedding-identity.d.ts +11 -0
- package/dist/core/embeddings/embedding-identity.js +24 -0
- package/dist/core/embeddings/embedding-pipeline.d.ts +36 -1
- package/dist/core/embeddings/embedding-pipeline.js +100 -9
- package/dist/core/embeddings/http-client.d.ts +33 -3
- package/dist/core/embeddings/http-client.js +237 -25
- package/dist/core/embeddings/node-module-compat.d.ts +25 -0
- package/dist/core/embeddings/node-module-compat.js +25 -0
- package/dist/core/embeddings/onnxruntime-common-resolver.js +8 -5
- package/dist/core/embeddings/onnxruntime-node-resolver.js +33 -7
- package/dist/core/embeddings/runtime-install.d.ts +119 -0
- package/dist/core/embeddings/runtime-install.js +372 -0
- package/dist/core/embeddings/runtime-support.d.ts +48 -17
- package/dist/core/embeddings/runtime-support.js +96 -0
- package/dist/core/git-staleness.js +1 -1
- package/dist/core/group/bridge-db.js +2 -0
- package/dist/core/group/extractors/http-patterns/python.js +246 -108
- package/dist/core/group/extractors/manifest-extractor.js +4 -0
- package/dist/core/incremental/escalation-gate.d.ts +38 -0
- package/dist/core/incremental/escalation-gate.js +48 -0
- package/dist/core/incremental/shadow-candidates.d.ts +3 -3
- package/dist/core/incremental/shadow-candidates.js +3 -3
- package/dist/core/incremental/subgraph-extract.d.ts +2 -2
- package/dist/core/incremental/subgraph-extract.js +2 -2
- package/dist/core/index-freshness.d.ts +5 -0
- package/dist/core/index-freshness.js +13 -0
- package/dist/core/ingestion/class-extractors/configs/jvm.js +29 -0
- package/dist/core/ingestion/cobol/cobol-preprocessor.js +1 -1
- package/dist/core/ingestion/cobol/jcl-processor.js +9 -8
- package/dist/core/ingestion/cobol-processor.js +27 -26
- package/dist/core/ingestion/community-processor.d.ts +51 -1
- package/dist/core/ingestion/community-processor.js +323 -64
- package/dist/core/ingestion/di-extractors/index.d.ts +40 -28
- package/dist/core/ingestion/di-extractors/index.js +17 -18
- package/dist/core/ingestion/di-extractors/spring.d.ts +27 -5
- package/dist/core/ingestion/di-extractors/spring.js +80 -3
- package/dist/core/ingestion/emit-references.js +7 -2
- package/dist/core/ingestion/filesystem-walker.js +4 -0
- package/dist/core/ingestion/frameworks/spring/analysis-features.d.ts +3 -0
- package/dist/core/ingestion/frameworks/spring/analysis-features.js +7 -0
- package/dist/core/ingestion/frameworks/spring/bean-candidates.d.ts +30 -0
- package/dist/core/ingestion/frameworks/spring/bean-candidates.js +182 -0
- package/dist/core/ingestion/frameworks/spring/bean-catalog.d.ts +12 -0
- package/dist/core/ingestion/frameworks/spring/bean-catalog.js +26 -0
- package/dist/core/ingestion/frameworks/spring/config-bindings.d.ts +24 -0
- package/dist/core/ingestion/frameworks/spring/config-bindings.js +115 -0
- package/dist/core/ingestion/frameworks/spring/di-metadata.d.ts +45 -0
- package/dist/core/ingestion/frameworks/spring/di-metadata.js +230 -0
- package/dist/core/ingestion/languages/c/captures.js +56 -0
- package/dist/core/ingestion/languages/c/query.js +17 -0
- package/dist/core/ingestion/languages/c/scope-resolver.js +6 -0
- package/dist/core/ingestion/languages/cobol/captures.js +93 -0
- package/dist/core/ingestion/languages/cobol/scope-resolver.js +7 -0
- package/dist/core/ingestion/languages/cpp/captures.js +365 -75
- package/dist/core/ingestion/languages/cpp/scope-resolver.js +14 -0
- package/dist/core/ingestion/languages/csharp/captures.js +25 -0
- package/dist/core/ingestion/languages/csharp/namespace-siblings.js +5 -1
- package/dist/core/ingestion/languages/csharp/scope-resolver.js +1 -0
- package/dist/core/ingestion/languages/dart/captures.js +90 -2
- package/dist/core/ingestion/languages/dart/extension-type-preprocess.d.ts +7 -0
- package/dist/core/ingestion/languages/dart/extension-type-preprocess.js +30 -0
- package/dist/core/ingestion/languages/dart.js +2 -0
- package/dist/core/ingestion/languages/go/captures.js +34 -0
- package/dist/core/ingestion/languages/java/analysis-features.d.ts +3 -0
- package/dist/core/ingestion/languages/java/analysis-features.js +13 -0
- package/dist/core/ingestion/languages/java/capture-side-channel.d.ts +26 -0
- package/dist/core/ingestion/languages/java/capture-side-channel.js +76 -0
- package/dist/core/ingestion/languages/java/captures.d.ts +4 -3
- package/dist/core/ingestion/languages/java/captures.js +245 -18
- package/dist/core/ingestion/languages/java/package-facts.d.ts +5 -0
- package/dist/core/ingestion/languages/java/package-facts.js +9 -0
- package/dist/core/ingestion/languages/java/package-siblings.d.ts +3 -16
- package/dist/core/ingestion/languages/java/package-siblings.js +8 -147
- package/dist/core/ingestion/languages/java/query.js +24 -0
- package/dist/core/ingestion/languages/java/scope-resolver.js +25 -0
- package/dist/core/ingestion/languages/java/spring-bean-metadata.d.ts +2 -0
- package/dist/core/ingestion/languages/java/spring-bean-metadata.js +8 -0
- package/dist/core/ingestion/languages/java/spring-config-bindings.d.ts +23 -0
- package/dist/core/ingestion/languages/java/spring-config-bindings.js +215 -0
- package/dist/core/ingestion/languages/java/spring-di.d.ts +17 -0
- package/dist/core/ingestion/languages/java/spring-di.js +128 -0
- package/dist/core/ingestion/languages/java.js +3 -0
- package/dist/core/ingestion/languages/javascript/captures.js +16 -0
- package/dist/core/ingestion/languages/javascript/query.js +21 -0
- package/dist/core/ingestion/languages/jvm/package-facts.d.ts +35 -0
- package/dist/core/ingestion/languages/jvm/package-facts.js +40 -0
- package/dist/core/ingestion/languages/jvm/package-siblings.d.ts +14 -0
- package/dist/core/ingestion/languages/jvm/package-siblings.js +129 -0
- package/dist/core/ingestion/languages/kotlin/capture-side-channel.d.ts +25 -3
- package/dist/core/ingestion/languages/kotlin/capture-side-channel.js +63 -8
- package/dist/core/ingestion/languages/kotlin/captures.js +70 -0
- package/dist/core/ingestion/languages/kotlin/package-facts.d.ts +5 -0
- package/dist/core/ingestion/languages/kotlin/package-facts.js +9 -0
- package/dist/core/ingestion/languages/kotlin/package-siblings.d.ts +4 -0
- package/dist/core/ingestion/languages/kotlin/package-siblings.js +8 -0
- package/dist/core/ingestion/languages/kotlin/query.js +19 -0
- package/dist/core/ingestion/languages/kotlin/scope-resolver.js +14 -1
- package/dist/core/ingestion/languages/kotlin/spring-bean-metadata.d.ts +2 -0
- package/dist/core/ingestion/languages/kotlin/spring-bean-metadata.js +8 -0
- package/dist/core/ingestion/languages/kotlin/spring-di.d.ts +18 -0
- package/dist/core/ingestion/languages/kotlin/spring-di.js +250 -0
- package/dist/core/ingestion/languages/kotlin.js +5 -6
- package/dist/core/ingestion/languages/php/captures.js +40 -0
- package/dist/core/ingestion/languages/php/import-decomposer.js +12 -0
- package/dist/core/ingestion/languages/php/import-target.d.ts +2 -1
- package/dist/core/ingestion/languages/php/import-target.js +110 -2
- package/dist/core/ingestion/languages/php/interpret.js +10 -0
- package/dist/core/ingestion/languages/php/scope-resolver.js +1 -1
- package/dist/core/ingestion/languages/python/captures.d.ts +3 -4
- package/dist/core/ingestion/languages/python/captures.js +24 -5
- package/dist/core/ingestion/languages/python/interpret.js +4 -0
- package/dist/core/ingestion/languages/python/receiver-binding.d.ts +15 -2
- package/dist/core/ingestion/languages/python/receiver-binding.js +96 -2
- package/dist/core/ingestion/languages/python/simple-hooks.d.ts +5 -5
- package/dist/core/ingestion/languages/python/simple-hooks.js +15 -5
- package/dist/core/ingestion/languages/ruby/captures.js +42 -0
- package/dist/core/ingestion/languages/rust/captures.js +13 -0
- package/dist/core/ingestion/languages/rust/interpret.js +18 -0
- package/dist/core/ingestion/languages/rust/query.js +9 -0
- package/dist/core/ingestion/languages/rust/range-binding.d.ts +1 -11
- package/dist/core/ingestion/languages/rust/range-binding.js +149 -63
- package/dist/core/ingestion/languages/swift/captures.js +12 -0
- package/dist/core/ingestion/languages/typescript/captures.js +21 -0
- package/dist/core/ingestion/languages/typescript/nuxt-auto-imports.js +2 -1
- package/dist/core/ingestion/languages/typescript/query.js +37 -0
- package/dist/core/ingestion/markdown-processor.js +3 -2
- package/dist/core/ingestion/parsing-processor.d.ts +3 -1
- package/dist/core/ingestion/parsing-processor.js +36 -1
- package/dist/core/ingestion/pipeline-phases/di.d.ts +8 -33
- package/dist/core/ingestion/pipeline-phases/di.js +162 -159
- package/dist/core/ingestion/pipeline-phases/index.d.ts +1 -0
- package/dist/core/ingestion/pipeline-phases/index.js +1 -0
- package/dist/core/ingestion/pipeline-phases/parse-impl.js +56 -2
- package/dist/core/ingestion/pipeline-phases/processes.d.ts +8 -0
- package/dist/core/ingestion/pipeline-phases/processes.js +11 -1
- package/dist/core/ingestion/pipeline-phases/spring-config.d.ts +37 -0
- package/dist/core/ingestion/pipeline-phases/spring-config.js +433 -0
- package/dist/core/ingestion/pipeline.d.ts +1 -1
- package/dist/core/ingestion/pipeline.js +3 -2
- package/dist/core/ingestion/resolve-references.js +12 -0
- package/dist/core/ingestion/route-extractors/constant-resolver.d.ts +83 -0
- package/dist/core/ingestion/route-extractors/constant-resolver.js +131 -0
- package/dist/core/ingestion/route-extractors/python-const-resolver.d.ts +75 -0
- package/dist/core/ingestion/route-extractors/python-const-resolver.js +299 -0
- package/dist/core/ingestion/scope-extractor.js +308 -44
- package/dist/core/ingestion/scope-resolution/contract/scope-resolver.d.ts +71 -2
- package/dist/core/ingestion/scope-resolution/graph-bridge/callee-id-sink.d.ts +7 -7
- package/dist/core/ingestion/scope-resolution/graph-bridge/callee-id-sink.js +8 -7
- package/dist/core/ingestion/scope-resolution/graph-bridge/edges.d.ts +3 -1
- package/dist/core/ingestion/scope-resolution/graph-bridge/edges.js +6 -0
- package/dist/core/ingestion/scope-resolution/graph-bridge/ids.js +1 -0
- package/dist/core/ingestion/scope-resolution/graph-bridge/node-lookup.js +4 -1
- package/dist/core/ingestion/scope-resolution/graph-bridge/references-to-edges.js +7 -2
- package/dist/core/ingestion/scope-resolution/passes/callable-value-flow.d.ts +47 -0
- package/dist/core/ingestion/scope-resolution/passes/callable-value-flow.js +1138 -0
- package/dist/core/ingestion/scope-resolution/passes/free-call-fallback.d.ts +16 -4
- package/dist/core/ingestion/scope-resolution/passes/free-call-fallback.js +143 -4
- package/dist/core/ingestion/scope-resolution/passes/property-dispatch.d.ts +60 -0
- package/dist/core/ingestion/scope-resolution/passes/property-dispatch.js +111 -0
- package/dist/core/ingestion/scope-resolution/passes/receiver-bound-calls.d.ts +4 -3
- package/dist/core/ingestion/scope-resolution/pipeline/phase.d.ts +5 -0
- package/dist/core/ingestion/scope-resolution/pipeline/phase.js +25 -38
- package/dist/core/ingestion/scope-resolution/pipeline/run.d.ts +6 -0
- package/dist/core/ingestion/scope-resolution/pipeline/run.js +149 -35
- package/dist/core/ingestion/scope-resolution/resolution-outcome.d.ts +1 -1
- package/dist/core/ingestion/scope-resolution/scope/walkers.d.ts +12 -0
- package/dist/core/ingestion/scope-resolution/scope/walkers.js +126 -44
- package/dist/core/ingestion/taint/typescript-model.js +34 -2
- package/dist/core/ingestion/tree-sitter-queries.d.ts +2 -2
- package/dist/core/ingestion/tree-sitter-queries.js +22 -2
- package/dist/core/ingestion/type-extractors/jvm.js +17 -2
- package/dist/core/ingestion/utils/ast-helpers.d.ts +25 -0
- package/dist/core/ingestion/utils/ast-helpers.js +198 -2
- package/dist/core/ingestion/utils/callable-flow-captures.d.ts +94 -0
- package/dist/core/ingestion/utils/callable-flow-captures.js +878 -0
- package/dist/core/ingestion/utils/line-base.d.ts +20 -0
- package/dist/core/ingestion/utils/line-base.js +20 -0
- package/dist/core/ingestion/utils/symbol-labels.d.ts +21 -0
- package/dist/core/ingestion/utils/symbol-labels.js +45 -0
- package/dist/core/ingestion/workers/parse-worker.d.ts +34 -0
- package/dist/core/ingestion/workers/parse-worker.js +40 -5
- package/dist/core/ingestion/workers/result-merge.js +4 -0
- package/dist/core/ingestion/workers/worker-pool.d.ts +28 -0
- package/dist/core/ingestion/workers/worker-pool.js +128 -28
- package/dist/core/lbug/csv-generator.js +25 -5
- package/dist/core/lbug/cypher-escape.d.ts +20 -0
- package/dist/core/lbug/cypher-escape.js +20 -0
- package/dist/core/lbug/extension-load-error.d.ts +67 -0
- package/dist/core/lbug/extension-load-error.js +326 -0
- package/dist/core/lbug/extension-loader.d.ts +17 -2
- package/dist/core/lbug/extension-loader.js +38 -13
- package/dist/core/lbug/lbug-adapter.d.ts +203 -2
- package/dist/core/lbug/lbug-adapter.js +559 -87
- package/dist/core/lbug/lbug-config.d.ts +117 -2
- package/dist/core/lbug/lbug-config.js +377 -7
- package/dist/core/lbug/native-check.d.ts +40 -0
- package/dist/core/lbug/native-check.js +154 -27
- package/dist/core/lbug/pool-adapter.d.ts +23 -1
- package/dist/core/lbug/pool-adapter.js +115 -8
- package/dist/core/lbug/schema.d.ts +2 -2
- package/dist/core/lbug/schema.js +2 -0
- package/dist/core/lbug/sidecar-recovery.d.ts +173 -0
- package/dist/core/lbug/sidecar-recovery.js +419 -17
- package/dist/core/lbug/wal-checkpoint-driver.js +3 -0
- package/dist/core/platform/capabilities.d.ts +0 -1
- package/dist/core/platform/capabilities.js +39 -8
- package/dist/core/run-analyze.d.ts +3 -3
- package/dist/core/run-analyze.js +890 -153
- package/dist/core/search/fts-indexes.d.ts +31 -0
- package/dist/core/search/fts-indexes.js +73 -0
- package/dist/core/tree-sitter/safe-parse.d.ts +8 -3
- package/dist/core/tree-sitter/safe-parse.js +21 -7
- package/dist/core/wiki/graph-queries.js +6 -5
- package/dist/core/wiki/llm-client.d.ts +8 -2
- package/dist/core/wiki/llm-client.js +41 -5
- package/dist/mcp/core/embedder.js +16 -2
- package/dist/mcp/http-transport.d.ts +5 -0
- package/dist/mcp/http-transport.js +19 -5
- package/dist/mcp/local/bean-metadata.d.ts +2 -0
- package/dist/mcp/local/bean-metadata.js +25 -0
- package/dist/mcp/local/line-display.d.ts +22 -0
- package/dist/mcp/local/line-display.js +3 -0
- package/dist/mcp/local/local-backend.d.ts +16 -1
- package/dist/mcp/local/local-backend.js +289 -155
- package/dist/mcp/local/pdg-impact.d.ts +5 -3
- package/dist/mcp/local/pdg-impact.js +5 -2
- package/dist/mcp/output-budget.d.ts +5 -0
- package/dist/mcp/output-budget.js +52 -0
- package/dist/mcp/read-only-policy.d.ts +12 -0
- package/dist/mcp/read-only-policy.js +102 -0
- package/dist/mcp/repository-policy.d.ts +34 -0
- package/dist/mcp/repository-policy.js +328 -0
- package/dist/mcp/resources.js +32 -5
- package/dist/mcp/server.d.ts +5 -2
- package/dist/mcp/server.js +29 -9
- package/dist/mcp/tools.d.ts +0 -8
- package/dist/mcp/tools.js +29 -5
- package/dist/server/analyze-job.d.ts +3 -0
- package/dist/server/analyze-job.js +17 -0
- package/dist/server/analyze-launch.d.ts +6 -0
- package/dist/server/analyze-launch.js +82 -6
- package/dist/server/analyze-worker-core.d.ts +2 -1
- package/dist/server/analyze-worker-core.js +5 -2
- package/dist/server/analyze-worker.js +29 -6
- package/dist/server/api.d.ts +30 -0
- package/dist/server/api.js +120 -34
- package/dist/server/mcp-http.d.ts +1 -1
- package/dist/server/mcp-http.js +4 -2
- package/dist/server/upload-ingest.js +2 -1
- package/dist/server/validation.js +2 -1
- package/dist/storage/git.d.ts +34 -0
- package/dist/storage/git.js +116 -1
- package/dist/storage/parse-cache.js +12 -1
- package/dist/storage/parsedfile-store.d.ts +8 -0
- package/dist/storage/parsedfile-store.js +165 -1
- package/dist/storage/repo-manager.d.ts +201 -2
- package/dist/storage/repo-manager.js +73 -1
- package/hooks/antigravity/gitnexus-antigravity-hook.cjs +50 -3
- package/hooks/claude/gitnexus-hook.cjs +59 -9
- package/package.json +15 -14
- package/scripts/cross-platform-tests.ts +49 -0
- package/scripts/ensure-fts.ts +43 -0
- package/scripts/install-duckdb-extension.mjs +85 -24
- package/scripts/run-cross-platform.ts +61 -6
- package/scripts/shard-arg.ts +30 -0
- package/scripts/sync-plugin-manifests.mjs +192 -0
- package/skills/gitnexus-lfg/README.md +55 -0
- package/skills/gitnexus-lfg/SKILL.md +86 -0
- package/skills/gitnexus-plan/README.md +142 -0
- package/skills/gitnexus-plan/SKILL.md +348 -0
- package/skills/gitnexus-plan/references/context-ledger.md +137 -0
- package/skills/gitnexus-plan/references/context-pack.md +126 -0
- package/skills/gitnexus-plan/references/evidence-provenance.md +272 -0
- package/skills/gitnexus-plan/references/pdg-slice.md +109 -0
- package/skills/gitnexus-plan/references/plan-template.md +201 -0
- package/skills/gitnexus-plan/scripts/evidence-provenance.mjs +2084 -0
- package/skills/gitnexus-review/SKILL.md +273 -0
- package/skills/gitnexus-review/ci-personas/ci-adversarial-lens.md +42 -0
- package/skills/gitnexus-review/ci-personas/ci-blast-radius-lens.md +39 -0
- package/skills/gitnexus-review/ci-personas/ci-correctness-lens.md +37 -0
- package/skills/gitnexus-review/ci-personas/ci-coverage-lens.md +40 -0
- package/skills/gitnexus-review/ci-personas/ci-critic-lens.md +42 -0
- package/skills/gitnexus-review/ci-personas/ci-security-lens.md +39 -0
- package/skills/gitnexus-work/README.md +71 -0
- package/skills/gitnexus-work/SKILL.md +269 -0
- package/skills/gitnexus-work/references/evidence-provenance.md +272 -0
- package/skills/gitnexus-work/scripts/evidence-provenance.mjs +2084 -0
- package/web/assets/ProcessFlowModal-CwkpVkv-.js +22 -0
- package/web/assets/__vite-browser-external-bMKyYQkO.js +1 -0
- package/web/assets/agent-Ds-lkZjX.js +626 -0
- package/web/assets/architecture-7EHR7CIX-6QZW5X65-BVWFvYz2.js +1 -0
- package/web/assets/architectureDiagram-UL44E2DR-CmG3uPWf.js +36 -0
- package/web/assets/{blockDiagram-7IZFK4PR-BkWhpzWB.js → blockDiagram-7IZFK4PR-DBefcjof.js} +7 -7
- package/web/assets/{c4Diagram-Y2BXMSZH-DtBvpzWD.js → c4Diagram-Y2BXMSZH-EjWnjEJl.js} +6 -6
- package/web/assets/chunk-2T2R6R2M-Bb6Sy3_j.js +4 -0
- package/web/assets/chunk-2UTLFMKG-CXlhF3Pt.js +1 -0
- package/web/assets/chunk-3SSMPTDK-rPsRM1x0.js +321 -0
- package/web/assets/chunk-4R4BOZG6-Be_F0JoX.js +159 -0
- package/web/assets/{chunk-6764PJDD-DpIS7hxD.js → chunk-6764PJDD-C7xxk063.js} +1 -1
- package/web/assets/chunk-67TQ5CYL-CA7OhIEf.js +124 -0
- package/web/assets/chunk-7FYTHRHK-CsmYIswB.js +32 -0
- package/web/assets/chunk-7J6CGLKN-BlKwgXKs.js +10 -0
- package/web/assets/chunk-7W6UQGC5-pyKGssV3.js +1 -0
- package/web/assets/chunk-C62D2QBJ-3gdL8EKc.js +1 -0
- package/web/assets/chunk-CEXFNPSA-CjwtMDkc.js +1 -0
- package/web/assets/{chunk-INKRHTLW-Nu4ri9P-.js → chunk-INKRHTLW-Ckl3_KkO.js} +13 -13
- package/web/assets/chunk-J5EP6P6S-L19oz55R.js +1 -0
- package/web/assets/{chunk-KGFNY3KK-JGMJvKCK.js → chunk-KGFNY3KK-BZeP-55u.js} +17 -17
- package/web/assets/chunk-KGYTTC2M-zm6n242I.js +1 -0
- package/web/assets/{chunk-KRXBNO2N-BW5o0KUN.js → chunk-KRXBNO2N-C-UNuKKf.js} +1 -1
- package/web/assets/{chunk-LCXTWHL2-CfLLCywY.js → chunk-LCXTWHL2-C162wE5z.js} +5 -5
- package/web/assets/chunk-LII3EMHJ-BL6lKJ_P.js +1 -0
- package/web/assets/chunk-LRIF4GLE-n59lhprL.js +1 -0
- package/web/assets/chunk-QA3QBVWF-DVXPOIxe.js +2 -0
- package/web/assets/chunk-RERM46MO-B5dAdWpP.js +1 -0
- package/web/assets/chunk-RG4AUYOV-ZNgyLFq6.js +206 -0
- package/web/assets/chunk-RKZBBQEN-MyIQbGgD.js +1 -0
- package/web/assets/chunk-RLI5ZMPA-CkXZ0y0U.js +1 -0
- package/web/assets/chunk-T2UQINTJ-BEyXhZWe.js +1 -0
- package/web/assets/chunk-UP6H54XL-BG-n7qDp.js +1 -0
- package/web/assets/chunk-UXSXWOXI-CW1_r5cS.js +1 -0
- package/web/assets/chunk-UY5QBCOK-ByqTVLvh.js +1 -0
- package/web/assets/chunk-VU6ZFW4Y-BLeasdkU.js +2 -0
- package/web/assets/{chunk-W44A43WB-JqMLIpR0.js → chunk-W44A43WB-BN8EQc_u.js} +1 -1
- package/web/assets/chunk-ZXARS5L4-C3v-4Fsw.js +1 -0
- package/web/assets/classDiagram-KGZ6W3CR-olpO3fMe.js +1 -0
- package/web/assets/classDiagram-v2-72OJOZXJ-olpO3fMe.js +1 -0
- package/web/assets/cose-bilkent-UX7MHV2Q-BmnZ7Mvj.js +1 -0
- package/web/assets/dagre-ND4H6XIP-CY4iIF7v.js +4 -0
- package/web/assets/diagram-3NCE3AQN-CO6QpzEE.js +43 -0
- package/web/assets/diagram-GF46GFSD-B2atbzmU.js +24 -0
- package/web/assets/diagram-HNR7UZ2L-DVRltWbL.js +3 -0
- package/web/assets/diagram-QXG6HAR7-DR6AHD2h.js +24 -0
- package/web/assets/diagram-WEQXMOUZ-DkpoMwTL.js +10 -0
- package/web/assets/erDiagram-L5TCEMPS-n8g_90bc.js +85 -0
- package/web/assets/eventmodeling-FCH6USID-MREXMVOE-CgFBM7e-.js +1 -0
- package/web/assets/flowDiagram-H6V6AXG4-SGMDiCkB.js +162 -0
- package/web/assets/ganttDiagram-JCBTUEKG-Cb3UBqRS.js +292 -0
- package/web/assets/gitGraph-WXDBUCRP-R675I2BI-DCJv7SII.js +1 -0
- package/web/assets/gitGraphDiagram-S2ZK5IYY-Bs9CR7tq.js +106 -0
- package/web/assets/index-CX_fADmQ.css +2 -0
- package/web/assets/index-D7mTFcvQ.js +575 -0
- package/web/assets/info-J43DQDTF-KCYPFFUO-BfNy-9Nd.js +1 -0
- package/web/assets/infoDiagram-3YFTVSEB-T368on4D.js +2 -0
- package/web/assets/{ishikawaDiagram-BNXS4ZKH-DfYpxnE5.js → ishikawaDiagram-BNXS4ZKH-XpjJRU9h.js} +6 -6
- package/web/assets/journeyDiagram-M6C3CM3L-C6wjooas.js +139 -0
- package/web/assets/kanban-definition-75IXJCU3-5_UVY79g.js +89 -0
- package/web/assets/{katex-K3KEBU37-CTc5BslQ.js → katex-K3KEBU37-qRQBy-EZ.js} +2 -2
- package/web/assets/{mindmap-definition-2TDM6QVE-DypvbOMQ.js → mindmap-definition-2TDM6QVE-8xDLzk2e.js} +29 -29
- package/web/assets/node-Ct_zna8U.js +8 -0
- package/web/assets/packet-YPE3B663-LP52Z2RK-D4qkeG9k.js +1 -0
- package/web/assets/pie-LRSECV5Y-TCRJHUBD-B_yMKyQa.js +1 -0
- package/web/assets/pieDiagram-CU6KROY3-Bv4LpAbr.js +30 -0
- package/web/assets/preload-helper-Czpn1I53.js +1 -0
- package/web/assets/{quadrantDiagram-VICAPDV7-yXSZ2lLz.js → quadrantDiagram-VICAPDV7-DR54jOeR.js} +6 -6
- package/web/assets/radar-GUYGQ44K-RDLRG3WG-DeD6yN_0.js +1 -0
- package/web/assets/requirementDiagram-JXO7QTGE-PEkg7sKC.js +84 -0
- package/web/assets/rolldown-runtime-QTnfLwEv.js +1 -0
- package/web/assets/sankeyDiagram-URQDO5SZ-DDWEtjcs.js +40 -0
- package/web/assets/sdk-CzHHH8tD.js +37 -0
- package/web/assets/sequenceDiagram-VS2MUI6T-Bv-uwANx.js +162 -0
- package/web/assets/src-Cv1eWg0o.js +1 -0
- package/web/assets/stateDiagram-7D4R322I-DVNjmkEq.js +1 -0
- package/web/assets/stateDiagram-v2-36443NZ5-CyN4Fh7_.js +1 -0
- package/web/assets/timeline-definition-O6YCAMPW-Qmsuo7qS.js +120 -0
- package/web/assets/treeView-BLDUP644-QA4HXRO3-CDuSYnd4.js +1 -0
- package/web/assets/treemap-LRROVOQU-LLAWBHMP-imazucyJ.js +1 -0
- package/web/assets/vennDiagram-MWXL3ELB-BD1iK1SX.js +34 -0
- package/web/assets/wardley-L42UT6IY-5TKZOOLJ-DqrT9tB8.js +1 -0
- package/web/assets/wardleyDiagram-CUQ6CDDI-D6TzLVob.js +78 -0
- package/web/assets/{xychartDiagram-N2JHSOCM-BOLm0eNm.js → xychartDiagram-N2JHSOCM-CoZ_Tits.js} +6 -6
- package/web/index.html +18 -10
- package/skills/gitnexus-pr-review.md +0 -163
- package/web/assets/agent-Dli_x7bU.js +0 -660
- package/web/assets/architecture-7EHR7CIX-6QZW5X65-DxJw65fT.js +0 -1
- package/web/assets/architectureDiagram-UL44E2DR-dEkqUZN9.js +0 -36
- package/web/assets/chunk-3SSMPTDK-B4_etUhr.js +0 -321
- package/web/assets/chunk-67TQ5CYL-4sNPJU1q.js +0 -124
- package/web/assets/chunk-7W6UQGC5-KyEG0HQg.js +0 -1
- package/web/assets/chunk-KGYTTC2M-CWC_c3H9.js +0 -161
- package/web/assets/chunk-LII3EMHJ-D-jm-dLa.js +0 -1
- package/web/assets/chunk-QA3QBVWF-BgRW3SXd.js +0 -2
- package/web/assets/chunk-RG4AUYOV-CqWzWsV3.js +0 -206
- package/web/assets/chunk-T2UQINTJ-DSBqkzH7.js +0 -1
- package/web/assets/chunk-UY5QBCOK-DyF0vyGd.js +0 -1
- package/web/assets/chunk-ZXARS5L4-CxN8oiwI.js +0 -1
- package/web/assets/classDiagram-KGZ6W3CR-CMne4tG9.js +0 -1
- package/web/assets/classDiagram-v2-72OJOZXJ-CMne4tG9.js +0 -1
- package/web/assets/cose-bilkent-UX7MHV2Q-D71wNYRJ.js +0 -1
- package/web/assets/dagre-ND4H6XIP-Co5rRx9X.js +0 -4
- package/web/assets/diagram-3NCE3AQN-DBp4O00j.js +0 -43
- package/web/assets/diagram-GF46GFSD-6N_8yS0i.js +0 -24
- package/web/assets/diagram-HNR7UZ2L-DFCfd5LI.js +0 -3
- package/web/assets/diagram-QXG6HAR7-Di093rFg.js +0 -24
- package/web/assets/diagram-WEQXMOUZ-DZWi4SUN.js +0 -10
- package/web/assets/erDiagram-L5TCEMPS-8X1y6R4Y.js +0 -85
- package/web/assets/eventmodeling-FCH6USID-MREXMVOE-BQm9QzEa.js +0 -1
- package/web/assets/flowDiagram-H6V6AXG4-CMpY8Ufn.js +0 -162
- package/web/assets/ganttDiagram-JCBTUEKG-D3iL2Aet.js +0 -292
- package/web/assets/gitGraph-WXDBUCRP-R675I2BI-Cr_Bm2Nb.js +0 -1
- package/web/assets/gitGraphDiagram-S2ZK5IYY-CPIDgxGm.js +0 -106
- package/web/assets/index-KctnI3Vq.js +0 -635
- package/web/assets/index-_lgn7hs5.css +0 -2
- package/web/assets/info-J43DQDTF-KCYPFFUO-Cs4p2oyk.js +0 -1
- package/web/assets/infoDiagram-3YFTVSEB-BaLMZkUg.js +0 -2
- package/web/assets/journeyDiagram-M6C3CM3L-CvArszLo.js +0 -139
- package/web/assets/kanban-definition-75IXJCU3-CpfVLLf9.js +0 -89
- package/web/assets/packet-YPE3B663-LP52Z2RK-CKCrztD2.js +0 -1
- package/web/assets/pie-LRSECV5Y-TCRJHUBD-BB7pHqoD.js +0 -1
- package/web/assets/pieDiagram-CU6KROY3-s27EFWgP.js +0 -30
- package/web/assets/radar-GUYGQ44K-RDLRG3WG-DhoTOcuK.js +0 -1
- package/web/assets/requirementDiagram-JXO7QTGE-CWhqInuf.js +0 -84
- package/web/assets/sankeyDiagram-URQDO5SZ-1qEjlFIB.js +0 -40
- package/web/assets/sequenceDiagram-VS2MUI6T-RyTlZ5cR.js +0 -162
- package/web/assets/stateDiagram-7D4R322I-DTjVfX4A.js +0 -1
- package/web/assets/stateDiagram-v2-36443NZ5-xY9_k9_Q.js +0 -1
- package/web/assets/timeline-definition-O6YCAMPW-DrrqLYAf.js +0 -120
- package/web/assets/treeView-BLDUP644-QA4HXRO3-ODehyGKL.js +0 -1
- package/web/assets/treemap-LRROVOQU-LLAWBHMP-BfpgC-7o.js +0 -1
- package/web/assets/vennDiagram-MWXL3ELB-B0RkWAim.js +0 -34
- package/web/assets/wardley-L42UT6IY-5TKZOOLJ-CNeL6VHE.js +0 -1
- package/web/assets/wardleyDiagram-CUQ6CDDI-boUxiQ5F.js +0 -78
package/README.md
CHANGED
|
@@ -43,13 +43,13 @@ To configure MCP for your editor, run `npx gitnexus setup` once — or set it up
|
|
|
43
43
|
| **Claude Code** | Yes | Yes | Yes (PreToolUse + PostToolUse) | **Full** |
|
|
44
44
|
| **Cursor** | Yes | Yes | Yes (postToolUse, [manual install](../gitnexus-cursor-integration/README.md#hook-install)) | **Full** |
|
|
45
45
|
| **Antigravity** (Google) | Yes | Yes | Yes (AfterTool, [Gemini CLI hooks schema](https://geminicli.com/docs/hooks/reference/)) | **Full** |
|
|
46
|
-
| **Codex** | Yes | Yes |
|
|
46
|
+
| **Codex** | Yes | Yes | Yes (PreToolUse + PostToolUse, [Codex hooks](https://developers.openai.com/codex/hooks)) | **Full** |
|
|
47
47
|
| **OpenCode** | Yes | Yes | — | MCP + Skills |
|
|
48
48
|
| **CodeBuddy** (Tencent) | Yes | Yes | — | MCP + Skills |
|
|
49
49
|
| **Qoder** (Alibaba) | Yes | Yes | — | MCP + Skills |
|
|
50
50
|
| **Windsurf** | Yes | — | — | MCP |
|
|
51
51
|
|
|
52
|
-
> **Claude Code**
|
|
52
|
+
> **Claude Code** and **Codex** get the deepest integration: MCP tools + agent skills + PreToolUse hooks that automatically enrich grep/glob/bash calls with knowledge graph context + PostToolUse hooks that detect a stale index after commits and prompt the agent to reindex.
|
|
53
53
|
|
|
54
54
|
### Community Integrations
|
|
55
55
|
|
|
@@ -71,12 +71,23 @@ claude mcp add gitnexus -- npx -y gitnexus@latest mcp
|
|
|
71
71
|
claude mcp add gitnexus -- cmd /c npx -y gitnexus@latest mcp
|
|
72
72
|
```
|
|
73
73
|
|
|
74
|
-
### Codex (full support — MCP + skills)
|
|
74
|
+
### Codex (full support — MCP + skills + hooks)
|
|
75
75
|
|
|
76
76
|
```bash
|
|
77
77
|
codex mcp add gitnexus -- npx -y gitnexus@latest mcp
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
+
Codex hooks (PreToolUse graph enrichment + PostToolUse stale-index detection in `~/.codex/hooks.json`, [same schema as Claude Code](https://developers.openai.com/codex/hooks)) need the bundled adapter script, so they are installed by `gitnexus setup -c codex` rather than manually.
|
|
81
|
+
|
|
82
|
+
Alternatively, install everything as a [Codex plugin](https://developers.openai.com/codex/plugins/build) (MCP + skills + hooks in one step):
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
codex plugin marketplace add abhigyanpatwari/GitNexus
|
|
86
|
+
# then inside Codex: /plugins → install "GitNexus"
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
> **Codex notes:** SessionStart is intentionally not registered — Codex reads [AGENTS.md natively](https://developers.openai.com/codex/guides/agents-md), which already carries the GitNexus context block. Newly installed hooks need a one-time approval in Codex via `/hooks` before they run. Pick **one** install route (`gitnexus setup -c codex` **or** the plugin): plugin hooks load alongside `~/.codex/hooks.json`, so installing both can fire duplicate hooks per tool call.
|
|
90
|
+
|
|
80
91
|
### Cursor / Windsurf
|
|
81
92
|
|
|
82
93
|
Add to `~/.cursor/mcp.json` (global — works for all projects):
|
|
@@ -152,6 +163,16 @@ GitNexus builds a complete knowledge graph of your codebase through a multi-phas
|
|
|
152
163
|
|
|
153
164
|
The result is a **LadybugDB graph database** stored locally in `.gitnexus/` with full-text search and semantic embeddings.
|
|
154
165
|
|
|
166
|
+
### Experimental community detection engine
|
|
167
|
+
|
|
168
|
+
Community detection uses the bundled Graphology Leiden implementation by default. To test the #2337 Icebug migration path without changing default analyze behavior, set:
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
GITNEXUS_COMMUNITY_ENGINE=icebug npx gitnexus analyze
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
Supported values are `graphology`, `icebug`, and `auto`. The Icebug path is an experimental probe: GitNexus does not bundle an Icebug native package yet, and if a separately resolvable module is unavailable or its API does not match the expected `Graph.fromCSR` / `ParallelLeidenView` shape, analyze falls back to Graphology and reports the fallback in progress output. Today `auto` is behaviorally identical to `icebug`: both try Icebug and fall back to Graphology, while `graphology` skips the Icebug probe entirely.
|
|
175
|
+
|
|
155
176
|
## MCP Tools
|
|
156
177
|
|
|
157
178
|
Your AI agent gets **17 tools** (15 per-repo + 2 group) automatically:
|
|
@@ -209,9 +230,10 @@ gitnexus analyze [path] # Index a repository (or update stale index)
|
|
|
209
230
|
gitnexus analyze --repair-fts # Fast path: rebuild/verify only FTS indexes on existing index data
|
|
210
231
|
gitnexus analyze --force # Full rebuild: re-parse + graph rebuild + FTS rebuild
|
|
211
232
|
gitnexus analyze --embeddings # Enable embedding generation (slower, better search)
|
|
233
|
+
gitnexus embeddings install # Fetch the optional local embedding stack on demand (--cuda, --force)
|
|
212
234
|
gitnexus analyze --skills # Generate repo-specific skill files from detected communities
|
|
213
235
|
gitnexus analyze --skip-agents-md # Preserve custom AGENTS.md/CLAUDE.md gitnexus section edits
|
|
214
|
-
gitnexus analyze --skip-skills # Skip installing .claude/skills/gitnexus
|
|
236
|
+
gitnexus analyze --skip-skills # Skip installing standard .claude/skills/gitnexus-* skill files
|
|
215
237
|
gitnexus analyze --skip-git # Index folders that are not Git repositories
|
|
216
238
|
gitnexus analyze --workers <n> # Parse worker pool size (>=1; default: cores-1, capped at 16)
|
|
217
239
|
gitnexus analyze --verbose # Log skipped files when parsers are unavailable
|
|
@@ -227,6 +249,8 @@ gitnexus clean # Delete index for current repo
|
|
|
227
249
|
gitnexus clean --all --force # Delete all indexes
|
|
228
250
|
gitnexus wiki [path] # Generate LLM-powered docs from knowledge graph
|
|
229
251
|
gitnexus wiki --model <model> # Wiki with custom LLM model (default: minimax/minimax-m2.5)
|
|
252
|
+
gitnexus wiki --base-url http://llama-box.local:8080/v1 --allow-insecure-connection llama-box.local
|
|
253
|
+
# Allow an exact LAN/self-hosted HTTP LLM host; env: GITNEXUS_ALLOW_INSECURE_CONNECTION
|
|
230
254
|
gitnexus doctor # Show runtime platform capabilities and embedding configuration
|
|
231
255
|
|
|
232
256
|
# Direct graph queries — the same tools the MCP server exposes, no MCP daemon needed
|
|
@@ -260,11 +284,24 @@ Set these env vars to use a remote OpenAI-compatible `/v1/embeddings` endpoint i
|
|
|
260
284
|
export GITNEXUS_EMBEDDING_URL=http://your-server:8080/v1
|
|
261
285
|
export GITNEXUS_EMBEDDING_MODEL=BAAI/bge-large-en-v1.5
|
|
262
286
|
export GITNEXUS_EMBEDDING_DIMS=1024 # optional, default 384
|
|
287
|
+
export GITNEXUS_EMBEDDING_REQUEST_DIMS=omit # optional: omit "dimensions", or an integer to override it
|
|
263
288
|
export GITNEXUS_EMBEDDING_API_KEY=your-key # optional, default: "unused"
|
|
289
|
+
export GITNEXUS_EMBEDDING_MAX_ATTEMPTS=3 # optional, total attempts (1-20)
|
|
290
|
+
export GITNEXUS_EMBEDDING_RETRY_CAP_MS=5000 # optional, maximum retry delay
|
|
291
|
+
export GITNEXUS_EMBEDDING_MIN_INTERVAL_MS=0 # optional, minimum request spacing
|
|
264
292
|
gitnexus analyze . --embeddings
|
|
265
293
|
```
|
|
266
294
|
|
|
267
|
-
|
|
295
|
+
`GITNEXUS_EMBEDDING_REQUEST_DIMS` controls only the `dimensions` field sent in
|
|
296
|
+
the request body, independently of `GITNEXUS_EMBEDDING_DIMS` (which still
|
|
297
|
+
validates the returned vector's length):
|
|
298
|
+
|
|
299
|
+
- `omit` (or `none`, `off`, `false`, `0`) — do not send `dimensions` at all, for
|
|
300
|
+
strict backends that return the right vector size but reject the field.
|
|
301
|
+
- a positive integer — send that value instead of `GITNEXUS_EMBEDDING_DIMS`.
|
|
302
|
+
- unset — send `GITNEXUS_EMBEDDING_DIMS` (the previous behavior).
|
|
303
|
+
|
|
304
|
+
Works with Infinity, vLLM, TEI, llama.cpp, Ollama, LM Studio, or OpenAI. Retry and pacing settings are provider-neutral; provider-specific limits should be supplied through configuration. When unset, local embeddings are used unchanged.
|
|
268
305
|
|
|
269
306
|
## Multi-Repo Support
|
|
270
307
|
|
|
@@ -305,8 +342,11 @@ GitNexus ships with skill files that teach AI agents how to use the tools effect
|
|
|
305
342
|
- **Refactoring** — Plan safe refactors using dependency mapping
|
|
306
343
|
- **Guide** — GitNexus tool/resource/schema reference for the agent
|
|
307
344
|
- **CLI** — Run analyze/status/clean/wiki commands on request
|
|
345
|
+
- **PDG Query** — Statement-level control/data dependence queries (`--pdg` index)
|
|
346
|
+
- **Taint Analysis** — Source→sink data-flow findings (`--pdg` index)
|
|
347
|
+
- **Plan / Work / Review / LFG** — The engineering family: implementation-ready plans, gated plan execution, graph-backed change review with taint + expert lenses, and the end-to-end pipeline
|
|
308
348
|
|
|
309
|
-
Installed automatically by both `gitnexus analyze` (per-repo) and `gitnexus setup` (global). Run `gitnexus analyze --skills` to additionally generate
|
|
349
|
+
Installed automatically by both `gitnexus analyze` (per-repo) and `gitnexus setup` (global). Run `gitnexus analyze --skills` to additionally generate each detected functional area as a direct project skill under `.claude/skills/gitnexus-area-<name>/`.
|
|
310
350
|
|
|
311
351
|
## Requirements
|
|
312
352
|
|
|
@@ -409,19 +449,43 @@ If `npm install -g gitnexus` fails on native modules:
|
|
|
409
449
|
npm install -g gitnexus
|
|
410
450
|
```
|
|
411
451
|
|
|
452
|
+
### Installation fails behind an HTTP proxy (`onnxruntime-node` postinstall)
|
|
453
|
+
|
|
454
|
+
`onnxruntime-node`'s postinstall downloads optional CUDA GPU binaries from `api.nuget.org` — outside the npm registry, so registry mirrors don't cover it, and its proxy layer (`global-agent`) ignores the standard `HTTP_PROXY`/`HTTPS_PROXY` variables and rejects 302 redirects ([#2370](https://github.com/abhigyanpatwari/GitNexus/issues/2370)).
|
|
455
|
+
|
|
456
|
+
Since the packages are optional dependencies, a failed download no longer breaks `npm install -g gitnexus` — npm skips the embedding stack and everything else works. The stack then **self-heals on demand**: the first `gitnexus analyze --embeddings` (or an explicit `gitnexus embeddings install`) fetches it through your configured npm registry — mirrors and proxies apply, no NuGet download involved — into `~/.gitnexus/embedding-runtime`.
|
|
457
|
+
|
|
458
|
+
```bash
|
|
459
|
+
# heal a proxy-degraded install manually (CPU embeddings; registry-only)
|
|
460
|
+
gitnexus embeddings install
|
|
461
|
+
|
|
462
|
+
# reinstall into the prefix even when the stack already resolves
|
|
463
|
+
gitnexus embeddings install --force
|
|
464
|
+
|
|
465
|
+
# CUDA GPU hosts: also fetch GPU binaries (NuGet; set the proxy global-agent reads)
|
|
466
|
+
GLOBAL_AGENT_HTTPS_PROXY=<proxy-url> gitnexus embeddings install --cuda
|
|
467
|
+
```
|
|
468
|
+
|
|
469
|
+
The prefix defaults to `~/.gitnexus/embedding-runtime`; set `GITNEXUS_EMBEDDING_RUNTIME_DIR` to install it elsewhere (e.g. a writable path in a container).
|
|
470
|
+
|
|
471
|
+
> **Node requirement for the on-demand prefix:** the self-heal loads the prefixed packages via `module.registerHooks`, available on Node **≥ 22.15** (on the 22.x line) or **≥ 23.5** (on the 23.x line). On an older Node the packages install but can't be loaded from the prefix — reinstall them into the install itself instead (works on every supported Node): `ONNXRUNTIME_NODE_INSTALL=skip npm install -g gitnexus` (Windows: `set ONNXRUNTIME_NODE_INSTALL=skip && npm install -g gitnexus`). Skipping only the CUDA download keeps full CPU embeddings (CPU embeddings don't need it). Check the result any time with `gitnexus doctor` (Embeddings → Support line).
|
|
472
|
+
|
|
412
473
|
### Analyze warns about unavailable FTS or VECTOR extensions
|
|
413
474
|
|
|
414
|
-
GitNexus uses optional DuckDB extensions for BM25 and vector search. The `gitnexus serve` and MCP read paths only ever try to `LOAD` the extensions — they never block on a network install. The `analyze` command, by default, attempts one bounded out-of-process `INSTALL`
|
|
475
|
+
GitNexus uses optional DuckDB extensions for BM25 and vector search. The `gitnexus serve` and MCP read paths only ever try to `LOAD` the extensions — they never block on a network install. The `analyze` command, by default, attempts one bounded out-of-process install if `LOAD` fails (a plain `INSTALL` to download a missing extension, escalating to `FORCE INSTALL` only when the `LOAD` error shows the existing file is broken or truncated, so a permanent non-file failure does not re-download on every run) and proceeds even when that install times out, so the index is always written to disk; BM25/vector search degrade gracefully until the extensions become available.
|
|
415
476
|
|
|
416
477
|
Configure the behavior with these environment variables:
|
|
417
478
|
|
|
418
|
-
| Variable | Values
|
|
419
|
-
| -------------------------------------------- |
|
|
420
|
-
| `GITNEXUS_LBUG_EXTENSION_INSTALL` | `auto`, `load-only`, `never`
|
|
421
|
-
| `GITNEXUS_LBUG_EXTENSION_INSTALL_TIMEOUT_MS` | positive integer
|
|
422
|
-
| `GITNEXUS_FTS_STEMMER` | supported LadybugDB stemmer
|
|
423
|
-
| `GITNEXUS_FTS_CJK_SEGMENTATION` | `none`, `bigram`
|
|
424
|
-
| `
|
|
479
|
+
| Variable | Values | Default | Effect |
|
|
480
|
+
| -------------------------------------------- | ------------------------------ | ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
481
|
+
| `GITNEXUS_LBUG_EXTENSION_INSTALL` | `auto`, `load-only`, `never` | `auto` | `auto` runs one bounded install if LOAD fails — a plain `INSTALL`, escalating to `FORCE INSTALL` only when the LOAD error shows the present extension file is broken. `load-only` only uses already-installed extensions (recommended for offline / firewalled environments). `never` skips optional extensions entirely. |
|
|
482
|
+
| `GITNEXUS_LBUG_EXTENSION_INSTALL_TIMEOUT_MS` | positive integer | `15000` | Wall-clock budget for the out-of-process extension-install child before it is killed. |
|
|
483
|
+
| `GITNEXUS_FTS_STEMMER` | supported LadybugDB stemmer | `porter` | Stemmer used when rebuilding BM25/FTS indexes. Use `none` for CJK-heavy repositories, or a language stemmer such as `german`, `french`, or `spanish` when that better matches repository comments and identifiers. Re-run `gitnexus analyze --repair-fts` after changing it. |
|
|
484
|
+
| `GITNEXUS_FTS_CJK_SEGMENTATION` | `none`, `bigram` | `none` | `bigram` inserts overlapping character-bigram boundaries into Chinese/Japanese Han-ideograph spans in `content`/`description` before FTS indexing, so LadybugDB's space-only tokenizer can see sub-phrase word boundaries. Scoped to CJK Unified Ideographs only — Japanese Hiragana/Katakana and Korean Hangul are not currently segmented. Unlike `GITNEXUS_FTS_STEMMER`, this rewrites stored text — enabling it on an already-indexed repo requires a full `gitnexus analyze --force`; neither `--repair-fts` nor a plain incremental `analyze` applies it to previously-indexed files. Set the same value wherever `analyze` and search-serving processes (CLI query, MCP server, web server) run. |
|
|
485
|
+
| `GITNEXUS_COMMUNITY_ENGINE` | `graphology`, `icebug`, `auto` | `graphology` | Community-detection engine used during analyze. `graphology` uses the bundled default path. `icebug` and `auto` currently behave identically: both try the experimental Icebug CSR path and fall back to Graphology if the optional native module is unavailable or incompatible. |
|
|
486
|
+
| `GITNEXUS_WAL_CHECKPOINT_THRESHOLD` | integer `>= -1` | `67108864` (64 MiB) | LadybugDB WAL auto-checkpoint threshold during analyze (bytes). Auto-checkpoint remains enabled; `-1` keeps Ladybug's stock ~16 MiB. Larger thresholds reduce checkpoint frequency but increase the WAL size at rotation time — choose a smaller value on disk-constrained environments. |
|
|
487
|
+
| `GITNEXUS_LBUG_BUFFER_POOL_SIZE` | integer `>= 0` (bytes) | min(2 GiB, 80% RAM) | LadybugDB buffer-pool ceiling for every GitNexus database (analyze, MCP server, serve, group bridges). Bounded so a long-lived `gitnexus mcp` process or a large incremental `analyze` cannot grow toward LadybugDB's native 80%-of-RAM default and OOM the host (#2557). `0` restores that native unbounded default; invalid values warn and fall back to the default. During `analyze` the pool is right-sized to the graph and, on non-4 KiB-page hosts (Apple Silicon 16 KiB, Ascend/aarch64 64 KiB), scaled by the page-size granule ratio up to min(2 GiB × pageSize/4 KiB, 80% RAM) (#2631); this env var overrides all of that as an absolute value. |
|
|
488
|
+
| `GITNEXUS_LBUG_MAX_DB_SIZE` | positive integer (bytes) | `17179869184` (16 GiB) | Upper bound for a single LadybugDB database file. This is an mmap/disk-address-space ceiling, not a memory limit — it does not constrain the buffer pool (use `GITNEXUS_LBUG_BUFFER_POOL_SIZE` for that). Raise it when indexing genuinely huge monorepos; invalid values silently fall back to the default. |
|
|
425
489
|
|
|
426
490
|
```bash
|
|
427
491
|
# Offline/airgapped: never reach the network for extensions
|
|
@@ -447,9 +511,19 @@ For very large repositories:
|
|
|
447
511
|
# Increase Node.js heap size
|
|
448
512
|
NODE_OPTIONS="--max-old-space-size=16384" npx gitnexus analyze
|
|
449
513
|
|
|
450
|
-
# Exclude large directories
|
|
514
|
+
# Exclude large directories (this repo only)
|
|
451
515
|
echo "vendor/" >> .gitnexusignore
|
|
452
516
|
echo "dist/" >> .gitnexusignore
|
|
517
|
+
|
|
518
|
+
# Exclude a directory across every repo you index, without touching each
|
|
519
|
+
# repo's own .gitnexusignore or needing push/commit access to it. GitNexus
|
|
520
|
+
# reads the same sources `git` itself does: core.excludesFile (all repos)
|
|
521
|
+
# and $GIT_DIR/info/exclude (this repo only, untracked). A repo's own
|
|
522
|
+
# .gitignore/.gitnexusignore can still override either with a `!pattern`
|
|
523
|
+
# negation. Skip both entirely with GITNEXUS_NO_GLOBAL_IGNORE=1.
|
|
524
|
+
git config --global core.excludesFile ~/.gitignore_global # applies to every repo
|
|
525
|
+
echo "docs/" >> ~/.gitignore_global
|
|
526
|
+
echo "build/" >> .git/info/exclude # this repo only, untracked
|
|
453
527
|
```
|
|
454
528
|
|
|
455
529
|
### Large files are being skipped
|
|
@@ -484,13 +558,16 @@ For repositories with very large source files, `GITNEXUS_WORKER_SUB_BATCH_MAX_BY
|
|
|
484
558
|
|
|
485
559
|
### Worker pool resilience tuning
|
|
486
560
|
|
|
487
|
-
|
|
561
|
+
Four env vars expose the pool's resilience layers (respawn budget, cumulative-timeout cap, circuit breaker, startup handshake). Defaults are tuned for typical repos; bump them when an analyze legitimately needs more retries, or lower them to fail-fast on a known-bad shape.
|
|
488
562
|
|
|
489
|
-
| Variable | Default | Effect
|
|
490
|
-
| ----------------------------------------------- | ----------------------- |
|
|
491
|
-
| `GITNEXUS_WORKER_MAX_RESPAWNS_PER_SLOT` | `3` | Max replacement spawns per slot before the slot is dropped from the active rotation.
|
|
492
|
-
| `GITNEXUS_WORKER_MAX_CUMULATIVE_TIMEOUT_MS` | `5 × subBatchTimeoutMs` | Total retry wall-time budget per job before quarantining. Bounds exponentially-growing retry waits.
|
|
493
|
-
| `GITNEXUS_WORKER_CONSECUTIVE_FAILURE_THRESHOLD` | `max(3, poolSize)` | Per-slot consecutive deaths before the pool's circuit breaker trips. After tripping, dispatches require a fresh pool.
|
|
563
|
+
| Variable | Default | Effect |
|
|
564
|
+
| ----------------------------------------------- | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
565
|
+
| `GITNEXUS_WORKER_MAX_RESPAWNS_PER_SLOT` | `3` | Max replacement spawns per slot before the slot is dropped from the active rotation. |
|
|
566
|
+
| `GITNEXUS_WORKER_MAX_CUMULATIVE_TIMEOUT_MS` | `5 × subBatchTimeoutMs` | Total retry wall-time budget per job before quarantining. Bounds exponentially-growing retry waits. |
|
|
567
|
+
| `GITNEXUS_WORKER_CONSECUTIVE_FAILURE_THRESHOLD` | `max(3, poolSize)` | Per-slot consecutive deaths before the pool's circuit breaker trips. After tripping, dispatches require a fresh pool. |
|
|
568
|
+
| `GITNEXUS_WORKER_SHUTDOWN_DRAIN_MS` | `30000` | Max wait at pool shutdown for a retired worker still inside native code — terminated at its next JS-safe point instead of mid-native-call, which would abort the process (`Napi::Error`, #2432). |
|
|
569
|
+
| `GITNEXUS_WORKER_READY_TIMEOUT_MS` | `5000` | Startup budget for a parse worker to load its grammar bindings and report `{type:'ready'}`. Slots that miss it are treated as startup crashes. Raise it on a slow or heavily loaded host where a full pool cold-starting concurrently needs more than 5s. |
|
|
570
|
+
| `GITNEXUS_CPP_CAPTURE_BUDGET_MS` | `20000` | Per-file wall-clock budget for C++ capture extraction; on breach the file keeps partial captures with a warning (#2432). `0` expires immediately. |
|
|
494
571
|
|
|
495
572
|
### Graph cleanup tuning
|
|
496
573
|
|
|
@@ -502,17 +579,26 @@ After scope resolution, analyze prunes inert block-local value symbols (a functi
|
|
|
502
579
|
|
|
503
580
|
Programmatic callers can pass `keepLocalValueSymbols: true` in `PipelineOptions` instead of setting the env var.
|
|
504
581
|
|
|
505
|
-
### Hook augmentation
|
|
582
|
+
### Hook augmentation and skip diagnostics
|
|
506
583
|
|
|
507
|
-
The Claude Code / Antigravity hooks
|
|
584
|
+
The Claude Code / Antigravity hooks keep their **stderr** silent on normal skip
|
|
508
585
|
paths so strict hook runners (e.g. Codex `PreToolUse`) never see unexpected
|
|
509
|
-
output.
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
586
|
+
diagnostic output.
|
|
587
|
+
|
|
588
|
+
When a GitNexus process holds the repo DB write lock (the common case — the MCP
|
|
589
|
+
server is running, or the DB-lock probe timed out and failed closed), the local
|
|
590
|
+
CLI `augment` can't run (LadybugDB is single-writer). Rather than drop the
|
|
591
|
+
augmentation, the hook hands the agent a short, conditional MCP-query hint on
|
|
592
|
+
stdout (the sanctioned `additionalContext` channel) — _"if the GitNexus MCP tools
|
|
593
|
+
are live in this session, call `query` …"_ — so an agent that has the tools can
|
|
594
|
+
still fetch graph-ranked context. The hint is throttled to at most once per repo
|
|
595
|
+
per window (`GITNEXUS_MCP_HINT_THROTTLE_MS`, default 10 min; `0` disables), so an
|
|
596
|
+
owner-locked session isn't nudged on every search. A stale-index reminder, or an
|
|
597
|
+
already-current index, stays silent.
|
|
598
|
+
|
|
599
|
+
To see why a hook skipped the CLI augment, set `GITNEXUS_DEBUG=1` and re-run the
|
|
600
|
+
action — the hook writes the reason (e.g. `[GitNexus] augment skipped: MCP server
|
|
601
|
+
owns DB`) and the stale-index hint to its stderr:
|
|
516
602
|
|
|
517
603
|
```bash
|
|
518
604
|
GITNEXUS_DEBUG=1 <your command> # surfaces hook skip/diagnostic reasons on stderr
|
|
@@ -55,14 +55,14 @@ export type NodeProperties = {
|
|
|
55
55
|
[key: string]: unknown;
|
|
56
56
|
};
|
|
57
57
|
export type RelationshipType = 'CONTAINS' | 'CALLS' | 'INHERITS' | 'METHOD_OVERRIDES' | 'METHOD_IMPLEMENTS' | 'IMPORTS' | 'USES' | 'DEFINES' | 'DECORATES' | 'IMPLEMENTS' | 'EXTENDS' | 'HAS_METHOD' | 'HAS_PROPERTY' | 'ACCESSES' | 'MEMBER_OF' | 'STEP_IN_PROCESS' | 'HANDLES_ROUTE' | 'FETCHES' | 'HANDLES_TOOL' | 'ENTRY_POINT_OF' | 'WRAPS' | 'QUERIES'
|
|
58
|
-
/** Dependency-injection edge: a consumer class receives
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
* Source = the consumer Class node (the one owning the
|
|
65
|
-
* Target =
|
|
58
|
+
/** Dependency-injection edge: a consumer class receives a likely provider
|
|
59
|
+
* through constructor, field, method, or collection injection. A
|
|
60
|
+
* per-language resolver identifies the site and provider metadata; the
|
|
61
|
+
* shared DI phase uses type heritage, qualifier names, and preferred
|
|
62
|
+
* provider markers to resolve it. Ambiguous single injection is represented
|
|
63
|
+
* by multiple lower-confidence edges instead of a fabricated exact target.
|
|
64
|
+
* Source = the consumer Class node (the one owning the injection site).
|
|
65
|
+
* Target = a concrete provider Class node.
|
|
66
66
|
* Framework specifics live in the `reason` payload (e.g.
|
|
67
67
|
* `Spring DI: @Autowired List<T>`), not in this type contract.
|
|
68
68
|
* Lets Cypher queries trace which beans the container injects into a given
|
package/dist/_shared/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export { resolveTypeRef } from './scope-resolution/resolve-type-ref.js';
|
|
|
22
22
|
export type { ResolveTypeRefContext } from './scope-resolution/resolve-type-ref.js';
|
|
23
23
|
export type { ParsedFile } from './scope-resolution/parsed-file.js';
|
|
24
24
|
export type { ReferenceSite, ReferenceKind, CallForm } from './scope-resolution/reference-site.js';
|
|
25
|
+
export type { CallableFlowOperand, CallableFlowExpectedSignature, CallableFlowPassingMode, CallableFlowInvocationKind, CallableFlowSeedSite, CallableFlowCopySite, CallableFlowAliasSite, CallableFlowAddressSite, CallableFlowStoreSite, CallableFlowLoadSite, CallableFlowFormalSite, CallableFlowArgumentSite, CallableFlowInvokeSite, CallableFlowSite, } from './scope-resolution/callable-flow-site.js';
|
|
25
26
|
export { buildMethodDispatchIndex } from './scope-resolution/method-dispatch-index.js';
|
|
26
27
|
export type { MethodDispatchIndex, MethodDispatchInput, } from './scope-resolution/method-dispatch-index.js';
|
|
27
28
|
export { finalize } from './scope-resolution/finalize-algorithm.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,SAAS,EACT,iBAAiB,GAClB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,WAAW,EACX,cAAc,EACd,SAAS,EACT,oBAAoB,GACrB,MAAM,4BAA4B,CAAC;AACpC,YAAY,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAGzE,OAAO,EAAE,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6BAA6B,EAC7B,4BAA4B,EAC5B,sBAAsB,EACtB,gBAAgB,EAChB,wBAAwB,EACxB,cAAc,GACf,MAAM,sCAAsC,CAAC"}
|
|
@@ -25,6 +25,8 @@ export interface ResilientFetchOptions {
|
|
|
25
25
|
breakerOptions?: CircuitBreakerOptions;
|
|
26
26
|
/** Tuning knobs for the retry helper. */
|
|
27
27
|
retry?: Partial<Pick<RetryOptions, 'maxAttempts' | 'baseDelayMs' | 'capDelayMs'>> & {
|
|
28
|
+
/** Upper bound on a single Retry-After wait. Defaults to RETRY_AFTER_CAP_MS. */
|
|
29
|
+
retryAfterCapMs?: number;
|
|
28
30
|
sleep?: RetryOptions['sleep'];
|
|
29
31
|
random?: RetryOptions['random'];
|
|
30
32
|
};
|
|
@@ -64,7 +66,7 @@ export declare function classifyOutcome(result: {
|
|
|
64
66
|
} | {
|
|
65
67
|
kind: 'response';
|
|
66
68
|
resp: Response;
|
|
67
|
-
}, now: () => number): Outcome;
|
|
69
|
+
}, now: () => number, retryAfterCapMs?: number): Outcome;
|
|
68
70
|
/** Final error thrown when retries are exhausted on a 5xx / 429. */
|
|
69
71
|
export declare class ResilientFetchExhaustedError extends Error {
|
|
70
72
|
readonly response: Response;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resilient-fetch.d.ts","sourceRoot":"","sources":["../../src/integrations/resilient-fetch.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EACL,cAAc,EACd,gBAAgB,EAEhB,KAAK,qBAAqB,EAC3B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAoB,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAEjE,OAAO,EAAE,gBAAgB,EAAE,CAAC;AAE5B,MAAM,WAAW,qBAAqB;IACpC,8EAA8E;IAC9E,SAAS,CAAC,EAAE,OAAO,KAAK,CAAC;IACzB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2EAA2E;IAC3E,OA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E,iBAAiB,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,GAC3C;IAAE,IAAI,EAAE,kBAAkB,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,GACzE;IAAE,IAAI,EAAE,kBAAkB,CAAC;IAAC,GAAG,EAAE,OAAO,CAAA;CAAE,GAC1C;IAAE,IAAI,EAAE,mBAAmB,CAAC;IAAC,GAAG,EAAE,OAAO,CAAA;CAAE,CAAC;AAEhD,+BAA+B;AAC/B,wBAAgB,eAAe,CAC7B,MAAM,EAAE;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,GAAG,EAAE,OAAO,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAE,EAC9E,GAAG,EAAE,MAAM,MAAM,EACjB,eAAe,SAAqB,GACnC,OAAO,CAiCT;AAcD,oEAAoE;AACpE,qBAAa,4BAA6B,SAAQ,KAAK;aAEzB,QAAQ,EAAE,QAAQ;IAD9C,SAAkB,IAAI,kCAAkC;gBAC5B,QAAQ,EAAE,QAAQ;CAG/C;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,cAAc,CAClC,KAAK,EAAE,MAAM,GAAG,GAAG,EACnB,IAAI,EAAE,WAAW,GAAG,SAAS,EAC7B,IAAI,GAAE,qBAA0B,GAC/B,OAAO,CAAC,QAAQ,CAAC,CA+GnB"}
|
|
@@ -41,7 +41,7 @@ export function parseRetryAfter(value, now = Date.now) {
|
|
|
41
41
|
return delta >= 0 ? delta : 0;
|
|
42
42
|
}
|
|
43
43
|
/** Exported for unit tests. */
|
|
44
|
-
export function classifyOutcome(result, now) {
|
|
44
|
+
export function classifyOutcome(result, now, retryAfterCapMs = RETRY_AFTER_CAP_MS) {
|
|
45
45
|
if (result.kind === 'error') {
|
|
46
46
|
// Both timer-fired aborts (`AbortSignal.timeout()` → `TimeoutError`)
|
|
47
47
|
// and caller-driven aborts (`AbortController.abort()` → `AbortError`)
|
|
@@ -67,7 +67,7 @@ export function classifyOutcome(result, now) {
|
|
|
67
67
|
return {
|
|
68
68
|
kind: 'retryable-status',
|
|
69
69
|
resp,
|
|
70
|
-
afterMs: parsed !== null ? Math.min(parsed,
|
|
70
|
+
afterMs: parsed !== null ? Math.min(parsed, retryAfterCapMs) : undefined,
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
if (resp.status >= 500)
|
|
@@ -125,6 +125,7 @@ export async function resilientFetch(input, init, opts = {}) {
|
|
|
125
125
|
maxAttempts: opts.retry?.maxAttempts ?? DEFAULT_RETRY.maxAttempts,
|
|
126
126
|
baseDelayMs: opts.retry?.baseDelayMs ?? DEFAULT_RETRY.baseDelayMs,
|
|
127
127
|
capDelayMs: opts.retry?.capDelayMs ?? DEFAULT_RETRY.capDelayMs,
|
|
128
|
+
retryAfterCapMs: opts.retry?.retryAfterCapMs ?? RETRY_AFTER_CAP_MS,
|
|
128
129
|
};
|
|
129
130
|
const sleep = opts.retry?.sleep ?? defaultSleep;
|
|
130
131
|
const random = opts.retry?.random ?? Math.random;
|
|
@@ -149,7 +150,7 @@ export async function resilientFetch(input, init, opts = {}) {
|
|
|
149
150
|
catch (err) {
|
|
150
151
|
result = { kind: 'error', err };
|
|
151
152
|
}
|
|
152
|
-
const outcome = classifyOutcome(result, now);
|
|
153
|
+
const outcome = classifyOutcome(result, now, retryConfig.retryAfterCapMs);
|
|
153
154
|
switch (outcome.kind) {
|
|
154
155
|
case 'success':
|
|
155
156
|
breaker.recordSuccess();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resilient-fetch.js","sourceRoot":"","sources":["../../src/integrations/resilient-fetch.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAEL,gBAAgB,EAChB,UAAU,GAEX,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAqB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M,OAAO,CAAC,GAAG,CAAC;gBACpB,CAAC;gBACD,MAAM,KAAK,CACT,gBAAgB,CACd,OAAO,EACP,WAAW,CAAC,WAAW,EACvB,WAAW,CAAC,UAAU,EACtB,SAAS,EACT,MAAM,CACP,CACF,CAAC;gBACF,MAAM;YAER,OAAO,CAAC,CAAC,CAAC;gBACR,8DAA8D;gBAC9D,6DAA6D;gBAC7D,yDAAyD;gBACzD,iEAAiE;gBACjE,MAAM,WAAW,GAAU,OAAO,CAAC;gBACnC,MAAM,IAAI,KAAK,CAAC,qCAAqC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;YACtF,CAAC;QACH,CAAC;IACH,CAAC;IAED,mEAAmE;IACnE,sEAAsE;IACtE,sEAAsE;IACtE,8EAA8E;IAC9E,sBAAsB;IACtB,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;AACxE,CAAC"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Always-on callable-value-flow facts produced during scope extraction.
|
|
3
|
+
*
|
|
4
|
+
* These records deliberately contain no parser nodes or provider-private
|
|
5
|
+
* objects: they cross the worker, disk-cache, and ParsedFile-store boundaries.
|
|
6
|
+
* Language providers recognize syntax and emit `@callable-flow.*` captures;
|
|
7
|
+
* the central extractor attaches lexical scope ids and materializes this
|
|
8
|
+
* language-neutral representation.
|
|
9
|
+
*/
|
|
10
|
+
import type { ParameterTypeClass } from './symbol-definition.js';
|
|
11
|
+
import type { Range, ScopeId } from './types.js';
|
|
12
|
+
/** A lexical binding or abstract indirection cell used by a flow fact. */
|
|
13
|
+
export interface CallableFlowOperand {
|
|
14
|
+
/** Provider-normalized lexical binding name. */
|
|
15
|
+
readonly name: string;
|
|
16
|
+
readonly inScope: ScopeId;
|
|
17
|
+
readonly atRange: Range;
|
|
18
|
+
/** Number of dereference operators applied at this occurrence. */
|
|
19
|
+
readonly indirection: number;
|
|
20
|
+
/** Whether this occurrence explicitly takes the binding's address. */
|
|
21
|
+
readonly addressOf: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Provider-normalized expression role. `binding` is the conservative
|
|
24
|
+
* default; the other variants prove the occurrence denotes a callable
|
|
25
|
+
* designator rather than a value produced by an expression.
|
|
26
|
+
*/
|
|
27
|
+
readonly expressionKind?: 'binding' | 'callable-designator' | 'bound-member' | 'anonymous-callable';
|
|
28
|
+
/** Qualified spelling retained for receiver/member-aware lookup. */
|
|
29
|
+
readonly qualifiedName?: string;
|
|
30
|
+
}
|
|
31
|
+
/** Callable shape used to disambiguate overload sets when syntax supplies it. */
|
|
32
|
+
export interface CallableFlowExpectedSignature {
|
|
33
|
+
readonly parameterCount?: number;
|
|
34
|
+
readonly parameterTypes?: readonly string[];
|
|
35
|
+
readonly parameterTypeClasses?: readonly ParameterTypeClass[];
|
|
36
|
+
/** C++ member-function cv qualifier when the declarator supplies it. */
|
|
37
|
+
readonly isConst?: boolean;
|
|
38
|
+
}
|
|
39
|
+
export type CallableFlowPassingMode = 'value' | 'reference' | 'pointer';
|
|
40
|
+
export interface CallableFlowSeedSite {
|
|
41
|
+
readonly kind: 'seed';
|
|
42
|
+
readonly destination: CallableFlowOperand;
|
|
43
|
+
/** Simple callable name used for lexical lookup. */
|
|
44
|
+
readonly targetName: string;
|
|
45
|
+
/** Optional provider-normalized qualified spelling (for example `Base.method`). */
|
|
46
|
+
readonly targetQualifiedName?: string;
|
|
47
|
+
readonly targetRange: Range;
|
|
48
|
+
readonly expectedSignature?: CallableFlowExpectedSignature;
|
|
49
|
+
}
|
|
50
|
+
export interface CallableFlowCopySite {
|
|
51
|
+
readonly kind: 'copy';
|
|
52
|
+
readonly source: CallableFlowOperand;
|
|
53
|
+
readonly destination: CallableFlowOperand;
|
|
54
|
+
}
|
|
55
|
+
/** True identity (for example a C++ reference), modelled bidirectionally. */
|
|
56
|
+
export interface CallableFlowAliasSite {
|
|
57
|
+
readonly kind: 'alias';
|
|
58
|
+
readonly source: CallableFlowOperand;
|
|
59
|
+
readonly destination: CallableFlowOperand;
|
|
60
|
+
}
|
|
61
|
+
/** `destination` receives the abstract address of `source`. */
|
|
62
|
+
export interface CallableFlowAddressSite {
|
|
63
|
+
readonly kind: 'address';
|
|
64
|
+
readonly source: CallableFlowOperand;
|
|
65
|
+
readonly destination: CallableFlowOperand;
|
|
66
|
+
}
|
|
67
|
+
/** Targets in `source` flow into every abstract cell reached by `pointer`. */
|
|
68
|
+
export interface CallableFlowStoreSite {
|
|
69
|
+
readonly kind: 'store';
|
|
70
|
+
readonly source: CallableFlowOperand;
|
|
71
|
+
readonly pointer: CallableFlowOperand;
|
|
72
|
+
}
|
|
73
|
+
/** Targets in every abstract cell reached by `pointer` flow into `destination`. */
|
|
74
|
+
export interface CallableFlowLoadSite {
|
|
75
|
+
readonly kind: 'load';
|
|
76
|
+
readonly pointer: CallableFlowOperand;
|
|
77
|
+
readonly destination: CallableFlowOperand;
|
|
78
|
+
}
|
|
79
|
+
/** Maps a callable definition's parameter position to its lexical binding. */
|
|
80
|
+
export interface CallableFlowFormalSite {
|
|
81
|
+
readonly kind: 'formal';
|
|
82
|
+
readonly ownerName: string;
|
|
83
|
+
readonly ownerRange: Range;
|
|
84
|
+
readonly parameterIndex: number;
|
|
85
|
+
readonly binding: CallableFlowOperand;
|
|
86
|
+
readonly passingMode: CallableFlowPassingMode;
|
|
87
|
+
readonly expectedSignature?: CallableFlowExpectedSignature;
|
|
88
|
+
}
|
|
89
|
+
/** Maps one real call-site argument position to its source operand. */
|
|
90
|
+
export interface CallableFlowArgumentSite {
|
|
91
|
+
readonly kind: 'argument';
|
|
92
|
+
readonly callSite: Range;
|
|
93
|
+
readonly parameterIndex: number;
|
|
94
|
+
readonly source: CallableFlowOperand;
|
|
95
|
+
/** Direct callee spelling used when an earlier resolver already emitted the edge. */
|
|
96
|
+
readonly directCalleeName?: string;
|
|
97
|
+
}
|
|
98
|
+
export type CallableFlowInvocationKind = 'indirect' | 'member-pointer' | 'callable-object';
|
|
99
|
+
/** A syntactically indirect invocation owned by callable-value-flow. */
|
|
100
|
+
export interface CallableFlowInvokeSite {
|
|
101
|
+
readonly kind: 'invoke';
|
|
102
|
+
readonly callSite: Range;
|
|
103
|
+
readonly inScope: ScopeId;
|
|
104
|
+
readonly callee: CallableFlowOperand;
|
|
105
|
+
readonly receiver?: CallableFlowOperand;
|
|
106
|
+
readonly invocationKind: CallableFlowInvocationKind;
|
|
107
|
+
readonly arity?: number;
|
|
108
|
+
}
|
|
109
|
+
export type CallableFlowSite = CallableFlowSeedSite | CallableFlowCopySite | CallableFlowAliasSite | CallableFlowAddressSite | CallableFlowStoreSite | CallableFlowLoadSite | CallableFlowFormalSite | CallableFlowArgumentSite | CallableFlowInvokeSite;
|
|
110
|
+
//# sourceMappingURL=callable-flow-site.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callable-flow-site.d.ts","sourceRoot":"","sources":["../../src/scope-resolution/callable-flow-site.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAEjD,0EAA0E;AAC1E,MAAM,WAAW,mBAAmB;IAClC,gDAAgD;IAChD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,KAAK,CAAC;IACxB,kEAAkE;IAClE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,sEAAsE;IACtE,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,cAAc,CAAC,EACpB,SAAS,GACT,qBAAqB,GACrB,cAAc,GACd,oBAAoB,CAAC;IACzB,oEAAoE;IACpE,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,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AAE,KAAK,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAC;IACrC,QAAQ,CAAC,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IACxC,QAAQ,CAAC,cAAc,EAAE,0BAA0B,CAAC;IACpD,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,MAAM,gBAAgB,GACxB,oBAAoB,GACpB,oBAAoB,GACpB,qBAAqB,GACrB,uBAAuB,GACvB,qBAAqB,GACrB,oBAAoB,GACpB,sBAAsB,GACtB,wBAAwB,GACxB,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Always-on callable-value-flow facts produced during scope extraction.
|
|
3
|
+
*
|
|
4
|
+
* These records deliberately contain no parser nodes or provider-private
|
|
5
|
+
* objects: they cross the worker, disk-cache, and ParsedFile-store boundaries.
|
|
6
|
+
* Language providers recognize syntax and emit `@callable-flow.*` captures;
|
|
7
|
+
* the central extractor attaches lexical scope ids and materializes this
|
|
8
|
+
* language-neutral representation.
|
|
9
|
+
*/
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=callable-flow-site.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"callable-flow-site.js","sourceRoot":"","sources":["../../src/scope-resolution/callable-flow-site.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG"}
|
|
@@ -83,7 +83,7 @@ export interface FinalizeHooks {
|
|
|
83
83
|
* Return `null` when no target file is resolvable (e.g., `np.foo` when
|
|
84
84
|
* `numpy` is external to the workspace).
|
|
85
85
|
*/
|
|
86
|
-
resolveImportTarget(targetRaw: string, fromFile: string, workspaceIndex: WorkspaceIndex): string | readonly string[] | null;
|
|
86
|
+
resolveImportTarget(targetRaw: string, fromFile: string, workspaceIndex: WorkspaceIndex, parsedImport?: ParsedImport): string | readonly string[] | null;
|
|
87
87
|
/**
|
|
88
88
|
* For a wildcard `import * from M`, return the names visible in the
|
|
89
89
|
* exporting module scope `M`. The finalize pass looks each name up in
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"finalize-algorithm.d.ts","sourceRoot":"","sources":["../../src/scope-resolution/finalize-algorithm.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAIhG,4CAA4C;AAC5C,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,gFAAgF;IAChF,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,aAAa,EAAE,SAAS,YAAY,EAAE,CAAC;IAChD;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,QAAQ,CAAC,SAAS,EAAE,SAAS,gBAAgB,EAAE,CAAC;CACjD;AAED,2BAA2B;AAC3B,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,KAAK,EAAE,SAAS,YAAY,EAAE,CAAC;IACxC,4DAA4D;IAC5D,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;CACzC;AAED;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,mBAAmB,CACjB,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"finalize-algorithm.d.ts","sourceRoot":"","sources":["../../src/scope-resolution/finalize-algorithm.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,w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