import { SysCallMapping } from "../../plugos/system.ts"; import type { Client } from "../client.ts"; export function syncSyscalls(editor: Client): SysCallMapping { return { "sync.isSyncing": (): Promise => { return editor.syncService.isSyncing(); }, "sync.hasInitialSyncCompleted": (): Promise => { return editor.syncService.hasInitialSyncCompleted(); }, "sync.scheduleFileSync": (_ctx, path: string): Promise => { return editor.syncService.scheduleFileSync(path); }, }; }