pi-lens 4.1.2 → 4.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/CHANGELOG.md +320 -0
  2. package/config/dependency-cruiser-eager-allowlist.json +79 -0
  3. package/dist/clients/actionable-warnings-logger.js +16 -1
  4. package/dist/clients/ast-grep-client.js +13 -6
  5. package/dist/clients/availability-probe-flight.js +12 -0
  6. package/dist/clients/biome-client.js +7 -0
  7. package/dist/clients/blocker-freshness.js +20 -0
  8. package/dist/clients/bounded-telemetry.js +56 -19
  9. package/dist/clients/build-identity.js +95 -0
  10. package/dist/clients/bus-publish.js +3 -0
  11. package/dist/clients/cache/rule-cache.js +2 -1
  12. package/dist/clients/cache-observability.js +2 -1
  13. package/dist/clients/cascade-logger.js +15 -1
  14. package/dist/clients/dead-code-client.js +14 -11
  15. package/dist/clients/degradation-ledger.js +56 -4
  16. package/dist/clients/demoted-finding-render.js +14 -0
  17. package/dist/clients/dependency-checker.js +20 -3
  18. package/dist/clients/deps/minimatch.js +1 -1
  19. package/dist/clients/dispatch/collect-later-tier.js +39 -0
  20. package/dist/clients/dispatch/dispatcher.js +150 -9
  21. package/dist/clients/dispatch/fact-store.js +231 -9
  22. package/dist/clients/dispatch/integration.js +205 -100
  23. package/dist/clients/dispatch/pending-runner-findings.js +87 -0
  24. package/dist/clients/dispatch/plan.js +21 -5
  25. package/dist/clients/dispatch/runners/ast-grep-napi.js +174 -55
  26. package/dist/clients/dispatch/runners/eslint.js +5 -1
  27. package/dist/clients/dispatch/runners/helm-lint.js +16 -3
  28. package/dist/clients/dispatch/runners/helm-render.js +54 -9
  29. package/dist/clients/dispatch/runners/index.js +1 -3
  30. package/dist/clients/dispatch/runners/lsp.js +37 -1
  31. package/dist/clients/dispatch/runners/markdownlint.js +4 -1
  32. package/dist/clients/dispatch/runners/oxlint.js +11 -4
  33. package/dist/clients/dispatch/runners/psscriptanalyzer.js +4 -0
  34. package/dist/clients/dispatch/runners/rust-clippy.js +8 -3
  35. package/dist/clients/dispatch/runners/utils/runner-helpers.js +76 -25
  36. package/dist/clients/dispatch/runners/utils/spawn-outcome.js +4 -0
  37. package/dist/clients/dispatch/runners/utils/tool-failure.js +19 -7
  38. package/dist/clients/dispatch/runners/utils/toolchain-availability.js +7 -13
  39. package/dist/clients/dispatch/runners/yaml-rule-parser.js +51 -17
  40. package/dist/clients/event-loop-monitor.js +66 -1
  41. package/dist/clients/file-utils.js +157 -7
  42. package/dist/clients/finding-delivery-gate.js +5 -0
  43. package/dist/clients/formatters.js +28 -3
  44. package/dist/clients/git-guard.js +197 -47
  45. package/dist/clients/git-tracked-ignore.js +32 -1
  46. package/dist/clients/govulncheck-client.js +5 -1
  47. package/dist/clients/gzip-stage-write.js +7 -0
  48. package/dist/clients/installer/index.js +131 -34
  49. package/dist/clients/installer/managed-tool-refresh.js +3 -1
  50. package/dist/clients/instance-reaper.js +4 -13
  51. package/dist/clients/instance-registry-lock.js +145 -0
  52. package/dist/clients/instance-registry.js +432 -122
  53. package/dist/clients/jscpd-client.js +6 -1
  54. package/dist/clients/language-profile.js +4 -2
  55. package/dist/clients/latency-logger.js +19 -1
  56. package/dist/clients/lens-flag-registry.js +8 -0
  57. package/dist/clients/lens-map.js +3 -1
  58. package/dist/clients/lsp/cascade-tier.js +4 -0
  59. package/dist/clients/lsp/client.js +516 -31
  60. package/dist/clients/lsp/config.js +25 -2
  61. package/dist/clients/lsp/diagnostic-binding.js +9 -4
  62. package/dist/clients/lsp/index.js +509 -182
  63. package/dist/clients/lsp/jvm-runtime.js +5 -0
  64. package/dist/clients/lsp/launch.js +36 -8
  65. package/dist/clients/lsp/pending-aux-coverage.js +116 -4
  66. package/dist/clients/lsp/server.js +142 -13
  67. package/dist/clients/lsp/session-roots.js +99 -0
  68. package/dist/clients/lsp/workspace-diagnostics-cache.js +16 -6
  69. package/dist/clients/lsp/workspace-sweep-hold.js +32 -23
  70. package/dist/clients/lsp-mutation.js +16 -2
  71. package/dist/clients/mcp/analyze.js +12 -6
  72. package/dist/clients/mcp/session.js +14 -1
  73. package/dist/clients/memory-sampler.js +23 -1
  74. package/dist/clients/message-end-attribution.js +30 -0
  75. package/dist/clients/metrics-history.js +21 -4
  76. package/dist/clients/opaque-mutation-scan.js +232 -18
  77. package/dist/clients/package-manager.js +6 -18
  78. package/dist/clients/path-keyed-map.js +14 -1
  79. package/dist/clients/path-utils.js +32 -0
  80. package/dist/clients/pipeline.js +0 -8
  81. package/dist/clients/process-singletons.js +210 -0
  82. package/dist/clients/project-diagnostics/runner-adapters/madge.js +2 -1
  83. package/dist/clients/project-diagnostics/scanner.js +10 -4
  84. package/dist/clients/project-snapshot.js +33 -11
  85. package/dist/clients/read-guard-logger.js +24 -2
  86. package/dist/clients/read-guard.js +74 -7
  87. package/dist/clients/recent-touches.js +17 -5
  88. package/dist/clients/review-graph/builder.js +639 -62
  89. package/dist/clients/review-graph/tsconfig-paths.js +5 -1
  90. package/dist/clients/review-graph-logger.js +21 -1
  91. package/dist/clients/runtime-coordinator.js +68 -0
  92. package/dist/clients/runtime-session.js +30 -12
  93. package/dist/clients/runtime-tool-call.js +15 -0
  94. package/dist/clients/runtime-tool-result.js +106 -7
  95. package/dist/clients/runtime-turn.js +242 -27
  96. package/dist/clients/safe-spawn.js +158 -18
  97. package/dist/clients/security-scan-client.js +48 -17
  98. package/dist/clients/session-lifecycle.js +238 -42
  99. package/dist/clients/sg-runner.js +27 -15
  100. package/dist/clients/shared-checkout-guard.js +338 -0
  101. package/dist/clients/spawn-output-cap.js +37 -0
  102. package/dist/clients/spawn-timeout-cooldown.js +15 -1
  103. package/dist/clients/startup-scan.js +6 -7
  104. package/dist/clients/startup-timing.js +69 -4
  105. package/dist/clients/string-utils.js +20 -0
  106. package/dist/clients/test-runner-client.js +419 -88
  107. package/dist/clients/tool-policy.js +1 -1
  108. package/dist/clients/tree-sitter-client.js +11 -5
  109. package/dist/clients/tree-sitter-logger.js +17 -1
  110. package/dist/clients/warm-attach.js +8 -10
  111. package/dist/clients/word-index-logger.js +13 -1
  112. package/dist/clients/word-index-store.js +448 -0
  113. package/dist/clients/word-index.js +582 -104
  114. package/dist/clients/workspace-topology.js +17 -0
  115. package/dist/clients/zizmor-config.js +26 -6
  116. package/dist/index.js +11243 -6651
  117. package/dist/mcp/build-staleness.js +8 -7
  118. package/dist/mcp/cli.js +3 -1
  119. package/dist/mcp/server.js +6 -1
  120. package/dist/tools/lens-diagnostics.js +4 -0
  121. package/dist/tools/lsp-diagnostics.js +14 -5
  122. package/dist/tools/lsp-navigation.js +3 -1
  123. package/docs/agent-guide.md +4 -2
  124. package/docs/ast-grep_rules_catalog.md +41 -10
  125. package/docs/astplayground.md +26 -17
  126. package/package.json +5 -1
  127. package/rules/ast-grep-rules/rule-tests/c-no-malloc-free-test.yml +20 -0
  128. package/rules/ast-grep-rules/rule-tests/cpp-no-malloc-free-test.yml +25 -0
  129. package/rules/ast-grep-rules/rule-tests/cpp-no-printf-test.yml +19 -0
  130. package/rules/ast-grep-rules/rule-tests/go-no-fmt-println-test.yml +19 -0
  131. package/rules/ast-grep-rules/rule-tests/go-no-panic-in-lib-test.yml +17 -0
  132. package/rules/ast-grep-rules/rule-tests/go-no-underscore-func-name-test.yml +18 -0
  133. package/rules/ast-grep-rules/rule-tests/go-prefer-errors-is-test.yml +15 -0
  134. package/rules/ast-grep-rules/rule-tests/go-prefer-string-builder-test.yml +21 -0
  135. package/rules/ast-grep-rules/rule-tests/hyphenated-svg-attribute-test.yml +11 -0
  136. package/rules/ast-grep-rules/rule-tests/kotlin-no-lateinit-test.yml +17 -0
  137. package/rules/ast-grep-rules/rule-tests/kotlin-no-nullable-boolean-test.yml +15 -0
  138. package/rules/ast-grep-rules/rule-tests/kotlin-no-println-test.yml +19 -0
  139. package/rules/ast-grep-rules/rule-tests/kotlin-no-unnecessary-let-test.yml +7 -0
  140. package/rules/ast-grep-rules/rule-tests/kotlin-no-unsafe-cast-test.yml +7 -0
  141. package/rules/ast-grep-rules/rule-tests/kotlin-no-var-test.yml +7 -0
  142. package/rules/ast-grep-rules/rule-tests/kotlin-prefer-data-class-test.yml +25 -0
  143. package/rules/ast-grep-rules/rule-tests/kotlin-prefer-is-empty-test.yml +11 -0
  144. package/rules/ast-grep-rules/rule-tests/no-important-test.yml +21 -0
  145. package/rules/ast-grep-rules/rule-tests/no-raw-types-test.yml +30 -0
  146. package/rules/ast-grep-rules/rule-tests/no-string-concat-in-loop-test.yml +100 -0
  147. package/rules/ast-grep-rules/rule-tests/no-system-out-println-test.yml +7 -0
  148. package/rules/ast-grep-rules/rule-tests/prefer-string-is-empty-test.yml +7 -0
  149. package/rules/ast-grep-rules/rule-tests/python-optional-type-test.yml +9 -0
  150. package/rules/ast-grep-rules/rule-tests/reducible-list-comprehension-test.yml +11 -0
  151. package/rules/ast-grep-rules/rule-tests/ruby-symbol-to-proc-candidate-test.yml +10 -0
  152. package/rules/ast-grep-rules/rule-tests/rust-no-chars-enumerate-test.yml +7 -0
  153. package/rules/ast-grep-rules/rules/c-no-malloc-free.yml +39 -0
  154. package/rules/ast-grep-rules/rules/cpp-no-malloc-free.yml +45 -0
  155. package/rules/ast-grep-rules/rules/cpp-no-printf.yml +41 -0
  156. package/rules/ast-grep-rules/rules/go-no-fmt-println.yml +43 -0
  157. package/rules/ast-grep-rules/rules/go-no-panic-in-lib.yml +41 -0
  158. package/rules/ast-grep-rules/rules/go-no-underscore-func-name.yml +35 -0
  159. package/rules/ast-grep-rules/rules/go-prefer-errors-is.yml +40 -0
  160. package/rules/ast-grep-rules/rules/go-prefer-string-builder.yml +43 -0
  161. package/rules/ast-grep-rules/rules/hyphenated-svg-attribute.yml +32 -0
  162. package/rules/ast-grep-rules/rules/kotlin-no-lateinit.yml +37 -0
  163. package/rules/ast-grep-rules/rules/kotlin-no-nullable-boolean.yml +33 -0
  164. package/rules/ast-grep-rules/rules/kotlin-no-println.yml +42 -0
  165. package/rules/ast-grep-rules/rules/kotlin-no-unnecessary-let.yml +28 -0
  166. package/rules/ast-grep-rules/rules/kotlin-no-unsafe-cast.yml +28 -0
  167. package/rules/ast-grep-rules/rules/kotlin-no-var.yml +35 -0
  168. package/rules/ast-grep-rules/rules/kotlin-prefer-data-class.yml +66 -0
  169. package/rules/ast-grep-rules/rules/kotlin-prefer-is-empty.yml +35 -0
  170. package/rules/ast-grep-rules/rules/no-important.yml +21 -0
  171. package/rules/ast-grep-rules/rules/no-raw-types.yml +33 -0
  172. package/rules/ast-grep-rules/rules/no-string-concat-in-loop.yml +90 -0
  173. package/rules/ast-grep-rules/rules/no-system-out-println.yml +16 -0
  174. package/rules/ast-grep-rules/rules/prefer-string-is-empty.yml +11 -0
  175. package/rules/ast-grep-rules/rules/python-optional-type.yml +22 -0
  176. package/rules/ast-grep-rules/rules/reducible-list-comprehension.yml +29 -0
  177. package/rules/ast-grep-rules/rules/ruby-symbol-to-proc-candidate.yml +25 -0
  178. package/rules/ast-grep-rules/rules/rust-no-chars-enumerate.yml +19 -0

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the package file manually.