chore: complete clean Agent Desk source snapshot

This commit is contained in:
2026-10-16 12:03:16 +00:00
parent 756ae33d05
commit e57610a27c
123 changed files with 37513 additions and 0 deletions

19
web/embed_dev.go Normal file
View File

@@ -0,0 +1,19 @@
//go:build dev
package webspa
import (
"io/fs"
"os"
)
var SPA fs.FS = getDevFS()
func getDevFS() fs.FS {
for _, dir := range []string{"web", "../web", "../../web", "../../../web"} {
if info, err := os.Stat(dir); err == nil && info.IsDir() {
return os.DirFS(dir)
}
}
return os.DirFS("web")
}