diff --git a/plug-api/silverbullet-syscall/debug.ts b/plug-api/silverbullet-syscall/debug.ts new file mode 100644 index 0000000..7c833b1 --- /dev/null +++ b/plug-api/silverbullet-syscall/debug.ts @@ -0,0 +1,5 @@ +import { syscall } from "./syscall.ts"; + +export function resetClient() { + return syscall("debug.resetClient"); +} diff --git a/plug-api/silverbullet-syscall/mod.ts b/plug-api/silverbullet-syscall/mod.ts index 7500d2c..3d763a6 100644 --- a/plug-api/silverbullet-syscall/mod.ts +++ b/plug-api/silverbullet-syscall/mod.ts @@ -6,3 +6,4 @@ export * as system from "./system.ts"; // Legacy redirect, use "store" in $sb/plugos-syscall/mod.ts instead export * as clientStore from "./store.ts"; export * as sync from "./sync.ts"; +export * as debug from "./debug.ts"; diff --git a/plugs/core/core.plug.yaml b/plugs/core/core.plug.yaml index da576c8..0cc19f9 100644 --- a/plugs/core/core.plug.yaml +++ b/plugs/core/core.plug.yaml @@ -347,6 +347,11 @@ functions: command: name: "Debug: Parse Document" + resetClientCommand: + path: ./debug.ts:resetClientCommand + command: + name: "Debug: Reset Client" + versionCommand: path: ./help.ts:versionCommand command: diff --git a/plugs/core/debug.ts b/plugs/core/debug.ts index 3b77cb4..6ceddfd 100644 --- a/plugs/core/debug.ts +++ b/plugs/core/debug.ts @@ -1,4 +1,4 @@ -import { editor, markdown } from "$sb/silverbullet-syscall/mod.ts"; +import { debug, editor, markdown } from "$sb/silverbullet-syscall/mod.ts"; export async function parsePageCommand() { console.log( @@ -10,3 +10,7 @@ export async function parsePageCommand() { ), ); } + +export async function resetClientCommand() { + await debug.resetClient(); +} diff --git a/web/auth.html b/web/auth.html index 085d227..5ba25da 100644 --- a/web/auth.html +++ b/web/auth.html @@ -56,14 +56,8 @@