@bryan-thompson/inspector-assessment-cli 1.20.9 → 1.20.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.
@@ -137,7 +137,34 @@ function loadSourceFiles(sourcePath) {
137
137
  }
138
138
  }
139
139
  result.sourceCodeFiles = new Map();
140
- const sourceExtensions = [".ts", ".js", ".py", ".go", ".rs"];
140
+ // Include config files for portability analysis
141
+ const sourceExtensions = [".ts", ".js", ".py", ".go", ".rs", ".json", ".sh", ".yaml", ".yml"];
142
+ // Parse .gitignore patterns
143
+ const gitignorePatterns = [];
144
+ const gitignorePath = path.join(sourcePath, ".gitignore");
145
+ if (fs.existsSync(gitignorePath)) {
146
+ const gitignoreContent = fs.readFileSync(gitignorePath, "utf-8");
147
+ for (const line of gitignoreContent.split("\n")) {
148
+ const trimmed = line.trim();
149
+ if (!trimmed || trimmed.startsWith("#"))
150
+ continue;
151
+ // Convert gitignore pattern to regex
152
+ const pattern = trimmed
153
+ .replace(/\./g, "\\.")
154
+ .replace(/\*\*/g, ".*")
155
+ .replace(/\*/g, "[^/]*")
156
+ .replace(/\?/g, ".");
157
+ try {
158
+ gitignorePatterns.push(new RegExp(pattern));
159
+ }
160
+ catch {
161
+ // Skip invalid patterns
162
+ }
163
+ }
164
+ }
165
+ const isGitignored = (relativePath) => {
166
+ return gitignorePatterns.some((pattern) => pattern.test(relativePath));
167
+ };
141
168
  const loadSourceDir = (dir, prefix = "") => {
142
169
  const entries = fs.readdirSync(dir, { withFileTypes: true });
143
170
  for (const entry of entries) {
@@ -145,6 +172,9 @@ function loadSourceFiles(sourcePath) {
145
172
  continue;
146
173
  const fullPath = path.join(dir, entry.name);
147
174
  const relativePath = prefix ? `${prefix}/${entry.name}` : entry.name;
175
+ // Skip gitignored files
176
+ if (isGitignored(relativePath))
177
+ continue;
148
178
  if (entry.isDirectory()) {
149
179
  loadSourceDir(fullPath, relativePath);
150
180
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bryan-thompson/inspector-assessment-cli",
3
- "version": "1.20.9",
3
+ "version": "1.20.11",
4
4
  "description": "CLI for the Enhanced MCP Inspector with assessment capabilities",
5
5
  "license": "MIT",
6
6
  "author": "Bryan Thompson <bryan@triepod.ai>",