(fromOverride?: string)
| 8 | } |
| 9 | |
| 10 | export function requireAgentEmail(fromOverride?: string): string { |
| 11 | const config = loadConfig(); |
| 12 | const email = fromOverride || config.agent_email; |
| 13 | if (!email) { |
| 14 | process.stderr.write( |
| 15 | "No agent email. Use --agent or run: e2a config set agent_email <email>\n", |
| 16 | ); |
| 17 | process.exit(1); |
| 18 | } |
| 19 | return email; |
| 20 | } |