import { getUserDataRoot as getRoot, getUserInstancesDir as getInstances, getUserIntegrationsDir as getIntegrations } from "./user-context"
import path from "path"

export function getUserDataRoot(): string {
  return getRoot()
}

export function getUserConfigPath(): string {
  return path.join(getUserDataRoot(), "config.json")
}

export function getUserInstancesDir(): string {
  return getInstances()
}

export function getUserIntegrationsDir(): string {
  return getIntegrations()
}

export function getOpencodeWorkspacesRoot(): string {
  return path.join(getUserDataRoot(), "opencode-workspaces")
}
