evergreen-deprecation 0.7.0 → 0.7.1

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 (211) hide show
  1. package/README.md +1 -1
  2. package/dist/src/usage/symbols.d.ts +1 -1
  3. package/dist/src/usage/tree-sitter.d.ts +1 -1
  4. package/dist/src/usage/tree-sitter.js +7 -6
  5. package/dist/src/usage/vendor/tree-sitter/LICENSE +21 -0
  6. package/dist/src/usage/vendor/tree-sitter/README.md +15 -0
  7. package/dist/src/usage/vendor/tree-sitter/tree-sitter-javascript.wasm +0 -0
  8. package/dist/src/usage/vendor/tree-sitter/tree-sitter-python.wasm +0 -0
  9. package/dist/src/usage/vendor/tree-sitter/tree-sitter-tsx.wasm +0 -0
  10. package/dist/src/usage/vendor/tree-sitter/tree-sitter-typescript.wasm +0 -0
  11. package/dist/src/usage/vendor/tree-sitter/tree-sitter.cjs +4075 -0
  12. package/dist/src/usage/vendor/tree-sitter/tree-sitter.d.ts +1027 -0
  13. package/dist/src/usage/vendor/tree-sitter/tree-sitter.wasm +0 -0
  14. package/dist/src/version.d.ts +1 -1
  15. package/dist/src/version.js +1 -1
  16. package/examples/agents/copilot/.vscode/mcp.json +1 -1
  17. package/examples/agents/copilot/coding-agent-mcp.json +1 -1
  18. package/examples/agents/cursor/.cursor/mcp.json +1 -1
  19. package/examples/agents/gemini/gemini-extension.json +2 -2
  20. package/examples/agents/gemini/settings.json +1 -1
  21. package/examples/agents/kilo/kilo.jsonc +1 -1
  22. package/examples/capabilities.json +5 -5
  23. package/examples/lifecycle-watch.yml +1 -1
  24. package/package.json +6 -4
  25. package/dist/src/action.js.map +0 -1
  26. package/dist/src/agent-instructions.js.map +0 -1
  27. package/dist/src/agent-tools.js.map +0 -1
  28. package/dist/src/as-of.js.map +0 -1
  29. package/dist/src/badge.js.map +0 -1
  30. package/dist/src/baseline.js.map +0 -1
  31. package/dist/src/capabilities.js.map +0 -1
  32. package/dist/src/check-dependency.js.map +0 -1
  33. package/dist/src/cle-ingest.js.map +0 -1
  34. package/dist/src/cli.js.map +0 -1
  35. package/dist/src/codeowners.js.map +0 -1
  36. package/dist/src/completions.js.map +0 -1
  37. package/dist/src/conformance/checks/bounds.js.map +0 -1
  38. package/dist/src/conformance/checks/determinism.js.map +0 -1
  39. package/dist/src/conformance/checks/evidence.js.map +0 -1
  40. package/dist/src/conformance/checks/inputs.js.map +0 -1
  41. package/dist/src/conformance/checks/locations.js.map +0 -1
  42. package/dist/src/conformance/checks/malformed.js.map +0 -1
  43. package/dist/src/conformance/checks/zero.js.map +0 -1
  44. package/dist/src/conformance/index.js.map +0 -1
  45. package/dist/src/conformance/trace-reads.js.map +0 -1
  46. package/dist/src/data-bundle.js.map +0 -1
  47. package/dist/src/data-signature.js.map +0 -1
  48. package/dist/src/data-source.js.map +0 -1
  49. package/dist/src/data-status.js.map +0 -1
  50. package/dist/src/data-update.js.map +0 -1
  51. package/dist/src/detector-inputs.js.map +0 -1
  52. package/dist/src/detectors/android/gradle-scan.js.map +0 -1
  53. package/dist/src/detectors/android/index.js.map +0 -1
  54. package/dist/src/detectors/android/parse-build-gradle.js.map +0 -1
  55. package/dist/src/detectors/android/parse-libs-versions-toml.js.map +0 -1
  56. package/dist/src/detectors/android/parse-settings-gradle.js.map +0 -1
  57. package/dist/src/detectors/ci-images/index.js.map +0 -1
  58. package/dist/src/detectors/ci-images/parse-azure-pipelines.js.map +0 -1
  59. package/dist/src/detectors/ci-images/parse-circleci.js.map +0 -1
  60. package/dist/src/detectors/ci-images/parse-gitlab-ci.js.map +0 -1
  61. package/dist/src/detectors/container/index.js.map +0 -1
  62. package/dist/src/detectors/container/parse-compose.js.map +0 -1
  63. package/dist/src/detectors/container/parse-dockerfile.js.map +0 -1
  64. package/dist/src/detectors/container/parse-image.js.map +0 -1
  65. package/dist/src/detectors/container/rootfs.js.map +0 -1
  66. package/dist/src/detectors/cpp/index.js.map +0 -1
  67. package/dist/src/detectors/cpp/parse-cmakelists.js.map +0 -1
  68. package/dist/src/detectors/cpp/parse-conan.js.map +0 -1
  69. package/dist/src/detectors/cpp/parse-vcpkg.js.map +0 -1
  70. package/dist/src/detectors/dart/index.js.map +0 -1
  71. package/dist/src/detectors/dart/parse-fvm.js.map +0 -1
  72. package/dist/src/detectors/dart/parse-pubspec-lock.js.map +0 -1
  73. package/dist/src/detectors/dart/parse-pubspec.js.map +0 -1
  74. package/dist/src/detectors/database/index.js.map +0 -1
  75. package/dist/src/detectors/database/parse-compose.js.map +0 -1
  76. package/dist/src/detectors/database/parse-terraform.js.map +0 -1
  77. package/dist/src/detectors/deno/index.js.map +0 -1
  78. package/dist/src/detectors/deno/parse.js.map +0 -1
  79. package/dist/src/detectors/dotnet/index.js.map +0 -1
  80. package/dist/src/detectors/dotnet/msbuild-xml.js.map +0 -1
  81. package/dist/src/detectors/dotnet/parse-global-json.js.map +0 -1
  82. package/dist/src/detectors/dotnet/parse-msbuild.js.map +0 -1
  83. package/dist/src/detectors/dotnet/parse-packages-lock.js.map +0 -1
  84. package/dist/src/detectors/elixir/index.js.map +0 -1
  85. package/dist/src/detectors/elixir/parse-elixir-runtime.js.map +0 -1
  86. package/dist/src/detectors/elixir/parse-mix-exs.js.map +0 -1
  87. package/dist/src/detectors/elixir/parse-mix-lock.js.map +0 -1
  88. package/dist/src/detectors/github-actions-dotnet.js.map +0 -1
  89. package/dist/src/detectors/github-actions-node.js.map +0 -1
  90. package/dist/src/detectors/github-actions.js.map +0 -1
  91. package/dist/src/detectors/go/index.js.map +0 -1
  92. package/dist/src/detectors/go/parse-go-mod.js.map +0 -1
  93. package/dist/src/detectors/go/parse-go-work.js.map +0 -1
  94. package/dist/src/detectors/index.js.map +0 -1
  95. package/dist/src/detectors/java/index.js.map +0 -1
  96. package/dist/src/detectors/java/jdk-version.js.map +0 -1
  97. package/dist/src/detectors/java/parse-gradle.js.map +0 -1
  98. package/dist/src/detectors/java/parse-pins.js.map +0 -1
  99. package/dist/src/detectors/java/parse-pom.js.map +0 -1
  100. package/dist/src/detectors/java/parse-wrapper.js.map +0 -1
  101. package/dist/src/detectors/java/xml.js.map +0 -1
  102. package/dist/src/detectors/json-lines.js.map +0 -1
  103. package/dist/src/detectors/kubernetes/api-version.js.map +0 -1
  104. package/dist/src/detectors/kubernetes/index.js.map +0 -1
  105. package/dist/src/detectors/kubernetes/parse-helm.js.map +0 -1
  106. package/dist/src/detectors/kubernetes/parse-kustomize.js.map +0 -1
  107. package/dist/src/detectors/kubernetes/parse-manifest.js.map +0 -1
  108. package/dist/src/detectors/npm.js.map +0 -1
  109. package/dist/src/detectors/php/index.js.map +0 -1
  110. package/dist/src/detectors/php/parse-composer-json.js.map +0 -1
  111. package/dist/src/detectors/php/parse-composer-lock.js.map +0 -1
  112. package/dist/src/detectors/php/parse-php-runtime.js.map +0 -1
  113. package/dist/src/detectors/python.js.map +0 -1
  114. package/dist/src/detectors/ruby/index.js.map +0 -1
  115. package/dist/src/detectors/ruby/parse-gemfile-lock.js.map +0 -1
  116. package/dist/src/detectors/ruby/parse-gemfile.js.map +0 -1
  117. package/dist/src/detectors/ruby/parse-gemspec.js.map +0 -1
  118. package/dist/src/detectors/ruby/parse-ruby-runtime.js.map +0 -1
  119. package/dist/src/detectors/rust/index.js.map +0 -1
  120. package/dist/src/detectors/rust/parse-cargo-lock.js.map +0 -1
  121. package/dist/src/detectors/rust/parse-cargo-toml.js.map +0 -1
  122. package/dist/src/detectors/rust/parse-rust-toolchain.js.map +0 -1
  123. package/dist/src/detectors/rust/toml-lines.js.map +0 -1
  124. package/dist/src/detectors/scala/index.js.map +0 -1
  125. package/dist/src/detectors/scala/parse-build-properties.js.map +0 -1
  126. package/dist/src/detectors/scala/parse-build-sbt.js.map +0 -1
  127. package/dist/src/detectors/scala/parse-scala-version.js.map +0 -1
  128. package/dist/src/detectors/serverless/index.js.map +0 -1
  129. package/dist/src/detectors/serverless/parse-serverless-yml.js.map +0 -1
  130. package/dist/src/detectors/serverless/parse-template.js.map +0 -1
  131. package/dist/src/detectors/serverless/parse-tf.js.map +0 -1
  132. package/dist/src/detectors/shell/index.js.map +0 -1
  133. package/dist/src/detectors/shell/parse-powershell.js.map +0 -1
  134. package/dist/src/detectors/shell/parse-workflow.js.map +0 -1
  135. package/dist/src/detectors/swift/index.js.map +0 -1
  136. package/dist/src/detectors/swift/parse-package-resolved.js.map +0 -1
  137. package/dist/src/detectors/swift/parse-package-swift.js.map +0 -1
  138. package/dist/src/detectors/swift/parse-swift-toolchain.js.map +0 -1
  139. package/dist/src/detectors/swift/parse-xcode-project.js.map +0 -1
  140. package/dist/src/detectors/terraform/hcl.js.map +0 -1
  141. package/dist/src/detectors/terraform/index.js.map +0 -1
  142. package/dist/src/detectors/terraform/kubernetes.js.map +0 -1
  143. package/dist/src/detectors/terraform/parse-lock.js.map +0 -1
  144. package/dist/src/detectors/terraform/parse-terraform.js.map +0 -1
  145. package/dist/src/detectors/terraform/parse-version-files.js.map +0 -1
  146. package/dist/src/detectors/terraform/plan.js.map +0 -1
  147. package/dist/src/diff.js.map +0 -1
  148. package/dist/src/doctor.js.map +0 -1
  149. package/dist/src/domain.js.map +0 -1
  150. package/dist/src/engine.js.map +0 -1
  151. package/dist/src/export/cle.js.map +0 -1
  152. package/dist/src/exposure.js.map +0 -1
  153. package/dist/src/fix/codemods/index.js.map +0 -1
  154. package/dist/src/fix/git.js.map +0 -1
  155. package/dist/src/fix/github-actions.js.map +0 -1
  156. package/dist/src/fix/index.js.map +0 -1
  157. package/dist/src/fix/runtime-pins.js.map +0 -1
  158. package/dist/src/fix/verify.js.map +0 -1
  159. package/dist/src/forecast.js.map +0 -1
  160. package/dist/src/github-action.js.map +0 -1
  161. package/dist/src/guard.js.map +0 -1
  162. package/dist/src/index.js.map +0 -1
  163. package/dist/src/init-agents.js.map +0 -1
  164. package/dist/src/init-hooks.js.map +0 -1
  165. package/dist/src/init-personal.js.map +0 -1
  166. package/dist/src/lsp.js.map +0 -1
  167. package/dist/src/mcp-cli.js.map +0 -1
  168. package/dist/src/mcp-server.js.map +0 -1
  169. package/dist/src/mcp.js.map +0 -1
  170. package/dist/src/migration-packet.js.map +0 -1
  171. package/dist/src/migration-prompt.js.map +0 -1
  172. package/dist/src/min-support.js.map +0 -1
  173. package/dist/src/osv-advisories.js.map +0 -1
  174. package/dist/src/package-files.js.map +0 -1
  175. package/dist/src/paths.js.map +0 -1
  176. package/dist/src/pr-comment.js.map +0 -1
  177. package/dist/src/purl.js.map +0 -1
  178. package/dist/src/registry.js.map +0 -1
  179. package/dist/src/renovate-preset.js.map +0 -1
  180. package/dist/src/report-issue.js.map +0 -1
  181. package/dist/src/reporters.js.map +0 -1
  182. package/dist/src/rollup.js.map +0 -1
  183. package/dist/src/rule-resources.js.map +0 -1
  184. package/dist/src/runtime-pin.js.map +0 -1
  185. package/dist/src/sbom/cyclonedx.js.map +0 -1
  186. package/dist/src/sbom/input.js.map +0 -1
  187. package/dist/src/sdk.js.map +0 -1
  188. package/dist/src/setup.js.map +0 -1
  189. package/dist/src/source-usage.js.map +0 -1
  190. package/dist/src/status-file.js.map +0 -1
  191. package/dist/src/tui.js.map +0 -1
  192. package/dist/src/usage/javascript.js.map +0 -1
  193. package/dist/src/usage/python.js.map +0 -1
  194. package/dist/src/usage/symbols.js.map +0 -1
  195. package/dist/src/usage/tree-sitter.js.map +0 -1
  196. package/dist/src/usage-log.js.map +0 -1
  197. package/dist/src/vers/gem.js.map +0 -1
  198. package/dist/src/vers/index.js.map +0 -1
  199. package/dist/src/vers/maven.js.map +0 -1
  200. package/dist/src/vers/nuget.js.map +0 -1
  201. package/dist/src/vers/pep440.js.map +0 -1
  202. package/dist/src/vers/semver.js.map +0 -1
  203. package/dist/src/vers.js.map +0 -1
  204. package/dist/src/version.js.map +0 -1
  205. package/dist/src/watch.js.map +0 -1
  206. package/dist/src/workspaces.js.map +0 -1
  207. package/examples/demo/.github/workflows/ci.yml +0 -10
  208. package/examples/demo/package.json +0 -10
  209. package/examples/demo/src/client.js +0 -5
  210. package/skills/evergreen-deprecation/evals/cases.json +0 -67
  211. package/skills/evergreen-deprecation/evals/dependency-cases.json +0 -389
package/README.md CHANGED
@@ -214,7 +214,7 @@ permissions:
214
214
 
215
215
  steps:
216
216
  - uses: actions/checkout@v7
217
- - uses: arminazimi/evergreen@v0.7.0
217
+ - uses: arminazimi/evergreen@v0.7.1
218
218
  with:
219
219
  baseline: .evergreen-baseline.json
220
220
  fail-on-severity: high
@@ -1,4 +1,4 @@
1
- import type { Node } from "@vscode/tree-sitter-wasm";
1
+ import type { Node } from "./vendor/tree-sitter/tree-sitter.js";
2
2
  import type { SourceUsage, SymbolUsageMatcher } from "../domain.js";
3
3
  /** A name an import binds in a file: the module, the local name, and what of the module the name stands for. */
4
4
  export interface SymbolBinding {
@@ -1,4 +1,4 @@
1
- import type { Query, Tree } from "@vscode/tree-sitter-wasm";
1
+ import type { Query, Tree } from "./vendor/tree-sitter/tree-sitter.js";
2
2
  import type { SourceLanguage } from "../domain.js";
3
3
  export type TreeSitterGrammar = "javascript" | "typescript" | "tsx" | "python";
4
4
  /** Same ceiling the regex scanner applies, so both engines skip the same files. */
@@ -1,8 +1,11 @@
1
1
  import { readFile } from "node:fs/promises";
2
2
  import { createRequire } from "node:module";
3
3
  import { dirname, join } from "node:path";
4
- // Grammars ship inside @vscode/tree-sitter-wasm: prebuilt WebAssembly, no native build, no network.
4
+ import { fileURLToPath } from "node:url";
5
+ // Trimmed runtime + grammars under ./vendor/tree-sitter (from @vscode/tree-sitter-wasm). Offline, no native build.
6
+ // The runtime is `.cjs` so Node treats it as CommonJS inside this `"type": "module"` package.
5
7
  const nodeRequire = createRequire(import.meta.url);
8
+ const vendorDirectory = dirname(fileURLToPath(new URL("./vendor/tree-sitter/tree-sitter.cjs", import.meta.url)));
6
9
  /** Same ceiling the regex scanner applies, so both engines skip the same files. */
7
10
  export const maximumParseBytes = 1_000_000;
8
11
  /** Wall-clock budget for one parse; a pathological file is skipped instead of stalling a scan. */
@@ -12,11 +15,9 @@ const languages = new Map();
12
15
  const parsers = new Map();
13
16
  function loadRuntime() {
14
17
  runtime ??= (async () => {
15
- const entry = nodeRequire.resolve("@vscode/tree-sitter-wasm");
16
- const directory = dirname(entry);
17
- const module = nodeRequire("@vscode/tree-sitter-wasm");
18
- await module.Parser.init({ locateFile: (file) => join(directory, file) });
19
- return { module, directory };
18
+ const module = nodeRequire(join(vendorDirectory, "tree-sitter.cjs"));
19
+ await module.Parser.init({ locateFile: (file) => join(vendorDirectory, file) });
20
+ return { module, directory: vendorDirectory };
20
21
  })();
21
22
  runtime.catch(() => {
22
23
  runtime = undefined;
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE
@@ -0,0 +1,15 @@
1
+ # Vendored tree-sitter WASM (trimmed)
2
+
3
+ Runtime and grammar files taken from [`@vscode/tree-sitter-wasm@0.3.1`](https://www.npmjs.com/package/@vscode/tree-sitter-wasm) (MIT). Only the pieces Evergreen loads are kept:
4
+
5
+ | File | Role |
6
+ |---|---|
7
+ | `tree-sitter.cjs` / `tree-sitter.wasm` | WebAssembly parser runtime (`.cjs` so it stays CommonJS inside this package) |
8
+ | `tree-sitter-javascript.wasm` | JavaScript grammar |
9
+ | `tree-sitter-typescript.wasm` | TypeScript grammar |
10
+ | `tree-sitter-tsx.wasm` | TSX grammar |
11
+ | `tree-sitter-python.wasm` | Python grammar |
12
+
13
+ Unused grammars from that package (C++, C#, Ruby, …) are not shipped. Making the npm package optional would fall back to the regex scanner and change scan results, so Evergreen vendors this fixed subset instead.
14
+
15
+ Refresh with `node dist/tools/sync-tree-sitter-wasm.js` after bumping the pinned version in that script (requires a temporary install of `@vscode/tree-sitter-wasm`).