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

Function newCorrelationId

packages/hosts/mcp/src/tool-server.ts:637–640  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

635// generic plus a fresh correlation id and log the cause out-of-band so
636// the model can't read internal context off `.message`.
637const newCorrelationId = (): string =>
638 Math.floor(Math.random() * 0x1_0000_0000)
639 .toString(16)
640 .padStart(8, "0");
641
642const defaultResumeApprovalUrl = (executionId: string): string =>
643 `/resume/${encodeURIComponent(executionId)}`;

Callers 1

toMcpFailureResultFunction · 0.70

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected