Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

Add tree-sitter runtime LICENSE to common/tree_sitter

Martin Vogel73f859a8e65f
diff --git a/THIRD_PARTY.md b/THIRD_PARTY.md
index ccbf7f65a..4aa1de08e 100644
--- a/THIRD_PARTY.md
+++ b/THIRD_PARTY.md
@@ -13,8 +13,16 @@ The tree-sitter C runtime is vendored in `internal/cbm/vendored/ts_runtime/`.
- **License:** MIT
- **Copyright:** (c) 2018–2024 Max Brunsfeld
-The shared scanner helpers in `internal/cbm/vendored/common/` originate from
-[tree-sitter-html](https://github.com/tree-sitter/tree-sitter-html) (MIT).
+The shared scanner helpers in `internal/cbm/vendored/common/` (`scanner.h`,
+`tag.h`) originate from
+[tree-sitter-html](https://github.com/tree-sitter/tree-sitter-html) (MIT,
+(c) 2014 Max Brunsfeld) and carry that project's `LICENSE` in
+`internal/cbm/vendored/common/`.
+
+The core runtime headers in `internal/cbm/vendored/common/tree_sitter/`
+(`alloc.h`, `array.h`, `parser.h`) are part of the tree-sitter C runtime
+([tree-sitter](https://github.com/tree-sitter/tree-sitter), MIT,
+(c) 2018 Max Brunsfeld) and carry their own `LICENSE` in that directory.
## Tree-sitter Grammars
diff --git a/internal/cbm/vendored/common/tree_sitter/LICENSE b/internal/cbm/vendored/common/tree_sitter/LICENSE
new file mode 100644
index 000000000..971b81f9a
--- /dev/null
+++ b/internal/cbm/vendored/common/tree_sitter/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2018 Max Brunsfeld
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.