trace-mcp 1.0.9 → 1.0.11
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/cli.js +99 -103
- package/dist/cli.js.map +1 -1
- package/dist/index.js +17 -25
- package/dist/index.js.map +1 -1
- package/package.json +5 -2
package/dist/cli.js
CHANGED
|
@@ -2118,6 +2118,7 @@ var require_picomatch2 = __commonJS({
|
|
|
2118
2118
|
import { Command as Command7 } from "commander";
|
|
2119
2119
|
import path81 from "path";
|
|
2120
2120
|
import fs72 from "fs";
|
|
2121
|
+
import { createRequire as createRequire21 } from "module";
|
|
2121
2122
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
2122
2123
|
import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js";
|
|
2123
2124
|
|
|
@@ -2316,8 +2317,7 @@ CREATE INDEX IF NOT EXISTS idx_symbols_fqn ON symbols(fqn);
|
|
|
2316
2317
|
CREATE INDEX IF NOT EXISTS idx_symbols_name ON symbols(name);
|
|
2317
2318
|
CREATE INDEX IF NOT EXISTS idx_nodes_type ON nodes(node_type);
|
|
2318
2319
|
CREATE INDEX IF NOT EXISTS idx_orm_models_name ON orm_models(name);
|
|
2319
|
-
|
|
2320
|
-
CREATE INDEX IF NOT EXISTS idx_edges_cross_ws ON edges(is_cross_ws) WHERE is_cross_ws = 1;
|
|
2320
|
+
-- idx_files_workspace and idx_edges_cross_ws created in migration v9
|
|
2321
2321
|
|
|
2322
2322
|
-- ============================================================
|
|
2323
2323
|
-- FTS5 FULL-TEXT SEARCH
|
|
@@ -2802,6 +2802,14 @@ var MIGRATIONS = {
|
|
|
2802
2802
|
`);
|
|
2803
2803
|
},
|
|
2804
2804
|
9: (db) => {
|
|
2805
|
+
const filesCols = db.pragma("table_info(files)");
|
|
2806
|
+
if (!filesCols.some((c) => c.name === "workspace")) {
|
|
2807
|
+
db.exec(`ALTER TABLE files ADD COLUMN workspace TEXT`);
|
|
2808
|
+
}
|
|
2809
|
+
const edgesCols = db.pragma("table_info(edges)");
|
|
2810
|
+
if (!edgesCols.some((c) => c.name === "is_cross_ws")) {
|
|
2811
|
+
db.exec(`ALTER TABLE edges ADD COLUMN is_cross_ws INTEGER NOT NULL DEFAULT 0`);
|
|
2812
|
+
}
|
|
2805
2813
|
db.exec(`
|
|
2806
2814
|
CREATE INDEX IF NOT EXISTS idx_files_workspace ON files(workspace);
|
|
2807
2815
|
CREATE INDEX IF NOT EXISTS idx_edges_cross_ws ON edges(is_cross_ws) WHERE is_cross_ws = 1;
|
|
@@ -3052,6 +3060,10 @@ function seedDatabase(db) {
|
|
|
3052
3060
|
for (const et of SEED_EDGE_TYPES) {
|
|
3053
3061
|
insertEdgeType.run(et.name, et.category, et.description);
|
|
3054
3062
|
}
|
|
3063
|
+
db.exec(`
|
|
3064
|
+
CREATE INDEX IF NOT EXISTS idx_files_workspace ON files(workspace);
|
|
3065
|
+
CREATE INDEX IF NOT EXISTS idx_edges_cross_ws ON edges(is_cross_ws) WHERE is_cross_ws = 1;
|
|
3066
|
+
`);
|
|
3055
3067
|
}
|
|
3056
3068
|
|
|
3057
3069
|
// src/errors.ts
|
|
@@ -4227,6 +4239,7 @@ function saveProjectConfig(projectRoot, config) {
|
|
|
4227
4239
|
|
|
4228
4240
|
// src/server.ts
|
|
4229
4241
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
4242
|
+
import { createRequire } from "module";
|
|
4230
4243
|
import { z as z4 } from "zod";
|
|
4231
4244
|
|
|
4232
4245
|
// src/tools/project.ts
|
|
@@ -21914,6 +21927,8 @@ function simplifyCFG(cfg) {
|
|
|
21914
21927
|
}
|
|
21915
21928
|
|
|
21916
21929
|
// src/server.ts
|
|
21930
|
+
var require2 = createRequire(import.meta.url);
|
|
21931
|
+
var { version: PKG_VERSION } = require2("../package.json");
|
|
21917
21932
|
function j2(value) {
|
|
21918
21933
|
return JSON.stringify(value);
|
|
21919
21934
|
}
|
|
@@ -21928,7 +21943,7 @@ function createServer2(store, registry, config, rootPath) {
|
|
|
21928
21943
|
const has = (...names) => names.some((n) => frameworkNames.has(n));
|
|
21929
21944
|
const detectedFrameworks = [...frameworkNames].join(", ") || "none";
|
|
21930
21945
|
const server = new McpServer(
|
|
21931
|
-
{ name: "trace-mcp", version:
|
|
21946
|
+
{ name: "trace-mcp", version: PKG_VERSION },
|
|
21932
21947
|
{
|
|
21933
21948
|
instructions: [
|
|
21934
21949
|
`trace-mcp is a framework-aware code intelligence server for this project. Detected frameworks: ${detectedFrameworks}.`,
|
|
@@ -23648,28 +23663,6 @@ function createServer2(store, registry, config, rootPath) {
|
|
|
23648
23663
|
};
|
|
23649
23664
|
}
|
|
23650
23665
|
);
|
|
23651
|
-
server.tool(
|
|
23652
|
-
"plan_batch_change",
|
|
23653
|
-
"Analyze the impact of updating a dependency across the codebase. Shows affected files, import sites, and line references. Generates a PR description template with risk level, breaking changes checklist, and affected file list.",
|
|
23654
|
-
{
|
|
23655
|
-
package: z4.string().min(1).max(256).describe('Package name being updated (e.g. "@myorg/auth-lib", "lodash")'),
|
|
23656
|
-
from_version: z4.string().max(64).optional().describe("Current version"),
|
|
23657
|
-
to_version: z4.string().max(64).optional().describe("Target version"),
|
|
23658
|
-
breaking_changes: z4.array(z4.string().max(500)).max(20).optional().describe('Known breaking changes (e.g. "login() now returns Promise<AuthResult>")')
|
|
23659
|
-
},
|
|
23660
|
-
async ({ package: pkg, from_version, to_version, breaking_changes }) => {
|
|
23661
|
-
const result = planBatchChange(store, {
|
|
23662
|
-
package: pkg,
|
|
23663
|
-
fromVersion: from_version,
|
|
23664
|
-
toVersion: to_version,
|
|
23665
|
-
breakingChanges: breaking_changes
|
|
23666
|
-
});
|
|
23667
|
-
if (result.isErr()) {
|
|
23668
|
-
return { content: [{ type: "text", text: j2(formatToolError(result.error)) }], isError: true };
|
|
23669
|
-
}
|
|
23670
|
-
return { content: [{ type: "text", text: j2(result.value) }] };
|
|
23671
|
-
}
|
|
23672
|
-
);
|
|
23673
23666
|
server.resource(
|
|
23674
23667
|
"project-map",
|
|
23675
23668
|
"project://map",
|
|
@@ -23884,7 +23877,7 @@ function createServer2(store, registry, config, rootPath) {
|
|
|
23884
23877
|
}
|
|
23885
23878
|
|
|
23886
23879
|
// src/indexer/plugins/language/php/index.ts
|
|
23887
|
-
import { createRequire } from "module";
|
|
23880
|
+
import { createRequire as createRequire2 } from "module";
|
|
23888
23881
|
import { ok as ok9, err as err11 } from "neverthrow";
|
|
23889
23882
|
|
|
23890
23883
|
// src/indexer/plugins/language/php/helpers.ts
|
|
@@ -24142,9 +24135,9 @@ function detectMinPhpVersion(nodeTypes) {
|
|
|
24142
24135
|
}
|
|
24143
24136
|
|
|
24144
24137
|
// src/indexer/plugins/language/php/index.ts
|
|
24145
|
-
var
|
|
24146
|
-
var Parser =
|
|
24147
|
-
var PhpGrammar =
|
|
24138
|
+
var require3 = createRequire2(import.meta.url);
|
|
24139
|
+
var Parser = require3("tree-sitter");
|
|
24140
|
+
var PhpGrammar = require3("tree-sitter-php");
|
|
24148
24141
|
var parserInstance = null;
|
|
24149
24142
|
function getParser() {
|
|
24150
24143
|
if (!parserInstance) {
|
|
@@ -24406,7 +24399,7 @@ var PhpLanguagePlugin = class {
|
|
|
24406
24399
|
};
|
|
24407
24400
|
|
|
24408
24401
|
// src/indexer/plugins/language/typescript/index.ts
|
|
24409
|
-
import { createRequire as
|
|
24402
|
+
import { createRequire as createRequire3 } from "module";
|
|
24410
24403
|
import { ok as ok10, err as err12 } from "neverthrow";
|
|
24411
24404
|
|
|
24412
24405
|
// src/indexer/plugins/language/typescript/helpers.ts
|
|
@@ -24728,9 +24721,9 @@ function detectMinEsVersion(nodeTypes) {
|
|
|
24728
24721
|
}
|
|
24729
24722
|
|
|
24730
24723
|
// src/indexer/plugins/language/typescript/index.ts
|
|
24731
|
-
var
|
|
24732
|
-
var Parser2 =
|
|
24733
|
-
var TsGrammar =
|
|
24724
|
+
var require4 = createRequire3(import.meta.url);
|
|
24725
|
+
var Parser2 = require4("tree-sitter");
|
|
24726
|
+
var TsGrammar = require4("tree-sitter-typescript");
|
|
24734
24727
|
var tsParser = null;
|
|
24735
24728
|
var tsxParser = null;
|
|
24736
24729
|
function getParser2(tsx) {
|
|
@@ -25012,7 +25005,7 @@ var TypeScriptLanguagePlugin = class {
|
|
|
25012
25005
|
};
|
|
25013
25006
|
|
|
25014
25007
|
// src/indexer/plugins/language/vue/index.ts
|
|
25015
|
-
import { createRequire as
|
|
25008
|
+
import { createRequire as createRequire4 } from "module";
|
|
25016
25009
|
import { parse as parseSFC } from "@vue/compiler-sfc";
|
|
25017
25010
|
import { ok as ok11, err as err13 } from "neverthrow";
|
|
25018
25011
|
|
|
@@ -25311,9 +25304,9 @@ function componentNameFromPath(filePath) {
|
|
|
25311
25304
|
}
|
|
25312
25305
|
|
|
25313
25306
|
// src/indexer/plugins/language/vue/index.ts
|
|
25314
|
-
var
|
|
25315
|
-
var Parser3 =
|
|
25316
|
-
var TsGrammar2 =
|
|
25307
|
+
var require5 = createRequire4(import.meta.url);
|
|
25308
|
+
var Parser3 = require5("tree-sitter");
|
|
25309
|
+
var TsGrammar2 = require5("tree-sitter-typescript");
|
|
25317
25310
|
var tsParser2 = null;
|
|
25318
25311
|
function getParser3() {
|
|
25319
25312
|
if (!tsParser2) {
|
|
@@ -25492,7 +25485,7 @@ var VueLanguagePlugin = class {
|
|
|
25492
25485
|
};
|
|
25493
25486
|
|
|
25494
25487
|
// src/indexer/plugins/language/python/index.ts
|
|
25495
|
-
import { createRequire as
|
|
25488
|
+
import { createRequire as createRequire5 } from "module";
|
|
25496
25489
|
import { ok as ok12, err as err14 } from "neverthrow";
|
|
25497
25490
|
|
|
25498
25491
|
// src/indexer/plugins/language/python/helpers.ts
|
|
@@ -25824,9 +25817,9 @@ function detectMinPythonVersion(nodeTypes) {
|
|
|
25824
25817
|
}
|
|
25825
25818
|
|
|
25826
25819
|
// src/indexer/plugins/language/python/index.ts
|
|
25827
|
-
var
|
|
25828
|
-
var Parser4 =
|
|
25829
|
-
var PythonGrammar =
|
|
25820
|
+
var require6 = createRequire5(import.meta.url);
|
|
25821
|
+
var Parser4 = require6("tree-sitter");
|
|
25822
|
+
var PythonGrammar = require6("tree-sitter-python");
|
|
25830
25823
|
var parserInstance2 = null;
|
|
25831
25824
|
function getParser4() {
|
|
25832
25825
|
if (!parserInstance2) {
|
|
@@ -26133,7 +26126,7 @@ var PythonLanguagePlugin = class {
|
|
|
26133
26126
|
};
|
|
26134
26127
|
|
|
26135
26128
|
// src/indexer/plugins/language/java/index.ts
|
|
26136
|
-
import { createRequire as
|
|
26129
|
+
import { createRequire as createRequire6 } from "module";
|
|
26137
26130
|
import { ok as ok13, err as err15 } from "neverthrow";
|
|
26138
26131
|
|
|
26139
26132
|
// src/indexer/plugins/language/java/version-features.ts
|
|
@@ -26434,9 +26427,9 @@ function findChildByType(node, type) {
|
|
|
26434
26427
|
}
|
|
26435
26428
|
|
|
26436
26429
|
// src/indexer/plugins/language/java/index.ts
|
|
26437
|
-
var
|
|
26438
|
-
var Parser5 =
|
|
26439
|
-
var JavaGrammar =
|
|
26430
|
+
var require7 = createRequire6(import.meta.url);
|
|
26431
|
+
var Parser5 = require7("tree-sitter");
|
|
26432
|
+
var JavaGrammar = require7("tree-sitter-java");
|
|
26440
26433
|
var parserInstance3 = null;
|
|
26441
26434
|
function getParser5() {
|
|
26442
26435
|
if (!parserInstance3) {
|
|
@@ -26797,7 +26790,7 @@ var KotlinLanguagePlugin = class {
|
|
|
26797
26790
|
};
|
|
26798
26791
|
|
|
26799
26792
|
// src/indexer/plugins/language/ruby/index.ts
|
|
26800
|
-
import { createRequire as
|
|
26793
|
+
import { createRequire as createRequire7 } from "module";
|
|
26801
26794
|
import { ok as ok15, err as err17 } from "neverthrow";
|
|
26802
26795
|
|
|
26803
26796
|
// src/indexer/plugins/language/ruby/version-features.ts
|
|
@@ -27048,9 +27041,9 @@ function extractConstants(body, filePath, containerName, containerSymbolId, name
|
|
|
27048
27041
|
}
|
|
27049
27042
|
|
|
27050
27043
|
// src/indexer/plugins/language/ruby/index.ts
|
|
27051
|
-
var
|
|
27052
|
-
var Parser6 =
|
|
27053
|
-
var RubyGrammar =
|
|
27044
|
+
var require8 = createRequire7(import.meta.url);
|
|
27045
|
+
var Parser6 = require8("tree-sitter");
|
|
27046
|
+
var RubyGrammar = require8("tree-sitter-ruby");
|
|
27054
27047
|
var parserInstance4 = null;
|
|
27055
27048
|
function getParser6() {
|
|
27056
27049
|
if (!parserInstance4) {
|
|
@@ -27206,7 +27199,7 @@ var RubyLanguagePlugin = class {
|
|
|
27206
27199
|
};
|
|
27207
27200
|
|
|
27208
27201
|
// src/indexer/plugins/language/go/index.ts
|
|
27209
|
-
import { createRequire as
|
|
27202
|
+
import { createRequire as createRequire8 } from "module";
|
|
27210
27203
|
import { ok as ok16, err as err18 } from "neverthrow";
|
|
27211
27204
|
|
|
27212
27205
|
// src/indexer/plugins/language/go/version-features.ts
|
|
@@ -27377,9 +27370,9 @@ function extractInterfaceMethods(body, filePath, ifaceName, ifaceSymbolId) {
|
|
|
27377
27370
|
}
|
|
27378
27371
|
|
|
27379
27372
|
// src/indexer/plugins/language/go/index.ts
|
|
27380
|
-
var
|
|
27381
|
-
var Parser7 =
|
|
27382
|
-
var GoGrammar =
|
|
27373
|
+
var require9 = createRequire8(import.meta.url);
|
|
27374
|
+
var Parser7 = require9("tree-sitter");
|
|
27375
|
+
var GoGrammar = require9("tree-sitter-go");
|
|
27383
27376
|
var parserInstance5 = null;
|
|
27384
27377
|
function getParser7() {
|
|
27385
27378
|
if (!parserInstance5) {
|
|
@@ -27948,7 +27941,7 @@ function lineAt2(source, offset) {
|
|
|
27948
27941
|
}
|
|
27949
27942
|
|
|
27950
27943
|
// src/indexer/plugins/language/rust/index.ts
|
|
27951
|
-
import { createRequire as
|
|
27944
|
+
import { createRequire as createRequire9 } from "module";
|
|
27952
27945
|
import { ok as ok19, err as err19 } from "neverthrow";
|
|
27953
27946
|
|
|
27954
27947
|
// src/indexer/plugins/language/rust/helpers.ts
|
|
@@ -28152,9 +28145,9 @@ function extractTraitMethods(body, filePath, traitName, traitSymbolId) {
|
|
|
28152
28145
|
}
|
|
28153
28146
|
|
|
28154
28147
|
// src/indexer/plugins/language/rust/index.ts
|
|
28155
|
-
var
|
|
28156
|
-
var Parser8 =
|
|
28157
|
-
var RustGrammar =
|
|
28148
|
+
var require10 = createRequire9(import.meta.url);
|
|
28149
|
+
var Parser8 = require10("tree-sitter");
|
|
28150
|
+
var RustGrammar = require10("tree-sitter-rust");
|
|
28158
28151
|
var parserInstance6 = null;
|
|
28159
28152
|
function getParser8() {
|
|
28160
28153
|
if (!parserInstance6) {
|
|
@@ -28454,7 +28447,7 @@ var RustLanguagePlugin = class {
|
|
|
28454
28447
|
};
|
|
28455
28448
|
|
|
28456
28449
|
// src/indexer/plugins/language/c/index.ts
|
|
28457
|
-
import { createRequire as
|
|
28450
|
+
import { createRequire as createRequire10 } from "module";
|
|
28458
28451
|
import { ok as ok20, err as err20 } from "neverthrow";
|
|
28459
28452
|
|
|
28460
28453
|
// src/indexer/plugins/language/c/helpers.ts
|
|
@@ -28585,9 +28578,9 @@ function extractEnumConstants2(body, filePath, enumName, enumSymbolId) {
|
|
|
28585
28578
|
}
|
|
28586
28579
|
|
|
28587
28580
|
// src/indexer/plugins/language/c/index.ts
|
|
28588
|
-
var
|
|
28589
|
-
var Parser9 =
|
|
28590
|
-
var CGrammar =
|
|
28581
|
+
var require11 = createRequire10(import.meta.url);
|
|
28582
|
+
var Parser9 = require11("tree-sitter");
|
|
28583
|
+
var CGrammar = require11("tree-sitter-c");
|
|
28591
28584
|
var parserInstance7 = null;
|
|
28592
28585
|
function getParser9() {
|
|
28593
28586
|
if (!parserInstance7) {
|
|
@@ -28872,7 +28865,7 @@ var CLanguagePlugin = class {
|
|
|
28872
28865
|
};
|
|
28873
28866
|
|
|
28874
28867
|
// src/indexer/plugins/language/cpp/index.ts
|
|
28875
|
-
import { createRequire as
|
|
28868
|
+
import { createRequire as createRequire11 } from "module";
|
|
28876
28869
|
import { ok as ok21, err as err21 } from "neverthrow";
|
|
28877
28870
|
|
|
28878
28871
|
// src/indexer/plugins/language/cpp/helpers.ts
|
|
@@ -29054,9 +29047,9 @@ function isVirtual(node) {
|
|
|
29054
29047
|
}
|
|
29055
29048
|
|
|
29056
29049
|
// src/indexer/plugins/language/cpp/index.ts
|
|
29057
|
-
var
|
|
29058
|
-
var Parser10 =
|
|
29059
|
-
var CppGrammar =
|
|
29050
|
+
var require12 = createRequire11(import.meta.url);
|
|
29051
|
+
var Parser10 = require12("tree-sitter");
|
|
29052
|
+
var CppGrammar = require12("tree-sitter-cpp");
|
|
29060
29053
|
var parserInstance8 = null;
|
|
29061
29054
|
function getParser10() {
|
|
29062
29055
|
if (!parserInstance8) {
|
|
@@ -29491,7 +29484,7 @@ var CppLanguagePlugin = class {
|
|
|
29491
29484
|
};
|
|
29492
29485
|
|
|
29493
29486
|
// src/indexer/plugins/language/csharp/index.ts
|
|
29494
|
-
import { createRequire as
|
|
29487
|
+
import { createRequire as createRequire12 } from "module";
|
|
29495
29488
|
import { ok as ok22, err as err22 } from "neverthrow";
|
|
29496
29489
|
|
|
29497
29490
|
// src/indexer/plugins/language/csharp/helpers.ts
|
|
@@ -29844,9 +29837,9 @@ function findChildByType2(node, type) {
|
|
|
29844
29837
|
}
|
|
29845
29838
|
|
|
29846
29839
|
// src/indexer/plugins/language/csharp/index.ts
|
|
29847
|
-
var
|
|
29848
|
-
var Parser11 =
|
|
29849
|
-
var CSharpGrammar =
|
|
29840
|
+
var require13 = createRequire12(import.meta.url);
|
|
29841
|
+
var Parser11 = require13("tree-sitter");
|
|
29842
|
+
var CSharpGrammar = require13("tree-sitter-c-sharp");
|
|
29850
29843
|
var parserInstance9 = null;
|
|
29851
29844
|
function getParser11() {
|
|
29852
29845
|
if (!parserInstance9) {
|
|
@@ -30500,7 +30493,7 @@ var DartLanguagePlugin = class {
|
|
|
30500
30493
|
};
|
|
30501
30494
|
|
|
30502
30495
|
// src/indexer/plugins/language/scala/index.ts
|
|
30503
|
-
import { createRequire as
|
|
30496
|
+
import { createRequire as createRequire13 } from "module";
|
|
30504
30497
|
import { ok as ok25, err as err23 } from "neverthrow";
|
|
30505
30498
|
|
|
30506
30499
|
// src/indexer/plugins/language/scala/helpers.ts
|
|
@@ -30865,9 +30858,9 @@ function extractValVarName(node) {
|
|
|
30865
30858
|
}
|
|
30866
30859
|
|
|
30867
30860
|
// src/indexer/plugins/language/scala/index.ts
|
|
30868
|
-
var
|
|
30869
|
-
var Parser12 =
|
|
30870
|
-
var ScalaGrammar =
|
|
30861
|
+
var require14 = createRequire13(import.meta.url);
|
|
30862
|
+
var Parser12 = require14("tree-sitter");
|
|
30863
|
+
var ScalaGrammar = require14("tree-sitter-scala");
|
|
30871
30864
|
var parserInstance10 = null;
|
|
30872
30865
|
function getParser12() {
|
|
30873
30866
|
if (!parserInstance10) {
|
|
@@ -39354,13 +39347,13 @@ var ExpressPlugin = class {
|
|
|
39354
39347
|
};
|
|
39355
39348
|
|
|
39356
39349
|
// src/indexer/plugins/integration/framework/fastapi/index.ts
|
|
39357
|
-
import { createRequire as
|
|
39350
|
+
import { createRequire as createRequire14 } from "module";
|
|
39358
39351
|
import fs31 from "fs";
|
|
39359
39352
|
import path40 from "path";
|
|
39360
39353
|
import { ok as ok38, err as err24 } from "neverthrow";
|
|
39361
|
-
var
|
|
39362
|
-
var Parser13 =
|
|
39363
|
-
var PythonGrammar2 =
|
|
39354
|
+
var require15 = createRequire14(import.meta.url);
|
|
39355
|
+
var Parser13 = require15("tree-sitter");
|
|
39356
|
+
var PythonGrammar2 = require15("tree-sitter-python");
|
|
39364
39357
|
var HTTP_METHODS3 = /* @__PURE__ */ new Set(["get", "post", "put", "delete", "patch", "options", "head"]);
|
|
39365
39358
|
function hasPythonDep(ctx, pkg) {
|
|
39366
39359
|
const lowerPkg = pkg.toLowerCase();
|
|
@@ -39671,13 +39664,13 @@ var FastAPIPlugin = class {
|
|
|
39671
39664
|
};
|
|
39672
39665
|
|
|
39673
39666
|
// src/indexer/plugins/integration/framework/flask/index.ts
|
|
39674
|
-
import { createRequire as
|
|
39667
|
+
import { createRequire as createRequire15 } from "module";
|
|
39675
39668
|
import fs32 from "fs";
|
|
39676
39669
|
import path41 from "path";
|
|
39677
39670
|
import { ok as ok39, err as err25 } from "neverthrow";
|
|
39678
|
-
var
|
|
39679
|
-
var Parser14 =
|
|
39680
|
-
var PythonGrammar3 =
|
|
39671
|
+
var require16 = createRequire15(import.meta.url);
|
|
39672
|
+
var Parser14 = require16("tree-sitter");
|
|
39673
|
+
var PythonGrammar3 = require16("tree-sitter-python");
|
|
39681
39674
|
var DEFAULT_METHODS = ["GET"];
|
|
39682
39675
|
function hasPythonDep2(ctx, pkg) {
|
|
39683
39676
|
const lowerPkg = pkg.toLowerCase();
|
|
@@ -41829,13 +41822,13 @@ function extractRefs(fields, sourceModelName) {
|
|
|
41829
41822
|
}
|
|
41830
41823
|
|
|
41831
41824
|
// src/indexer/plugins/integration/orm/sqlalchemy/index.ts
|
|
41832
|
-
import { createRequire as
|
|
41825
|
+
import { createRequire as createRequire16 } from "module";
|
|
41833
41826
|
import fs41 from "fs";
|
|
41834
41827
|
import path50 from "path";
|
|
41835
41828
|
import { ok as ok43, err as err26 } from "neverthrow";
|
|
41836
|
-
var
|
|
41837
|
-
var Parser15 =
|
|
41838
|
-
var PythonGrammar4 =
|
|
41829
|
+
var require17 = createRequire16(import.meta.url);
|
|
41830
|
+
var Parser15 = require17("tree-sitter");
|
|
41831
|
+
var PythonGrammar4 = require17("tree-sitter-python");
|
|
41839
41832
|
var MODEL_BASES = /* @__PURE__ */ new Set([
|
|
41840
41833
|
"Base",
|
|
41841
41834
|
"DeclarativeBase",
|
|
@@ -42416,11 +42409,11 @@ function toModelName(varName) {
|
|
|
42416
42409
|
}
|
|
42417
42410
|
|
|
42418
42411
|
// src/indexer/plugins/integration/view/react/index.ts
|
|
42419
|
-
import { createRequire as
|
|
42412
|
+
import { createRequire as createRequire17 } from "module";
|
|
42420
42413
|
import { ok as ok45, err as err27 } from "neverthrow";
|
|
42421
|
-
var
|
|
42422
|
-
var Parser16 =
|
|
42423
|
-
var TsGrammar3 =
|
|
42414
|
+
var require18 = createRequire17(import.meta.url);
|
|
42415
|
+
var Parser16 = require18("tree-sitter");
|
|
42416
|
+
var TsGrammar3 = require18("tree-sitter-typescript");
|
|
42424
42417
|
var tsParser3 = null;
|
|
42425
42418
|
var tsxParser2 = null;
|
|
42426
42419
|
function getParser13(tsx) {
|
|
@@ -45942,13 +45935,13 @@ var TrpcPlugin = class {
|
|
|
45942
45935
|
};
|
|
45943
45936
|
|
|
45944
45937
|
// src/indexer/plugins/integration/api/drf/index.ts
|
|
45945
|
-
import { createRequire as
|
|
45938
|
+
import { createRequire as createRequire18 } from "module";
|
|
45946
45939
|
import fs51 from "fs";
|
|
45947
45940
|
import path60 from "path";
|
|
45948
45941
|
import { ok as ok52, err as err28 } from "neverthrow";
|
|
45949
|
-
var
|
|
45950
|
-
var Parser17 =
|
|
45951
|
-
var PythonGrammar5 =
|
|
45942
|
+
var require19 = createRequire18(import.meta.url);
|
|
45943
|
+
var Parser17 = require19("tree-sitter");
|
|
45944
|
+
var PythonGrammar5 = require19("tree-sitter-python");
|
|
45952
45945
|
var parserInstance11 = null;
|
|
45953
45946
|
function getParser14() {
|
|
45954
45947
|
if (!parserInstance11) {
|
|
@@ -46392,13 +46385,13 @@ var ZodPlugin = class {
|
|
|
46392
46385
|
};
|
|
46393
46386
|
|
|
46394
46387
|
// src/indexer/plugins/integration/validation/pydantic/index.ts
|
|
46395
|
-
import { createRequire as
|
|
46388
|
+
import { createRequire as createRequire19 } from "module";
|
|
46396
46389
|
import fs53 from "fs";
|
|
46397
46390
|
import path62 from "path";
|
|
46398
46391
|
import { ok as ok53, err as err29 } from "neverthrow";
|
|
46399
|
-
var
|
|
46400
|
-
var Parser18 =
|
|
46401
|
-
var PythonGrammar6 =
|
|
46392
|
+
var require20 = createRequire19(import.meta.url);
|
|
46393
|
+
var Parser18 = require20("tree-sitter");
|
|
46394
|
+
var PythonGrammar6 = require20("tree-sitter-python");
|
|
46402
46395
|
var parserInstance12 = null;
|
|
46403
46396
|
function getParser15() {
|
|
46404
46397
|
if (!parserInstance12) {
|
|
@@ -47250,13 +47243,13 @@ var TestingPlugin = class {
|
|
|
47250
47243
|
};
|
|
47251
47244
|
|
|
47252
47245
|
// src/indexer/plugins/integration/tooling/celery/index.ts
|
|
47253
|
-
import { createRequire as
|
|
47246
|
+
import { createRequire as createRequire20 } from "module";
|
|
47254
47247
|
import fs56 from "fs";
|
|
47255
47248
|
import path65 from "path";
|
|
47256
47249
|
import { ok as ok55, err as err30 } from "neverthrow";
|
|
47257
|
-
var
|
|
47258
|
-
var Parser19 =
|
|
47259
|
-
var PythonGrammar7 =
|
|
47250
|
+
var require21 = createRequire20(import.meta.url);
|
|
47251
|
+
var Parser19 = require21("tree-sitter");
|
|
47252
|
+
var PythonGrammar7 = require21("tree-sitter-python");
|
|
47260
47253
|
var parserInstance13 = null;
|
|
47261
47254
|
function getParser16() {
|
|
47262
47255
|
if (!parserInstance13) {
|
|
@@ -49166,7 +49159,7 @@ function writeTraceMcpEntry(configPath, entry) {
|
|
|
49166
49159
|
function getConfigPath(name, projectRoot, scope) {
|
|
49167
49160
|
switch (name) {
|
|
49168
49161
|
case "claude-code":
|
|
49169
|
-
return scope === "global" ? path69.join(HOME, ".claude
|
|
49162
|
+
return scope === "global" ? path69.join(HOME, ".claude.json") : path69.join(projectRoot, ".mcp.json");
|
|
49170
49163
|
case "claude-desktop":
|
|
49171
49164
|
return process.platform === "darwin" ? path69.join(HOME, "Library", "Application Support", "Claude", "claude_desktop_config.json") : path69.join(process.env.APPDATA ?? path69.join(HOME, "AppData", "Roaming"), "Claude", "claude_desktop_config.json");
|
|
49172
49165
|
case "cursor":
|
|
@@ -49564,6 +49557,7 @@ function detectMcpClients(projectRoot) {
|
|
|
49564
49557
|
if (projectRoot) {
|
|
49565
49558
|
checkConfig("claude-code", path73.join(projectRoot, ".mcp.json"));
|
|
49566
49559
|
}
|
|
49560
|
+
checkConfig("claude-code", path73.join(HOME3, ".claude.json"));
|
|
49567
49561
|
checkConfig("claude-code", path73.join(HOME3, ".claude", "settings.json"));
|
|
49568
49562
|
const platform = os4.platform();
|
|
49569
49563
|
if (platform === "darwin") {
|
|
@@ -51766,6 +51760,8 @@ federationCommand.command("impact").description("Cross-repo impact analysis: who
|
|
|
51766
51760
|
});
|
|
51767
51761
|
|
|
51768
51762
|
// src/cli.ts
|
|
51763
|
+
var require22 = createRequire21(import.meta.url);
|
|
51764
|
+
var { version: PKG_VERSION2 } = require22("../package.json");
|
|
51769
51765
|
function registerDefaultPlugins(registry) {
|
|
51770
51766
|
for (const p4 of createAllLanguagePlugins()) registry.registerLanguagePlugin(p4);
|
|
51771
51767
|
for (const p4 of createAllIntegrationPlugins()) registry.registerFrameworkPlugin(p4);
|
|
@@ -51805,7 +51801,7 @@ function runFederationAutoSync(projectRoot, config) {
|
|
|
51805
51801
|
}
|
|
51806
51802
|
}
|
|
51807
51803
|
var program = new Command7();
|
|
51808
|
-
program.name("trace-mcp").description("Framework-Aware Code Intelligence for Laravel/Vue/Inertia/Nuxt").version(
|
|
51804
|
+
program.name("trace-mcp").description("Framework-Aware Code Intelligence for Laravel/Vue/Inertia/Nuxt").version(PKG_VERSION2);
|
|
51809
51805
|
program.command("serve").description("Start MCP server (stdio transport)").action(async () => {
|
|
51810
51806
|
const projectRoot = process.cwd();
|
|
51811
51807
|
const existing = getProject(projectRoot);
|