Commit graph RynthCore/tools
Author SHA1 Message Date
Daniel Wallace
397e4cbc00 Network bar: review fixes (pacing, pending join, join plan, pins)
- AcCharacterOptions takes a resolved address only when HookResolver says
  pattern-unique and the pattern matches exactly once (HookResolver
  reports pattern-unique without scanning on when its first match is the
  fallback VA, so the count is checked here too).
- The network bar's work runs one op per WM_RYNTHCORE_NETWORK message, at
  least 250 ms apart (OnLoginCommandRunner's gap); the message is posted
  again only once the gap has passed (the click, and the chat pump every
  poll), never slept for on AC's thread. Work older than 10 s is dropped.
- The once-per-session status question counts as asked only once it was
  sent (NetworkQueryState); a dropped one is asked again on the next view.
  Each op carries the entry it was asked for.
- Join no longer sets the room option at once: it waits (15 s) for the
  mod's "on" line (NetworkPendingJoin), so a refused join sets nothing.
- ChatNetwork.JoinPlan: a room an earlier Join turned on that is no longer
  the Global one is turned off first; the current one is turned on (and
  recorded) only when it is off.
- "This world is not on the Dereth Network." clears the reply eater and
  a waiting Join; the line is shown.
- Session resets are hooked at init (InstallInput).
- ChatFilterTests: the new state machines as pure logic, and source pins,
  each with a mutation proof, for the unique-pattern check, Rewrite after
  AddHistory in OnSend, PumpNetworkLines in the poll path, the login and
  logout resets, and Module() before every delegate use in TryGet/TrySet.
  The ChatPins comment is back on PinBookkeeping.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 11:04:19 -08:00
Daniel Wallace
cb06e5f065 Network tab: Join/Leave bar and the join status
ChatNetwork.Classify reads the Dereth.Network mod's own status lines
(on as Name@world, already on, not on, off), only on system-type lines
(Broadcast 0, System 5), so a player saying them is never a status.
The first view of a network tab per character session sends
/<command> and keeps that one answer out of the scrollback (the status
line within 10 s, and a "Your directory page:" line within 2 s after
it); every later status line is shown and moves On. Login and logout
reset the session (unknown is still sent as on; off blocks Global).

The main window shows a bar under the header on that tab: "Join the
Dereth Network", or "On the network as <address>" and Leave. Join sends
/<command> on and turns on Hear <room> Chat (AcCharacterOptions) for the
discovered Global room, else the entry's fallback, remembering per
server/character (networkJoinRooms, absent while empty) only when it
was off before; Leave sends /<command> off and turns that room off only
if Join turned it on. A refusal is shown in the bar. The work runs on
AC's main thread on a fresh posted message (WM_RYNTHCORE_NETWORK), as a
typed line's send does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 10:48:41 -08:00
Daniel Wallace
049fab2dfc Spike: set AC's own Hear <room> Chat option as its Options panel does
AcCharacterOptions.TrySet/TryGet call the client's own
PlayerModule::SetOption (0x005D4F20) / GetOption (0x005D4AF0) on
CPlayerSystem+0x34, the same call the Options panel checkbox makes
(0x00487020). On a change AC flips the bit, tells its UI listeners and
sends SetSingleCharacterOption (0x0005, option id + value) itself.
Patterns only (no fallback VA is ever called); the handler's send call
is checked to reach the 0x0005 sender, and the live object's vtable
slot +0x14 must be that handler. AC's main thread, in world only.

Probe: /rc chatoption <general|trade|lfg|roleplay> [on|off].
Plan Task 10 (docs/plans/2026-11-15-rynthchat-network-tab-pins.md).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 10:43:49 -08:00
Daniel Wallace
726e0287f2 Network tab sends
ChatNetwork.Rewrite sends a plain line typed on a network tab as
/<command> global <text> while on the network (not sent off it); commands
are unchanged. ChatModel.OnSend applies it only on a tab owned by an active
chatTabs entry that declares network. On is unknown (treated as on) until
the join status exists. The input placeholder follows the state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 10:22:27 -08:00
Daniel Wallace
fea33eb41b Parse network on a chatTabs entry
kind must be dereth, command optional (default dn, 1-32 of a-z0-9); a bad
network is dropped and noted in the parse error, the entry is kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 10:22:27 -08:00
Daniel Wallace
4d4788ac7a RynthChat pins: source-scan the always-written pin array
ChatFilterTests now scans ChatData.cs for the pin save and load lines so a
refactor back to NullIfEmpty cannot silently turn "nothing pinned" into
"All pinned". Also fixes the save comment that still said pins are left
out while empty.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 10:21:48 -08:00
Daniel Wallace
ef61144592 RynthChat: All is pinned by default
pinnedTabs absent (never set, or a file from before pins) means All is
pinned (ChatPins.FromSettings); saving always writes the array, so
unpinning everything persists as [] and is not mistaken for "never set".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 10:19:08 -08:00
Daniel Wallace
6e271c0955 RynthChat pins: review fixes
Drawer pin was unclickable: the row now allows overlap and the pin takes
the click (and the row menu/tooltip stay off the pin). Header layout is a
pure ChatPins.Layout: the overflow button is always drawn when pins do not
all fit and its width is reserved before search's 120 px. The pinned chip
uses a lighter fill on the current row. ChatPins.Add (idempotent) seeds the
server pin; ChatModel.Unpin (one way) backs the header Unpin menu.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 09:05:44 -08:00
Daniel Wallace
6f26d3f80b RynthChat: pinned tab bookkeeping
ChatPins: pure Toggle/Rename/Remove/Visible over the pinned-tab list
(OrdinalIgnoreCase, order = button order). A pin on a hidden tab is kept
but not returned by Visible. Tests in tools/ChatFilterTests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 09:05:44 -08:00
Daniel Wallace
0eec23f6fd RynthChat: a new tab never lands in a hidden server tab
"New tab: Network" on a server where the DreamWeave Network tab is
hidden returned that hidden tab, so the player's new rule filled the
server's tab. ChatServerTabs.ResolveNewTab now keeps "returns the
existing one" for a visible tab only; a hidden match gets a free
numbered name ("Network 2"). An unreadable settings file is logged
once per run instead of on every 2 s retry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 09:05:29 -08:00
Daniel Wallace
05a6d7d088 RynthChat server tabs: review fixes (pure apply core, pairing, clashes)
The decision core of ChatModel.ApplyServerTab moves into
ChatServerTabs.Apply, a pure function returning edits (rule updates,
inserts, removals, tab create, pin, seed mark, tab server); ChatModel
only carries them out. ChatFilterTests drives it through a small
settings model.

- A seeded entry whose tab was deleted never gets a rule turned on: a
  rule the manifest gains, or one re-added after the player deleted
  the rules, is added off. Tab listing skips a tab only an inactive
  server's rule fills.
- Owned rules pair with declared ones by content (Global-room flag,
  then when/action/mode/pattern, then leftovers), never by position,
  so a reorder or delete no longer moves on/off or colour to another
  rule. Reclaim uses the same pairing.
- Settings count as ready only after a successful read (or no file);
  a failed read is retried every 2 s, the unreadable copy kept once.
- Export leaves out server rules and server tabs; Import makes every
  imported rule the player's (no owner, server or globalRoom).
- Both rule editors lock pattern, mode, when, action, tab, move and
  delete on a server rule; on/off and colour stay live, with a note.
- No adopt-by-name: a taken name seeds "<Name> (<server name>)"
  instead, and tabServers is written only for a tab the plugin made.
  Reclaim requires the entry's name, its clash name, or a tab holding
  only the matched rules. AddCustomTab checks hidden tabs.
- Global-room discovery re-reads the entries and active servers under
  the lock. The manifest parser rejects a bad when or mode, and keeps
  a pattern's spaces.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 08:59:53 -08:00
Daniel Wallace
01f432d745 Sections manifest: an absent globalRoomFallback means Roleplay
The Dereth Network README names Roleplay as the room a world usually
borrows for the Global room, so an entry that leaves the fallback out
matches Roleplay until chat shows another room.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 08:39:27 -08:00
Daniel Wallace
a92b282fd6 RynthChat: server-scoped default tabs from plugin manifests
SectionRegistry.Rebuild hands every manifest's chatTabs and the active
server ids to ChatModel.ApplyServerTabs, which seeds each entry's tab once
(seededTabs), rewrites its owned rules from the manifest, and gates the tab
(tabServers) and its rules (ChatFilterRule.Server, ChatRouter) on the
server being active. The pump records the Global room from network room
lines (globalRooms) and rewrites the Global-room rule.

- Apply is a no-op when nothing changed (EditFiltersIfChanged; rules
  compared as canonical forms with ChatServerTabs.SameRule), since Rebuild
  runs every second, and waits for the settings file to load first.
- Rules an older engine stripped of "owner" are reclaimed by content
  (ChatServerTabs.Reclaim) instead of a second set being added.
- A deleted server tab stays deleted across a reload: its disabled owned
  rules no longer re-create it in LoadSettings.
- AllTabs caches per filter version and active-server set.
- The rule editor marks server rules; a manifest with a dropped chatTabs
  entry is logged as partly read, not as unread.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 08:38:04 -08:00
Daniel Wallace
620e6b1507 RynthChat: server default tab planning and Global room discovery
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 08:25:02 -08:00
Daniel Wallace
626cc9dfc3 RynthChat settings: server tab, owner, pinned fields
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 08:23:24 -08:00
Daniel Wallace
f2d7f0464c Sections manifest: parse chatTabs (server default chat tabs)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 08:22:56 -08:00
7caafc72af RynthCore as of 2026-11-15 (internal d196196): release 2026.11.15.1 2026-11-15 10:51:37 -05:00
7f1e7d5039 RynthCore as of 2026-11-12 (internal eb12118): release 2026.11.12.1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 19:56:36 -05:00
55e15c0ac4 RynthCore as of 2026-11-10 (internal b7e3008): release 2026.11.10.1 2026-11-10 15:28:10 -05: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