nano-brain 2026.4.3 → 2026.4.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nano-brain",
3
- "version": "2026.4.3",
3
+ "version": "2026.4.4",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "nano-brain": "./bin/cli.js"
package/src/treesitter.ts CHANGED
@@ -28,6 +28,9 @@ let PythonLang: unknown = null
28
28
 
29
29
  async function initTreeSitter(): Promise<void> {
30
30
  try {
31
+ // Skip build/Release/ (may contain wrong-platform binaries from npm rebuild in Docker)
32
+ // and use prebuilds/{platform}-{arch}/ which ships correct binaries for all platforms
33
+ process.env.PREBUILDS_ONLY = '1'
31
34
  const ts = await import('tree-sitter')
32
35
  Parser = ts.default
33
36
 
@@ -41,7 +44,8 @@ async function initTreeSitter(): Promise<void> {
41
44
 
42
45
  treeSitterAvailable = true
43
46
  } catch (e) {
44
- console.warn('[treesitter] Native bindings not available, symbol graph disabled')
47
+ const msg = e instanceof Error ? e.message : String(e)
48
+ console.warn(`[treesitter] Native bindings not available, symbol graph disabled: ${msg}`)
45
49
  treeSitterAvailable = false
46
50
  }
47
51
  }