Repository navigation
refactor!: tw-wire is usage only; quota and bodies go back to the desktop gateway - #152
Merged
Merged
Conversation
…ktop gateway
tw-wire was cut out to be shared with the server edition, and one of its
three parts is: the usage sniffer. The other two only the desktop uses,
and the server edition will not — its body capture is an audit pipeline
with PII redaction, byte caps and S3 offload, a different thing from a
bounded channel to a local store, and its quota is its own. A "shared"
module with one user is a second place to change things, as tw-resil
was.
- `quota` → `tw_gateway::quota`, `bodies` → `tw_gateway::bodies`.
- tw-wire keeps `usage` and depends on serde_json alone.
- The crate-root re-exports of these types in tw-gateway had no users;
callers name the module.
BREAKING: tw_wire::{bodies, quota} are now in tw-gateway.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fylorn
force-pushed
the
refactor/wire-is-usage
branch
from
September 23, 2026 20:17
ac03d06 to
6caf52d
Compare
Merged
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.
tw-wire was cut out to be shared with the server edition, but only one of its three parts is shared: the usage sniffer. The other two are used only by the desktop, and the server edition won't use them:
A "shared" module with one user is a second place to change things, as tw-resil was.
quota→tw_gateway::quota;bodies→tw_gateway::bodies.usageand depends onserde_jsonalone.The server edition's
body_capture.rsgets a note on why it stays separate.Breaking:
tw_wire::{bodies, quota}moved into tw-gateway. The server edition uses onlytw_wire::{Sniffer, Usage}, which are unchanged.cargo fmt --check,cargo clippy --workspace --all-targets -D warningsandcargo test --workspacepass.🤖 Generated with Claude Code