LearnNewsExamplesServices
Frontmatter
id7610
titleRefactor `LocalFileService` to Remove `glob` Dependency
stateClosed
labels
airefactoring
assigneestobiu
createdAtOct 22, 2025, 3:13 PM
updatedAtOct 22, 2025, 3:13 PM
githubUrlhttps://github.com/neomjs/neo/issues/7610
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtOct 22, 2025, 3:13 PM

Refactor LocalFileService to Remove glob Dependency

Closed v11.0.0 airefactoring
tobiu
tobiu commented on Oct 22, 2025, 3:13 PM

The LocalFileService currently uses the glob npm package for recursively searching the ISSUE_ARCHIVE directory. To minimize external dependencies and maintain a leaner codebase, this dependency should be removed. The recursive file search functionality can be reimplemented using Node.js's native fs/promises module.

Acceptance Criteria

  1. The glob import is removed from ai/mcp/server/github-workflow/services/LocalFileService.mjs.
  2. A new private helper method, e.g., #findFileRecursively(directory, filename), is implemented within LocalFileService.mjs.
  3. This helper method performs a recursive search for the specified filename within the given directory and its subdirectories, returning the absolute path of the first match, or null if not found.
tobiu assigned to @tobiu on Oct 22, 2025, 3:13 PM
tobiu added the ai label on Oct 22, 2025, 3:13 PM
tobiu added the refactoring label on Oct 22, 2025, 3:13 PM
tobiu referenced in commit 03f7174 - "Refactor LocalFileService to Remove glob Dependency #7610" on Oct 22, 2025, 3:13 PM
tobiu closed this issue on Oct 22, 2025, 3:13 PM