1
0
silverbullet/server/rpc.ts

22 lines
326 B
TypeScript
Raw Normal View History

2023-08-26 06:31:51 +00:00
export type ShellRequest = {
cmd: string;
args: string[];
};
export type ShellResponse = {
stdout: string;
stderr: string;
code: number;
};
export type SyscallRequest = {
ctx: string; // Plug name requesting
name: string;
args: any[];
};
export type SyscallResponse = {
result?: any;
error?: string;
};