Deletes the file at filePath.
When the path falls inside an active watch scope, the watcher
callback is invoked automatically with 'remove'.
Returns an async iterator that yields paths matching pattern.
A glob pattern (e.g. '**/*.prompt.ts').
See GlobOptions.
Dynamically imports the module at filePath and returns its namespace
object. Rejects if the file does not exist.
Reads the file at filePath and returns its content as a UTF-8 string.
Rejects if the file does not exist.
Starts watching for changes to files that match patterns and calls
callback on each relevant event.
Glob patterns that select which files to watch.
See FileWatchOptions.
Called for each matching file event.
A cleanup function; call it to stop watching.
Writes content to filePath, creating or overwriting the file.
When the path falls inside an active watch scope, the watcher
callback is invoked automatically.
A FileProvider backed by the local file system.
Uses
fs/promisesfor I/O,fs/promises.glob(Node.js ≥ 22) for pattern matching, and chokidar for file watching.This is the default implementation used by FilePromptProvider and TSPromptFileType when no custom provider is supplied.