feat: add Puppet, YAML, and Dockerfile tree-sitter support#256
Merged
aphoristicartist merged 2 commits intomainfrom Mar 20, 2026
Merged
feat: add Puppet, YAML, and Dockerfile tree-sitter support#256aphoristicartist merged 2 commits intomainfrom
aphoristicartist merged 2 commits intomainfrom
Conversation
Add AST-based symbol extraction for three infrastructure formats: - **Puppet** (.pp): Classes, defined types, resources, nodes, functions - **YAML** (.yaml/.yml): Mapping keys (covers Helm, K8s, Ansible, Spinnaker) - **Dockerfile**: FROM stages, ARG/ENV definitions, labels This enables the embed command to process infrastructure-as-code files with full symbol extraction, chunking, and streaming support. Technical notes: - tree-sitter-dockerfile 0.2 depends on tree-sitter 0.20; bypassed its Rust wrapper via extern "C" + tree-sitter-language bridge to maintain compatibility with the project's tree-sitter 0.26 - Dockerfile detection uses filename matching (no extension) alongside the standard extension-based detection - All 1555+ existing tests pass with zero failures Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Contributor
Benchmark ResultsBenchmarks run on Ubuntu runner. See artifacts for full results. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.pp), YAML (.yaml/.yml), and Dockerfile formatsembedcommand to process infrastructure-as-code with full symbol extraction, chunking, and streamingDetails
New Language Support
.pp.yaml,.ymlDockerfile,Dockerfile.*Tree-sitter Compatibility
tree-sitter-dockerfile0.2 depends on tree-sitter 0.20, which is incompatible with this project's tree-sitter 0.26. Resolved by:extern "C"tree-sitter-language::LanguageFnbridgeextern crate tree_sitter_dockerfileinlib.rsFiles Changed (15)
engine/Cargo.toml— 4 new dependenciesengine/src/parser/language.rs— Language enum variants + all match armsengine/src/parser/queries.rs— Symbol extraction queries for 3 formatsengine/src/parser/{init,core,query_builder,extraction}.rs— Parser integrationengine/src/embedding/{chunker,streaming}.rs— Filename-based Dockerfile detectionengine/src/index/{types.rs,builder/core.rs,lazy.rs}— Index language mappingsengine/src/analysis/complexity.rs— Complexity analysis supportengine/src/lib.rs— Force-link dockerfile native codeengine/tests/tree_sitter_compat.rs— ABI compatibility tests for new grammarsTest plan
infiniloom embedon a repo with.pp,.yaml, andDockerfilefiles🤖 Generated with Claude Code