Commit 6b42590
committed
fix(agentfs): parse resolved livekit-agents version from uv.lock
checkUvLock matched a `livekit-agents = "x"` line that never appears in
uv.lock. uv.lock uses poetry.lock's TOML layout ([[package]] / name / version),
so the resolved version was never found, and the SDK version check fell back to
the pyproject.toml constraint floor — reading `>=1.0` as 1.0 and rejecting it
as older than the minimum (e.g. 1.6.0) even when the lock resolved a newer
version. Use the same [[package]] block regex as checkPoetryLock so the
resolved version is read and preferred, matching how the Node lockfile parsers
already read the installed version.
Also replaces the test's fake uv.lock fixture with the real format and adds a
regression test for the pyproject-floor-vs-resolved-version case.1 parent 1b45769 commit 6b42590
2 files changed
Lines changed: 43 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
582 | 582 | | |
583 | 583 | | |
584 | 584 | | |
585 | | - | |
586 | | - | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
587 | 589 | | |
588 | 590 | | |
589 | 591 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
142 | 145 | | |
143 | 146 | | |
144 | 147 | | |
| |||
200 | 203 | | |
201 | 204 | | |
202 | 205 | | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
203 | 241 | | |
204 | 242 | | |
205 | 243 | | |
| |||
0 commit comments