Commit cab83d1
feat(compression): zstd capability negotiation
Tunnel-node advertises zstd support via zc:1 in response when client
sends ops+zc (uncompressed with capability flag). Client re-enables
zops when it sees the advertisement — allows automatic recovery after
initial fallback (e.g. Apps Script updated after tunnel-node).
Tunnel only sends zr when request had zops — old clients never see
compressed responses.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent d630554 commit cab83d1
2 files changed
Lines changed: 14 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
546 | 546 | | |
547 | 547 | | |
548 | 548 | | |
| 549 | + | |
| 550 | + | |
549 | 551 | | |
550 | 552 | | |
551 | 553 | | |
| |||
3276 | 3278 | | |
3277 | 3279 | | |
3278 | 3280 | | |
| 3281 | + | |
| 3282 | + | |
| 3283 | + | |
| 3284 | + | |
3279 | 3285 | | |
3280 | 3286 | | |
3281 | 3287 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
777 | 777 | | |
778 | 778 | | |
779 | 779 | | |
780 | | - | |
| 780 | + | |
| 781 | + | |
781 | 782 | | |
782 | 783 | | |
783 | 784 | | |
| |||
1251 | 1252 | | |
1252 | 1253 | | |
1253 | 1254 | | |
1254 | | - | |
| 1255 | + | |
| 1256 | + | |
1255 | 1257 | | |
1256 | 1258 | | |
1257 | 1259 | | |
| |||
1260 | 1262 | | |
1261 | 1263 | | |
1262 | 1264 | | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
1263 | 1269 | | |
1264 | 1270 | | |
1265 | 1271 | | |
| |||
0 commit comments