/**
 * Process-local phase state for SF-aware shared extensions.
 */
let sfActive = false;
let currentPhase = null;
export function activateSF() {
	sfActive = true;
	currentPhase = null;
}
export function deactivateSF() {
	sfActive = false;
	currentPhase = null;
}
export function isSFActive() {
	return sfActive;
}
export function setCurrentPhase(phase) {
	currentPhase = phase;
}
export function clearCurrentPhase() {
	currentPhase = null;
}
export function getCurrentPhase() {
	return sfActive ? currentPhase : null;
}
