Commit graph RynthServers/Plugins/RynthCore.Plugin.RynthDreamWeave
Author SHA1 Message Date
Daniel Wallace
1d7605db23 RynthDreamWeave: web links in the bar icon's dropdown; card buttons only on older engines
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:37:49 -08:00
Daniel Wallace
b72720aca4 RynthDreamWeave: declare minEngineApi 90 so release builds stop raising it to the SDK API
The csproj declared nothing, so ServerPlugin.props defaulted it to 66, and a
release build (RynthPluginSharedSdk=true) raises any declared value under 88 to
the SDK's API (95): the plugin would then load on no current engine.

Audit of every RynthCore SDK member the plugin compiles against (DreamWeave's
own code, the shared ServerPack and the RynthSuite files it links). "Isolated"
means called only from a [MethodImpl(NoInlining)] method behind its Has* check,
which an older Runtime\PluginShared SDK copy cannot fail; a Has* check inside an
ordinary method does not protect it.

Not isolated, so the minimum must cover them:
- v90 RynthAcPanel: type of the static field MainAcPanels (DreamWeaveSkills.cs)
- v90 IsAcPanelOpen, AcPanel, RynthAcPanelOp, HasAcPanels: DreamWeaveSkills.cs
  (HasAcPanels checked in the same method)
- v90 PanelScale, PanelDragWithLastItem, GetIconTexture, RynthIconKind:
  DreamWeave/SkillsPanel.cs
- v90 HasFramelessWindows: ServerPackPlugin.BuildSectionsJson
- v89 SetPanelOpen, HasSetPanelOpen, RynthPanelOpen: ServerPackPlugin.SetWindow,
  DreamWeaveSkills.cs, SkillsPanel.cs (Has* checked in the same method)
- v79 HasTraining, TryGetTrainingInfo, TrainSkill: DreamWeave/SkillsReader.cs
  (HasTraining checked in the same method)
- v78 HasServerMessages, SetServerMessageInterest: ServerPackPlugin.Initialize;
  RynthCore.PluginSdk.Net.ServerMessage: DreamWeaveSkills.ServerMessage
- before v62 (table fields ahead of the v62 append marker in
  RynthCoreApiNative.cs): Log, WriteToChat, InvokeChatParser, TryGetWorldName,
  TryGetAccountName, TryGetObjectName, TryGetPlayerVitals,
  TryGetObjectIntProperty, TryGetObjectQuadProperty, GetPlayerId, ImGuiContext,
  Version and their Has* checks

Isolated, so they do not count:
- v94 HasWebPanel, OpenWebPanel, GetWebPanelState, CloseWebPanel and the
  WebPanel* types: only in ServerPackWeb.cs's NoInlining *Core methods, which
  catch MissingMethodException and TypeLoadException (from
  pr/serverpack-web-panel-engine on)
- the bar menu (v95) uses no SDK member: it compares Host.Version to
  DreamWeaveWeb.BarMenuEngineApi

Highest non-isolated API: 90. Declared 90.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:37:48 -08:00
Daniel Wallace
7003094f56 RynthDreamWeave: final-review fixes (malformed code lines never shown, wording)
- LaunchWire.IsSuccessShaped: a server line starting "[WEB] Launch code",
  well formed or not. OnChatLine keeps a malformed one out of chat: a
  pending request takes it as Refused with the unexpected-reply message;
  otherwise Stale inside the stale window, NotOurs after. TryParse and
  its pins are unchanged.
- An empty "[WEB] " refusal is an unexpected reply too.
- Wording: "an unexpected reply (is RynthDreamWeave up to date?)",
  "Wait a few seconds between website opens.", "Couldn't open the
  website."
- Tests: the raw-string guard covers only the DreamWeave files the scan
  parses; the scan test's name says its catch logs through LogTagged;
  the directory walkers added on this branch use
  ServerProjectsTests.PluginsDir().

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:27:05 -08:00
Daniel Wallace
d70f780e60 RynthDreamWeave: Task 6 re-review, close the source-scan gaps
- Calls: one CallPattern for the lock and Draw allow-lists, which also
  reads "?." member chains and a type-argument list before "(", so
  Reply?.Fail( and Notify<int>( count as non-launcher calls.
- Monitor is banned in WebButtons.cs and DreamWeaveWebTools.cs; the host
  takes the launcher's lock in exactly 9 places, and each lock body is
  pinned exactly (no host property read under it either).
- ServerChatText: everything before its first lock is pinned exactly
  (declarations only), so no gate, return or throw can come before the
  launcher reads the line.
- WebLauncher.cs holds no Action, Func or delegate; any scanned file
  with a raw string literal fails, since the scan does not model them.
- Usage: "Market, Suit Builder or Ability Planner". The shared two lines
  are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:27:05 -08:00
Daniel Wallace
5fbbf4e654 RynthDreamWeave: Task 6 review fixes (code never to chat, allow-list scan, result generation)
- ServerChatText reads every line through the launcher, with no Active
  gate first: a code answering our request is eaten whatever the world is
  now, and opens nothing when the world is no longer DreamWeave.
- WebLauncher: a generation token (Begin when Started, Reset) and
  SetResult(generation, status), which replaces the status compare and
  the use of Cancel as a status setter. The no-panel note is once per
  login epoch, so an answer from an earlier login can't spend it.
- An open failure reads "Market: Couldn't open your browser (code N)."
- StartLaunch's catch answers "Couldn't start the web open."
- ServerUsageLines: an optional shared hook for a server's own usage
  lines; DreamWeave lists market | suit | abilities. Hookless servers
  print the same two lines as before (pinned on Coldeve).
- The source scan is allow-lists: every lock is on the launcher's Gate
  and calls only its members, the Stale arm is exactly eat = true, Draw
  calls only ImGui, SafeImGui and click. Comments are stripped without
  touching string literals.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:25:10 -08:00
Daniel Wallace
f012dc5c69 RynthDreamWeave: Market, Suit Builder and Ability Planner buttons and /rserver verbs
DreamWeaveWebTools.cs wires the launcher into the ServerPack hooks: the card
buttons (render thread, draw only, a click queues StartLaunch with RunOnTick),
the /rserver market|suit|abilities verbs, the /weblogin reply read off chat
(Code, Refused and Stale eat the line; Stale does nothing else), the 10 s
timeout polled every tick, and Reset at login, logout and shutdown. Every
launcher call is under lock (Gate); Send, OpenWeb, Reply and the log are
always outside it. OpenWeb's answer replaces the "Opening X..." status.
WebButtons.cs draws the buttons and is the only ImGui code in the web tools.
A source-scan test pins the thread rules.

Rebased onto release 2026.11.8.1, which ships its own DreamWeavePlugin.cs
(bank check, Bank page) and DreamWeaveSkills.cs (Skills and Character
panels, /rserver skills). Those files keep the one implementation of each
shared hook and call the web tools' Web* method first; the web code lives
in DreamWeaveWebTools.cs. The ImGui scan covers the web tools' own files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:24:01 -08:00
Daniel Wallace
acfd04fa46 RynthDreamWeave: pin the profile-key format and enforce its contract
Golden pins for dreamweave/coldeve alice keys, a Busy-Begin stale-window pin, and Key returns null when the result fails ServerWebOpen.IsValidProfileKey.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:20:38 -08:00
Daniel Wallace
2522534979 RynthDreamWeave: per-account web profile key
WebProfile.Key(serverId, account) = serverId/ + 32 lowercase hex of SHA-256 over the server id and the trimmed, lower-cased account; null without an account. Keys pass ServerWebOpen.IsValidProfileKey.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:20:38 -08:00
Daniel Wallace
e7af2e2100 RynthDreamWeave: Task 4 review minors
Restore blank line before the pending-destination doc comment, fix the stale-window test comment, and pin that a refused Begin does not extend the stale window.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:20:38 -08:00
Daniel Wallace
dd4cbd83bb RynthDreamWeave: forward-only stale window for late codes
Replace the _expired flag with _staleUntilMs, raised by every started Begin and never
lowered, so an earlier request's late code is eaten after overlap, Cancel or Reset.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:20:38 -08:00
Daniel Wallace
c03a38a3e8 RynthDreamWeave: launch state review fixes
Code-shaped refusals are replaced, self-expiry in Begin, Reset keeps the throttle,
late valid codes are eaten as Stale within the code lifetime, thread contract documented.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:20:38 -08:00
Daniel Wallace
1eb8bf1e8a RynthDreamWeave: launch request state
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:20:38 -08:00
Daniel Wallace
5e732cecb7 RynthDreamWeave: link ChatSource into the plugin, strict alphabet tests, harden the launch stem
The plugin project did not compile (ChatSource not linked). LaunchWire now treats any line starting with the success stem as success-shaped: malformed, it is dropped, never returned as refusal text.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:20:38 -08:00
Daniel Wallace
fbd6458a0f RynthDreamWeave: web destinations and the launch reply's wire text
DreamWeaveWeb (constants-only destinations and launch URL) and LaunchWire
(/weblogin request, [WEB] reply parser that refuses player-authored copies).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 13:20:38 -08:00
e52923ba5c RynthServers as of 2026-11-08 (internal 471970b): release 2026.11.8.1 2026-11-08 15:48:49 -05:00
6fe5630e8c Snapshot for release 2026.10.21.1 (internal 32a418d) 2026-10-21 09:35:08 -04:00