trace-mcp 1.6.1 → 1.8.0
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/README.md +2 -2
- package/dist/cli.js +1729 -737
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +43 -2
- package/dist/index.js +435 -53
- package/dist/index.js.map +1 -1
- package/hooks/trace-mcp-guard.cmd +28 -2
- package/hooks/trace-mcp-guard.sh +29 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -194,7 +194,7 @@ interface LanguagePlugin {
|
|
|
194
194
|
manifest: PluginManifest;
|
|
195
195
|
supportedExtensions: string[];
|
|
196
196
|
supportedVersions?: string[];
|
|
197
|
-
extractSymbols(filePath: string, content: Buffer): TraceMcpResult<FileParseResult
|
|
197
|
+
extractSymbols(filePath: string, content: Buffer): TraceMcpResult<FileParseResult> | Promise<TraceMcpResult<FileParseResult>>;
|
|
198
198
|
}
|
|
199
199
|
interface FrameworkPlugin {
|
|
200
200
|
manifest: PluginManifest;
|
|
@@ -437,6 +437,8 @@ declare class SymbolRepository {
|
|
|
437
437
|
getSymbolsByIds(ids: number[]): Map<number, SymbolRow>;
|
|
438
438
|
findSymbolByRole(name: string, frameworkRole?: string): SymbolRow | undefined;
|
|
439
439
|
updateSymbolSummary(symbolId: number, summary: string): void;
|
|
440
|
+
countUnsummarizedSymbols(kinds: string[]): number;
|
|
441
|
+
countUnembeddedSymbols(): number;
|
|
440
442
|
getUnsummarizedSymbols(kinds: string[], limit: number): {
|
|
441
443
|
id: number;
|
|
442
444
|
name: string;
|
|
@@ -631,6 +633,8 @@ declare class Store {
|
|
|
631
633
|
getSymbolsByIds(ids: number[]): Map<number, SymbolRow>;
|
|
632
634
|
findSymbolByRole(name: string, frameworkRole?: string): SymbolRow | undefined;
|
|
633
635
|
updateSymbolSummary(symbolId: number, summary: string): void;
|
|
636
|
+
countUnsummarizedSymbols(kinds: string[]): number;
|
|
637
|
+
countUnembeddedSymbols(): number;
|
|
634
638
|
getUnsummarizedSymbols(kinds: string[], limit: number): {
|
|
635
639
|
id: number;
|
|
636
640
|
name: string;
|
|
@@ -1904,7 +1908,44 @@ type TraceMcpConfig = z.infer<typeof TraceMcpConfigSchema>;
|
|
|
1904
1908
|
*/
|
|
1905
1909
|
declare function loadConfig(searchFrom?: string): Promise<TraceMcpResult<TraceMcpConfig>>;
|
|
1906
1910
|
|
|
1907
|
-
|
|
1911
|
+
/**
|
|
1912
|
+
* Indexing progress tracking.
|
|
1913
|
+
* Shared mutable state object — pipelines write, MCP tools + CLI read.
|
|
1914
|
+
* Progress is also persisted to SQLite for cross-process access (CLI `status` command).
|
|
1915
|
+
*/
|
|
1916
|
+
|
|
1917
|
+
type PipelinePhase = 'idle' | 'running' | 'completed' | 'error';
|
|
1918
|
+
type PipelineName = 'indexing' | 'summarization' | 'embedding';
|
|
1919
|
+
interface PipelineProgress {
|
|
1920
|
+
phase: PipelinePhase;
|
|
1921
|
+
processed: number;
|
|
1922
|
+
total: number;
|
|
1923
|
+
startedAt: number;
|
|
1924
|
+
completedAt: number;
|
|
1925
|
+
error?: string;
|
|
1926
|
+
}
|
|
1927
|
+
interface PipelineProgressSnapshot extends PipelineProgress {
|
|
1928
|
+
percentage: number | null;
|
|
1929
|
+
elapsedMs: number;
|
|
1930
|
+
}
|
|
1931
|
+
interface ProgressSnapshot {
|
|
1932
|
+
indexing: PipelineProgressSnapshot;
|
|
1933
|
+
summarization: PipelineProgressSnapshot;
|
|
1934
|
+
embedding: PipelineProgressSnapshot;
|
|
1935
|
+
}
|
|
1936
|
+
declare class ProgressState {
|
|
1937
|
+
indexing: PipelineProgress;
|
|
1938
|
+
summarization: PipelineProgress;
|
|
1939
|
+
embedding: PipelineProgress;
|
|
1940
|
+
private db;
|
|
1941
|
+
constructor(db?: Database.Database);
|
|
1942
|
+
update(name: PipelineName, partial: Partial<PipelineProgress>): void;
|
|
1943
|
+
snapshot(): ProgressSnapshot;
|
|
1944
|
+
private persist;
|
|
1945
|
+
private loadFromDb;
|
|
1946
|
+
}
|
|
1947
|
+
|
|
1948
|
+
declare function createServer(store: Store, registry: PluginRegistry, config: TraceMcpConfig, rootPath?: string, progress?: ProgressState): McpServer;
|
|
1908
1949
|
|
|
1909
1950
|
declare function initializeDatabase(dbPath: string): Database.Database;
|
|
1910
1951
|
|