Files
weichen 28fa06eaa5
ci / vet-and-test (push) Successful in 2s
ci / docker-checkout-hostgateway (push) Successful in 3s
Add the intent seed domain for the agent-intent module.
2026-09-29 15:18:32 +00:00

14 lines
348 B
Go

package domains
import "embed"
// 导出的目录快照。改 Go 定义后用 WRITE_CATALOG=1 重写这些文件。
//
//go:embed sys.json agent.json squad.json intent.json
var catalogFS embed.FS
// CatalogJSON 返回已嵌入的域目录原文。
func CatalogJSON(domain string) ([]byte, error) {
return catalogFS.ReadFile(domain + ".json")
}