Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

314 B
Raw Blame
import { posix } from "node:path";

/** Bookkeeping only; the remote Host canonicalizes and authorizes actual paths. */
export function remoteMutationIdentity(workspace: { hostKey: string; path: string }, path: string): string {
  return JSON.stringify([workspace.hostKey, posix.resolve(workspace.path, path)]);
}