Skip to content

The open-source app everyone uses to manage agents at work

429 B
Raw Blame
import type { AppDefinition } from "./types/app-definition.js";
import type { InstanceExperimentalSettings } from "./types/instance.js";

export function isConnectorFeatureEnabled(
  app: Pick<AppDefinition, "experimentalFeatureKey"> | null | undefined,
  settings: Partial<InstanceExperimentalSettings> | null | undefined,
): boolean {
  return !app?.experimentalFeatureKey || settings?.[app.experimentalFeatureKey] === true;
}