Repository navigation
feat(mods): migrate product browse/install to generated RPC - #503
Merged
Merged
Conversation
…rvice Add generated ModBrowseService (SearchMods, GetModVersions, InstallMods) and regenerate the pinned Go/TS outputs. Refactor ModOnlineManager into shared typed operations so the generated service and the legacy /mods/* JSON adapter delegate to one implementation, preserving provider policy, error statuses, filename confinement, per-item errors and install audit. Map the RPCs to mods/read (browse, versions) and mods/create (install) on the global * object to match the legacy adapter and keep Studio's none browse mode authorized. Add RPC-seam positive/negative authorization tests and service-level parity/error tests. Switch mod-browser-dialog to the generated client; keep the compatibility route live. Update the transport inventory and governing knowledge concepts.
# Conflicts: # docs/product-transports.md # internal/rpc/handlers/mod_search.go # internal/rpc/server.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
W18/OSS-337 next family: mod browse, versions and install.\n\n- New generated ModBrowseService (SearchMods/GetModVersions/InstallMods), pinned regen verified with --check; console mod browser uses generated rpcClient.\n- Shared typed operation with legacy REST compatibility adapter retained per ADR0012; RBAC mods/read for search+versions and mods/create for install, global object to match legacy scope and Studio none-browse.\n- Negative authz tests at RPC seam for all three methods (unauthenticated, no permission, scoped grant denied, global grant, no-auth admin, nil enforcer) with call-count denial assertions; shared-operation parity tests.\n- Local checks: go vet/test touched packages, bun check/test(263)/lint, buf lint/breaking, knowledge-lint 38/38. Studio callers remain on the compatibility adapter (documented).