import { syscall } from "./syscall"; export async function invokeFunction( env: string, name: string, ...args: any[] ): Promise { return syscall("system.invokeFunction", env, name, ...args); } export async function invokeCommand(name: string): Promise { return syscall("system.invokeCommand", name); } export async function getVersion(): Promise { return syscall("system.getVersion"); } export async function reloadPlugs() { syscall("system.reloadPlugs"); }