Commit 9fa5252
Subsystem 1a: Discord workspace provisioning & configuration (#4)
* chore(workspace): scaffold Features.Workspace project and tests
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* feat(domain): add ProvisionedCategory/Channel/Message entities
* refactor: remove /server, /bind, and ChannelBinding (superseded by workspace provisioning)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* feat(persistence): provisioning schema + WorkspaceProvisioning migration
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* feat(persistence): IWorkspaceStore + WorkspaceStore upsert/teardown queries
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* feat(workspace): i18n localization seam with EN/FR catalog
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* feat(workspace): spec registry (channel/message specs, providers, renderer seam)
* feat(workspace): IWorkspaceGateway seam + in-memory test fake
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* feat(workspace): per-guild ProvisioningLock
* feat(workspace): WorkspaceReconciler converge engine + fresh provision
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* refactor(workspace): address review — Skipped status + UpdatedAt on edit-in-place
* test(workspace): reconciler is idempotent on re-run
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* test(workspace): reconciler adopts same-named channel on drift
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* test(workspace): reconciler self-heals a deleted channel
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* test(workspace): message repost-vs-edit and orphan-spec retention
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* test(workspace): concurrent reconciles converge once
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* test(workspace): per-server category provisioning
* feat(workspace): channel/message keys, renderers, and spec providers
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* feat(workspace): teardown service (RemoveServer / ResetGuild)
* feat: ServerRegisteredEvent, WorkspaceOptions, and interaction-module assembly seam
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* feat(workspace): Discord.Net implementation of IWorkspaceGateway
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* feat(workspace): AddWorkspace DI registration + composition test
Introduces WorkspaceServiceCollectionExtensions.AddWorkspace() wiring
all workspace singletons and scoped services, validated by a
ValidateScopes=true composition test that proves the full DI graph
resolves without captive-dependency violations.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* feat(workspace): /setup command module
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* feat(workspace): settings language selector + /workspace reset & simulate-server
* feat(workspace): HealGuild self-heal + hosted service (startup, ChannelDestroyed, ServerRegistered)
* feat(host): wire AddWorkspace, config flag, and update running-locally docs
* refactor(workspace): address final review — heal all provisioned scopes, skip empty payloads
- HealGuildAsync now heals whichever scopes are provisioned (global-if-present + each
provisioned server category) instead of gating on the global category, so a per-server-only
guild (e.g. simulate-server without /setup) self-heals; still no-ops when nothing is
provisioned, preserving reset resurrection-safety.
- EnsureMessagesAsync skips posting an empty payload (a renderer whose source entity vanished
mid-reconcile) since Discord rejects a message with no content/embed/components.
- Document the in-process event bus no-replay window on the ServerRegistered consumer.
* style(workspace): apply dotnet format (pre-push hook)
* fix(workspace): address PR review — validate culture/port, clarify reset wording, Français label
- SettingsComponentModule: only persist supported cultures (en/fr) from the (forgeable) component
payload, defaulting to en, so an overlong/unknown value can't break GuildSettings.Culture (max 16).
- WorkspaceAdminModule: validate simulate-server port is 1-65535; clarify /workspace reset
description to 'this Discord server' to disambiguate from a Rust server.
- SettingsMessageRenderer: correct the user-facing language label to 'Français'.
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 0f64db0 commit 9fa5252
92 files changed
Lines changed: 4000 additions & 375 deletions
File tree
- docs/development
- src
- RustPlusBot.Abstractions/Events
- RustPlusBot.Discord
- Modules
- RustPlusBot.Domain
- Guilds
- Workspace
- RustPlusBot.Features.Workspace
- Gateway
- Hosting
- Localization
- Messages
- Modules
- Reconciler
- Registry
- Specs
- Teardown
- RustPlusBot.Host
- RustPlusBot.Persistence
- Bindings
- Configurations
- Migrations
- Servers
- Workspace
- tests
- RustPlusBot.Features.Workspace.Tests
- Fakes
- Localization
- Messages
- Reconciler
- Registry
- Teardown
- RustPlusBot.Persistence.Tests
- Bindings
- Workspace
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 24 | + | |
30 | 25 | | |
31 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
44 | 51 | | |
45 | 52 | | |
46 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
0 commit comments