typegraph-mcp 0.9.5 → 0.9.6
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/.claude-plugin/plugin.json +1 -1
- package/.cursor-plugin/plugin.json +1 -1
- package/dist/cli.js +5 -1
- package/dist/smoke-test.js +5 -1
- package/package.json +1 -1
- package/smoke-test.ts +6 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "typegraph",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.6",
|
|
4
4
|
"description": "Type-aware TypeScript navigation — 14 MCP tools for go-to-definition, find-references, dependency graphs, cycle detection, and impact analysis",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Owen Jones"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "typegraph",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.6",
|
|
4
4
|
"description": "Type-aware TypeScript navigation — 14 MCP tools for go-to-definition, find-references, dependency graphs, cycle detection, and impact analysis",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Owen Jones"
|
package/dist/cli.js
CHANGED
|
@@ -1542,7 +1542,11 @@ async function main2(configOverride) {
|
|
|
1542
1542
|
performance.now() - t0
|
|
1543
1543
|
);
|
|
1544
1544
|
t0 = performance.now();
|
|
1545
|
-
|
|
1545
|
+
let info = await client2.quickinfo(testFileRel, span.start.line, span.start.offset);
|
|
1546
|
+
if (!info && defs.length > 0) {
|
|
1547
|
+
const def = defs[0];
|
|
1548
|
+
info = await client2.quickinfo(testFileRel, def.start.line, def.start.offset);
|
|
1549
|
+
}
|
|
1546
1550
|
if (info) {
|
|
1547
1551
|
const typeStr = info.displayString.length > 80 ? info.displayString.slice(0, 80) + "..." : info.displayString;
|
|
1548
1552
|
pass("type_info", typeStr, performance.now() - t0);
|
package/dist/smoke-test.js
CHANGED
|
@@ -1039,7 +1039,11 @@ async function main(configOverride) {
|
|
|
1039
1039
|
performance.now() - t0
|
|
1040
1040
|
);
|
|
1041
1041
|
t0 = performance.now();
|
|
1042
|
-
|
|
1042
|
+
let info = await client.quickinfo(testFileRel, span.start.line, span.start.offset);
|
|
1043
|
+
if (!info && defs.length > 0) {
|
|
1044
|
+
const def = defs[0];
|
|
1045
|
+
info = await client.quickinfo(testFileRel, def.start.line, def.start.offset);
|
|
1046
|
+
}
|
|
1043
1047
|
if (info) {
|
|
1044
1048
|
const typeStr = info.displayString.length > 80 ? info.displayString.slice(0, 80) + "..." : info.displayString;
|
|
1045
1049
|
pass("type_info", typeStr, performance.now() - t0);
|
package/package.json
CHANGED
package/smoke-test.ts
CHANGED
|
@@ -363,7 +363,12 @@ export async function main(configOverride?: TypegraphConfig): Promise<SmokeTestR
|
|
|
363
363
|
|
|
364
364
|
// type_info
|
|
365
365
|
t0 = performance.now();
|
|
366
|
-
|
|
366
|
+
let info = await client.quickinfo(testFileRel, span.start.line, span.start.offset);
|
|
367
|
+
// Span start may point to a keyword (class, function) — retry at the name position
|
|
368
|
+
if (!info && defs.length > 0) {
|
|
369
|
+
const def = defs[0]!;
|
|
370
|
+
info = await client.quickinfo(testFileRel, def.start.line, def.start.offset);
|
|
371
|
+
}
|
|
367
372
|
if (info) {
|
|
368
373
|
const typeStr =
|
|
369
374
|
info.displayString.length > 80
|