mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-05-14 00:23:04 +08:00
fix: harden opencode project file probes
This commit is contained in:
committed by
Affaan Mustafa
parent
629d4c0c61
commit
6d613f67dd
@@ -45,7 +45,7 @@ export const ECCHooksPlugin: ECCHooksPluginFn = async ({
|
||||
|
||||
function hasProjectFile(relativePath: string): boolean {
|
||||
try {
|
||||
return fs.existsSync(resolvePath(relativePath))
|
||||
return fs.statSync(resolvePath(relativePath)).isFile()
|
||||
} catch {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user