codesearch-mcp 0.2.1-alpha → 0.2.2-alpha
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/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ Format based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [0.2.2-alpha] - 2026-10-02
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- **Global install crashed on startup with `Cannot find module 'typescript'`** — `AstParserService` imported `NodeFlags`/`SyntaxKind` as runtime values from `typescript`, a `devDependency` not installed by `npm install -g`. Now sourced from `ts-morph`, which already bundles its own copy of the compiler — no separate runtime dependency on `typescript`.
|
|
13
|
+
|
|
8
14
|
## [0.2.1-alpha] - 2026-10-02
|
|
9
15
|
|
|
10
16
|
### Added
|
|
@@ -36,7 +36,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.AstParserService = void 0;
|
|
37
37
|
const path = __importStar(require("path"));
|
|
38
38
|
const fs = __importStar(require("fs"));
|
|
39
|
-
const typescript_1 = require("typescript");
|
|
40
39
|
const ts_morph_1 = require("ts-morph");
|
|
41
40
|
const LoggerService_1 = require("./LoggerService");
|
|
42
41
|
const FALLBACK_OPTS = {
|
|
@@ -478,7 +477,7 @@ class AstParserService {
|
|
|
478
477
|
const described = this.describeIndexedNode(c);
|
|
479
478
|
if (!described)
|
|
480
479
|
continue;
|
|
481
|
-
const kw = c.getFirstChildByKind(
|
|
480
|
+
const kw = c.getFirstChildByKind(ts_morph_1.SyntaxKind.ConstructorKeyword) ?? c;
|
|
482
481
|
push(c, kw, described.name, 'constructor', described.container, false, c.getBody() !== undefined);
|
|
483
482
|
}
|
|
484
483
|
for (const p of sourceFile.getDescendantsOfKind(ts_morph_1.SyntaxKind.PropertyDeclaration)) {
|
|
@@ -632,7 +631,7 @@ class AstParserService {
|
|
|
632
631
|
* (exclude) everything nested inside it? */
|
|
633
632
|
walkStep(node) {
|
|
634
633
|
if (ts_morph_1.Node.isModuleDeclaration(node)) {
|
|
635
|
-
if (node.compilerNode.flags &
|
|
634
|
+
if (node.compilerNode.flags & ts_morph_1.NodeFlags.GlobalAugmentation)
|
|
636
635
|
return { kind: 'exclude' };
|
|
637
636
|
const nameNode = node.getNameNode();
|
|
638
637
|
if (ts_morph_1.Node.isStringLiteral(nameNode))
|
package/package.json
CHANGED