core: restore plugin serverUrl getter so plugins can connect to local server

This commit is contained in:
Dax Raad
2026-03-11 17:41:49 -04:00
parent fbd9b7cf4f
commit 604ab1bde1
2 changed files with 5 additions and 1 deletions

View File

@@ -35,7 +35,7 @@ export namespace Plugin {
worktree: Instance.worktree,
directory: Instance.directory,
get serverUrl(): URL {
throw new Error("Server URL is no longer supported in plugins")
return Server.url ?? new URL("http://localhost:4096")
},
$: Bun.$,
}