2024-02-09 04:00:45 +08:00
|
|
|
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");
|
|
|
|
}
|
2024-01-27 00:05:10 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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> {
|
2024-01-27 00:05:10 +08:00
|
|
|
return syscall("debug.cleanup");
|
|
|
|
}
|