import { contextStore } from './store.js';
export function enforceInitialContextMiddleware(toolName: string) {
if (toolName === 'get_initial_context') return;
if (!contextStore.hasInitialContext()) {
throw new Error(
'Initial context has not been retrieved. Please call get_initial_context tool first to get the initial context.',
);
}
}