Services can resolve legacy aliases and expose the catalog over CLI and HTTP instead of ad-hoc error strings. Co-authored-by: Cursor <cursoragent@cursor.com>
14 lines
336 B
Go
14 lines
336 B
Go
package domains
|
|
|
|
import "embed"
|
|
|
|
// 导出的目录快照。改 Go 定义后用 WRITE_CATALOG=1 重写这些文件。
|
|
//
|
|
//go:embed sys.json agent.json squad.json
|
|
var catalogFS embed.FS
|
|
|
|
// CatalogJSON 返回已嵌入的域目录原文。
|
|
func CatalogJSON(domain string) ([]byte, error) {
|
|
return catalogFS.ReadFile(domain + ".json")
|
|
}
|