Skip to content

Commit 51587c5

Browse files
rushikeshmoreclaude
andcommitted
fix: remove tree-sitter-liquid git dep that broke npm installs (v0.4.2)
Git dependency required native compilation from source, failing on Node 22+ due to missing node-addon-api. 27 languages now supported. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 5c71d64 commit 51587c5

6 files changed

Lines changed: 9 additions & 13 deletions

File tree

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Persistent, AI-powered codebase knowledge layer. Pre-digests codebases into stru
44

55
## Stack
66
- TypeScript, ESM (`"type": "module"`)
7-
- tree-sitter (native N-API) + 28 language grammar packages
7+
- tree-sitter (native N-API) + 27 language grammar packages
88
- @modelcontextprotocol/sdk - MCP server (stdio transport)
99
- commander - CLI (init, serve, update, status)
1010
- simple-git - git integration + temporal analysis

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Every AI coding session starts from scratch. When context compacts or a new sess
2121

2222
CodeCortex pre-digests codebases into layered knowledge files and serves them to any AI agent via MCP. Instead of re-understanding your codebase every session, the AI starts with knowledge.
2323

24-
**Hybrid extraction:** tree-sitter native N-API for structure (symbols, imports, calls across 28 languages) + host LLM for semantics (what modules do, why they're built that way). Zero extra API keys.
24+
**Hybrid extraction:** tree-sitter native N-API for structure (symbols, imports, calls across 27 languages) + host LLM for semantics (what modules do, why they're built that way). Zero extra API keys.
2525

2626
## Quick Start
2727

@@ -152,7 +152,7 @@ vs. raw scan of entire codebase: ~37,800 tokens
152152

153153
| Category | Languages |
154154
|----------|-----------|
155-
| Web | TypeScript, TSX, JavaScript, Liquid |
155+
| Web | TypeScript, TSX, JavaScript |
156156
| Systems | C, C++, Objective-C, Rust, Zig, Go |
157157
| JVM | Java, Kotlin, Scala |
158158
| .NET | C# |
@@ -164,7 +164,7 @@ vs. raw scan of entire codebase: ~37,800 tokens
164164
## Tech Stack
165165

166166
- TypeScript ESM, Node.js 20+
167-
- `tree-sitter` (native N-API) + 28 language grammar packages
167+
- `tree-sitter` (native N-API) + 27 language grammar packages
168168
- `@modelcontextprotocol/sdk` - MCP server
169169
- `commander` - CLI
170170
- `simple-git` - git integration

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codecortex-ai",
3-
"version": "0.4.1",
3+
"version": "0.4.2",
44
"description": "Permanent codebase memory for AI agents — extracts symbols, deps, and patterns, serves via MCP",
55
"type": "module",
66
"bin": {
@@ -50,7 +50,7 @@
5050
"tree-sitter-java": "^0.23.5",
5151
"tree-sitter-javascript": "^0.23.1",
5252
"tree-sitter-kotlin": "^0.3.8",
53-
"tree-sitter-liquid": "github:rushikeshmore/tree-sitter-liquid",
53+
5454
"tree-sitter-lua": "^2.1.3",
5555
"tree-sitter-objc": "^3.0.2",
5656
"tree-sitter-ocaml": "^0.24.2",

src/extraction/parser.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ const LANGUAGE_LOADERS: Record<string, LanguageLoader> = {
5050
elisp: () => require('tree-sitter-elisp'),
5151
// Web / Templating
5252
vue: () => require('tree-sitter-vue'),
53-
liquid: () => require('tree-sitter-liquid'),
5453
// Web3 / Other
5554
solidity: () => require('tree-sitter-solidity'),
5655
ql: () => require('tree-sitter-ql'),
@@ -124,8 +123,6 @@ export const EXTENSION_MAP: Record<string, string> = {
124123
'.sol': 'solidity',
125124
// Vue
126125
'.vue': 'vue',
127-
// Liquid
128-
'.liquid': 'liquid',
129126
// CodeQL
130127
'.ql': 'ql',
131128
}

src/mcp/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { registerWriteTools } from './tools/write.js'
2727
export function createServer(projectRoot: string): McpServer {
2828
const server = new McpServer({
2929
name: 'codecortex',
30-
version: '0.4.1',
30+
version: '0.4.2',
3131
description: 'Persistent codebase knowledge layer. Pre-digested architecture, symbols, coupling, and patterns served to AI agents.',
3232
})
3333

tests/extraction/parser.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,15 @@ describe('languageFromPath', () => {
6969
})
7070

7171
describe('supportedLanguages', () => {
72-
it('returns all 28 supported languages', () => {
72+
it('returns all 27 supported languages', () => {
7373
const langs = supportedLanguages()
74-
expect(langs.length).toBe(28)
74+
expect(langs.length).toBe(27)
7575
expect(langs).toContain('typescript')
7676
expect(langs).toContain('python')
7777
expect(langs).toContain('go')
7878
expect(langs).toContain('rust')
7979
expect(langs).toContain('c')
8080
expect(langs).toContain('java')
81-
expect(langs).toContain('liquid')
8281
})
8382
})
8483

0 commit comments

Comments
 (0)