@evandu/super-pi 0.1.70 → 0.1.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -86,6 +86,18 @@ The feature is on by default. Set `SUPER_PI_MEMORY_ENABLED=0` to disable it, or
86
86
 
87
87
  ---
88
88
 
89
+ ## Remote latency diagnosis
90
+
91
+ For a remote browser, enable phase tracing on the server for one test turn:
92
+
93
+ ```bash
94
+ SUPER_PI_TRACE_LATENCY=1 super-pi start
95
+ ```
96
+
97
+ The server writes `answer.begin`, `pi.spawned`, `prompt.sent`, `pi.first-record`, and `pi.settled` with elapsed milliseconds. This separates process/configuration startup from model time. Streaming is coalesced to one WebSocket update per 16 ms and rendered once per browser frame; structural events such as tool calls and state snapshots flush pending text first.
98
+
99
+ Use the output to compare a direct SSH Pi run with Super Pi. A long `answer.begin ? pi.spawned` indicates process startup or local configuration work; a long `pi.spawned ? prompt.sent` identifies pre-prompt validation/configuration; a long `prompt.sent ? pi.first-record` belongs to Pi/model/provider. If these phases are fast but the browser remains slow, inspect the network path between the browser and the server.
100
+
89
101
  ## Development
90
102
 
91
103
  ```bash