Skip to content

Commit 16be0cc

Browse files
feat: add analyze platform extension with tree-sitter AST parsing (#7542)
1 parent bec0f58 commit 16be0cc

File tree

11 files changed

+2463
-18
lines changed

11 files changed

+2463
-18
lines changed

Cargo.lock

Lines changed: 39 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,17 @@ opentelemetry-appender-tracing = "0.31"
6969
opentelemetry-stdout = { version = "0.31", features = ["trace", "metrics", "logs"] }
7070
tracing-opentelemetry = "0.32"
7171

72+
rayon = "1.10"
73+
tree-sitter = "0.26"
74+
tree-sitter-go = "0.25"
75+
tree-sitter-java = "0.23"
76+
tree-sitter-javascript = "0.25"
77+
tree-sitter-kotlin-ng = "1.1"
78+
tree-sitter-python = "0.25"
79+
tree-sitter-ruby = "0.23"
80+
tree-sitter-rust = "0.24"
81+
tree-sitter-swift = "0.7"
82+
tree-sitter-typescript = "0.23"
7283

7384
[patch.crates-io]
7485
v8 = { path = "vendor/v8" }

crates/goose/Cargo.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,17 @@ posthog-rs = "0.3.7"
123123
shellexpand = { workspace = true }
124124
indexmap = "2.12.0"
125125
ignore = { workspace = true }
126+
rayon = { workspace = true }
127+
tree-sitter = { workspace = true }
128+
tree-sitter-go = { workspace = true }
129+
tree-sitter-java = { workspace = true }
130+
tree-sitter-javascript = { workspace = true }
131+
tree-sitter-kotlin-ng = { workspace = true }
132+
tree-sitter-python = { workspace = true }
133+
tree-sitter-ruby = { workspace = true }
134+
tree-sitter-rust = { workspace = true }
135+
tree-sitter-swift = { workspace = true }
136+
tree-sitter-typescript = { workspace = true }
126137
which = { workspace = true }
127138
pctx_code_mode = { version = "^0.2.3", optional = true }
128139
unbinder = "0.1.7"
@@ -161,6 +172,10 @@ name = "databricks_oauth"
161172
path = "examples/databricks_oauth.rs"
162173

163174

175+
[[bin]]
176+
name = "analyze_cli"
177+
path = "src/bin/analyze_cli.rs"
178+
164179
[[bin]]
165180
name = "build_canonical_models"
166181
path = "src/providers/canonical/build_canonical_models.rs"

0 commit comments

Comments
 (0)