Refactor external tools organization and add file search API endpoint

🤖 Generated with [OpenCode](https://opencode.ai)

Co-Authored-By: OpenCode <noreply@opencode.ai>
This commit is contained in:
Dax Raad
2025-06-11 23:59:51 -04:00
parent 83991bee88
commit f6ed59bf45
6 changed files with 48 additions and 5 deletions

View File

@@ -0,0 +1,11 @@
export function lazy<T>(fn: () => T) {
let value: T | undefined
let loaded = false
return (): T => {
if (loaded) return value as T
value = fn()
return value as T
}
}