import { resolveCliCommandPathPolicy } from "./command-path-policy.js";
//#region src/cli/command-startup-policy.ts
function shouldLoadExtensionCliForCommandPath(commandPath) {
	const policy = resolveCliCommandPathPolicy(commandPath).loadExtensions;
	if (policy === "never") return false;
	if (policy === "always") return true;
	return true;
}
function shouldEagerLoadGatewaySubcommands(commandPath) {
	return resolveCliCommandPathPolicy(commandPath).gatewaySubcommands === "eager";
}
function resolveCliStartupPolicy(params) {
	return {
		loadExtensionCli: shouldLoadExtensionCliForCommandPath(params.commandPath),
		eagerGatewaySubcommands: shouldEagerLoadGatewaySubcommands(params.commandPath)
	};
}
//#endregion
export { resolveCliStartupPolicy, shouldEagerLoadGatewaySubcommands, shouldLoadExtensionCliForCommandPath };

//# sourceMappingURL=command-startup-policy.js.map