Commit graph RynthServers/Plugins/Shared
Author SHA1 Message Date
Daniel Wallace
4afb8f3ac3 ServerPack: optional bar menu on the server's window (ServerBarMenu hook)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:37:49 -08:00
Daniel Wallace
865c3a3997 ServerPack: the web panel is plugin API v94
The engine's web panel landed as plugin API v94 (was v93 provisional on
up/web-panel; renumbered after upstream's v93). Only comments named the
number: the panel is found through RynthCoreHost.HasWebPanel.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:37:49 -08:00
Daniel Wallace
9a2cbb59c7 ServerPack: one browser decision after the panel, pinned by scan
AfterPanel now asks ServerWebOpen.FallbackToBrowser first and opens the
browser only there; the RefusedBeforeNavigate switch arm is gone. A source
scan pins OpenInBrowser(r, done) to exactly two places (OpenWeb's browser
route and right after the guard), so a browser open added to another arm
(a spent code opened twice) fails the tests. Checked by mutation: an extra
arm gives 3, a moved call fails the guard check.

A newer Open answers the older waiting open Closed only once the engine has
queued it; a refused or throwing second open leaves the first waiting (test
added, RED against the old order). The SDK-name scan also covers the
WebPanel*Fn table slots. Trailing newlines restored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:37:49 -08:00
Daniel Wallace
0ba3b5909e ServerPack: use the engine's web panel when it has one
OpenWeb now opens the page in RynthCore's in-game web panel (plugin API v93)
and falls back to the system browser only when the panel refused before
navigating. A handle from OpenWebPanel only means queued, so the open is
answered from OnTick (PollWeb), which reads GetWebPanelState until it decides:
Loading/Ready opened; Failed+OpenedInBrowser the engine opened the browser
(do nothing more); Failed+ProcessFailed spent; Failed+RuntimeMissing or
CreateFailed with no browser and no navigation falls back. A 20 s poll
timeout answers NoAnswer (neutral, no fallback). done fires exactly once.

ServerWebPanel.cs is pure (an int/string engine seam), so the mappings and
the once-only answer are tested with a fake engine. Every SDK web-panel name
sits in four NoInlining helpers in ServerPackWeb.cs, each called inside
catch (MissingMethodException) and catch (TypeLoadException); a source scan
pins that, the poll's place in OnTick, and the absence of locks. CloseWeb
closes only the handle this plugin opened.

Builds only against a RynthCore SDK with the web panel (0ef12d7); against
418d80b the helpers do not compile (8 errors, all in ServerPackWeb.cs).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:37:49 -08:00
Daniel Wallace
8dda4fdf96 ServerPack web open: a request never prints its URL; Windows error wording
WebOpenRequest is a record, so its generated ToString printed the URL, which
can carry a one-time code. It now names the title only. The browser failure
reads "Couldn't open your browser (Windows error N)."

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:18:45 -08:00
Daniel Wallace
8ceba81070 ServerPack: ServerUsageLines, a server's own /rserver usage lines
An optional hook, collected once in the constructor. ServerPackCommands.Usage
appends a server's lines (trimmed, blanks dropped) after the shared two, and
"/rserver help" and an unknown word print them all. A server without the hook
prints exactly the two lines it always has (pinned on Coldeve).
ServerProjectsTests.PluginsDir is internal so other tests can share it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:18:45 -08:00
Daniel Wallace
c085c16e15 ServerPack web open: fall back only before the panel navigates
PanelResult + pure FallbackToBrowser; guard TryOpenPanel throws; guard done callbacks;
hand ShellExecuteW the validated absolute URI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:18:45 -08:00
Daniel Wallace
dd80216933 ServerPack: open a web page in the engine's panel, else the browser
Pure allowlist/route rules (ServerWebOpen) plus the host opener (ServerPackWeb):
ShellExecuteW on a background STA thread; panel seams stubbed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:18:45 -08:00
Daniel Wallace
5c6af0bbe5 ServerPack: card actions add no separator of their own
Hookless servers render exactly as before: call _cardActions?.Invoke() after RenderVerdict and let the existing separator close the block. Test now pins the RenderBody separator count and restores the trailing CRLF.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:18:37 -08:00
Daniel Wallace
52b0b00860 ServerPack: card-actions hook for a server's own buttons
Adds partial void ServerCardActions(), drawn at the top of the server card under RynthCore's verdict (render thread). ServerPackUi takes an optional cardActions delegate; the plugin passes DrawCardActions (a delegate cannot bind an unimplemented partial, CS0762).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:18:36 -08:00
e52923ba5c RynthServers as of 2026-11-08 (internal 471970b): release 2026.11.8.1 2026-11-08 15:48:49 -05:00
f9db7bad87 Snapshot for release 2026.10.28.3 (internal 7496938) 2026-10-28 23:23:44 -04:00
c68e251cd6 Snapshot for release 2026.10.27.1 (internal bf8b2f3) 2026-10-27 08:41:02 -04:00
6fe5630e8c Snapshot for release 2026.10.21.1 (internal 32a418d) 2026-10-21 09:35:08 -04:00