Add system.serverSyscall syscall

This commit is contained in:
Zef Hemel
2025-03-13 09:10:37 +01:00
parent 808fdd13c0
commit a56ef0b897
+7
View File
@@ -75,6 +75,13 @@ export function systemSyscalls(
[fullName, ...args],
);
},
"system.serverSyscall": (_ctx, name: string, ...args: any[]) => {
if (!client) {
return system.localSyscall(name, args);
} else {
return proxySyscall({}, client!.httpSpacePrimitives, name, args);
}
},
"system.invokeCommand": (_ctx, name: string, args?: string[]) => {
if (!client) {
throw new Error("Not supported");