Files
Error-Code-System/domains/embed.go
T
weichenandCursor bd53e9ba79
ci / vet-and-test (push) Successful in 3s
ci / docker-checkout-hostgateway (push) Successful in 3s
Add a shared error-code catalog so failures can be traced by stable codes.
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>
2026-09-29 13:43:12 +00:00

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")
}