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

Function ledger

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

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.85

Calls 3

readStateFunction · 0.85
logMethod · 0.80
listMethod · 0.65

Tested by

no test coverage detected