Skip to content

refactor(bridge-rimtalk): resolve enums by name, fix About dependencies, and remove obsolete coordinator - #23

Merged
mcocdaa merged 1 commit into
mainfrom
refactor/phase2-cleanup
Nov 23, 2026
Merged

mcocdaa merged 1 commit into
mainfrom
refactor/phase2-cleanup

Conversation

@mcocdaa

@mcocdaa mcocdaa commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

Phase 2 full-codebase cleanup & Water-Dispenser refactor verified locally across 1.6 & 1.7 builds and full test suite.

…es, and remove obsolete coordinator

refactor: delegate bridge plumbing to Core and resolve RimTalk enums by name

Replace local reflection/registration plumbing with RimMind-Core helpers
(ExternalModBridgeCoordinator, ReflectionAccessor, SoftDependencyDetector)
and resolve RimTalk enum members by name instead of hardcoded integer
values, so the bridge no longer breaks when RimTalk reorders its enums.

- RimTalkApiShim: drop the one-shot type resolution cache in favor of
  Accessor.GetCachedType; add TryResolveEnumValue and warn-once when a
  nested enum or member is missing; AddPromptEntry/RegisterPawnHook now
  take role/position/operation names ("System", "Relative", "Append").
- ContextPullBridge: only set IsRegistered after the provider actually
  registers, honor both enableContextPull and pullRimTalkHistory, and
  format role labels from ToString() instead of int mapping.
- RimMindProviderReader: null-pawn and missing-provider short-circuit,
  per-category warn-once via a concurrent set, plus ResetForTesting.
- Debug actions: report source providers and registered context keys
  with owner mods instead of scanning RimMind provider categories.
- Remove BridgeModuleCoordinator, the csproj deploy target, and
  deploy-single.sh; deploy-single.ps1 now builds per GameVersion and
  mirrors with robocopy while excluding Core/Newtonsoft assemblies.
- Tests: cover null pawns, missing nested enums, IsRegistered
  boundaries, real enum names, and add RimTalk.Data role stubs.
- CI: trigger on IntegrationTests changes and allow manual dispatch.
- Docs: rewrite README/AGENTS/About to describe dialogue gating and
  bidirectional context instead of bubble pipeline harmonization.
@mcocdaa
mcocdaa merged commit 50de3af into main Nov 23, 2026
@mcocdaa
mcocdaa deleted the refactor/phase2-cleanup branch November 23, 2026 06:14
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant