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

Function newCorrelationId

packages/core/execution/src/tool-invoker.ts:151–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

149]);
150
151const newCorrelationId = (): string => {
152 // 8-hex-char correlation id; enough entropy to disambiguate within a
153 // single deployment without leaking host process info.
154 return Math.floor(Math.random() * 0x1_0000_0000)
155 .toString(16)
156 .padStart(8, "0");
157};
158
159const validationIssues = (value: unknown): readonly unknown[] | null => {
160 if (typeof value !== "object" || value === null) return null;

Callers 1

makeExecutorToolInvokerFunction · 0.70

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected