MCPcopy Create free account
hub / github.com/apache/maka / composeChildAbortSignal

Function composeChildAbortSignal

packages/runtime/src/tool-runtime.ts:313–319  ·  view source on GitHub ↗
(
  invocationSignal: AbortSignal,
  childSignal: AbortSignal | undefined,
)

Source from the content-addressed store, hash-verified

311 'Client Capability tools require the Bypass execution boundary because their client-side effects cannot be sandboxed by the Host. Switch this Session to Bypass and retry.';
312
313function composeChildAbortSignal(
314 invocationSignal: AbortSignal,
315 childSignal: AbortSignal | undefined,
316): AbortSignal {
317 if (!childSignal || childSignal === invocationSignal) return invocationSignal;
318 return AbortSignal.any([invocationSignal, childSignal]);
319}
320
321export interface ToolRuntimeInput {
322 sessionId: string;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected