@grec0/memory-bank-mcp 0.1.24 → 0.1.26
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/dist/common/astChunker.js +11 -3
- package/dist/common/version.js +1 -1
- package/package.json +1 -1
|
@@ -157,17 +157,25 @@ async function initTreeSitter() {
|
|
|
157
157
|
}
|
|
158
158
|
try {
|
|
159
159
|
// Dynamic import of web-tree-sitter
|
|
160
|
-
//
|
|
160
|
+
// web-tree-sitter exports Parser as a named export, not default
|
|
161
161
|
const TreeSitterModule = await import("web-tree-sitter");
|
|
162
|
-
|
|
162
|
+
// Get Parser from named export
|
|
163
|
+
ParserClass = TreeSitterModule.Parser;
|
|
164
|
+
if (!ParserClass) {
|
|
165
|
+
throw new Error('Parser class not found in web-tree-sitter module');
|
|
166
|
+
}
|
|
163
167
|
// Initialize the WASM module
|
|
164
|
-
|
|
168
|
+
if (typeof ParserClass.init === 'function') {
|
|
169
|
+
await ParserClass.init();
|
|
170
|
+
}
|
|
165
171
|
treeSitterInitialized = true;
|
|
166
172
|
console.error("[AST Chunker] Tree-sitter initialized successfully");
|
|
167
173
|
return true;
|
|
168
174
|
}
|
|
169
175
|
catch (error) {
|
|
170
176
|
console.error(`[AST Chunker] Failed to initialize Tree-sitter: ${error}`);
|
|
177
|
+
treeSitterInitialized = false;
|
|
178
|
+
ParserClass = null;
|
|
171
179
|
return false;
|
|
172
180
|
}
|
|
173
181
|
}
|
package/dist/common/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Version of the MCP Kanban server
|
|
2
|
-
export const VERSION = "0.1.
|
|
2
|
+
export const VERSION = "0.1.26";
|