Files
magpie/internal
yetone 6fa9ff8358 library: billion-context's version is read past the warnings bili prints first
readBili ran `bili --version` with stderr and took the output's first
word. bili writes its warnings to stderr before the version; with a
config key it doesn't know (models, in a sandbox HOME on mote, bili
0.1.213) the output began "2026-11-09T23:44:06.211 [warn] [v=0.1.213]
...", and that timestamp was the card's version. biliVersion takes the
first word of the first line that is a version.

Run:
- go test -tags nogui -run 'TestBili' ./internal/library on mote: ok.
- go vet ./internal/library for darwin, GOOS=linux -tags nogui and
  GOOS=windows: ok. gofmt -l clean.

Broken by hand: readBili and the test back on the first word of the
output: TestBiliVersionPastItsWarnings red (the timestamp, "[warn]",
"command").

Not tried: the card showing it in the GUI (the field is the same
string the card already prints).
2026-11-10 15:47:32 +08:00
..
…
…
…
…
…
…