@saber2pr/ai-agent 0.0.60 → 0.0.61

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.
@@ -312,7 +312,9 @@ async function searchFilesWithValidation(cwd, rootPath, pattern, allowedDirector
312
312
  if (shouldExclude)
313
313
  continue;
314
314
  // Use glob matching for the search pattern
315
- if ((0, minimatch_1.minimatch)(relativePath, pattern, { dot: true })) {
315
+ if ((0, minimatch_1.minimatch)(relativePath, pattern, { dot: true }) ||
316
+ path_1.default.basename(fullPath) === pattern // 新增:如果文件名完全一致也算匹配
317
+ ) {
316
318
  results.push(fullPath);
317
319
  }
318
320
  if (entry.isDirectory()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saber2pr/ai-agent",
3
- "version": "0.0.60",
3
+ "version": "0.0.61",
4
4
  "description": "AI Assistant CLI.",
5
5
  "author": "saber2pr",
6
6
  "license": "ISC",