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

Function approvalArgumentPreview

packages/core/sdk/src/executor.ts:1819–1824  ·  view source on GitHub ↗
(args: unknown)

Source from the content-addressed store, hash-verified

1817// ---------------------------------------------------------------------------
1818
1819const approvalArgumentPreview = (args: unknown): string => {
1820 const text = JSON.stringify(args ?? {}, null, 2) ?? "null";
1821 return text.length > MAX_APPROVAL_ARGUMENT_PREVIEW_CHARS
1822 ? `${text.slice(0, MAX_APPROVAL_ARGUMENT_PREVIEW_CHARS)}...`
1823 : text;
1824};
1825
1826// ---------------------------------------------------------------------------
1827// createExecutor

Callers 1

enforceApprovalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected