archtracker-mcp 0.1.1 → 0.2.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/dist/cli/index.js +627 -98
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +9 -9
- package/dist/index.js +626 -96
- package/dist/index.js.map +1 -1
- package/dist/mcp/index.js +656 -120
- package/dist/mcp/index.js.map +1 -1
- package/package.json +12 -2
package/dist/index.d.ts
CHANGED
|
@@ -60,6 +60,8 @@ interface ArchContext {
|
|
|
60
60
|
}>;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
type LanguageId = "javascript" | "python" | "rust" | "go" | "java" | "c-cpp" | "ruby" | "php" | "swift" | "kotlin";
|
|
64
|
+
|
|
63
65
|
/** Options for the dependency analyzer */
|
|
64
66
|
interface AnalyzeOptions {
|
|
65
67
|
/** Regex patterns to exclude from analysis (e.g. ["node_modules", "\\.test\\.ts$"]) */
|
|
@@ -68,19 +70,17 @@ interface AnalyzeOptions {
|
|
|
68
70
|
maxDepth?: number;
|
|
69
71
|
/** Path to tsconfig.json (auto-detected if omitted) */
|
|
70
72
|
tsConfigPath?: string;
|
|
71
|
-
/** Include type-only imports (import type {...}) */
|
|
73
|
+
/** Include type-only imports (import type {...}) — JS/TS only */
|
|
72
74
|
includeTypeOnly?: boolean;
|
|
75
|
+
/** Target language (auto-detected if omitted) */
|
|
76
|
+
language?: LanguageId;
|
|
73
77
|
}
|
|
74
78
|
/**
|
|
75
|
-
* Analyze project dependencies
|
|
76
|
-
*
|
|
77
|
-
* dependency-cruiser records module paths relative to CWD.
|
|
78
|
-
* We resolve rootDir to an absolute path, then use it as baseDir
|
|
79
|
-
* so that output paths are relative to rootDir.
|
|
79
|
+
* Analyze project dependencies.
|
|
80
80
|
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
81
|
+
* For JavaScript/TypeScript: uses dependency-cruiser (AST-based).
|
|
82
|
+
* For other languages: uses regex-based import extraction.
|
|
83
|
+
* Language is auto-detected from project marker files if not specified.
|
|
84
84
|
*/
|
|
85
85
|
declare function analyzeProject(rootDir: string, options?: AnalyzeOptions): Promise<DependencyGraph>;
|
|
86
86
|
/** Custom error class for analyzer failures */
|