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

Function toolData

scripts/agent-config-smoke.ts:83–87  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

81};
82
83const toolData = <T>(value: unknown): T => {
84 const result = value as { readonly ok?: boolean; readonly data?: T; readonly error?: unknown };
85 assert(result.ok === true, `Tool returned failure: ${JSON.stringify(value)}`);
86 return result.data as T;
87};
88
89const extractExecutionId = (text: string): string => {
90 const match = /executionId:\s*(exec_[A-Za-z0-9_]+)/.exec(text);

Callers 4

firstScopeFunction · 0.85
createSecretPlaceholderFunction · 0.85
runSmokeFunction · 0.85

Calls 1

assertFunction · 0.85

Tested by

no test coverage detected