Commit graph RynthCore/tools
Author SHA1 Message Date
Daniel Wallace
bfb87aba04 /rc webpanel status|close
Status prints one redacted line (WebPanelApi.Describe plus the address space);
close closes the live panel. Neither opens a URL. WebPanelHost.Describe now
reports visible/focused/in-browser instead of raw flags; the stacked test-hook
summaries are put back on their own members. ChatCommandReplyTests covers the verb.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:09:14 -08:00
Daniel Wallace
ba7d96c7d9 WebPanel: fix round 2 (unresponsive reset, foreground gate, clipboard, Open rollback)
- Reset the unresponsive counter on teardown, on each new open and on
  navigation completed; harness check UnresponsiveCountResetsPerOpen.
- Show only calls SetForegroundWindow when our process holds the foreground.
- ClipboardRead permission is denied for about:blank.
- Open rolls back live handle and status fields if the STA thread fails to start.
- State struct minimum size is 28 on both platforms; test asserts it unguarded.
- Harness Escape message reports game key count as informational.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:09:14 -08:00
Daniel Wallace
388f3fd908 Web panel host fix round 1: non-fatal process kinds, late failures, thread restart, focus and permission guards
- ProcessFailed: only BrowserProcessExited (teardown) and RenderProcessExited (about:blank, recreate on the next Open) fail the panel, as WebView2's docs describe the kinds; GPU, utility, sandbox, PPAPI and frame-only renderer exits are logged only. RenderProcessUnresponsive fails it at 3 reports within 30 s. The handler acts on the panel being served now.
- Fail decides "ignored" under the lock first and hides the panel only when the failure is live: a late failure for a superseded handle no longer hides the newer panel.
- The panel thread's finally restarts the thread when an Open is still queued and the host is not shutting down; _threadDone goes false only after StartStaThread returns.
- Show takes the foreground only when a window of this process (or of this panel's WebView2 browser process) holds it, never while the foreground is null. The visibility rule counts the browser process (CoreWebView2.BrowserProcessId) as ours, so the page's own dialogs do not hide the panel.
- ClipboardRead is allowed only for an allowlisted origin. NavigationStarting and NewWindowRequested fail closed on an exception.
- WebPanelApiRules: the ABI glue's pure parts (refusals, GetState Size check, state write), tested in WebPanelTests with WebPanelNativeArgs. WebPanelApi.LiveHandle and the browser pid in Describe for Task 4.
- Harness: GpuProcessCrashKeepsPanel and LateFailureForSupersededHandle (both RED before the fix), UnloadWhileVisibleCollected reports UNVERIFIED when the window was not visible, the game-side key count is informational. EngineSettingsTests: WebPanel default-on round trip and setter case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:09:14 -08:00
Daniel Wallace
f130be3d2b Web panel host: STA thread, WebView2 lifetime, allowlist, focus, visibility; offline harness
WebPanelHost (CoreCLR engine only): one unowned WS_POPUP over the game client area on its own STA thread and GetMessage loop, lifted from the 2026-11-07 spike's popup-free path. Open/Navigate/Close/GetState never block: they validate, update the caller-visible state under a lock, queue work and post WM_APP+1 to the host window. WebView2Loader.dll is loaded by full path from the shim's Runtime folder; the runtime probe on the panel thread decides RuntimeMissing, any later creation failure is CreateFailed. Navigation guard (NavigationStarting incl. redirects, NewWindowRequested, LaunchingExternalUriScheme): off-list http/https goes to the system browser, anything else is dropped; logs carry only Redact()ed URLs or hosts. Escape via AcceleratorKeyPressed unless PageKeepsEscape. Visibility by the PID rule on a 50 ms timer plus a foreground WinEvent; raises only when below the game; layout remembered in layout.json. Shutdown unhooks, closes the controller, destroys the window and unregisters the class before the collectible context unloads.

WebPanelNativeArgs copies every string out of the caller's (stack or pooled) buffers before anything is queued. WebPanelApi is the ABI glue (AOT keeps the Unavailable stub). engine.json "WebPanel" (default true) is the kill switch. EngineLifecycle shuts the panel down after EndSceneHook.Uninstall. The WebView2 package's WinForms/WPF references are dropped before reference resolution.

Deviations from the brief: IWebPanelEnvironment gains BrowserExecutableFolderForTests (the harness forces a creation failure with it) and is excluded from the AOT build with the host; Show only takes the foreground when it is already in this process (or none).

tools\WebPanelHarness (x86 exe) + tools\WebPanelHarness.Payload: fake game thread, fake 16 ms pump, collectible context mirroring EngineLoadContext, local virtual hosts, posted input only. 17 ok, 0 FAIL, 4 UNVERIFIED offline (Escape via posted input never raises AcceleratorKeyPressed; visibility needs the foreground): owner in-game checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:09:14 -08:00
Daniel Wallace
2841df63be Web panel ABI: x86 struct assertions, restore v93 divider encoding
WebPanelStructsMatch now asserts 48 bytes / Reserved at 32 on x86 for engine and SDK types when run 32-bit. PluginContract.cs v93 divider was double-encoded (cp1252 read of UTF-8); restored to box-drawing chars.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:09:14 -08:00
Daniel Wallace
28d480c90a Plugin API v93: web panel table fields and SDK wrappers (number provisional)
Four appended table slots (WebPanelOpen/Navigate/Close/GetState), native structs and code enums in engine and SDK, a WebPanelApi stub answering Unavailable (CoreCLR flavour only; AOT leaves the slots zero), SDK OpenWebPanel/NavigateWebPanel/CloseWebPanel/GetWebPanelState with HasWebPanel gated on Version >= 93, parity tests in PluginManifestTests. Also adds the missing System usings to the Task 1 WebPanel files, which did not compile in the engine project (no ImplicitUsings).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:08:57 -08:00
Daniel Wallace
0d5b9700db Web panel tests: back to invariant globalization, add lone-surrogate check
Matches the shipped engine; the surrogate host discriminates the IdnHost try/catch under invariant mode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:07:33 -08:00
Daniel Wallace
e428f65c4d Web panel: IsAllowed fails closed on invalid IDN hosts
Uri.IdnHost throws UriFormatException for hosts like c<U+2100>; catch and reject. Test project now runs with ICU so the case is covered.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:07:33 -08:00
Daniel Wallace
0b0d2cb072 Web panel: URL, window and profile policies with offline tests
Pure C# policies (allowlist/redaction, visibility/layout, profile folder) plus tools/WebPanelTests (107 assertions).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:07:33 -08:00
c68204f160 RynthCore as of 2026-11-08 (internal 9297e93): release 2026.11.8.1 2026-11-08 15:48:45 -05:00
418d80bafb RynthCore as of 2026-11-05 (internal 6f1a2ed): release 2026.11.3.2 2026-11-05 07:42:35 -05:00
5ad460080c RynthCore as of 2026-11-02 (internal 3263c88): release 2026.11.2.2 2026-11-02 20:34:03 -05:00
00ee01167e Snapshot for release 2026.11.2.1 (internal 8d9795d) 2026-11-02 03:33:33 -05:00
b1c182b05d Snapshot for release 2026.10.31.4 (internal 34cea02) 2026-11-01 18:47:28 -05:00
057bb66426 Snapshot for release 2026.10.31.3 (internal 136d99a) 2026-10-31 19:26:44 -04:00
2546497f37 Snapshot for release 2026.10.31.1 (internal 69b244e) 2026-10-31 15:01:58 -04:00
8cb74c7685 Snapshot for release 2026.10.29.2 (internal f1e8d4e) 2026-10-29 07:19:17 -04:00
0bfe184288 Snapshot for release 2026.10.28.3 (internal 1eeafca) 2026-10-28 23:23:39 -04:00
f9ae10d692 Snapshot for release 2026.10.28.2 (internal 4a5e2d7) 2026-10-28 19:47:17 -04:00
8728446a27 Snapshot for release 2026.10.28.1 (internal de8d80b) 2026-10-28 06:36:37 -04:00
f4246dbbd0 Snapshot for release 2026.10.27.1 (internal ed07fd7) 2026-10-27 08:41:02 -04:00
539a7a3e64 Snapshot for release 2026.10.23.1 (internal 4204305) 2026-10-23 16:34:00 -04:00
2be3668232 Snapshot for release 2026.10.22.2 (internal 466f796) 2026-10-22 16:42:32 -04:00
c4efe5821d Snapshot for release 2026.10.21.3 (internal 04b831a) 2026-10-21 21:03:43 -04:00
b059db4ca2 Snapshot for release 2026.10.21.2 (internal dd171ba) 2026-10-21 12:04:02 -04:00
5defb009a6 Snapshot for release 2026.10.21.1 (internal 6556f92) 2026-10-21 09:35:06 -04:00
286abd1445 Snapshot for release 2026.10.20.1 (internal e05e9a8) 2026-10-20 21:28:16 -04:00
44074df011 Snapshot for release 2026.10.19.1 (internal fa7a8f6) 2026-10-19 09:11:20 -04:00
8330793300 Snapshot for release 2026.10.17.1 (internal e8271dd) 2026-10-17 00:41:01 -04:00
a57049d931 Snapshot for release 2026.10.15.6 (internal 6fd9478) 2026-10-15 23:44:38 -04:00
516ad2bdf2 Snapshot for release 2026.10.15.2 (internal 9094d68) 2026-10-15 20:32:34 -04:00
8bb1c3aa23 Snapshot for release 2026.10.15.1 (internal 4b7e805) 2026-10-15 09:27:14 -04:00
67574b56e6 Snapshot for release 2026.10.13.3 (internal c8b9b39) 2026-10-13 18:52:40 -04:00
401a8613cd Snapshot for release 2026.10.13.2 (internal fa01751) 2026-10-13 15:07:08 -04:00
1d86acdf27 Snapshot for release 2026.10.13.1 (internal 90a2f4a) 2026-10-13 14:25:48 -04:00
b0f9d74b21 Snapshot for release 2026.10.12.1 (internal ef4d41d) 2026-10-12 00:33:12 -04:00
08b80eed86 Snapshot for release 2026.10.11.1 (internal 4eca83a) 2026-10-11 15:00:53 -04:00
194ea479a0 Snapshot for release 2026.10.9.3 (internal 3bc5f9f) 2026-10-09 21:42:39 -04:00
c94fa9deec Snapshot for release 2026.10.9.1 (internal ec9ab64) 2026-10-09 08:49:19 -04:00
754c13f2b8 Snapshot for release 2026.10.8.2 (internal ccc32e5) 2026-10-08 20:11:39 -04:00
650915dadc Snapshot for release 2026.10.8.1 (internal e654aa5) 2026-10-08 17:29:52 -04:00
abf9146a5b Snapshot for release 2026.10.6.1 (internal 1cbe514) 2026-10-06 08:47:11 -04:00
913a2a00b6 RynthCore as of 2026-10-05 evening (internal 0a2043e): release 2026.10.5.20 - own dat reader, plugin manifests, UI/login hooks with Loot Editor drag-and-drop, server-message stream (API v78), raise attributes and skills (API v79), nameplate sizing and overlay opacity, engine reload held while a plugin is fighting, StatusAgent character sheet, world map and travel for DrakRemote 2026-10-05 14:59:43 -04:00
c3e15480e5 RynthCore as of 2026-10-05 (internal 0d3c210): dashboard slide-outs on the left (Ranges with the selected monster, Files, Patrol), fixed draggable vital bar, click an item to add a loot rule, loot rules by WCID, chat and loot editor typing no longer leaks into the game, title-bar text size, plugin API v76 (close container), plugin exception traces, plates drawn under the game UI (in testing), launcher account passwords encrypted with Windows DPAPI (in testing), release 2026.10.5.1 2026-10-05 08:03:08 -04:00
a24ed6df7c RynthCore as of 2026-10-04 (internal 843c801): RynthNav auto-travel and the navigation map, plugin API v75 (server and titles), launcher with Available plugins, download progress and the update on the front page, opt-in usage statistics, NPC names, radar colours, title-bar text size, FPS limiter, client action unlocks, release 2026.10.4.6
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-04 18:34:27 -04:00
9b5e2765b7 RynthCore as of 2026-09-27 (internal d359eee): items past the old object-id range, no idle logoff, overlay popups without the panel flash, UI hidden at character select, vendor trading (API 67), Settings rows and Vendoring tab, release 2026.9.27.2 2026-09-27 20:25:45 -04:00
68c301dac8 RynthCore as of 2026-09-05 (internal f9abab9)
A snapshot of the working tree for aelrynth.com/git/: the code, build files
and public docs. Internal review notes and agent instructions are left out.
MIT licensed; see LICENSE.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 21:22:59 -04:00