fix: replace \\n with <br/> in mermaid node labels

This commit is contained in:
Nikketryhard
2026-02-18 01:35:12 -06:00
parent 3d87c04d20
commit 409ee97405
3 changed files with 35 additions and 35 deletions

View File

@@ -32,13 +32,13 @@ sequenceDiagram
```mermaid
graph TD
subgraph "MITM Module"
proxy["proxy.rs\nTLS termination\nSNI-based routing"]
h2["h2_handler.rs\nHTTP/2 frame handling"]
intercept["intercept.rs\nSSE parser\nUsage extraction"]
modify["modify.rs\nRequest injection\n(tools, params, images)"]
store["store.rs\nMitmStore\nEvent channels"]
proto["proto.rs\nProtobuf codec"]
ca["ca.rs\nCA + dynamic certs"]
proxy["proxy.rs<br/>TLS termination<br/>SNI-based routing"]
h2["h2_handler.rs<br/>HTTP/2 frame handling"]
intercept["intercept.rs<br/>SSE parser<br/>Usage extraction"]
modify["modify.rs<br/>Request injection<br/>(tools, params, images)"]
store["store.rs<br/>MitmStore<br/>Event channels"]
proto["proto.rs<br/>Protobuf codec"]
ca["ca.rs<br/>CA + dynamic certs"]
end
proxy --> h2
@@ -72,20 +72,20 @@ When the MITM proxy intercepts an outgoing request from the LS, it applies modif
```mermaid
flowchart TD
A["Original LS Request"] --> B{"Has tools?"}
B -- Yes --> C["Inject tool definitions\n+ toolConfig"]
B -- Yes --> C["Inject tool definitions<br/>+ toolConfig"]
B -- No --> D{"Has generation params?"}
C --> D
D -- Yes --> E["Inject temperature, top_p,\nmax_output_tokens, stop_sequences,\nfrequency/presence_penalty"]
D -- Yes --> E["Inject temperature, top_p,<br/>max_output_tokens, stop_sequences,<br/>frequency/presence_penalty"]
D -- No --> F{"Has image?"}
E --> F
F -- Yes --> G["Inject inlineData\n(base64) into user parts"]
F -- Yes --> G["Inject inlineData<br/>(base64) into user parts"]
F -- No --> H{"Has tool results?"}
G --> H
H -- Yes --> I["Inject functionResponse\nparts"]
H -- Yes --> I["Inject functionResponse<br/>parts"]
H -- No --> J{"Google Search?"}
I --> J
J -- Yes --> K["Enable Google Search\ngrounding tool"]
J -- No --> L["Replace user text\nwith real input"]
J -- Yes --> K["Enable Google Search<br/>grounding tool"]
J -- No --> L["Replace user text<br/>with real input"]
K --> L
L --> M["Update Content-Length"]
M --> N["Forward to Google"]