Skip to content

Tags: zaherg/bab

Tags

v0.1.14-20260608

Toggle v0.1.14-20260608's commit message
chore: update changelog for v0.1.14-20260608

v0.1.13-20260608

Toggle v0.1.13-20260608's commit message
bump version 0.1.13-20260608

v0.1.12-20260607

Toggle v0.1.12-20260607's commit message
chore: update changelog for v0.1.12-20260607

v0.1.9-20260607

Toggle v0.1.9-20260607's commit message
chore: update changelog for v0.1.9-20260607

v0.1.8-20260607

Toggle v0.1.8-20260607's commit message
chore: update changelog for v0.1.8-20260607

v0.1.7-20260604

Toggle v0.1.7-20260604's commit message
chore: update changelog for v0.1.7-20260604

v0.1.6-20260603

Toggle v0.1.6-20260603's commit message
update release script

v0.1.5-20260602

Toggle v0.1.5-20260602's commit message
chore: update changelog for v0.1.5-20260602

v0.1.4-20260602

Toggle v0.1.4-20260602's commit message
chore: update changelog for v0.1.4-20260602

v0.1.3-20260602

Toggle v0.1.3-20260602's commit message
fix(lint): narrow plugin adapter listModels result to string[]

The biome --unsafe rewrite in a1f0d2f changed `plugin.adapter!.listModels!()`
to `plugin.adapter?.listModels?.()`, widening the try-branch return type
from `string[]` to `string[] | undefined`. The Promise.all element type then
became `{ id: string; models: string[] | undefined }` (merge with the catch
branch's `[] as string[]`), which broke lines 39-40 in the for-loop
(`models.length` and `pluginModels[id] = models`).

CI `bun test` is green; `tsc --noEmit` is what failed.

Fix: `?? []` keeps the optional chaining biome wanted, narrows to
`string[]` without the type lie, and matches the filter's narrowing on
line 27.

Co-authored-by: OpenCode <opencode@openai.com>