Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codeaashu/claude-code
/ isNewFile
Function
isNewFile
web/components/tools/ToolFileWrite.tsx:38–41 ·
view source on GitHub ↗
(result?: string)
Source
from the content-addressed store, hash-verified
36
}
37
38
function isNewFile(result?: string): boolean {
39
if (!result) return false;
40
return /creat|new/i.test(result);
41
}
42
43
export function ToolFileWrite({
44
input,
Callers
1
ToolFileWrite
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected