Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
// SPDX-License-Identifier: FSL-1.1-MIT
// Copyright (c) 2026 Cua AI, Inc.
import { core } from "../core";
/** Paths as native macOS apps show them: under the home folder as `~/...`. */
export function displayPath(path: string, home: string | null | undefined): string {
return core("paths.displayPath", { path, home: home ?? null });
}
/** Replaces every occurrence of the home folder in free text. */
export function displayPaths(text: string, home: string | null | undefined): string {
return core("paths.displayPaths", { text, home: home ?? null });
}