|
| 1 | +# Design doc: bump `mcpplibs.tinyhttps` to 0.3.6 |
| 2 | + |
| 3 | +Date: 2026-12-01 |
| 4 | + |
| 5 | +Follow-up to `.agents/docs/exec-plan-0.3.5.md` in `mcpplibs/tinyhttps` (the 0.3.5 release and |
| 6 | +its index entry, mcpplibs/mcpp-index#517). Upstream published `0.3.6` ([#27](https://github.com/mcpplibs/tinyhttps/pull/27), |
| 7 | +the release commit for [#26](https://github.com/mcpplibs/tinyhttps/pull/26)); this adds `0.3.6` to |
| 8 | +`pkgs/t/tinyhttps.lua` on the three platforms and moves the consumer to it. |
| 9 | + |
| 10 | +## Source and versions |
| 11 | + |
| 12 | +| | `0.3.6` | |
| 13 | +|---|---| |
| 14 | +| Upstream | `https://github.com/mcpplibs/tinyhttps` | |
| 15 | +| Tag | `0.3.6` (annotated, commit `9b57ebe`) | |
| 16 | +| Tarball | `archive/refs/tags/0.3.6.tar.gz` | |
| 17 | +| sha256 (checked twice, and against the mirror's download) | `a9d72f53a8ad88daff573657fdf3d90e8f0f877866ebbe7878cfd124894950a5` | |
| 18 | +| Wrap dir | `tinyhttps-0.3.6/` (the `archive/refs/tags` form, as every earlier entry) | |
| 19 | +| CN mirror | `https://gitcode.com/mcpp-res/tinyhttps/releases/download/0.3.6/tinyhttps-0.3.6.tar.gz` — the same tarball uploaded, same sha256 | |
| 20 | +| License | Apache-2.0 (unchanged) | |
| 21 | + |
| 22 | +## What changed upstream |
| 23 | + |
| 24 | +`0.3.5` -> `0.3.6`: `Socket::platform_init()` (`WSAStartup`) existed and was never called, so on |
| 25 | +Windows every request ended in `statusCode = 0`, `statusText = "Connection failed"`, with nothing |
| 26 | +saying why. |
| 27 | + |
| 28 | +- `Socket::ensure_platform_started()` runs once per process at the top of `Socket::connect`, before |
| 29 | + the first `socket()` or `getaddrinfo()`; `Socket::platform_started()` says whether it ran. |
| 30 | +- `platform_init()` is unchanged and still public; `platform_cleanup()` as before. |
| 31 | +- The module interface is `mcpplibs.tinyhttps` as before (Form A: the tarball's own `mcpp.toml`). |
| 32 | + |
| 33 | +A patch release: a dependency written as `tinyhttps = "^0.3.1"` resolves to it, and the one change in |
| 34 | +behaviour — every request on Windows working — is the end of a total failure, not a new mode. |
| 35 | + |
| 36 | +## Descriptor and workspace changes |
| 37 | + |
| 38 | +- `pkgs/t/tinyhttps.lua`: added `["0.3.6"]` to `xpm.linux`, `xpm.macosx` and `xpm.windows` |
| 39 | + (GLOBAL + CN table, one sha256), every earlier entry kept as it was. |
| 40 | +- `tests/examples/tinyhttps/mcpp.toml`: the dependency is named in full, `mcpplibs.tinyhttps = "0.3.6"` |
| 41 | + (it was the short `tinyhttps`): the updater's `scan` job finds a bump's consumer by the full name |
| 42 | + (`tests/autoupdate/ci.py::direct_member`), and with the short key it reports "no candidate consumer". |
| 43 | +- `tests/examples/tinyhttps/tests/api.cpp`: a 0.3.6 check, read before any request in the |
| 44 | + program (the sends below it start Winsock too): `platform_started()` is false, then true after |
| 45 | + `ensure_platform_started()`, called twice to show it is idempotent. |
| 46 | + |
| 47 | +## Verification |
| 48 | + |
| 49 | +- `mcpp xpkg parse pkgs/t/tinyhttps.lua` -> `parse OK`, `0.3.6` on the three platforms. |
| 50 | +- The mirror asset was downloaded back from gitcode and hashed: `a9d72f53…950a5`, the same as |
| 51 | + the GitHub archive, twice. |
| 52 | +- Note: `api.github.com/repos/.../tarball/0.3.6` is a different byte stream (the root is named |
| 53 | + after the tag object, `mcpplibs-tinyhttps-7079d6a/`); the descriptor names the `archive/refs/tags` |
| 54 | + URL, so the hash and the mirror are that form's. The two trees compare equal. |
| 55 | +- Upstream's own CI for the release commit (mcpplibs/tinyhttps#27): 10/10, gcc and llvm on Linux, |
| 56 | + macOS and Windows, plus the OpenKal images; `tests/test_winsock_start.cpp` is the first socket of |
| 57 | + its process and checks the flag both ways. |
| 58 | +- Not run locally: `tests/run_members.sh tinyhttps` on this machine stopped at syncing the index |
| 59 | + from GitHub (the host's route to it resets), so the consumer's build and run on the three |
| 60 | + platforms is this PR's `workspace (linux|macos|windows)` jobs. |
| 61 | + |
| 62 | +Authorship: ai-and-human |
0 commit comments