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

Function approvalArgumentPreview

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

Source from the content-addressed store, hash-verified

1240// ---------------------------------------------------------------------------
1241
1242const approvalArgumentPreview = (args: unknown): string => {
1243 const text = JSON.stringify(args ?? {}, null, 2) ?? "null";
1244 return text.length > MAX_APPROVAL_ARGUMENT_PREVIEW_CHARS
1245 ? `${text.slice(0, MAX_APPROVAL_ARGUMENT_PREVIEW_CHARS)}...`
1246 : text;
1247};
1248
1249// ---------------------------------------------------------------------------
1250// createExecutor

Callers 1

enforceApprovalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected