Skip to content

πŸ™Œ OpenHands: AI-Driven Development

995 B
Raw Blame
import { getActiveBackend } from "#/api/backend-registry/active-store";

/** Local only: cloud launches do not enforce a profile's secret scope yet. */
export function agentProfileSupportsSecretRefs(): boolean {
  return getActiveBackend().backend.kind !== "cloud";
}

/** Only offer profile instructions where launches apply them. */
export function agentProfileSupportsInstructions(): boolean {
  return getActiveBackend().backend.kind !== "cloud";
}

/** Local only: cloud launches ignore a profile's tools for now. */
export function agentProfileSupportsTools(): boolean {
  return getActiveBackend().backend.kind !== "cloud";
}

/** Local only: cloud loads skills from its own catalog. */
export function agentProfileSupportsSkills(): boolean {
  return getActiveBackend().backend.kind !== "cloud";
}

/** Local only: cloud backends keep routers in the organization's store. */
export function agentProfileSupportsRouter(): boolean {
  return getActiveBackend().backend.kind !== "cloud";
}