@groundtruth-mcp/gt-mcp 2.3.2 → 2.5.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 +89 -29
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/index.js +1 -1
- package/dist/services/cache.js +1 -1
- package/dist/services/fetcher.d.ts +12 -1
- package/dist/services/fetcher.js +1 -1
- package/dist/sources/registry.js +1 -1
- package/dist/tools/audit.d.ts +9 -2
- package/dist/tools/audit.js +1 -1
- package/dist/tools/auto-scan.js +1 -1
- package/dist/tools/best-practices.js +1 -1
- package/dist/tools/changelog.js +1 -1
- package/dist/tools/compare.js +1 -1
- package/dist/tools/compat.js +1 -1
- package/dist/tools/docs.js +1 -1
- package/dist/tools/examples.d.ts +2 -0
- package/dist/tools/examples.js +1 -0
- package/dist/tools/resolve.js +1 -1
- package/dist/tools/search.js +1 -1
- package/dist/types.d.ts +5 -2
- package/dist/utils/extract.js +1 -1
- package/dist/utils/guard.js +1 -1
- package/dist/utils/lockfile.d.ts +7 -0
- package/dist/utils/lockfile.js +1 -0
- package/dist/utils/sanitize.js +1 -1
- package/dist/utils/version-check.d.ts +6 -0
- package/dist/utils/version-check.js +1 -0
- package/dist/utils/watermark.d.ts +1 -1
- package/dist/utils/watermark.js +1 -1
- package/package.json +5 -1
package/dist/tools/audit.d.ts
CHANGED
|
@@ -18,8 +18,15 @@ interface AuditPattern {
|
|
|
18
18
|
docsQuery?: string;
|
|
19
19
|
test: (line: string, fileContent: string, charOffset: number, lines: string[], lineIndex: number) => string | null;
|
|
20
20
|
}
|
|
21
|
-
/**
|
|
22
|
-
|
|
21
|
+
/** Range-based comment map — O(n) build, O(log n) lookup, O(ranges) memory */
|
|
22
|
+
declare class CommentMap {
|
|
23
|
+
private readonly ranges;
|
|
24
|
+
constructor(ranges: [number, number][]);
|
|
25
|
+
has(pos: number): boolean;
|
|
26
|
+
get size(): number;
|
|
27
|
+
}
|
|
28
|
+
/** Build a CommentMap of block-comment ranges to reduce false positives */
|
|
29
|
+
export declare function buildCommentMap(content: string): CommentMap;
|
|
23
30
|
export declare const AUDIT_PATTERNS: AuditPattern[];
|
|
24
31
|
export declare function registerAuditTool(server: McpServer): void;
|
|
25
32
|
export {};
|