//#region src/domains/run/utils/stream-registry.ts
/**
* Global registry for StreamHelper instances
* Allows agents to access streamHelper via requestId across A2A boundaries
*/
const streamHelperRegistry = /* @__PURE__ */ new Map();
/**
* Register a StreamHelper for a specific request ID
*/
function registerStreamHelper(requestId, streamHelper) {
	streamHelperRegistry.set(requestId, streamHelper);
}
/**
* Get a StreamHelper by request ID
*/
function getStreamHelper(requestId) {
	return streamHelperRegistry.get(requestId);
}
/**
* Unregister a StreamHelper for a specific request ID
*/
function unregisterStreamHelper(requestId) {
	streamHelperRegistry.delete(requestId);
}
/**
* Get registry size (for debugging)
*/
function getRegistrySize() {
	return streamHelperRegistry.size;
}

//#endregion
export { getRegistrySize, getStreamHelper, registerStreamHelper, unregisterStreamHelper };