@duckmind/dm-darwin-x64 0.67.5 → 0.67.7
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 +2 -2
- package/dm +2 -2
- package/extensions/.dm-extensions.json +93 -27
- package/extensions/dm-lens/clients/actionable-warnings.js +12 -5
- package/extensions/dm-lens/clients/advisory-provenance.js +6 -2
- package/extensions/dm-lens/clients/agent-behavior-client.js +32 -2
- package/extensions/dm-lens/clients/agent-nudge.js +10 -0
- package/extensions/dm-lens/clients/analysis-root.js +3 -6
- package/extensions/dm-lens/clients/ast-grep-client.js +123 -33
- package/extensions/dm-lens/clients/ast-grep-tool-logger.js +1 -0
- package/extensions/dm-lens/clients/background-write-drains.js +16 -0
- package/extensions/dm-lens/clients/bash-file-access.js +556 -78
- package/extensions/dm-lens/clients/blocker-freshness.js +9 -5
- package/extensions/dm-lens/clients/bootstrap.js +0 -3
- package/extensions/dm-lens/clients/bounded-pid-file-lock.js +3 -12
- package/extensions/dm-lens/clients/bounded-telemetry.js +1 -0
- package/extensions/dm-lens/clients/bundled-resource-health.js +1 -0
- package/extensions/dm-lens/clients/bus-event-rollup.js +5 -0
- package/extensions/dm-lens/clients/bus-publish.js +45 -85
- package/extensions/dm-lens/clients/cache-manager.js +7 -14
- package/extensions/dm-lens/clients/cache-observability.js +36 -58
- package/extensions/dm-lens/clients/cargo-manifest.js +7 -3
- package/extensions/dm-lens/clients/cascade-budget.js +2 -3
- package/extensions/dm-lens/clients/cascade-format.js +21 -9
- package/extensions/dm-lens/clients/command-path.js +29 -0
- package/extensions/dm-lens/clients/complexity-client.js +25 -259
- package/extensions/dm-lens/clients/config-diagnostic-codes.js +1 -1
- package/extensions/dm-lens/clients/config-locations.js +10 -3
- package/extensions/dm-lens/clients/config-resolve.js +5 -3
- package/extensions/dm-lens/clients/config-schema.js +28 -2
- package/extensions/dm-lens/clients/context-injection-ledger.js +3 -0
- package/extensions/dm-lens/clients/dead-code-client.js +13 -13
- package/extensions/dm-lens/clients/deadline-utils.js +22 -13
- package/extensions/dm-lens/clients/deferred-runner-blockers.js +1 -1
- package/extensions/dm-lens/clients/degradation-ledger.js +29 -8
- package/extensions/dm-lens/clients/dependency-checker.js +7 -9
- package/extensions/dm-lens/clients/diagnostic-dispositions.js +94 -9
- package/extensions/dm-lens/clients/diagnostics-publish.js +38 -83
- package/extensions/dm-lens/clients/dispatch/adopted-root-runners.js +1 -0
- package/extensions/dm-lens/clients/dispatch/auxiliary-lsp.js +54 -3
- package/extensions/dm-lens/clients/dispatch/collect-later-tier.js +61 -4
- package/extensions/dm-lens/clients/dispatch/disabled-runners.js +66 -0
- package/extensions/dm-lens/clients/dispatch/dispatcher.js +289 -247
- package/extensions/dm-lens/clients/dispatch/fact-rule-runner.js +3 -0
- package/extensions/dm-lens/clients/dispatch/fact-runner.js +3 -0
- package/extensions/dm-lens/clients/dispatch/fact-store.js +1 -1
- package/extensions/dm-lens/clients/dispatch/facts/comment-facts.js +2 -1
- package/extensions/dm-lens/clients/dispatch/facts/function-facts.js +13 -85
- package/extensions/dm-lens/clients/dispatch/facts/try-catch-facts.js +2 -1
- package/extensions/dm-lens/clients/dispatch/finding-policy.js +65 -6
- package/extensions/dm-lens/clients/dispatch/integration.js +316 -114
- package/extensions/dm-lens/clients/dispatch/pending-runner-findings.js +4 -1
- package/extensions/dm-lens/clients/dispatch/plan.js +5 -0
- package/extensions/dm-lens/clients/dispatch/pre-edit-seed.js +28 -7
- package/extensions/dm-lens/clients/dispatch/rule-id-normalize.js +67 -0
- package/extensions/dm-lens/clients/dispatch/rule-ignores.js +4 -4
- package/extensions/dm-lens/clients/dispatch/rule-policy.js +158 -33
- package/extensions/dm-lens/clients/dispatch/rules/async-noise.js +2 -1
- package/extensions/dm-lens/clients/dispatch/rules/async-unnecessary-wrapper.js +2 -1
- package/extensions/dm-lens/clients/dispatch/rules/cors-wildcard.js +2 -1
- package/extensions/dm-lens/clients/dispatch/rules/error-obscuring.js +2 -1
- package/extensions/dm-lens/clients/dispatch/rules/error-swallowing.js +2 -1
- package/extensions/dm-lens/clients/dispatch/rules/high-complexity.js +5 -4
- package/extensions/dm-lens/clients/dispatch/rules/high-fan-out.js +3 -2
- package/extensions/dm-lens/clients/dispatch/rules/high-import-coupling.js +2 -1
- package/extensions/dm-lens/clients/dispatch/rules/missing-error-propagation.js +2 -1
- package/extensions/dm-lens/clients/dispatch/rules/no-commented-credentials.js +7 -2
- package/extensions/dm-lens/clients/dispatch/rules/pass-through-wrappers.js +2 -1
- package/extensions/dm-lens/clients/dispatch/rules/placeholder-comments.js +2 -1
- package/extensions/dm-lens/clients/dispatch/rules/unsafe-boundary.js +2 -1
- package/extensions/dm-lens/clients/dispatch/runner-context.js +5 -7
- package/extensions/dm-lens/clients/dispatch/runners/actionlint.js +6 -13
- package/extensions/dm-lens/clients/dispatch/runners/ast-grep-napi.js +4 -3
- package/extensions/dm-lens/clients/dispatch/runners/biome-check.js +7 -4
- package/extensions/dm-lens/clients/dispatch/runners/cpp-check.js +2 -1
- package/extensions/dm-lens/clients/dispatch/runners/credo.js +263 -14
- package/extensions/dm-lens/clients/dispatch/runners/cue-vet.js +8 -3
- package/extensions/dm-lens/clients/dispatch/runners/dart-analyze.js +4 -2
- package/extensions/dm-lens/clients/dispatch/runners/detekt.js +145 -37
- package/extensions/dm-lens/clients/dispatch/runners/dotnet-build.js +5 -3
- package/extensions/dm-lens/clients/dispatch/runners/elixir-check.js +8 -7
- package/extensions/dm-lens/clients/dispatch/runners/eslint.js +29 -18
- package/extensions/dm-lens/clients/dispatch/runners/fish-indent.js +2 -1
- package/extensions/dm-lens/clients/dispatch/runners/gleam-check.js +8 -5
- package/extensions/dm-lens/clients/dispatch/runners/go-vet.js +6 -5
- package/extensions/dm-lens/clients/dispatch/runners/golangci-lint.js +15 -13
- package/extensions/dm-lens/clients/dispatch/runners/hadolint.js +8 -14
- package/extensions/dm-lens/clients/dispatch/runners/helm-lint.js +16 -15
- package/extensions/dm-lens/clients/dispatch/runners/helm-render.js +29 -23
- package/extensions/dm-lens/clients/dispatch/runners/htmlhint.js +8 -14
- package/extensions/dm-lens/clients/dispatch/runners/javac.js +8 -5
- package/extensions/dm-lens/clients/dispatch/runners/ktlint.js +6 -13
- package/extensions/dm-lens/clients/dispatch/runners/lsp.js +37 -14
- package/extensions/dm-lens/clients/dispatch/runners/markdownlint.js +13 -36
- package/extensions/dm-lens/clients/dispatch/runners/mypy.js +11 -16
- package/extensions/dm-lens/clients/dispatch/runners/oxlint.js +25 -21
- package/extensions/dm-lens/clients/dispatch/runners/php-lint.js +2 -1
- package/extensions/dm-lens/clients/dispatch/runners/phpstan.js +221 -8
- package/extensions/dm-lens/clients/dispatch/runners/prisma-validate.js +14 -7
- package/extensions/dm-lens/clients/dispatch/runners/psscriptanalyzer.js +27 -12
- package/extensions/dm-lens/clients/dispatch/runners/pyright.js +13 -7
- package/extensions/dm-lens/clients/dispatch/runners/rubocop.js +12 -12
- package/extensions/dm-lens/clients/dispatch/runners/ruff.js +26 -12
- package/extensions/dm-lens/clients/dispatch/runners/rust-clippy.js +14 -4
- package/extensions/dm-lens/clients/dispatch/runners/shellcheck.js +14 -60
- package/extensions/dm-lens/clients/dispatch/runners/shfmt.js +7 -8
- package/extensions/dm-lens/clients/dispatch/runners/spellcheck.js +14 -11
- package/extensions/dm-lens/clients/dispatch/runners/spotbugs.js +10 -10
- package/extensions/dm-lens/clients/dispatch/runners/sqlfluff.js +9 -17
- package/extensions/dm-lens/clients/dispatch/runners/stylelint.js +11 -19
- package/extensions/dm-lens/clients/dispatch/runners/swiftlint.js +15 -25
- package/extensions/dm-lens/clients/dispatch/runners/taplo.js +31 -23
- package/extensions/dm-lens/clients/dispatch/runners/terragrunt.js +12 -10
- package/extensions/dm-lens/clients/dispatch/runners/tflint.js +8 -12
- package/extensions/dm-lens/clients/dispatch/runners/tree-sitter.js +7 -2
- package/extensions/dm-lens/clients/dispatch/runners/trivy-config.js +16 -17
- package/extensions/dm-lens/clients/dispatch/runners/utils/availability-policy.js +18 -0
- package/extensions/dm-lens/clients/dispatch/runners/utils/diagnostic-parsers.js +8 -4
- package/extensions/dm-lens/clients/dispatch/runners/utils/ignore-anchor.js +105 -0
- package/extensions/dm-lens/clients/dispatch/runners/utils/lazy-installer.js +10 -0
- package/extensions/dm-lens/clients/dispatch/runners/utils/markdownlint-api.js +52 -0
- package/extensions/dm-lens/clients/dispatch/runners/utils/runner-helpers.js +263 -395
- package/extensions/dm-lens/clients/dispatch/runners/utils/spawn-outcome.js +8 -3
- package/extensions/dm-lens/clients/dispatch/runners/utils/tool-failure.js +45 -16
- package/extensions/dm-lens/clients/dispatch/runners/vale.js +24 -33
- package/extensions/dm-lens/clients/dispatch/runners/yamllint.js +13 -17
- package/extensions/dm-lens/clients/dispatch/runners/zig-check.js +4 -2
- package/extensions/dm-lens/clients/dispatch/types.js +119 -2
- package/extensions/dm-lens/clients/dispatch/utils/lsp-diagnostics.js +2 -1
- package/extensions/dm-lens/clients/disposition-publish.js +14 -63
- package/extensions/dm-lens/clients/effective-config.js +44 -17
- package/extensions/dm-lens/clients/env-utils.js +13 -0
- package/extensions/dm-lens/clients/event-loop-hold.js +1 -1
- package/extensions/dm-lens/clients/feature-hints.js +2 -1
- package/extensions/dm-lens/clients/file-kinds.js +13 -0
- package/extensions/dm-lens/clients/file-role.js +3 -4
- package/extensions/dm-lens/clients/file-time.js +1 -16
- package/extensions/dm-lens/clients/file-utils.js +61 -52
- package/extensions/dm-lens/clients/finding-delivery-gate.js +2 -1
- package/extensions/dm-lens/clients/finding-identity.js +12 -2
- package/extensions/dm-lens/clients/fix-run-restore.js +3 -6
- package/extensions/dm-lens/clients/fix-worklog.js +0 -22
- package/extensions/dm-lens/clients/format-events-publish.js +85 -268
- package/extensions/dm-lens/clients/format-service.js +3 -10
- package/extensions/dm-lens/clients/formatters.js +150 -135
- package/extensions/dm-lens/clients/generation-lock.js +2 -11
- package/extensions/dm-lens/clients/git-guard.js +531 -161
- package/extensions/dm-lens/clients/gitleaks-client.js +60 -79
- package/extensions/dm-lens/clients/govulncheck-client.js +9 -0
- package/extensions/dm-lens/clients/gradle-ktfmt-style.js +10 -11
- package/extensions/dm-lens/clients/grammar-source.js +10 -3
- package/extensions/dm-lens/clients/inline-blocker-dispositions.js +23 -31
- package/extensions/dm-lens/clients/inline-blocker-fields.js +36 -3
- package/extensions/dm-lens/clients/install-diagnostics.js +1 -1
- package/extensions/dm-lens/clients/installer/index.js +176 -100
- package/extensions/dm-lens/clients/installer/managed-tool-refresh.js +12 -18
- package/extensions/dm-lens/clients/instance-reaper.js +10 -14
- package/extensions/dm-lens/clients/instance-registry.js +1 -7
- package/extensions/dm-lens/clients/issues-status.js +19 -0
- package/extensions/dm-lens/clients/jscpd-client.js +105 -130
- package/extensions/dm-lens/clients/knip-client.js +7 -9
- package/extensions/dm-lens/clients/language-policy.js +2 -0
- package/extensions/dm-lens/clients/language-registry.js +46 -2
- package/extensions/dm-lens/clients/lens-config.js +24 -10
- package/extensions/dm-lens/clients/lens-engine.js +117 -22
- package/extensions/dm-lens/clients/lens-events.js +16 -45
- package/extensions/dm-lens/clients/lens-flag-registry.js +55 -5
- package/extensions/dm-lens/clients/live-bus-emitter.js +134 -3
- package/extensions/dm-lens/clients/lsp/client-registry.js +75 -38
- package/extensions/dm-lens/clients/lsp/client.js +327 -78
- package/extensions/dm-lens/clients/lsp/config.js +151 -41
- package/extensions/dm-lens/clients/lsp/content-limits.js +24 -4
- package/extensions/dm-lens/clients/lsp/diagnostic-binding.js +23 -2
- package/extensions/dm-lens/clients/lsp/document-drift.js +2 -4
- package/extensions/dm-lens/clients/lsp/edits.js +38 -27
- package/extensions/dm-lens/clients/lsp/environment-gap.js +11 -14
- package/extensions/dm-lens/clients/lsp/grouping.js +5 -1
- package/extensions/dm-lens/clients/lsp/index.js +256 -163
- package/extensions/dm-lens/clients/lsp/inferred-project.js +2 -11
- package/extensions/dm-lens/clients/lsp/jvm-runtime.js +3 -90
- package/extensions/dm-lens/clients/lsp/launch.js +18 -14
- package/extensions/dm-lens/clients/lsp/request-timeout-error.js +18 -0
- package/extensions/dm-lens/clients/lsp/resolved-config.js +2 -1
- package/extensions/dm-lens/clients/lsp/server-config-files.js +8 -1
- package/extensions/dm-lens/clients/lsp/server.js +281 -140
- package/extensions/dm-lens/clients/lsp/session-roots.js +1 -6
- package/extensions/dm-lens/clients/lsp/wait-policy/strategies.js +7 -14
- package/extensions/dm-lens/clients/lsp/workspace-diagnostics-cache.js +8 -10
- package/extensions/dm-lens/clients/lsp/workspace-sweep-hold.js +1 -1
- package/extensions/dm-lens/clients/lsp-document-symbols.js +14 -11
- package/extensions/dm-lens/clients/lsp-mutation.js +114 -82
- package/extensions/dm-lens/clients/mcp/analyze.js +9 -4
- package/extensions/dm-lens/clients/mcp/ipc.js +28 -9
- package/extensions/dm-lens/clients/mcp/review.js +2 -1
- package/extensions/dm-lens/clients/mcp/session.js +15 -10
- package/extensions/dm-lens/clients/memory-sampler.js +11 -10
- package/extensions/dm-lens/clients/metrics/complexity-baseline.js +288 -0
- package/extensions/dm-lens/clients/metrics/function-metrics.js +388 -0
- package/extensions/dm-lens/clients/metrics-history.js +9 -4
- package/extensions/dm-lens/clients/module-report-lsp.js +7 -6
- package/extensions/dm-lens/clients/module-report.js +290 -116
- package/extensions/dm-lens/clients/mutating-tool.js +11 -5
- package/extensions/dm-lens/clients/mutation-bridge.js +40 -9
- package/extensions/dm-lens/clients/observed-mutation.js +3 -2
- package/extensions/dm-lens/clients/opaque-mutation-scan.js +80 -11
- package/extensions/dm-lens/clients/opengrep-client.js +64 -77
- package/extensions/dm-lens/clients/out-of-band-changes.js +109 -24
- package/extensions/dm-lens/clients/package-manager.js +31 -16
- package/extensions/dm-lens/clients/package-root.js +2 -2
- package/extensions/dm-lens/clients/partial-edit-apply.js +3 -233
- package/extensions/dm-lens/clients/path-globs.js +90 -0
- package/extensions/dm-lens/clients/path-utils.js +42 -29
- package/extensions/dm-lens/clients/performance-report.js +8 -3
- package/extensions/dm-lens/clients/persistent-reverify.js +26 -15
- package/extensions/dm-lens/clients/pid-liveness.js +21 -0
- package/extensions/dm-lens/clients/pipeline.js +97 -86
- package/extensions/dm-lens/clients/post-autofix-notice.js +1 -0
- package/extensions/dm-lens/clients/pre-edit-capture.js +67 -0
- package/extensions/dm-lens/clients/probe-home-state.js +3 -14
- package/extensions/dm-lens/clients/project-diagnostics/fresh-fetch.js +8 -16
- package/extensions/dm-lens/clients/project-diagnostics/scanner.js +2 -10
- package/extensions/dm-lens/clients/project-lens-config.js +164 -74
- package/extensions/dm-lens/clients/project-report.js +138 -47
- package/extensions/dm-lens/clients/project-snapshot.js +12 -4
- package/extensions/dm-lens/clients/project-trust.js +39 -1
- package/extensions/dm-lens/clients/python-environment.js +13 -8
- package/extensions/dm-lens/clients/quiet-window.js +3 -13
- package/extensions/dm-lens/clients/read-expansion.js +16 -7
- package/extensions/dm-lens/clients/read-guard-logger.js +1 -2
- package/extensions/dm-lens/clients/read-guard-tool-lines.js +18 -96
- package/extensions/dm-lens/clients/read-guard.js +4 -1
- package/extensions/dm-lens/clients/recent-touches.js +42 -26
- package/extensions/dm-lens/clients/report-scan.js +92 -0
- package/extensions/dm-lens/clients/resource-sampler.js +6 -1
- package/extensions/dm-lens/clients/review-graph/builder.js +40 -22
- package/extensions/dm-lens/clients/review-graph/git-identity.js +5 -11
- package/extensions/dm-lens/clients/review-graph/import-resolvers.js +13 -18
- package/extensions/dm-lens/clients/review-graph/query.js +11 -1
- package/extensions/dm-lens/clients/review-graph/types.js +1 -0
- package/extensions/dm-lens/clients/review-graph/workspace-modules.js +8 -11
- package/extensions/dm-lens/clients/ruff-client.js +23 -20
- package/extensions/dm-lens/clients/rules-scanner.js +2 -1
- package/extensions/dm-lens/clients/runtime-agent-end.js +82 -90
- package/extensions/dm-lens/clients/runtime-config.js +1 -0
- package/extensions/dm-lens/clients/runtime-context.js +75 -11
- package/extensions/dm-lens/clients/runtime-coordinator.js +269 -87
- package/extensions/dm-lens/clients/runtime-session.js +106 -152
- package/extensions/dm-lens/clients/runtime-tool-call.js +202 -227
- package/extensions/dm-lens/clients/runtime-tool-result.js +390 -80
- package/extensions/dm-lens/clients/runtime-turn.js +356 -98
- package/extensions/dm-lens/clients/safe-spawn.js +43 -27
- package/extensions/dm-lens/clients/scratch-tree-policy.js +29 -13
- package/extensions/dm-lens/clients/secret-findings.js +8 -5
- package/extensions/dm-lens/clients/security-scan-client.js +18 -0
- package/extensions/dm-lens/clients/session-lifecycle.js +13 -1
- package/extensions/dm-lens/clients/session-scope.js +41 -0
- package/extensions/dm-lens/clients/sg-runner.js +84 -33
- package/extensions/dm-lens/clients/sgconfig.js +2 -2
- package/extensions/dm-lens/clients/shell-dialect.js +62 -0
- package/extensions/dm-lens/clients/single-flight.js +4 -2
- package/extensions/dm-lens/clients/source-filter.js +7 -2
- package/extensions/dm-lens/clients/spawn-abort-scope.js +10 -0
- package/extensions/dm-lens/clients/spawn-timeout-cooldown.js +2 -1
- package/extensions/dm-lens/clients/staged-delta.js +461 -0
- package/extensions/dm-lens/clients/startup-scan.js +3 -2
- package/extensions/dm-lens/clients/startup-timing.js +2 -2
- package/extensions/dm-lens/clients/test-runner-client.js +50 -17
- package/extensions/dm-lens/clients/test-runner-delivery.js +31 -4
- package/extensions/dm-lens/clients/tool-agreement.js +25 -49
- package/extensions/dm-lens/clients/tool-config-presence.js +476 -0
- package/extensions/dm-lens/clients/tool-config.js +2 -2
- package/extensions/dm-lens/clients/tool-cwd.js +33 -11
- package/extensions/dm-lens/clients/tool-policy.js +187 -633
- package/extensions/dm-lens/clients/tool-probe.js +1 -1
- package/extensions/dm-lens/clients/tool-set-policy.js +5 -1
- package/extensions/dm-lens/clients/tree-sitter-client.js +83 -10
- package/extensions/dm-lens/clients/tree-sitter-query-loader.js +3 -2
- package/extensions/dm-lens/clients/tree-sitter-symbol-extractor.js +177 -3
- package/extensions/dm-lens/clients/trivy-client.js +68 -83
- package/extensions/dm-lens/clients/turn-end/delivery-holds.js +7 -3
- package/extensions/dm-lens/clients/turn-end/lanes/govulncheck.js +13 -1
- package/extensions/dm-lens/clients/turn-end/lanes/secrets.js +11 -9
- package/extensions/dm-lens/clients/warm-attach.js +7 -5
- package/extensions/dm-lens/clients/widget-state.js +228 -47
- package/extensions/dm-lens/clients/word-index.js +32 -19
- package/extensions/dm-lens/clients/write-source-file.js +30 -0
- package/extensions/dm-lens/clients/writers.js +529 -0
- package/extensions/dm-lens/clients/zizmor-config.js +3 -3
- package/extensions/dm-lens/config/dependency-cruiser-eager-allowlist.json +2 -1
- package/extensions/dm-lens/config/markdownlint/run-no-fix.mjs +23 -0
- package/extensions/dm-lens/dist/clients/actionable-warnings.js +11 -5
- package/extensions/dm-lens/dist/clients/advisory-provenance.js +6 -2
- package/extensions/dm-lens/dist/clients/agent-behavior-client.js +32 -2
- package/extensions/dm-lens/dist/clients/agent-nudge.js +10 -0
- package/extensions/dm-lens/dist/clients/analysis-root.js +3 -6
- package/extensions/dm-lens/dist/clients/ast-grep-client.js +123 -33
- package/extensions/dm-lens/dist/clients/ast-grep-tool-logger.js +1 -0
- package/extensions/dm-lens/dist/clients/background-write-drains.js +16 -0
- package/extensions/dm-lens/dist/clients/bash-file-access.js +556 -78
- package/extensions/dm-lens/dist/clients/blocker-freshness.js +5 -5
- package/extensions/dm-lens/dist/clients/bootstrap.js +1 -3
- package/extensions/dm-lens/dist/clients/bounded-pid-file-lock.js +3 -12
- package/extensions/dm-lens/dist/clients/bounded-telemetry.js +1 -0
- package/extensions/dm-lens/dist/clients/bundled-resource-health.js +1 -0
- package/extensions/dm-lens/dist/clients/bus-event-rollup.js +1 -0
- package/extensions/dm-lens/dist/clients/bus-publish.js +44 -83
- package/extensions/dm-lens/dist/clients/cache-manager.js +7 -14
- package/extensions/dm-lens/dist/clients/cache-observability.js +32 -58
- package/extensions/dm-lens/dist/clients/cargo-manifest.js +3 -3
- package/extensions/dm-lens/dist/clients/cascade-budget.js +2 -3
- package/extensions/dm-lens/dist/clients/cascade-format.js +21 -9
- package/extensions/dm-lens/dist/clients/command-path.js +26 -0
- package/extensions/dm-lens/dist/clients/complexity-client.js +23 -259
- package/extensions/dm-lens/dist/clients/config-diagnostic-codes.js +1 -1
- package/extensions/dm-lens/dist/clients/config-locations.js +10 -4
- package/extensions/dm-lens/dist/clients/config-resolve.js +5 -3
- package/extensions/dm-lens/dist/clients/config-schema.js +28 -2
- package/extensions/dm-lens/dist/clients/context-injection-ledger.js +3 -0
- package/extensions/dm-lens/dist/clients/dead-code-client.js +10 -13
- package/extensions/dm-lens/dist/clients/deadline-utils.js +22 -13
- package/extensions/dm-lens/dist/clients/deferred-runner-blockers.js +1 -1
- package/extensions/dm-lens/dist/clients/degradation-ledger.js +23 -9
- package/extensions/dm-lens/dist/clients/dependency-checker.js +7 -9
- package/extensions/dm-lens/dist/clients/diagnostic-dispositions.js +93 -10
- package/extensions/dm-lens/dist/clients/diagnostics-publish.js +37 -81
- package/extensions/dm-lens/dist/clients/dispatch/adopted-root-runners.js +1 -0
- package/extensions/dm-lens/dist/clients/dispatch/auxiliary-lsp.js +54 -3
- package/extensions/dm-lens/dist/clients/dispatch/collect-later-tier.js +61 -4
- package/extensions/dm-lens/dist/clients/dispatch/disabled-runners.js +57 -0
- package/extensions/dm-lens/dist/clients/dispatch/dispatcher.js +264 -235
- package/extensions/dm-lens/dist/clients/dispatch/fact-rule-runner.js +3 -0
- package/extensions/dm-lens/dist/clients/dispatch/fact-runner.js +3 -0
- package/extensions/dm-lens/dist/clients/dispatch/fact-store.js +1 -1
- package/extensions/dm-lens/dist/clients/dispatch/facts/comment-facts.js +2 -1
- package/extensions/dm-lens/dist/clients/dispatch/facts/function-facts.js +10 -85
- package/extensions/dm-lens/dist/clients/dispatch/facts/try-catch-facts.js +2 -1
- package/extensions/dm-lens/dist/clients/dispatch/finding-policy.js +64 -6
- package/extensions/dm-lens/dist/clients/dispatch/integration.js +298 -111
- package/extensions/dm-lens/dist/clients/dispatch/pending-runner-findings.js +4 -1
- package/extensions/dm-lens/dist/clients/dispatch/plan.js +5 -0
- package/extensions/dm-lens/dist/clients/dispatch/pre-edit-seed.js +28 -7
- package/extensions/dm-lens/dist/clients/dispatch/rule-id-normalize.js +67 -0
- package/extensions/dm-lens/dist/clients/dispatch/rule-ignores.js +4 -4
- package/extensions/dm-lens/dist/clients/dispatch/rule-policy.js +147 -33
- package/extensions/dm-lens/dist/clients/dispatch/rules/async-noise.js +2 -1
- package/extensions/dm-lens/dist/clients/dispatch/rules/async-unnecessary-wrapper.js +2 -1
- package/extensions/dm-lens/dist/clients/dispatch/rules/cors-wildcard.js +2 -1
- package/extensions/dm-lens/dist/clients/dispatch/rules/error-obscuring.js +2 -1
- package/extensions/dm-lens/dist/clients/dispatch/rules/error-swallowing.js +2 -1
- package/extensions/dm-lens/dist/clients/dispatch/rules/high-complexity.js +5 -4
- package/extensions/dm-lens/dist/clients/dispatch/rules/high-fan-out.js +3 -2
- package/extensions/dm-lens/dist/clients/dispatch/rules/high-import-coupling.js +2 -1
- package/extensions/dm-lens/dist/clients/dispatch/rules/missing-error-propagation.js +2 -1
- package/extensions/dm-lens/dist/clients/dispatch/rules/no-commented-credentials.js +7 -2
- package/extensions/dm-lens/dist/clients/dispatch/rules/pass-through-wrappers.js +2 -1
- package/extensions/dm-lens/dist/clients/dispatch/rules/placeholder-comments.js +2 -1
- package/extensions/dm-lens/dist/clients/dispatch/rules/unsafe-boundary.js +2 -1
- package/extensions/dm-lens/dist/clients/dispatch/runner-context.js +4 -8
- package/extensions/dm-lens/dist/clients/dispatch/runners/actionlint.js +6 -10
- package/extensions/dm-lens/dist/clients/dispatch/runners/ast-grep-napi.js +4 -3
- package/extensions/dm-lens/dist/clients/dispatch/runners/biome-check.js +7 -4
- package/extensions/dm-lens/dist/clients/dispatch/runners/cpp-check.js +2 -1
- package/extensions/dm-lens/dist/clients/dispatch/runners/credo.js +263 -14
- package/extensions/dm-lens/dist/clients/dispatch/runners/cue-vet.js +8 -3
- package/extensions/dm-lens/dist/clients/dispatch/runners/dart-analyze.js +4 -2
- package/extensions/dm-lens/dist/clients/dispatch/runners/detekt.js +137 -37
- package/extensions/dm-lens/dist/clients/dispatch/runners/dotnet-build.js +5 -3
- package/extensions/dm-lens/dist/clients/dispatch/runners/elixir-check.js +8 -7
- package/extensions/dm-lens/dist/clients/dispatch/runners/eslint.js +29 -18
- package/extensions/dm-lens/dist/clients/dispatch/runners/fish-indent.js +2 -1
- package/extensions/dm-lens/dist/clients/dispatch/runners/gleam-check.js +8 -5
- package/extensions/dm-lens/dist/clients/dispatch/runners/go-vet.js +6 -5
- package/extensions/dm-lens/dist/clients/dispatch/runners/golangci-lint.js +14 -12
- package/extensions/dm-lens/dist/clients/dispatch/runners/hadolint.js +8 -11
- package/extensions/dm-lens/dist/clients/dispatch/runners/helm-lint.js +15 -14
- package/extensions/dm-lens/dist/clients/dispatch/runners/helm-render.js +23 -22
- package/extensions/dm-lens/dist/clients/dispatch/runners/htmlhint.js +8 -11
- package/extensions/dm-lens/dist/clients/dispatch/runners/javac.js +8 -5
- package/extensions/dm-lens/dist/clients/dispatch/runners/ktlint.js +6 -10
- package/extensions/dm-lens/dist/clients/dispatch/runners/lsp.js +33 -15
- package/extensions/dm-lens/dist/clients/dispatch/runners/markdownlint.js +12 -30
- package/extensions/dm-lens/dist/clients/dispatch/runners/mypy.js +11 -13
- package/extensions/dm-lens/dist/clients/dispatch/runners/oxlint.js +25 -18
- package/extensions/dm-lens/dist/clients/dispatch/runners/php-lint.js +2 -1
- package/extensions/dm-lens/dist/clients/dispatch/runners/phpstan.js +212 -8
- package/extensions/dm-lens/dist/clients/dispatch/runners/prisma-validate.js +10 -7
- package/extensions/dm-lens/dist/clients/dispatch/runners/psscriptanalyzer.js +25 -12
- package/extensions/dm-lens/dist/clients/dispatch/runners/pyright.js +13 -7
- package/extensions/dm-lens/dist/clients/dispatch/runners/rubocop.js +9 -12
- package/extensions/dm-lens/dist/clients/dispatch/runners/ruff.js +26 -11
- package/extensions/dm-lens/dist/clients/dispatch/runners/rust-clippy.js +14 -4
- package/extensions/dm-lens/dist/clients/dispatch/runners/shellcheck.js +11 -60
- package/extensions/dm-lens/dist/clients/dispatch/runners/shfmt.js +7 -8
- package/extensions/dm-lens/dist/clients/dispatch/runners/spellcheck.js +14 -11
- package/extensions/dm-lens/dist/clients/dispatch/runners/spotbugs.js +9 -9
- package/extensions/dm-lens/dist/clients/dispatch/runners/sqlfluff.js +9 -14
- package/extensions/dm-lens/dist/clients/dispatch/runners/stylelint.js +11 -13
- package/extensions/dm-lens/dist/clients/dispatch/runners/swiftlint.js +15 -22
- package/extensions/dm-lens/dist/clients/dispatch/runners/taplo.js +28 -23
- package/extensions/dm-lens/dist/clients/dispatch/runners/terragrunt.js +12 -10
- package/extensions/dm-lens/dist/clients/dispatch/runners/tflint.js +8 -12
- package/extensions/dm-lens/dist/clients/dispatch/runners/tree-sitter.js +3 -2
- package/extensions/dm-lens/dist/clients/dispatch/runners/trivy-config.js +13 -14
- package/extensions/dm-lens/dist/clients/dispatch/runners/utils/availability-policy.js +18 -0
- package/extensions/dm-lens/dist/clients/dispatch/runners/utils/diagnostic-parsers.js +8 -4
- package/extensions/dm-lens/dist/clients/dispatch/runners/utils/ignore-anchor.js +105 -0
- package/extensions/dm-lens/dist/clients/dispatch/runners/utils/lazy-installer.js +10 -0
- package/extensions/dm-lens/dist/clients/dispatch/runners/utils/markdownlint-api.js +52 -0
- package/extensions/dm-lens/dist/clients/dispatch/runners/utils/runner-helpers.js +257 -391
- package/extensions/dm-lens/dist/clients/dispatch/runners/utils/spawn-outcome.js +8 -3
- package/extensions/dm-lens/dist/clients/dispatch/runners/utils/tool-failure.js +44 -17
- package/extensions/dm-lens/dist/clients/dispatch/runners/vale.js +24 -30
- package/extensions/dm-lens/dist/clients/dispatch/runners/yamllint.js +14 -17
- package/extensions/dm-lens/dist/clients/dispatch/runners/zig-check.js +4 -2
- package/extensions/dm-lens/dist/clients/dispatch/types.js +119 -2
- package/extensions/dm-lens/dist/clients/dispatch/utils/lsp-diagnostics.js +2 -1
- package/extensions/dm-lens/dist/clients/disposition-publish.js +13 -61
- package/extensions/dm-lens/dist/clients/effective-config.js +43 -18
- package/extensions/dm-lens/dist/clients/env-utils.js +13 -0
- package/extensions/dm-lens/dist/clients/event-loop-hold.js +1 -1
- package/extensions/dm-lens/dist/clients/feature-hints.js +2 -1
- package/extensions/dm-lens/dist/clients/file-kinds.js +13 -0
- package/extensions/dm-lens/dist/clients/file-role.js +3 -4
- package/extensions/dm-lens/dist/clients/file-time.js +1 -16
- package/extensions/dm-lens/dist/clients/file-utils.js +59 -49
- package/extensions/dm-lens/dist/clients/finding-delivery-gate.js +2 -1
- package/extensions/dm-lens/dist/clients/finding-identity.js +12 -2
- package/extensions/dm-lens/dist/clients/fix-run-restore.js +3 -6
- package/extensions/dm-lens/dist/clients/fix-worklog.js +0 -22
- package/extensions/dm-lens/dist/clients/format-events-publish.js +84 -266
- package/extensions/dm-lens/dist/clients/format-service.js +3 -10
- package/extensions/dm-lens/dist/clients/formatters.js +146 -109
- package/extensions/dm-lens/dist/clients/generation-lock.js +2 -11
- package/extensions/dm-lens/dist/clients/git-guard.js +518 -161
- package/extensions/dm-lens/dist/clients/gitleaks-client.js +53 -79
- package/extensions/dm-lens/dist/clients/govulncheck-client.js +9 -0
- package/extensions/dm-lens/dist/clients/gradle-ktfmt-style.js +10 -11
- package/extensions/dm-lens/dist/clients/grammar-source.js +10 -3
- package/extensions/dm-lens/dist/clients/inline-blocker-dispositions.js +22 -30
- package/extensions/dm-lens/dist/clients/inline-blocker-fields.js +36 -3
- package/extensions/dm-lens/dist/clients/install-diagnostics.js +1 -1
- package/extensions/dm-lens/dist/clients/installer/index.js +176 -100
- package/extensions/dm-lens/dist/clients/installer/managed-tool-refresh.js +12 -18
- package/extensions/dm-lens/dist/clients/instance-reaper.js +10 -14
- package/extensions/dm-lens/dist/clients/instance-registry.js +1 -7
- package/extensions/dm-lens/dist/clients/issues-status.js +19 -0
- package/extensions/dm-lens/dist/clients/jscpd-client.js +105 -130
- package/extensions/dm-lens/dist/clients/knip-client.js +5 -6
- package/extensions/dm-lens/dist/clients/language-policy.js +2 -0
- package/extensions/dm-lens/dist/clients/language-registry.js +42 -2
- package/extensions/dm-lens/dist/clients/lens-config.js +24 -10
- package/extensions/dm-lens/dist/clients/lens-engine.js +109 -24
- package/extensions/dm-lens/dist/clients/lens-events.js +15 -43
- package/extensions/dm-lens/dist/clients/lens-flag-registry.js +52 -4
- package/extensions/dm-lens/dist/clients/live-bus-emitter.js +134 -3
- package/extensions/dm-lens/dist/clients/lsp/client-registry.js +75 -39
- package/extensions/dm-lens/dist/clients/lsp/client.js +326 -79
- package/extensions/dm-lens/dist/clients/lsp/config.js +150 -43
- package/extensions/dm-lens/dist/clients/lsp/content-limits.js +21 -4
- package/extensions/dm-lens/dist/clients/lsp/diagnostic-binding.js +23 -2
- package/extensions/dm-lens/dist/clients/lsp/document-drift.js +2 -4
- package/extensions/dm-lens/dist/clients/lsp/edits.js +35 -27
- package/extensions/dm-lens/dist/clients/lsp/environment-gap.js +11 -14
- package/extensions/dm-lens/dist/clients/lsp/grouping.js +5 -1
- package/extensions/dm-lens/dist/clients/lsp/index.js +243 -164
- package/extensions/dm-lens/dist/clients/lsp/inferred-project.js +2 -11
- package/extensions/dm-lens/dist/clients/lsp/jvm-runtime.js +3 -85
- package/extensions/dm-lens/dist/clients/lsp/launch.js +14 -14
- package/extensions/dm-lens/dist/clients/lsp/request-timeout-error.js +18 -0
- package/extensions/dm-lens/dist/clients/lsp/resolved-config.js +2 -1
- package/extensions/dm-lens/dist/clients/lsp/server-config-files.js +8 -1
- package/extensions/dm-lens/dist/clients/lsp/server.js +272 -140
- package/extensions/dm-lens/dist/clients/lsp/session-roots.js +1 -6
- package/extensions/dm-lens/dist/clients/lsp/wait-policy/strategies.js +7 -14
- package/extensions/dm-lens/dist/clients/lsp/workspace-diagnostics-cache.js +3 -10
- package/extensions/dm-lens/dist/clients/lsp/workspace-sweep-hold.js +1 -1
- package/extensions/dm-lens/dist/clients/lsp-document-symbols.js +11 -11
- package/extensions/dm-lens/dist/clients/lsp-mutation.js +111 -82
- package/extensions/dm-lens/dist/clients/mcp/analyze.js +7 -4
- package/extensions/dm-lens/dist/clients/mcp/ipc.js +28 -9
- package/extensions/dm-lens/dist/clients/mcp/review.js +2 -1
- package/extensions/dm-lens/dist/clients/mcp/session.js +15 -10
- package/extensions/dm-lens/dist/clients/memory-sampler.js +11 -10
- package/extensions/dm-lens/dist/clients/metrics/complexity-baseline.js +276 -0
- package/extensions/dm-lens/dist/clients/metrics/function-metrics.js +386 -0
- package/extensions/dm-lens/dist/clients/metrics-history.js +5 -4
- package/extensions/dm-lens/dist/clients/module-report-lsp.js +7 -6
- package/extensions/dm-lens/dist/clients/module-report.js +285 -116
- package/extensions/dm-lens/dist/clients/mutating-tool.js +11 -5
- package/extensions/dm-lens/dist/clients/mutation-bridge.js +40 -9
- package/extensions/dm-lens/dist/clients/observed-mutation.js +3 -2
- package/extensions/dm-lens/dist/clients/opaque-mutation-scan.js +80 -12
- package/extensions/dm-lens/dist/clients/opengrep-client.js +64 -77
- package/extensions/dm-lens/dist/clients/out-of-band-changes.js +105 -24
- package/extensions/dm-lens/dist/clients/package-manager.js +31 -16
- package/extensions/dm-lens/dist/clients/package-root.js +2 -2
- package/extensions/dm-lens/dist/clients/partial-edit-apply.js +3 -224
- package/extensions/dm-lens/dist/clients/path-globs.js +87 -0
- package/extensions/dm-lens/dist/clients/path-utils.js +42 -29
- package/extensions/dm-lens/dist/clients/performance-report.js +5 -3
- package/extensions/dm-lens/dist/clients/persistent-reverify.js +26 -15
- package/extensions/dm-lens/dist/clients/pid-liveness.js +21 -0
- package/extensions/dm-lens/dist/clients/pipeline.js +93 -76
- package/extensions/dm-lens/dist/clients/post-autofix-notice.js +1 -0
- package/extensions/dm-lens/dist/clients/pre-edit-capture.js +67 -0
- package/extensions/dm-lens/dist/clients/probe-home-state.js +3 -14
- package/extensions/dm-lens/dist/clients/project-diagnostics/fresh-fetch.js +8 -16
- package/extensions/dm-lens/dist/clients/project-diagnostics/scanner.js +2 -10
- package/extensions/dm-lens/dist/clients/project-lens-config.js +163 -76
- package/extensions/dm-lens/dist/clients/project-report.js +138 -47
- package/extensions/dm-lens/dist/clients/project-snapshot.js +12 -4
- package/extensions/dm-lens/dist/clients/project-trust.js +36 -1
- package/extensions/dm-lens/dist/clients/python-environment.js +13 -8
- package/extensions/dm-lens/dist/clients/quiet-window.js +3 -13
- package/extensions/dm-lens/dist/clients/read-expansion.js +16 -7
- package/extensions/dm-lens/dist/clients/read-guard-logger.js +1 -2
- package/extensions/dm-lens/dist/clients/read-guard-tool-lines.js +18 -96
- package/extensions/dm-lens/dist/clients/read-guard.js +4 -1
- package/extensions/dm-lens/dist/clients/recent-touches.js +42 -26
- package/extensions/dm-lens/dist/clients/report-scan.js +92 -0
- package/extensions/dm-lens/dist/clients/resource-sampler.js +6 -1
- package/extensions/dm-lens/dist/clients/review-graph/builder.js +38 -23
- package/extensions/dm-lens/dist/clients/review-graph/git-identity.js +5 -12
- package/extensions/dm-lens/dist/clients/review-graph/import-resolvers.js +13 -18
- package/extensions/dm-lens/dist/clients/review-graph/query.js +9 -1
- package/extensions/dm-lens/dist/clients/review-graph/types.js +1 -1
- package/extensions/dm-lens/dist/clients/review-graph/workspace-modules.js +8 -11
- package/extensions/dm-lens/dist/clients/ruff-client.js +23 -17
- package/extensions/dm-lens/dist/clients/rules-scanner.js +2 -1
- package/extensions/dm-lens/dist/clients/runtime-agent-end.js +82 -83
- package/extensions/dm-lens/dist/clients/runtime-config.js +1 -0
- package/extensions/dm-lens/dist/clients/runtime-context.js +75 -12
- package/extensions/dm-lens/dist/clients/runtime-coordinator.js +256 -86
- package/extensions/dm-lens/dist/clients/runtime-session.js +99 -152
- package/extensions/dm-lens/dist/clients/runtime-tool-call.js +193 -221
- package/extensions/dm-lens/dist/clients/runtime-tool-result.js +372 -83
- package/extensions/dm-lens/dist/clients/runtime-turn.js +356 -101
- package/extensions/dm-lens/dist/clients/safe-spawn.js +40 -27
- package/extensions/dm-lens/dist/clients/scratch-tree-policy.js +29 -10
- package/extensions/dm-lens/dist/clients/secret-findings.js +8 -5
- package/extensions/dm-lens/dist/clients/security-scan-client.js +16 -0
- package/extensions/dm-lens/dist/clients/session-lifecycle.js +13 -1
- package/extensions/dm-lens/dist/clients/session-scope.js +41 -0
- package/extensions/dm-lens/dist/clients/sg-runner.js +84 -30
- package/extensions/dm-lens/dist/clients/sgconfig.js +2 -2
- package/extensions/dm-lens/dist/clients/shell-dialect.js +62 -0
- package/extensions/dm-lens/dist/clients/single-flight.js +4 -2
- package/extensions/dm-lens/dist/clients/source-filter.js +3 -2
- package/extensions/dm-lens/dist/clients/spawn-abort-scope.js +10 -0
- package/extensions/dm-lens/dist/clients/spawn-timeout-cooldown.js +2 -1
- package/extensions/dm-lens/dist/clients/staged-delta.js +452 -0
- package/extensions/dm-lens/dist/clients/startup-scan.js +3 -2
- package/extensions/dm-lens/dist/clients/startup-timing.js +2 -2
- package/extensions/dm-lens/dist/clients/test-runner-client.js +47 -17
- package/extensions/dm-lens/dist/clients/test-runner-delivery.js +31 -4
- package/extensions/dm-lens/dist/clients/tool-agreement.js +25 -27
- package/extensions/dm-lens/dist/clients/tool-config-presence.js +476 -0
- package/extensions/dm-lens/dist/clients/tool-config.js +2 -2
- package/extensions/dm-lens/dist/clients/tool-cwd.js +28 -10
- package/extensions/dm-lens/dist/clients/tool-policy.js +185 -629
- package/extensions/dm-lens/dist/clients/tool-probe.js +1 -1
- package/extensions/dm-lens/dist/clients/tool-set-policy.js +5 -1
- package/extensions/dm-lens/dist/clients/tree-sitter-client.js +83 -10
- package/extensions/dm-lens/dist/clients/tree-sitter-query-loader.js +3 -2
- package/extensions/dm-lens/dist/clients/tree-sitter-symbol-extractor.js +177 -3
- package/extensions/dm-lens/dist/clients/trivy-client.js +63 -83
- package/extensions/dm-lens/dist/clients/turn-end/delivery-holds.js +7 -3
- package/extensions/dm-lens/dist/clients/turn-end/lanes/govulncheck.js +13 -1
- package/extensions/dm-lens/dist/clients/turn-end/lanes/secrets.js +11 -9
- package/extensions/dm-lens/dist/clients/warm-attach.js +7 -6
- package/extensions/dm-lens/dist/clients/widget-state.js +221 -48
- package/extensions/dm-lens/dist/clients/word-index.js +32 -19
- package/extensions/dm-lens/dist/clients/write-source-file.js +30 -0
- package/extensions/dm-lens/dist/clients/writers.js +529 -0
- package/extensions/dm-lens/dist/clients/zizmor-config.js +3 -3
- package/extensions/dm-lens/dist/index.js +159 -51
- package/extensions/dm-lens/dist/mcp/analyze-cli.js +7 -9
- package/extensions/dm-lens/dist/mcp/build-staleness.js +16 -0
- package/extensions/dm-lens/dist/mcp/input-schema.js +23 -0
- package/extensions/dm-lens/dist/mcp/server.js +146 -306
- package/extensions/dm-lens/dist/mcp/tool-arguments.js +15 -2
- package/extensions/dm-lens/dist/scripts/lib/latency-log-phases.mjs +81 -0
- package/extensions/dm-lens/dist/scripts/lib/process-scan.mjs +1 -1
- package/extensions/dm-lens/dist/tools/activate-tools.js +2 -0
- package/extensions/dm-lens/dist/tools/ast-grep-outline.js +45 -28
- package/extensions/dm-lens/dist/tools/ast-grep-replace.js +68 -10
- package/extensions/dm-lens/dist/tools/ast-grep-search.js +15 -19
- package/extensions/dm-lens/dist/tools/effective-config.js +19 -5
- package/extensions/dm-lens/dist/tools/lens-diagnostic-mark.js +80 -66
- package/extensions/dm-lens/dist/tools/lens-diagnostics.js +229 -82
- package/extensions/dm-lens/dist/tools/lsp-diagnostics.js +109 -66
- package/extensions/dm-lens/dist/tools/lsp-navigation-text.js +438 -0
- package/extensions/dm-lens/dist/tools/lsp-navigation.js +141 -57
- package/extensions/dm-lens/dist/tools/lsp-structured-output.js +37 -32
- package/extensions/dm-lens/dist/tools/module-report.js +16 -16
- package/extensions/dm-lens/dist/tools/project-report.js +12 -10
- package/extensions/dm-lens/dist/tools/render-compact.js +40 -0
- package/extensions/dm-lens/dist/tools/shared.js +123 -6
- package/extensions/dm-lens/dist/tools/symbol-search.js +26 -55
- package/extensions/dm-lens/index.js +176 -49
- package/extensions/dm-lens/mcp/analyze-cli.js +7 -9
- package/extensions/dm-lens/mcp/build-staleness.js +16 -0
- package/extensions/dm-lens/mcp/input-schema.js +23 -0
- package/extensions/dm-lens/mcp/server.js +159 -313
- package/extensions/dm-lens/mcp/tool-arguments.js +15 -2
- package/extensions/dm-lens/package.json +1 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/c/security/dont-call-system-c.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/c/security/file-access-before-action-c.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/c/security/file-stat-before-action-c.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/c/security/insecure-hash-c.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/c/security/libxml2-audit-parser-c.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/c/security/null-library-function-c.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/c/security/sizeof-this-c.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/c/security/small-key-size-c.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/c/security/world-writable-file-c.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/dont-call-system-cpp.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/file-access-before-action-cpp.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/file-stat-before-action-cpp.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/fix-format-security-error-cpp.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/insecure-hash-cpp.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/libxml2-audit-parser-cpp.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/missing-nul-cpp-string-memcpy-cpp.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/null-library-function-cpp.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/return-c-str-cpp.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/sizeof-this-cpp.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/small-key-size-cpp.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/std-return-data-cpp.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/std-vector-invalidation-cpp.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/string-view-temporary-string-cpp.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/cpp/security/world-writable-file-cpp.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/httponly-false-csharp.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/insecure-binaryformatter-deserialization-csharp.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/jwt-decode-without-verify-csharp.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/jwt-hardcoded-secret-csharp.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/jwt-tokenvalidationparameters-no-expiry-validation-csharp.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/networkcredential-hardcoded-secret-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/npgsqlconnectionstringbuilder-hardcoded-secret-csharp.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/oracleconnectionstringbuilder-hardcoded-secret-csharp.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/sqlconnectionstringbuilder-hardcoded-secret-csharp.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/stacktrace-disclosure-csharp.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/csharp/security/use-ecb-mode-csharp.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/go/security/avoid-bind-to-all-interfaces-go.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/go/security/gorilla-cookie-store-hardcoded-session-key-go.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/go/security/gorilla-csrf-hardcoded-auth-key-go.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/go/security/grpc-client-insecure-connection-go.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/go/security/jwt-go-none-algorithm-go.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/go/security/missing-ssl-minversion-go.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/go/security/openai-empty-secret-go.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/go/security/openai-hardcoded-secret-go.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/go/security/ssl-v3-is-insecure-go.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/go/security/tls-with-insecure-cipher-go.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/go/security/use-of-weak-rsa-key-go.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/html/security/plaintext-http-link-html.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cbc-padding-oracle-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-httponly-false-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-missing-httponly-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-missing-samesite-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-missing-secure-flag-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/cookie-secure-flag-false-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/datanucleus-hardcoded-connection-password-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/des-is-deprecated-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/desede-is-deprecated-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/documentbuilderfactory-disallow-doctype-decl-false-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/documentbuilderfactory-external-general-entities-true-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/documentbuilderfactory-external-parameter-entities-true-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/drivermanager-hardcoded-secret-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/ecb-cipher-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/hardcoded-connection-password-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/hardcoded-secret-in-credentials-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/java-jwt-hardcoded-secret-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/jedis-jedisclientconfig-hardcoded-password-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/jedis-jedisfactory-hardcoded-password-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/missing-httponly-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/missing-secure-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/no-null-cipher-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/passwordauthentication-hardcoded-password-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/rsa-no-padding-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/simple-command-injection-direct-input-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/system-setproperty-hardcoded-secret-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/unencrypted-socket-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-aes-ecb-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-blowfish-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-default-aes-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-md5-digest-utils-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-md5-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-rc2-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-rc4-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/use-of-sha1-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/java/security/weak-ssl-context-java.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/detect-angular-sce-disabled-javascript.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/express-jwt-hardcoded-secret-javascript.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/express-session-hardcoded-secret-javascript.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/jwt-simple-noverify-javascript.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/node-rsa-weak-key-javascript.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/node-sequelize-empty-password-argument-javascript.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/javascript/security/node-sequelize-hardcoded-secret-argument-javascript.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/kotlin/security/des-is-deprecated-kotlin.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/kotlin/security/desede-is-deprecated-kotlin.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/kotlin/security/jwt-hardcode-kotlin.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/kotlin/security/rsa-no-padding-kotlin.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/kotlin/security/system-setproperty-hardcoded-secret-kotlin.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/php/security/openssl-cbc-static-iv-php.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/php/security/search-active-debug-php.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/avoid-mktemp-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/avoid_app_run_with_bad_host-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/debug-enabled-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/hashids-with-django-secret-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/hashids-with-flask-secret-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/insecure-cipher-algorithm-rc4-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/jwt-python-hardcoded-secret-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/openai-hardcoded-secret-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-cassandra-empty-password-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-cassandra-hardcoded-secret-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-couchbase-empty-password-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-couchbase-hardcoded-secret-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-elasticsearch-hardcoded-bearer-auth-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-ldap3-empty-password-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-ldap3-hardcoded-secret-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mariadb-empty-password-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mariadb-hardcoded-secret-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysql-empty-password-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysql-hardcoded-secret-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysqlclient-empty-password-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-mysqlclient-hardcoded-secret-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-neo4j-empty-password-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-neo4j-hardcoded-secret-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-mysql-empty-password-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-mysql-hardcoded-secret-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-pg-empty-password-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-peewee-pg-hardcoded-secret-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pg8000-empty-password-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pg8000-hardcoded-secret-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-psycopg2-empty-password-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-psycopg2-hardcoded-secret-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pyjwt-hardcoded-secret-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymongo-empty-password-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymongo-hardcoded-secret-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymssql-empty-password-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymssql-hardcoded-secret-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymysql-empty-password-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-pymysql-hardcoded-secret-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-redis-empty-password-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-redis-hardcoded-secret-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-requests-empty-password-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-requests-hardcoded-secret-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-requests-oauth-hardcoded-secret-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-tormysql-empty-password-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-tormysql-hardcoded-secret-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-urllib3-hardcoded-secret-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-webrepl-empty-password-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/python/security/python-webrepl-hardcoded-secret-python.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/force-ssl-false-ruby.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/hardcoded-http-auth-in-controller-ruby.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/hardcoded-secret-rsa-passphrase-ruby.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/insufficient-rsa-key-size-ruby.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-aws-sdk-hardcoded-secret-ruby.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-cassandra-empty-password-ruby.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-cassandra-hardcoded-secret-ruby.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-excon-hardcoded-secret-ruby.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-faraday-hardcoded-secret-ruby.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mongo-empty-password-ruby.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mongo-hardcoded-secret-ruby.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mysql2-empty-password-ruby.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-mysql2-hardcoded-secret-ruby.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-octokit-hardcoded-secret-ruby.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-pg-empty-password-ruby.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-pg-hardcoded-secret-ruby.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-redis-empty-password-ruby.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/ruby/security/ruby-redis-hardcoded-secret-ruby.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/empty-password-rust.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/hardcoded-password-rust.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/postgres-empty-password-rust.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/reqwest-accept-invalid-rust.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/secrets-reqwest-hardcoded-auth-rust.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/ssl-verify-none-rust.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/tokio-postgres-empty-password-rust.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/rust/security/tokio-postgres-hardcoded-password-rust.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/scala/security/jwt-scala-hardcode-scala.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/scala/security/scala-jwt-hardcoded-secret-scala.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/swift/security/aes-hardcoded-secret-swift.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/swift/security/blowfish-hardcoded-secret-swift.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/swift/security/chacha20-hardcoded-secret-swift.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/swift/security/insecure-biometrics-swift.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/swift/security/rabbit-hardcoded-secret-swift.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/detect-angular-sce-disabled-typescript.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/express-session-hardcoded-secret-typescript.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/jwt-simple-noverify-typescript.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/node-rsa-weak-key-typescript.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/node-sequelize-empty-password-argument-typescript.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/coderabbit/rules/typescript/security/node-sequelize-hardcoded-secret-argument-typescript.yml +2 -1
- package/extensions/dm-lens/rules/ast-grep-rules/rule-schema.json +1 -1
- package/extensions/dm-lens/rules/ast-grep-rules/rule-tests/array-callback-return-js-test.yml +23 -0
- package/extensions/dm-lens/rules/ast-grep-rules/rule-tests/array-callback-return-test.yml +23 -0
- package/extensions/dm-lens/rules/ast-grep-rules/rule-tests/no-accumulating-spread-js-test.yml +37 -0
- package/extensions/dm-lens/rules/ast-grep-rules/rule-tests/no-negation-in-equality-check-js-test.yml +8 -0
- package/extensions/dm-lens/rules/ast-grep-rules/rule-tests/no-negation-in-equality-check-test.yml +8 -0
- package/extensions/dm-lens/rules/ast-grep-rules/rule-tests/ts-redundant-filter-map-test.yml +12 -1
- package/extensions/dm-lens/rules/ast-grep-rules/rule-tests/unchecked-throwing-call-js-test.yml +16 -0
- package/extensions/dm-lens/rules/ast-grep-rules/rule-tests/unchecked-throwing-call-test.yml +16 -0
- package/extensions/dm-lens/rules/ast-grep-rules/rule-tests-disabled/filter-then-map-js-test.yml +12 -0
- package/extensions/dm-lens/rules/ast-grep-rules/rule-tests-disabled/filter-then-map-test.yml +25 -0
- package/extensions/dm-lens/rules/ast-grep-rules/rules/array-callback-return-js.yml +8 -0
- package/extensions/dm-lens/rules/ast-grep-rules/rules/array-callback-return.yml +8 -0
- package/extensions/dm-lens/rules/ast-grep-rules/rules/c-no-malloc-free.yml +13 -12
- package/extensions/dm-lens/rules/ast-grep-rules/rules/cpp-no-malloc-free.yml +11 -10
- package/extensions/dm-lens/rules/ast-grep-rules/rules/cpp-no-printf.yml +10 -9
- package/extensions/dm-lens/rules/ast-grep-rules/rules/go-defer-func-call-antipattern.yml +14 -13
- package/extensions/dm-lens/rules/ast-grep-rules/rules/go-no-fmt-println.yml +14 -13
- package/extensions/dm-lens/rules/ast-grep-rules/rules/go-no-panic-in-lib.yml +20 -19
- package/extensions/dm-lens/rules/ast-grep-rules/rules/go-no-underscore-func-name.yml +14 -13
- package/extensions/dm-lens/rules/ast-grep-rules/rules/go-prefer-errors-is.yml +14 -13
- package/extensions/dm-lens/rules/ast-grep-rules/rules/go-prefer-string-builder.yml +19 -18
- package/extensions/dm-lens/rules/ast-grep-rules/rules/go-test-functions.yml +14 -13
- package/extensions/dm-lens/rules/ast-grep-rules/rules/hyphenated-svg-attribute.yml +10 -9
- package/extensions/dm-lens/rules/ast-grep-rules/rules/kotlin-no-lateinit.yml +12 -11
- package/extensions/dm-lens/rules/ast-grep-rules/rules/kotlin-no-nullable-boolean.yml +11 -10
- package/extensions/dm-lens/rules/ast-grep-rules/rules/kotlin-no-println.yml +15 -14
- package/extensions/dm-lens/rules/ast-grep-rules/rules/kotlin-no-unnecessary-let.yml +10 -9
- package/extensions/dm-lens/rules/ast-grep-rules/rules/kotlin-no-unsafe-cast.yml +10 -9
- package/extensions/dm-lens/rules/ast-grep-rules/rules/kotlin-no-var.yml +11 -10
- package/extensions/dm-lens/rules/ast-grep-rules/rules/kotlin-prefer-data-class.yml +10 -9
- package/extensions/dm-lens/rules/ast-grep-rules/rules/kotlin-prefer-is-empty.yml +10 -9
- package/extensions/dm-lens/rules/ast-grep-rules/rules/no-accumulating-spread-js.yml +49 -1
- package/extensions/dm-lens/rules/ast-grep-rules/rules/no-aws-access-key-literal.yml +1 -1
- package/extensions/dm-lens/rules/ast-grep-rules/rules/no-compile-call.yml +13 -12
- package/extensions/dm-lens/rules/ast-grep-rules/rules/no-flask-secret-key-literal.yml +1 -1
- package/extensions/dm-lens/rules/ast-grep-rules/rules/no-hardcoded-password.yml +1 -1
- package/extensions/dm-lens/rules/ast-grep-rules/rules/no-marshal-load.yml +12 -11
- package/extensions/dm-lens/rules/ast-grep-rules/rules/no-negation-in-equality-check-js.yml +17 -5
- package/extensions/dm-lens/rules/ast-grep-rules/rules/no-negation-in-equality-check.yml +17 -5
- package/extensions/dm-lens/rules/ast-grep-rules/rules/no-python-sql-string-concat.yml +12 -11
- package/extensions/dm-lens/rules/ast-grep-rules/rules/no-requests-verify-false.yml +13 -12
- package/extensions/dm-lens/rules/ast-grep-rules/rules/no-secret-in-env-var-name.yml +1 -1
- package/extensions/dm-lens/rules/ast-grep-rules/rules/no-sql-in-code-execute-js.yml +1 -2
- package/extensions/dm-lens/rules/ast-grep-rules/rules/no-sql-in-code-execute.yml +1 -2
- package/extensions/dm-lens/rules/ast-grep-rules/rules/python-optional-type.yml +9 -8
- package/extensions/dm-lens/rules/ast-grep-rules/rules/reducible-list-comprehension.yml +8 -7
- package/extensions/dm-lens/rules/ast-grep-rules/rules/ruby-detect-path-traversal.yml +14 -13
- package/extensions/dm-lens/rules/ast-grep-rules/rules/ruby-symbol-to-proc-candidate.yml +8 -7
- package/extensions/dm-lens/rules/ast-grep-rules/rules/rust-no-chars-enumerate.yml +9 -8
- package/extensions/dm-lens/rules/ast-grep-rules/rules/ts-redundant-filter-map.yml +9 -1
- package/extensions/dm-lens/rules/ast-grep-rules/rules/unchecked-throwing-call-js.yml +8 -1
- package/extensions/dm-lens/rules/ast-grep-rules/rules/unchecked-throwing-call.yml +8 -1
- package/extensions/dm-lens/rules/ast-grep-rules/rules-disabled/filter-then-map-js.yml +17 -0
- package/extensions/dm-lens/rules/ast-grep-rules/rules-disabled/filter-then-map.yml +36 -0
- package/extensions/dm-lens/rules/ast-grep-rules/rules-disabled/gorm-unbounded-preload.yml +7 -6
- package/extensions/dm-lens/rules/ast-grep-rules/rules-disabled/shadow-err-variable.yml +6 -5
- package/extensions/dm-lens/rules/ast-grep-rules/self-scan-baseline.json +1 -1
- package/extensions/dm-lens/rules/tree-sitter-queries/typescript/ts-react-antipatterns.yml +8 -0
- package/extensions/dm-lens/scripts/lib/latency-log-phases.mjs +81 -0
- package/extensions/dm-lens/scripts/lib/process-scan.mjs +1 -1
- package/extensions/dm-lens/skills/dm-lens-lsp-navigation/SKILL.md +5 -1
- package/extensions/dm-lens/tools/activate-tools.js +2 -0
- package/extensions/dm-lens/tools/ast-grep-outline.js +50 -28
- package/extensions/dm-lens/tools/ast-grep-replace.js +73 -10
- package/extensions/dm-lens/tools/ast-grep-search.js +21 -22
- package/extensions/dm-lens/tools/effective-config.js +19 -5
- package/extensions/dm-lens/tools/lens-diagnostic-mark.js +83 -66
- package/extensions/dm-lens/tools/lens-diagnostics.js +241 -80
- package/extensions/dm-lens/tools/lsp-diagnostics.js +117 -61
- package/extensions/dm-lens/tools/lsp-navigation-text.js +441 -0
- package/extensions/dm-lens/tools/lsp-navigation.js +153 -57
- package/extensions/dm-lens/tools/lsp-structured-output.js +37 -32
- package/extensions/dm-lens/tools/module-report.js +21 -16
- package/extensions/dm-lens/tools/project-report.js +13 -9
- package/extensions/dm-lens/tools/render-compact.js +40 -0
- package/extensions/dm-lens/tools/shared.js +127 -6
- package/extensions/dm-lens/tools/symbol-search.js +26 -54
- package/extensions/dm-lens/vendor/grammars/tree-sitter-groovy.wasm +0 -0
- package/extensions/dm-mcp-adapter/THIRD_PARTY_NOTICES.md +1 -1
- package/extensions/dm-mcp-adapter/app-bridge.bundle.js +7082 -5121
- package/extensions/dm-mcp-adapter/cli.js +3 -4
- package/extensions/dm-mcp-adapter/commands.js +3 -6
- package/extensions/dm-mcp-adapter/deferred-tool-surface.js +2 -6
- package/extensions/dm-mcp-adapter/direct-tools.js +2 -2
- package/extensions/dm-mcp-adapter/dist/elicitation-handler.js +12 -2
- package/extensions/dm-mcp-adapter/dist/json-schema-validator.js +3 -2
- package/extensions/dm-mcp-adapter/dist/mcp-auth-flow.js +0 -13
- package/extensions/dm-mcp-adapter/dist/sampling-handler.js +2 -0
- package/extensions/dm-mcp-adapter/dist/server-log.js +2 -1
- package/extensions/dm-mcp-adapter/dist/server-manager.js +5 -4
- package/extensions/dm-mcp-adapter/dist/session-recovery.js +1 -1
- package/extensions/dm-mcp-adapter/dist/task-jobs.js +50 -19
- package/extensions/dm-mcp-adapter/dist/types.js +34 -20
- package/extensions/dm-mcp-adapter/dist/utils.js +14 -0
- package/extensions/dm-mcp-adapter/elicitation-handler.js +12 -2
- package/extensions/dm-mcp-adapter/index.js +29 -1
- package/extensions/dm-mcp-adapter/init.js +69 -27
- package/extensions/dm-mcp-adapter/json-schema-validator.js +3 -2
- package/extensions/dm-mcp-adapter/mcp-auth-flow.js +0 -13
- package/extensions/dm-mcp-adapter/mcp-references.js +3 -2
- package/extensions/dm-mcp-adapter/package.json +1 -1
- package/extensions/dm-mcp-adapter/pi-signin-import.js +1 -2
- package/extensions/dm-mcp-adapter/prompts.js +4 -6
- package/extensions/dm-mcp-adapter/proxy-modes.js +19 -11
- package/extensions/dm-mcp-adapter/sampling-handler.js +2 -0
- package/extensions/dm-mcp-adapter/server-log.js +2 -1
- package/extensions/dm-mcp-adapter/server-manager.js +6 -4
- package/extensions/dm-mcp-adapter/session-recovery.js +1 -1
- package/extensions/dm-mcp-adapter/task-jobs.js +50 -19
- package/extensions/dm-mcp-adapter/types.js +34 -20
- package/extensions/dm-mcp-adapter/utils.js +14 -0
- package/extensions/dm-ponytail/hooks/band/metrics.js +4 -9
- package/extensions/dm-ponytail/hooks/band/register.js +33 -38
- package/extensions/dm-ponytail/package.json +1 -1
- package/extensions/dm-subagents/package.json +1 -1
- package/extensions/dm-subagents/skills/dm-subagents/SKILL.md +15 -6
- package/extensions/dm-subagents/skills/dm-subagents/references/prompting-and-roles.md +1 -0
- package/extensions/dm-subagents/src/agents/agent-management.js +41 -17
- package/extensions/dm-subagents/src/agents/agent-serializer.js +1 -1
- package/extensions/dm-subagents/src/agents/agents.js +44 -16
- package/extensions/dm-subagents/src/agents/global-npm-root.js +10 -2
- package/extensions/dm-subagents/src/api/preflight.js +4 -2
- package/extensions/dm-subagents/src/extension/config.js +9 -1
- package/extensions/dm-subagents/src/extension/herdr-dm-bridge.js +83 -24
- package/extensions/dm-subagents/src/extension/index.js +89 -43
- package/extensions/dm-subagents/src/extension/public-execution.js +4 -0
- package/extensions/dm-subagents/src/extension/reply-workflow-script.js +24 -4
- package/extensions/dm-subagents/src/extension/schemas.js +8 -1
- package/extensions/dm-subagents/src/extension/session-switch.js +130 -0
- package/extensions/dm-subagents/src/extension/subagent-launch-tool.js +81 -0
- package/extensions/dm-subagents/src/extension/subagent-options.js +4 -0
- package/extensions/dm-subagents/src/extension/tool-activation.js +37 -15
- package/extensions/dm-subagents/src/extension/tool-description.js +14 -8
- package/extensions/dm-subagents/src/integrations/herdr-status.js +3 -8
- package/extensions/dm-subagents/src/intercom/native-supervisor-channel.js +62 -9
- package/extensions/dm-subagents/src/intercom/result-intercom.js +3 -2
- package/extensions/dm-subagents/src/runs/background/async-execution.js +70 -18
- package/extensions/dm-subagents/src/runs/background/async-job-tracker.js +11 -0
- package/extensions/dm-subagents/src/runs/background/async-resume.js +74 -34
- package/extensions/dm-subagents/src/runs/background/async-retention.js +26 -16
- package/extensions/dm-subagents/src/runs/background/async-status.js +4 -0
- package/extensions/dm-subagents/src/runs/background/auto-drain.js +2 -1
- package/extensions/dm-subagents/src/runs/background/fleet-view.js +2 -1
- package/extensions/dm-subagents/src/runs/background/notify.js +7 -2
- package/extensions/dm-subagents/src/runs/background/result-watcher.js +54 -29
- package/extensions/dm-subagents/src/runs/background/resume-guidance.js +4 -2
- package/extensions/dm-subagents/src/runs/background/retained-children.js +2 -1
- package/extensions/dm-subagents/src/runs/background/run-child-session.js +9 -8
- package/extensions/dm-subagents/src/runs/background/run-status.js +12 -9
- package/extensions/dm-subagents/src/runs/background/runner-aliases.js +11 -0
- package/extensions/dm-subagents/src/runs/background/runner-child-launch.js +1 -0
- package/extensions/dm-subagents/src/runs/background/scheduled-runs.js +8 -3
- package/extensions/dm-subagents/src/runs/background/stale-run-reconciler.js +11 -8
- package/extensions/dm-subagents/src/runs/background/steering.js +11 -6
- package/extensions/dm-subagents/src/runs/background/subagent-runner.js +87 -72
- package/extensions/dm-subagents/src/runs/background/subagent-wait.js +11 -10
- package/extensions/dm-subagents/src/runs/background/wait-config.js +17 -4
- package/extensions/dm-subagents/src/runs/background/wait-subscriptions.js +104 -13
- package/extensions/dm-subagents/src/runs/background/wait-tool.js +4 -2
- package/extensions/dm-subagents/src/runs/foreground/async-steering-action.js +23 -8
- package/extensions/dm-subagents/src/runs/foreground/async-stop-action.js +9 -1
- package/extensions/dm-subagents/src/runs/foreground/execution.js +94 -30
- package/extensions/dm-subagents/src/runs/foreground/prompt-audit.js +1 -0
- package/extensions/dm-subagents/src/runs/foreground/subagent-executor.js +195 -61
- package/extensions/dm-subagents/src/runs/shared/acceptance.js +57 -22
- package/extensions/dm-subagents/src/runs/shared/async-status-projection.js +11 -1
- package/extensions/dm-subagents/src/runs/shared/child-commands.js +13 -2
- package/extensions/dm-subagents/src/runs/shared/child-hooks.js +10 -5
- package/extensions/dm-subagents/src/runs/shared/child-launch.js +12 -6
- package/extensions/dm-subagents/src/runs/shared/child-session.js +98 -59
- package/extensions/dm-subagents/src/runs/shared/claude-code-adapter.js +6 -0
- package/extensions/dm-subagents/src/runs/shared/external-cli-contract.js +15 -13
- package/extensions/dm-subagents/src/runs/shared/external-cli-runner.js +22 -6
- package/extensions/dm-subagents/src/runs/shared/herdr-connection.js +10 -2
- package/extensions/dm-subagents/src/runs/shared/herdr-dm-protocol.js +3 -2
- package/extensions/dm-subagents/src/runs/shared/herdr-machine.js +42 -21
- package/extensions/dm-subagents/src/runs/shared/herdr-pane-host.js +40 -21
- package/extensions/dm-subagents/src/runs/shared/herdr-placed-run.js +48 -25
- package/extensions/dm-subagents/src/runs/shared/kept-branch-text.js +22 -0
- package/extensions/dm-subagents/src/runs/shared/local-machine-access.js +2 -2
- package/extensions/dm-subagents/src/runs/shared/mcp-config-sources.js +1 -1
- package/extensions/dm-subagents/src/runs/shared/mcp-direct-tool-allowlist.js +27 -19
- package/extensions/dm-subagents/src/runs/shared/mcp-direct-tool-grant.js +7 -1
- package/extensions/dm-subagents/src/runs/shared/model-resolution-diagnostic.js +19 -0
- package/extensions/dm-subagents/src/runs/shared/model-resolution.js +46 -42
- package/extensions/dm-subagents/src/runs/shared/mutation-evidence.js +68 -7
- package/extensions/dm-subagents/src/runs/shared/nested-events.js +1 -1
- package/extensions/dm-subagents/src/runs/shared/parallel-handoff.js +18 -7
- package/extensions/dm-subagents/src/runs/shared/permissions.js +5 -3
- package/extensions/dm-subagents/src/runs/shared/placed-run-owner.js +13 -8
- package/extensions/dm-subagents/src/runs/shared/rex-machine.js +10 -7
- package/extensions/dm-subagents/src/runs/shared/rex-pane-host.js +7 -24
- package/extensions/dm-subagents/src/runs/shared/run-launch-folder.js +11 -0
- package/extensions/dm-subagents/src/runs/shared/runner-launcher.js +12 -0
- package/extensions/dm-subagents/src/runs/shared/single-output.js +4 -2
- package/extensions/dm-subagents/src/runs/shared/structured-output.js +35 -5
- package/extensions/dm-subagents/src/runs/shared/subagent-prompt-runtime.js +16 -1
- package/extensions/dm-subagents/src/runs/shared/supervisor-wait-timer.js +59 -0
- package/extensions/dm-subagents/src/runs/shared/tool-timeout.js +2 -1
- package/extensions/dm-subagents/src/runs/shared/worktree-cleanup-plan.js +2 -2
- package/extensions/dm-subagents/src/runs/shared/worktree.js +61 -8
- package/extensions/dm-subagents/src/shared/artifacts.js +108 -18
- package/extensions/dm-subagents/src/shared/compaction-interruption.js +39 -0
- package/extensions/dm-subagents/src/shared/fleet-transcript-reader.js +317 -0
- package/extensions/dm-subagents/src/shared/parent-wake.js +14 -5
- package/extensions/dm-subagents/src/shared/pruned-fork.js +2 -2
- package/extensions/dm-subagents/src/shared/reported-progress.js +12 -0
- package/extensions/dm-subagents/src/shared/required-child-extensions.js +24 -0
- package/extensions/dm-subagents/src/shared/session-succession.js +28 -1
- package/extensions/dm-subagents/src/shared/session-warnings.js +21 -0
- package/extensions/dm-subagents/src/shared/status-format.js +1 -1
- package/extensions/dm-subagents/src/shared/utils.js +4 -0
- package/extensions/dm-subagents/src/shared/wait-tool-name.js +8 -0
- package/extensions/dm-subagents/src/slash/slash-commands.js +2 -1
- package/extensions/dm-subagents/src/slash/subagent-cost.js +15 -1
- package/extensions/dm-subagents/src/tui/fleet-status.js +4 -20
- package/extensions/dm-subagents/src/tui/fleet-transcript.js +1 -316
- package/extensions/dm-subagents/src/tui/fleet.js +22 -4
- package/extensions/dm-subagents/src/tui/render.js +174 -57
- package/extensions/dm-subagents/src/tui/subagent-messages.js +3 -2
- package/extensions/dm-subagents/src/watchdog/model-selection.js +2 -2
- package/extensions/dm-subagents/src/watchdog/permission-arbiter.js +1 -0
- package/extensions/dm-subagents/src/watchdog/review.js +4 -3
- package/extensions/dm-subagents/src/watchdog/turn-delta.js +2 -1
- package/extensions/dm-subagents/src/workflows/scripted-workflow.js +307 -1135
- package/extensions/dm-subagents/src/workflows/structured-workflow-scripts.js +28 -10
- package/extensions/dm-subagents/src/workflows/workflow-launch-record.js +29 -12
- package/extensions/dm-subagents/src/workflows/workflow-receipt.js +37 -48
- package/extensions/dm-subagents/src/workflows/workflow-resources.js +4 -4
- package/extensions/dm-subagents/src/workflows/workflow-resume-claim.js +3 -3
- package/extensions/dm-subagents/src/workflows/workflow-resume.js +11 -8
- package/extensions/dm-subagents/src/workflows/workflow-script-worker.js +76 -0
- package/extensions/dm-subagents/workflow-script-process.cjs +38 -0
- package/extensions/dm-subagents/workflow-script-worker.cjs +1389 -0
- package/extensions/dm-web-access/anysearch.js +6 -3
- package/extensions/dm-web-access/autom.js +181 -0
- package/extensions/dm-web-access/cloro.js +217 -0
- package/extensions/dm-web-access/cloudflare-search.js +205 -0
- package/extensions/dm-web-access/curator-page.js +22 -1
- package/extensions/dm-web-access/curator-server.js +16 -0
- package/extensions/dm-web-access/domain-filter-normalization.js +31 -0
- package/extensions/dm-web-access/duckduckgo-rate-limit.js +113 -25
- package/extensions/dm-web-access/duckduckgo.js +8 -2
- package/extensions/dm-web-access/exa.js +72 -9
- package/extensions/dm-web-access/extract.js +105 -13
- package/extensions/dm-web-access/gemini-search.js +64 -8
- package/extensions/dm-web-access/github-api.js +2 -2
- package/extensions/dm-web-access/github-extract.js +4 -3
- package/extensions/dm-web-access/index.js +21 -4
- package/extensions/dm-web-access/mcp-tool-definitions.js +44 -33
- package/extensions/dm-web-access/openai-search.js +4 -3
- package/extensions/dm-web-access/outcrawl.js +185 -0
- package/extensions/dm-web-access/package.json +1 -1
- package/extensions/dm-web-access/page-query.js +16 -3
- package/extensions/dm-web-access/pdf-extract.js +0 -2
- package/extensions/dm-web-access/searchapi.js +183 -0
- package/extensions/dm-web-access/sofya.js +182 -0
- package/extensions/dm-web-access/source-check.js +3 -1
- package/extensions/dm-web-access/specstream.js +235 -0
- package/extensions/dm-web-access/ssrf-protection.js +19 -1
- package/extensions/dm-web-access/summary-review.js +19 -9
- package/extensions/dm-web-access/tabstack.js +222 -0
- package/extensions/dm-web-access/tool-activation.js +18 -4
- package/extensions/dm-web-access/utils.js +61 -21
- package/extensions/dm-web-access/video-extract.js +3 -1
- package/extensions/dm-web-access/web-tool-core.js +10 -4
- package/extensions/dm-web-access/xai-search.js +4 -3
- package/extensions/dm-web-access/youtube-extract.js +3 -1
- package/package.json +4 -4
- package/extensions/dm-lens/clients/bus-events-logger.js +0 -48
- package/extensions/dm-lens/clients/metrics-client.js +0 -80
|
@@ -30,18 +30,13 @@ export function registerSessionRoot(cwd) {
|
|
|
30
30
|
export function setSessionRootConfig(cwd, config) {
|
|
31
31
|
return noteEvictedRoots(sessionRoots.set(path.resolve(cwd), config));
|
|
32
32
|
}
|
|
33
|
-
function isSameOrChildPath(filePath, candidateRoot) {
|
|
34
|
-
if (filePath === candidateRoot)
|
|
35
|
-
return true;
|
|
36
|
-
return filePath.startsWith(`${candidateRoot}${path.sep}`);
|
|
37
|
-
}
|
|
38
33
|
export function sessionRootConfigForFile(filePath) {
|
|
39
34
|
const resolvedFilePath = path.resolve(filePath);
|
|
40
35
|
let bestMatch;
|
|
41
36
|
for (const [root, config] of sessionRoots) {
|
|
42
37
|
if (config === undefined)
|
|
43
38
|
continue;
|
|
44
|
-
if (!
|
|
39
|
+
if (!isSameOrWithin(root, resolvedFilePath))
|
|
45
40
|
continue;
|
|
46
41
|
if (!bestMatch || root.length > bestMatch.root.length) {
|
|
47
42
|
bestMatch = { root, config };
|
|
@@ -49,13 +49,6 @@ export const SERVER_DIAGNOSTIC_STRATEGIES = {
|
|
|
49
49
|
expectSemanticSecondPush: false,
|
|
50
50
|
silentOnClean: true
|
|
51
51
|
},
|
|
52
|
-
"rust-analyzer": {
|
|
53
|
-
seedFirstPush: false,
|
|
54
|
-
pullRetryBudgetMs: 500,
|
|
55
|
-
debounceMs: 150,
|
|
56
|
-
aggregateWaitMs: 3000,
|
|
57
|
-
expectSemanticSecondPush: true
|
|
58
|
-
},
|
|
59
52
|
python: {
|
|
60
53
|
seedFirstPush: true,
|
|
61
54
|
pullRetryBudgetMs: 0,
|
|
@@ -70,13 +63,6 @@ export const SERVER_DIAGNOSTIC_STRATEGIES = {
|
|
|
70
63
|
aggregateWaitMs: 3000,
|
|
71
64
|
expectSemanticSecondPush: false
|
|
72
65
|
},
|
|
73
|
-
eslint: {
|
|
74
|
-
seedFirstPush: true,
|
|
75
|
-
pullRetryBudgetMs: 0,
|
|
76
|
-
debounceMs: 200,
|
|
77
|
-
aggregateWaitMs: 2000,
|
|
78
|
-
expectSemanticSecondPush: false
|
|
79
|
-
},
|
|
80
66
|
opengrep: {
|
|
81
67
|
seedFirstPush: false,
|
|
82
68
|
pullRetryBudgetMs: 0,
|
|
@@ -161,6 +147,13 @@ export const SERVER_DIAGNOSTIC_STRATEGIES = {
|
|
|
161
147
|
aggregateWaitMs: 6000,
|
|
162
148
|
expectSemanticSecondPush: false
|
|
163
149
|
},
|
|
150
|
+
deno: {
|
|
151
|
+
seedFirstPush: false,
|
|
152
|
+
pullRetryBudgetMs: 250,
|
|
153
|
+
debounceMs: 150,
|
|
154
|
+
aggregateWaitMs: 7000,
|
|
155
|
+
expectSemanticSecondPush: false
|
|
156
|
+
},
|
|
164
157
|
cue: {
|
|
165
158
|
seedFirstPush: true,
|
|
166
159
|
pullRetryBudgetMs: 0,
|
|
@@ -4,7 +4,12 @@ import { getProjectDataDir } from "../file-utils.js";
|
|
|
4
4
|
import { writeFileAtomic } from "../atomic-write.js";
|
|
5
5
|
import { readJsonCache } from "../json-cache-read.js";
|
|
6
6
|
import { createGenerationMap } from "../generation-guard.js";
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
isUnderDir,
|
|
9
|
+
normalizeMapKey,
|
|
10
|
+
relativeInside,
|
|
11
|
+
walkUpDirs
|
|
12
|
+
} from "../path-utils.js";
|
|
8
13
|
import { loadReverseDependencyIndexFromSnapshot } from "../reverse-deps.js";
|
|
9
14
|
import { freshnessFromMtime } from "../freshness.js";
|
|
10
15
|
import { CONTENT_HASH_MAX_BYTES, hashFileBytes } from "../content-stamp.js";
|
|
@@ -45,21 +50,14 @@ export function clearWorkspaceDiagnosticsCacheAtAndAbove(cwd, ceiling = process.
|
|
|
45
50
|
const root = path.resolve(cwd);
|
|
46
51
|
const workspaceRoot = path.resolve(ceiling);
|
|
47
52
|
clearWorkspaceDiagnosticsCache(root);
|
|
48
|
-
|
|
49
|
-
if (relative.startsWith(".." + path.sep) || relative === ".." || path.isAbsolute(relative)) {
|
|
53
|
+
if (relativeInside(workspaceRoot, root) === undefined)
|
|
50
54
|
return;
|
|
51
|
-
}
|
|
52
55
|
if (normalizeMapKey(root) === normalizeMapKey(workspaceRoot))
|
|
53
56
|
return;
|
|
54
|
-
|
|
55
|
-
while (true) {
|
|
57
|
+
for (const ancestor of walkUpDirs(path.dirname(root), { spelling: true })) {
|
|
56
58
|
clearWorkspaceDiagnosticsCache(ancestor);
|
|
57
59
|
if (normalizeMapKey(ancestor) === normalizeMapKey(workspaceRoot))
|
|
58
60
|
return;
|
|
59
|
-
const parent = path.dirname(ancestor);
|
|
60
|
-
if (parent === ancestor)
|
|
61
|
-
return;
|
|
62
|
-
ancestor = parent;
|
|
63
61
|
}
|
|
64
62
|
}
|
|
65
63
|
const _cacheEpochs = createGenerationMap("workspace-diagnostics-cache", {
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { getLSPService } from "./lsp/capabilities.js";
|
|
2
|
+
import { withBudget } from "./deadline-utils.js";
|
|
3
|
+
import {
|
|
4
|
+
isLspRequestTimeoutError,
|
|
5
|
+
LspRequestTimeoutError
|
|
6
|
+
} from "./lsp/request-timeout-error.js";
|
|
2
7
|
const LSP_DOCUMENT_SYMBOL_TIMEOUT_MS = 150;
|
|
3
8
|
export const SYMBOL_KIND_NAMES = {
|
|
4
9
|
1: "file",
|
|
@@ -36,19 +41,17 @@ export async function getOpenDocumentSymbols(filePath, timeoutMs = LSP_DOCUMENT_
|
|
|
36
41
|
if (!spawned || !spawned.client.isDocumentOpen(filePath) || !spawned.client.getOperationSupport().documentSymbol) {
|
|
37
42
|
return;
|
|
38
43
|
}
|
|
39
|
-
let timer;
|
|
40
44
|
try {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
} catch {
|
|
45
|
+
const startedAt = Date.now();
|
|
46
|
+
const symbols = await withBudget(spawned.client.documentSymbol(filePath), timeoutMs);
|
|
47
|
+
if (symbols === undefined) {
|
|
48
|
+
throw new LspRequestTimeoutError("textDocument/documentSymbol", timeoutMs, Date.now() - startedAt);
|
|
49
|
+
}
|
|
50
|
+
return symbols;
|
|
51
|
+
} catch (err) {
|
|
52
|
+
if (isLspRequestTimeoutError(err))
|
|
53
|
+
throw err;
|
|
48
54
|
return;
|
|
49
|
-
} finally {
|
|
50
|
-
if (timer)
|
|
51
|
-
clearTimeout(timer);
|
|
52
55
|
}
|
|
53
56
|
}
|
|
54
57
|
function symbolRange(symbol) {
|
|
@@ -6,8 +6,10 @@ import {
|
|
|
6
6
|
logReadGuardEvent
|
|
7
7
|
} from "./read-guard-logger.js";
|
|
8
8
|
import { normalizeMapKey } from "./path-utils.js";
|
|
9
|
-
import {
|
|
10
|
-
|
|
9
|
+
import {
|
|
10
|
+
getMutationBridge,
|
|
11
|
+
recordMutationOutcome
|
|
12
|
+
} from "./mutation-bridge.js";
|
|
11
13
|
import { recordDegradationOnce } from "./degradation-ledger.js";
|
|
12
14
|
let noBridgeDbgLogged = false;
|
|
13
15
|
export function resetLspMutationNoBridgeDbgLatch() {
|
|
@@ -107,95 +109,83 @@ function uniqueDetails(files, fileDetails) {
|
|
|
107
109
|
importsChanged: true
|
|
108
110
|
});
|
|
109
111
|
}
|
|
112
|
+
function lspMutationEntry(context, filePath, detail) {
|
|
113
|
+
const known = detail.authorshipUnknown !== true;
|
|
114
|
+
const editRanges = detail.ranges && known ? detail.ranges.map(({ start, end }) => [start, end]) : detail.range && known ? [[detail.range.start, detail.range.end]] : undefined;
|
|
115
|
+
return {
|
|
116
|
+
filePath,
|
|
117
|
+
kind: "edit",
|
|
118
|
+
...detail.range !== undefined && {
|
|
119
|
+
touchedLines: [detail.range.start, detail.range.end]
|
|
120
|
+
},
|
|
121
|
+
...!known && { authorshipUnknown: true },
|
|
122
|
+
...editRanges !== undefined ? { editRanges } : {},
|
|
123
|
+
...context.sessionId !== undefined && { sessionId: context.sessionId },
|
|
124
|
+
consumer: context.tool,
|
|
125
|
+
provenance: "observed",
|
|
126
|
+
importsChanged: detail.importsChanged ?? true,
|
|
127
|
+
deferAutofix: false,
|
|
128
|
+
...context.session && { lineage: context.session },
|
|
129
|
+
...context.toolCallId !== undefined && {
|
|
130
|
+
toolCallId: context.toolCallId
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
function directBookkeepingDeps(context, runtime, cacheManager) {
|
|
135
|
+
const readGuard = context.readGuard;
|
|
136
|
+
return {
|
|
137
|
+
getRuntime: () => ({
|
|
138
|
+
turnIndex: runtime.turnIndex ?? 0,
|
|
139
|
+
telemetrySessionId: runtime.telemetrySessionId,
|
|
140
|
+
readGuard: {
|
|
141
|
+
currentBranchEpoch: 0,
|
|
142
|
+
...readGuard !== undefined && {
|
|
143
|
+
recordWritten: (filePath, opts) => readGuard.recordWritten(filePath, opts)
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
...runtime.recordProjectMutation !== undefined && {
|
|
147
|
+
recordProjectMutation: (args) => runtime.recordProjectMutation?.(args)
|
|
148
|
+
},
|
|
149
|
+
...runtime.noteCallWrite !== undefined && {
|
|
150
|
+
noteCallWrite: (toolCallId, filePath) => runtime.noteCallWrite?.(toolCallId, filePath)
|
|
151
|
+
}
|
|
152
|
+
}),
|
|
153
|
+
getCacheManager: () => ({
|
|
154
|
+
addModifiedRange: (filePath, range, importsChanged, cwd, sessionId) => cacheManager.addModifiedRange(filePath, range, importsChanged, cwd, sessionId ?? undefined, undefined, runtime.projectRoot ?? context.cwd)
|
|
155
|
+
}),
|
|
156
|
+
getProjectRoot: () => context.cwd,
|
|
157
|
+
getDispatchCwd: () => context.cwd,
|
|
158
|
+
countFileLines: () => 1,
|
|
159
|
+
isRecordable: () => true,
|
|
160
|
+
shouldStampReadGuard: () => readGuard !== undefined,
|
|
161
|
+
noteAgentMutation: () => {
|
|
162
|
+
return;
|
|
163
|
+
},
|
|
164
|
+
...context.dbg !== undefined && { dbg: context.dbg }
|
|
165
|
+
};
|
|
166
|
+
}
|
|
110
167
|
function bookkeepLspMutation(context, files, fileDetails) {
|
|
111
168
|
const details = uniqueDetails(files, fileDetails);
|
|
112
|
-
const
|
|
169
|
+
const runtime = context.runtime;
|
|
170
|
+
const cacheManager = context.cacheManager;
|
|
171
|
+
const deps = runtime && cacheManager ? directBookkeepingDeps(context, runtime, cacheManager) : undefined;
|
|
113
172
|
for (const detail of details) {
|
|
114
173
|
const filePath = path.resolve(detail.filePath);
|
|
115
|
-
const sessionLive = !context.session || context.session.guardedWrite(filePath, () => true) !== undefined;
|
|
116
174
|
if (context.isRecordable && !context.isRecordable(filePath)) {
|
|
117
175
|
context.dbg?.(`lsp mutation not recordable, skipping ${filePath}`);
|
|
118
176
|
continue;
|
|
119
177
|
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
advanceAuthorship: true,
|
|
125
|
-
...detail.authorshipUnknown !== true && detail.ranges !== undefined && {
|
|
126
|
-
authorship: "partial",
|
|
127
|
-
authoredRanges: detail.ranges.map(({ start, end }) => [start, end])
|
|
128
|
-
},
|
|
129
|
-
...detail.authorshipUnknown === true && { authorship: "unknown" },
|
|
130
|
-
...context.toolCallId !== undefined && {
|
|
131
|
-
toolCallId: context.toolCallId
|
|
132
|
-
}
|
|
133
|
-
});
|
|
134
|
-
} catch (err) {
|
|
135
|
-
context.dbg?.(`lsp mutation read-guard stamp failed for ${filePath}: ${err}`);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
if (useBridgeFallback) {
|
|
139
|
-
const bridge = getMutationBridge();
|
|
140
|
-
if (!bridge) {
|
|
141
|
-
recordDegradationOnce({
|
|
142
|
-
kind: "lsp-mutation-bridge-unmounted",
|
|
143
|
-
subject: "lsp-mutation:no-bridge",
|
|
144
|
-
reason: "workspace/applyEdit bookkeeping fell back to the mutation " + "bridge, but no bridge is mounted in this process (e.g. the " + "MCP server, which never runs DM's extension activation) — " + "the write is unrecorded (no read-guard stamp, no turn-state " + "entry, no change-log receipt)."
|
|
145
|
-
});
|
|
146
|
-
if (!noBridgeDbgLogged) {
|
|
147
|
-
noBridgeDbgLogged = true;
|
|
148
|
-
context.dbg?.(`lsp mutation bridge unavailable, dropping bookkeeping for ${filePath}`);
|
|
149
|
-
}
|
|
150
|
-
} else {
|
|
151
|
-
try {
|
|
152
|
-
const editRanges = detail.ranges && detail.authorshipUnknown !== true ? detail.ranges.map(({ start, end }) => [start, end]) : detail.range && detail.authorshipUnknown !== true ? [[detail.range.start, detail.range.end]] : undefined;
|
|
153
|
-
const recorded = bridge.recordMutation({
|
|
154
|
-
filePath,
|
|
155
|
-
kind: "edit",
|
|
156
|
-
...detail.range !== undefined && {
|
|
157
|
-
touchedLines: [detail.range.start, detail.range.end]
|
|
158
|
-
},
|
|
159
|
-
...detail.authorshipUnknown === true && {
|
|
160
|
-
authorshipUnknown: true
|
|
161
|
-
},
|
|
162
|
-
...editRanges !== undefined ? { editRanges } : {},
|
|
163
|
-
...context.sessionId !== undefined && {
|
|
164
|
-
sessionId: context.sessionId
|
|
165
|
-
},
|
|
166
|
-
consumer: context.tool,
|
|
167
|
-
provenance: "observed",
|
|
168
|
-
importsChanged: detail.importsChanged ?? true,
|
|
169
|
-
deferAutofix: false,
|
|
170
|
-
...context.session && { lineage: context.session },
|
|
171
|
-
...context.toolCallId !== undefined && {
|
|
172
|
-
toolCallId: context.toolCallId
|
|
173
|
-
}
|
|
174
|
-
});
|
|
175
|
-
if (!recorded) {
|
|
176
|
-
context.dbg?.(`lsp mutation bridge dropped ${filePath} (recordMutation() ` + "returned false — see the mutation_bridge debug output " + "for the reason: malformed entry, out-of-scope path, or " + "a bookkeeping error)");
|
|
177
|
-
}
|
|
178
|
-
} catch (err) {
|
|
179
|
-
context.dbg?.(`lsp mutation bridge fallback failed for ${filePath}: ${err}`);
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
} else {
|
|
183
|
-
const runtime = context.runtime;
|
|
184
|
-
runtime?.recordProjectMutation?.({
|
|
185
|
-
filePath,
|
|
186
|
-
source: context.source,
|
|
187
|
-
cwd: context.cwd,
|
|
188
|
-
changedRange: detail.range,
|
|
189
|
-
onAppendError: (err) => context.dbg?.(`lsp mutation project change append failed for ${filePath}: ${err}`)
|
|
178
|
+
let sessionLive;
|
|
179
|
+
if (deps) {
|
|
180
|
+
recordMutationOutcome(lspMutationEntry(context, filePath, detail), deps, {
|
|
181
|
+
source: context.source
|
|
190
182
|
});
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
}
|
|
198
|
-
noteMutationHandled(filePath);
|
|
183
|
+
sessionLive = !context.session || context.session.isCurrent();
|
|
184
|
+
} else {
|
|
185
|
+
sessionLive = !context.session || context.session.guardedWrite(filePath, () => true) !== undefined;
|
|
186
|
+
if (sessionLive)
|
|
187
|
+
stampFallbackReadGuard(context, filePath, detail);
|
|
188
|
+
recordThroughBridge(context, filePath, detail);
|
|
199
189
|
}
|
|
200
190
|
if (sessionLive && context.recordAutofix && context.source === "autofix") {
|
|
201
191
|
const key = normalizeMapKey(filePath);
|
|
@@ -211,6 +201,48 @@ function bookkeepLspMutation(context, files, fileDetails) {
|
|
|
211
201
|
context.publishFilesTouched(files);
|
|
212
202
|
}
|
|
213
203
|
}
|
|
204
|
+
function stampFallbackReadGuard(context, filePath, detail) {
|
|
205
|
+
if (!context.readGuard)
|
|
206
|
+
return;
|
|
207
|
+
try {
|
|
208
|
+
context.readGuard.recordWritten(filePath, {
|
|
209
|
+
stampFileTime: false,
|
|
210
|
+
advanceAuthorship: true,
|
|
211
|
+
...detail.authorshipUnknown !== true && detail.ranges !== undefined && {
|
|
212
|
+
authorship: "partial",
|
|
213
|
+
authoredRanges: detail.ranges.map(({ start, end }) => [start, end])
|
|
214
|
+
},
|
|
215
|
+
...detail.authorshipUnknown === true && { authorship: "unknown" },
|
|
216
|
+
...context.toolCallId !== undefined && {
|
|
217
|
+
toolCallId: context.toolCallId
|
|
218
|
+
}
|
|
219
|
+
});
|
|
220
|
+
} catch (err) {
|
|
221
|
+
context.dbg?.(`lsp mutation read-guard stamp failed for ${filePath}: ${err}`);
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
function recordThroughBridge(context, filePath, detail) {
|
|
225
|
+
const bridge = getMutationBridge();
|
|
226
|
+
if (!bridge) {
|
|
227
|
+
recordDegradationOnce({
|
|
228
|
+
kind: "lsp-mutation-bridge-unmounted",
|
|
229
|
+
subject: "lsp-mutation:no-bridge",
|
|
230
|
+
reason: "workspace/applyEdit bookkeeping fell back to the mutation " + "bridge, but no bridge is mounted in this process (e.g. the " + "MCP server, which never runs DM's extension activation) — " + "the write is unrecorded (no read-guard stamp, no turn-state " + "entry, no change-log receipt)."
|
|
231
|
+
});
|
|
232
|
+
if (!noBridgeDbgLogged) {
|
|
233
|
+
noBridgeDbgLogged = true;
|
|
234
|
+
context.dbg?.(`lsp mutation bridge unavailable, dropping bookkeeping for ${filePath}`);
|
|
235
|
+
}
|
|
236
|
+
return;
|
|
237
|
+
}
|
|
238
|
+
try {
|
|
239
|
+
if (bridge.recordMutation(lspMutationEntry(context, filePath, detail)))
|
|
240
|
+
return;
|
|
241
|
+
context.dbg?.(`lsp mutation bridge dropped ${filePath} (recordMutation() ` + "returned false — see the mutation_bridge debug output for the " + "reason: malformed entry, out-of-scope path, or a bookkeeping error)");
|
|
242
|
+
} catch (err) {
|
|
243
|
+
context.dbg?.(`lsp mutation bridge fallback failed for ${filePath}: ${err}`);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
214
246
|
function telemetryFor(context, options) {
|
|
215
247
|
const combined = combineResults(allResults(options));
|
|
216
248
|
const requestedTotal = options.requestedTotal ?? combined.requestedTotal;
|
|
@@ -8,11 +8,14 @@ import {
|
|
|
8
8
|
} from "../dispatch/integration.js";
|
|
9
9
|
import { emitBounded } from "../bounded-telemetry.js";
|
|
10
10
|
import { FactStore } from "../dispatch/fact-store.js";
|
|
11
|
+
import {
|
|
12
|
+
recordedUnchecked
|
|
13
|
+
} from "../dispatch/types.js";
|
|
11
14
|
import { detectFileKind } from "../file-kinds.js";
|
|
12
15
|
import { getDiagnosticTracker } from "../diagnostic-tracker.js";
|
|
13
16
|
import { getLSPService } from "../lsp/capabilities.js";
|
|
14
17
|
import { PathKeyedMap } from "../path-keyed-map.js";
|
|
15
|
-
import { normalizeMapKey } from "../path-utils.js";
|
|
18
|
+
import { normalizeMapKey, resolveHostToolPath } from "../path-utils.js";
|
|
16
19
|
import { loadProjectSnapshot } from "../project-snapshot.js";
|
|
17
20
|
import { buildOrUpdateGraph } from "../review-graph/service.js";
|
|
18
21
|
import { classifyDiagnosticTier, recordDiagnostics } from "../widget-state.js";
|
|
@@ -203,8 +206,9 @@ async function warmLspForFile(absPath, host) {
|
|
|
203
206
|
});
|
|
204
207
|
} catch {}
|
|
205
208
|
}
|
|
206
|
-
export async function analyzeFile(filePath,
|
|
207
|
-
const
|
|
209
|
+
export async function analyzeFile(filePath, workspaceCwd, options = {}) {
|
|
210
|
+
const cwd = resolveHostToolPath(".", workspaceCwd);
|
|
211
|
+
const absPath = resolveHostToolPath(filePath, cwd);
|
|
208
212
|
const host = createMcpHost({ "no-delta": true, ...options.flags }, cwd);
|
|
209
213
|
const observedAt = Date.now();
|
|
210
214
|
const analysisRootMode = resolveAnalysisRoot(absPath, cwd);
|
|
@@ -219,7 +223,7 @@ export async function analyzeFile(filePath, cwd, options = {}) {
|
|
|
219
223
|
});
|
|
220
224
|
const durationMs = Date.now() - start;
|
|
221
225
|
if (options.record !== false) {
|
|
222
|
-
recordDiagnostics(normalizeMapKey(absPath), result.diagnostics, undefined, observedAt);
|
|
226
|
+
recordDiagnostics(normalizeMapKey(absPath), result.diagnostics, undefined, observedAt, recordedUnchecked(result.verdict));
|
|
223
227
|
if (result.diagnostics.length > 0) {
|
|
224
228
|
getDiagnosticTracker().trackShown(result.diagnostics);
|
|
225
229
|
}
|
|
@@ -289,6 +293,7 @@ export async function analyzeFile(filePath, cwd, options = {}) {
|
|
|
289
293
|
fileKind: latencyReport?.fileKind,
|
|
290
294
|
durationMs,
|
|
291
295
|
hasBlockers: result.hasBlockers,
|
|
296
|
+
verdict: result.verdict,
|
|
292
297
|
counts: {
|
|
293
298
|
diagnostics: listedDiagnostics.length,
|
|
294
299
|
blockers: result.blockers.length,
|
|
@@ -34,12 +34,19 @@ export function boundUnixSocketPath(endpoint, platform = process.platform) {
|
|
|
34
34
|
return endpoint;
|
|
35
35
|
return bytes.subarray(0, limit).toString();
|
|
36
36
|
}
|
|
37
|
+
export function boundUnixSocketKeepsIdentity(endpoint, options = {}) {
|
|
38
|
+
const bound = boundUnixSocketPath(endpoint, options.platform);
|
|
39
|
+
if (bound === endpoint)
|
|
40
|
+
return true;
|
|
41
|
+
const token = options.ownerPid === undefined ? path.posix.basename(endpoint, ".sock") : `dm-lens-mcp-${options.ownerPid}-`;
|
|
42
|
+
return bound.startsWith(path.posix.join(path.posix.dirname(endpoint), token));
|
|
43
|
+
}
|
|
37
44
|
export function unlinkStaleUnixSocket(endpoint, options = {}) {
|
|
38
45
|
if ((options.platform ?? process.platform) === "win32")
|
|
39
46
|
return "absent";
|
|
40
|
-
|
|
41
|
-
if (options.ownerPid !== undefined && bound !== endpoint && !bound.includes(`${path.sep}dm-lens-mcp-${options.ownerPid}-`))
|
|
47
|
+
if (options.ownerPid !== undefined && !boundUnixSocketKeepsIdentity(endpoint, options))
|
|
42
48
|
return "shared-name";
|
|
49
|
+
const bound = boundUnixSocketPath(endpoint, options.platform);
|
|
43
50
|
try {
|
|
44
51
|
if (!fs.lstatSync(bound).isSocket())
|
|
45
52
|
return "not-a-socket";
|
|
@@ -56,7 +63,10 @@ function isNoListenerError(error) {
|
|
|
56
63
|
export function contentHash(content) {
|
|
57
64
|
return crypto.createHash("sha256").update(content).digest("hex");
|
|
58
65
|
}
|
|
59
|
-
function requestOverWarmIpc(
|
|
66
|
+
function requestOverWarmIpc(target, timeoutMs, buildRequest, validate) {
|
|
67
|
+
const { endpoint } = target;
|
|
68
|
+
if (!boundUnixSocketKeepsIdentity(endpoint, target))
|
|
69
|
+
return Promise.resolve({ available: false, reason: "no-listener" });
|
|
60
70
|
return new Promise((resolve) => {
|
|
61
71
|
let settled = false;
|
|
62
72
|
const finish = (value) => {
|
|
@@ -68,7 +78,7 @@ function requestOverWarmIpc(endpoint, timeoutMs, buildRequest, validate) {
|
|
|
68
78
|
resolve(value);
|
|
69
79
|
};
|
|
70
80
|
const deadlineAt = Date.now() + timeoutMs;
|
|
71
|
-
const socket = net.createConnection(endpoint);
|
|
81
|
+
const socket = net.createConnection(boundUnixSocketPath(endpoint));
|
|
72
82
|
socket.setEncoding("utf8");
|
|
73
83
|
const timer = setTimeout(() => finish({ available: false, reason: "timeout" }), timeoutMs);
|
|
74
84
|
timer.unref();
|
|
@@ -106,7 +116,10 @@ function requestOverWarmIpc(endpoint, timeoutMs, buildRequest, validate) {
|
|
|
106
116
|
}
|
|
107
117
|
export function requestWarmDiagnostics(cwd, incumbentPid, file, content, timeoutMs) {
|
|
108
118
|
const expectedHash = contentHash(content);
|
|
109
|
-
return requestOverWarmIpc(
|
|
119
|
+
return requestOverWarmIpc({
|
|
120
|
+
endpoint: diagnosticsIpcPathForCwd(cwd, incumbentPid),
|
|
121
|
+
ownerPid: incumbentPid
|
|
122
|
+
}, timeoutMs, (deadlineAt) => ({
|
|
110
123
|
route: "diagnostics",
|
|
111
124
|
version: WARM_DIAGNOSTICS_SCHEMA_VERSION,
|
|
112
125
|
file,
|
|
@@ -125,7 +138,10 @@ export function requestWarmDiagnostics(cwd, incumbentPid, file, content, timeout
|
|
|
125
138
|
});
|
|
126
139
|
}
|
|
127
140
|
export function requestWarmCodeActions(cwd, incumbentPid, file, expectedContentHash, ranges, timeoutMs) {
|
|
128
|
-
return requestOverWarmIpc(
|
|
141
|
+
return requestOverWarmIpc({
|
|
142
|
+
endpoint: diagnosticsIpcPathForCwd(cwd, incumbentPid),
|
|
143
|
+
ownerPid: incumbentPid
|
|
144
|
+
}, timeoutMs, (deadlineAt) => ({
|
|
129
145
|
route: "code-actions",
|
|
130
146
|
version: WARM_DIAGNOSTICS_SCHEMA_VERSION,
|
|
131
147
|
file,
|
|
@@ -146,7 +162,7 @@ export function requestWarmCodeActions(cwd, incumbentPid, file, expectedContentH
|
|
|
146
162
|
export const WARM_TURN_END_SCHEMA_VERSION = 2;
|
|
147
163
|
export async function requestWarmTurnEnd(cwd, timeoutMs = 55000) {
|
|
148
164
|
const startedAt = Date.now();
|
|
149
|
-
const first = await requestOverWarmIpc(ipcPathForCwd(cwd), timeoutMs, () => ({
|
|
165
|
+
const first = await requestOverWarmIpc({ endpoint: ipcPathForCwd(cwd) }, timeoutMs, () => ({
|
|
150
166
|
route: "turn-end",
|
|
151
167
|
version: WARM_TURN_END_SCHEMA_VERSION,
|
|
152
168
|
cwd
|
|
@@ -156,7 +172,7 @@ export async function requestWarmTurnEnd(cwd, timeoutMs = 55000) {
|
|
|
156
172
|
const remainingMs = timeoutMs - (Date.now() - startedAt);
|
|
157
173
|
if (remainingMs <= 0)
|
|
158
174
|
return { available: false, reason: "timeout" };
|
|
159
|
-
const ack = await requestOverWarmIpc(ipcPathForCwd(cwd), remainingMs, () => ({
|
|
175
|
+
const ack = await requestOverWarmIpc({ endpoint: ipcPathForCwd(cwd) }, remainingMs, () => ({
|
|
160
176
|
route: "turn-end-ack",
|
|
161
177
|
version: WARM_TURN_END_SCHEMA_VERSION,
|
|
162
178
|
cwd,
|
|
@@ -218,6 +234,9 @@ export function recordTurnEndOutcome(cwd, outcome, platform = process.platform)
|
|
|
218
234
|
} catch {}
|
|
219
235
|
}
|
|
220
236
|
export function requestWarmAnalyze(cwd, file, timeoutMs = 30000) {
|
|
237
|
+
const endpoint = ipcPathForCwd(cwd);
|
|
238
|
+
if (!boundUnixSocketKeepsIdentity(endpoint))
|
|
239
|
+
return Promise.resolve(undefined);
|
|
221
240
|
return new Promise((resolve) => {
|
|
222
241
|
let settled = false;
|
|
223
242
|
const finish = (value) => {
|
|
@@ -227,7 +246,7 @@ export function requestWarmAnalyze(cwd, file, timeoutMs = 30000) {
|
|
|
227
246
|
clearTimeout(timer);
|
|
228
247
|
resolve(value);
|
|
229
248
|
};
|
|
230
|
-
const socket = net.createConnection(
|
|
249
|
+
const socket = net.createConnection(boundUnixSocketPath(endpoint));
|
|
231
250
|
socket.setEncoding("utf8");
|
|
232
251
|
const timer = setTimeout(() => {
|
|
233
252
|
socket.destroy();
|
|
@@ -12,8 +12,9 @@ import {
|
|
|
12
12
|
createBoundedOutputSink,
|
|
13
13
|
DEFAULT_MAX_OUTPUT_BYTES
|
|
14
14
|
} from "../spawn-output-cap.js";
|
|
15
|
+
import { toPosix } from "../path-utils.js";
|
|
15
16
|
export function resolveRebuildScript(serverFilePath) {
|
|
16
|
-
return serverFilePath
|
|
17
|
+
return toPosix(serverFilePath).includes("/dist/") ? "build:dist" : "build";
|
|
17
18
|
}
|
|
18
19
|
export function analyzeFileFresh(workerPath, file, cwd, options = {}, timeoutMs = 120000) {
|
|
19
20
|
return new Promise((resolve) => {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as crypto from "node:crypto";
|
|
2
2
|
import * as fs from "node:fs";
|
|
3
|
-
import * as path from "node:path";
|
|
4
3
|
import { AstGrepClient } from "../ast-grep-client.js";
|
|
5
4
|
import { BoundedFifoMap } from "../bounded-cache.js";
|
|
6
5
|
import {
|
|
@@ -14,6 +13,7 @@ import {
|
|
|
14
13
|
import { resetDispatchBaselines } from "../dispatch/integration.js";
|
|
15
14
|
import { resetFormatService } from "../format-service.js";
|
|
16
15
|
import { getLSPService, resetLSPService } from "../lsp/capabilities.js";
|
|
16
|
+
import { resolveHostToolPath } from "../path-utils.js";
|
|
17
17
|
import {
|
|
18
18
|
acknowledgeTestFindings,
|
|
19
19
|
acknowledgeTurnEndFindings,
|
|
@@ -56,6 +56,7 @@ export function _resetMcpSessionContext() {
|
|
|
56
56
|
resolvedRuntime = undefined;
|
|
57
57
|
}
|
|
58
58
|
const noop = () => {};
|
|
59
|
+
export const MCP_DELIVERY_ADDRESS = "mcp-host";
|
|
59
60
|
function joinMessages(consumed) {
|
|
60
61
|
if (!consumed?.messages?.length)
|
|
61
62
|
return;
|
|
@@ -168,7 +169,7 @@ async function runTurnEndNowImpl(cwd, files = [], deferredDelivery = false) {
|
|
|
168
169
|
const host = createMcpHost(undefined, cwd);
|
|
169
170
|
let registered = 0;
|
|
170
171
|
for (const file of files) {
|
|
171
|
-
const abs =
|
|
172
|
+
const abs = resolveHostToolPath(file, cwd);
|
|
172
173
|
let lineCount = 1;
|
|
173
174
|
try {
|
|
174
175
|
lineCount = fs.readFileSync(abs, "utf8").split(`
|
|
@@ -176,8 +177,9 @@ async function runTurnEndNowImpl(cwd, files = [], deferredDelivery = false) {
|
|
|
176
177
|
} catch {
|
|
177
178
|
continue;
|
|
178
179
|
}
|
|
179
|
-
ctx.cacheManager.addModifiedRange(abs, { start: 1, end: lineCount }, true, cwd, MCP_TURN_STATE_OWNER_ID, "mcp");
|
|
180
|
-
|
|
180
|
+
const worklist = ctx.cacheManager.addModifiedRange(abs, { start: 1, end: lineCount }, true, cwd, MCP_TURN_STATE_OWNER_ID, "mcp");
|
|
181
|
+
if (worklist.files[ctx.cacheManager.toTurnStateKey(abs, cwd)])
|
|
182
|
+
registered++;
|
|
181
183
|
}
|
|
182
184
|
const owner = {
|
|
183
185
|
kind: "mcp",
|
|
@@ -199,14 +201,16 @@ async function runTurnEndNowImpl(cwd, files = [], deferredDelivery = false) {
|
|
|
199
201
|
host: "mcp",
|
|
200
202
|
owner,
|
|
201
203
|
resetLSPService,
|
|
202
|
-
resetFormatService
|
|
204
|
+
resetFormatService,
|
|
205
|
+
deliveryAddress: MCP_DELIVERY_ADDRESS
|
|
203
206
|
});
|
|
207
|
+
const reader = ctx.runtime.telemetrySessionId;
|
|
204
208
|
const outcome = deferredDelivery ? {
|
|
205
|
-
turnEnd: joinMessages(peekTurnEndFindings(ctx.cacheManager, cwd, ctx.runtime, true)),
|
|
209
|
+
turnEnd: joinMessages(peekTurnEndFindings(ctx.cacheManager, cwd, ctx.runtime, true, reader, MCP_DELIVERY_ADDRESS)),
|
|
206
210
|
tests: joinMessages(peekTestFindings(ctx.cacheManager, cwd, ctx.runtime, true)),
|
|
207
211
|
filesRegistered: registered
|
|
208
212
|
} : {
|
|
209
|
-
turnEnd: joinMessages(consumeTurnEndFindings(ctx.cacheManager, cwd, ctx.runtime)),
|
|
213
|
+
turnEnd: joinMessages(consumeTurnEndFindings(ctx.cacheManager, cwd, ctx.runtime, reader, MCP_DELIVERY_ADDRESS)),
|
|
210
214
|
tests: joinMessages(consumeTestFindings(ctx.cacheManager, cwd, ctx.runtime)),
|
|
211
215
|
filesRegistered: registered
|
|
212
216
|
};
|
|
@@ -215,7 +219,7 @@ async function runTurnEndNowImpl(cwd, files = [], deferredDelivery = false) {
|
|
|
215
219
|
commit: () => {
|
|
216
220
|
if (!deferredDelivery)
|
|
217
221
|
return;
|
|
218
|
-
acknowledgeTurnEndFindings(ctx.cacheManager, cwd);
|
|
222
|
+
acknowledgeTurnEndFindings(ctx.cacheManager, cwd, reader, MCP_DELIVERY_ADDRESS);
|
|
219
223
|
acknowledgeTestFindings(ctx.cacheManager, cwd);
|
|
220
224
|
}
|
|
221
225
|
};
|
|
@@ -270,15 +274,16 @@ function runTurnEndForIpcNow(cwd) {
|
|
|
270
274
|
};
|
|
271
275
|
}
|
|
272
276
|
const ctx = await getMcpSessionContext();
|
|
277
|
+
const reader = ctx.runtime.telemetrySessionId;
|
|
273
278
|
const cachedOutcome = {
|
|
274
|
-
turnEnd: joinMessages(peekTurnEndFindings(ctx.cacheManager, cwd, ctx.runtime, true)),
|
|
279
|
+
turnEnd: joinMessages(peekTurnEndFindings(ctx.cacheManager, cwd, ctx.runtime, true, reader, MCP_DELIVERY_ADDRESS)),
|
|
275
280
|
tests: joinMessages(peekTestFindings(ctx.cacheManager, cwd, ctx.runtime, true)),
|
|
276
281
|
filesRegistered: 0
|
|
277
282
|
};
|
|
278
283
|
const transaction = hasTurnEndFindings(cachedOutcome) ? {
|
|
279
284
|
outcome: cachedOutcome,
|
|
280
285
|
commit: () => {
|
|
281
|
-
acknowledgeTurnEndFindings(ctx.cacheManager, cwd);
|
|
286
|
+
acknowledgeTurnEndFindings(ctx.cacheManager, cwd, reader, MCP_DELIVERY_ADDRESS);
|
|
282
287
|
acknowledgeTestFindings(ctx.cacheManager, cwd);
|
|
283
288
|
}
|
|
284
289
|
} : await runTurnEndNow(cwd, [], true);
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
import { getDispatchCascadeCacheStats } from "./dispatch/integration.js";
|
|
18
18
|
import { getLspDocumentTextRetentionSnapshot } from "./lsp/client.js";
|
|
19
19
|
import { getLspIdleEvictMs } from "./lsp/client-registry.js";
|
|
20
|
-
import {
|
|
20
|
+
import { sessionCell } from "./session-scope.js";
|
|
21
21
|
export const MEMORY_SAMPLE_TURN_INTERVAL = 10;
|
|
22
22
|
const MAJOR_GC_KIND = constants.NODE_PERFORMANCE_GC_MAJOR;
|
|
23
23
|
let settledHeapUsedBytes = null;
|
|
@@ -43,20 +43,21 @@ export function shouldEmitMemorySample(turnIndex) {
|
|
|
43
43
|
export const HEAP_GROWTH_TIGHTEN_RATIO = 1.2;
|
|
44
44
|
let _lastSampledHeapUsedBytes = 0;
|
|
45
45
|
let _tightenThroughTurn = 0;
|
|
46
|
-
const
|
|
47
|
-
const _pendingTurnEnds = new BoundedFifoMap(MAX_PENDING_TURN_END_SESSIONS);
|
|
46
|
+
const MEMORY_TURN_END_CELL = "memory-turn-end";
|
|
48
47
|
export function resetMemorySamplerCadence() {
|
|
49
48
|
_lastSampledHeapUsedBytes = 0;
|
|
50
49
|
_tightenThroughTurn = 0;
|
|
51
|
-
_pendingTurnEnds.clear();
|
|
52
50
|
}
|
|
53
|
-
export function recordMemoryTurnEnd(
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
export function recordMemoryTurnEnd(sessionKey, now) {
|
|
52
|
+
const cell = sessionCell(sessionKey, MEMORY_TURN_END_CELL, () => ({ endedAt: undefined }));
|
|
53
|
+
if (cell)
|
|
54
|
+
cell.endedAt = now;
|
|
56
55
|
}
|
|
57
|
-
export function takeMemoryIdleGapMs(
|
|
58
|
-
const
|
|
59
|
-
|
|
56
|
+
export function takeMemoryIdleGapMs(sessionKey, now, windowMs = getLspIdleEvictMs()) {
|
|
57
|
+
const cell = sessionCell(sessionKey, MEMORY_TURN_END_CELL);
|
|
58
|
+
const endedAt = cell?.endedAt;
|
|
59
|
+
if (cell)
|
|
60
|
+
cell.endedAt = undefined;
|
|
60
61
|
if (endedAt === undefined)
|
|
61
62
|
return null;
|
|
62
63
|
const gap = now - endedAt;
|