mirror of
https://github.com/browseros-ai/BrowserOS.git
synced 2026-05-21 12:55:09 +00:00
* feat: integrate models.dev registry for auto-populated model defaults Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: fall back to upstream provider for model registry lookup When the browseros meta-provider is used, the registry lookup now also tries the upstream provider (e.g., openrouter, anthropic) so that BrowserOS-hosted models get correct context window and image support defaults. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix: add Object.hasOwn guards to prevent prototype chain lookup Addresses Greptile review: bracket notation on the registry object could return prototype-chain properties for keys like __proto__ or constructor, bypassing the 404 guard in the route handler. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
20 lines
385 B
JSON
20 lines
385 B
JSON
{
|
|
"name": "@browseros/models-dev",
|
|
"version": "0.0.1",
|
|
"type": "module",
|
|
"scripts": {
|
|
"generate": "bun scripts/generate.ts",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"exports": {
|
|
"./registry": {
|
|
"types": "./src/registry.ts",
|
|
"default": "./src/registry.ts"
|
|
},
|
|
"./types": {
|
|
"types": "./src/types.ts",
|
|
"default": "./src/types.ts"
|
|
}
|
|
}
|
|
}
|