MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / requireAgentEmail

Function requireAgentEmail

cli/src/sdk.ts:10–20  ·  view source on GitHub ↗
(fromOverride?: string)

Source from the content-addressed store, hash-verified

8}
9
10export 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}

Callers 1

listenFunction · 0.85

Calls 1

loadConfigFunction · 0.70

Tested by

no test coverage detected