MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / ledger

Function ledger

e2e/scripts/cli.ts:460–468  ·  view source on GitHub ↗
(targetName: string, service = "workos")

Source from the content-addressed store, hash-verified

458};
459
460const ledger = async (targetName: string, service = "workos") => {
461 const state = readState(targetName);
462 const url = state?.urls?.[service];
463 if (!url) throw new Error(`no ${service} emulator url recorded for ${targetName}`);
464 const { connectEmulator } = await import("@executor-js/emulate");
465 const client = await connectEmulator({ baseUrl: url });
466 const entries = await client.ledger.list();
467 console.log(JSON.stringify(entries, null, 2));
468};
469
470// --- lifecycle commands ----------------------------------------------------
471

Callers 1

mainFunction · 0.85

Calls 3

readStateFunction · 0.85
logMethod · 0.80
listMethod · 0.65

Tested by

no test coverage detected