silverbullet/plug-api/syscalls/debug.ts

20 lines
433 B
TypeScript
Raw Normal View History

import { syscall } from "../syscall.ts";
2023-07-14 18:15:10 +08:00
2024-08-07 19:27:25 +08:00
/**
* Exposes various debugging utilities.
*/
/**
* Completely wipes the client state, both cached files as well as databases (best effort)
*/
2024-07-30 23:24:17 +08:00
export function resetClient(): Promise<void> {
2023-07-14 18:15:10 +08:00
return syscall("debug.resetClient");
}
/**
* Wipes the entire state KV store and the entire space KV store.
*/
2024-07-30 23:24:17 +08:00
export function cleanup(): Promise<void> {
return syscall("debug.cleanup");
}