MCPcopy Create free account
hub / github.com/EvoMap/evolver / ensureInitialized

Function ensureInitialized

src/atp/consumerAgent.js:14–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12let _initialized = false;
13
14async function ensureInitialized() {
15 if (_initialized) return;
16 const hello = await sendHelloToHub();
17 if (!hello || !hello.ok) {
18 throw new Error('Failed to register with Hub: ' + (hello?.error || 'unknown'));
19 }
20 _initialized = true;
21}
22
23/**
24 * Place an ATP order for a service.

Callers 5

orderServiceFunction · 0.85
confirmDeliveryFunction · 0.85
requestAiJudgeFunction · 0.85
settleFunction · 0.85
disputeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected