// Command memoria-contract exports the live agent operation schemas as JSON. package main import ( "encoding/json" "fmt" "os" "amadan.net/oficina/memoria/internal/memoria" ) func main() { ops, err := memoria.AgentContracts() if err != nil { fmt.Fprintln(os.Stderr, "Could not export operation contracts.") os.Exit(1) } encoder := json.NewEncoder(os.Stdout) encoder.SetIndent("", " ") if encoder.Encode(ops) != nil { os.Exit(1) } }