@meetopenbot/openbot 1.2.9 → 1.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -26,7 +26,10 @@ function schemaModelIds(schema) {
26
26
  }
27
27
  export function catalogForAgent(pluginConfig, schema) {
28
28
  const allowedModels = schemaModelIds(schema);
29
- const defaultModel = trimmedString(pluginConfig?.model) ?? trimmedString(schema?.default) ?? allowedModels[0];
29
+ const storedModel = trimmedString(pluginConfig?.model);
30
+ const defaultModel = (storedModel && allowedModels.includes(storedModel) ? storedModel : undefined) ??
31
+ trimmedString(schema?.default) ??
32
+ allowedModels[0];
30
33
  const models = allowedModels.map((id) => optionFromSchema(id, schema));
31
34
  return {
32
35
  defaultModel,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meetopenbot/openbot",
3
- "version": "1.2.9",
3
+ "version": "1.2.10",
4
4
  "description": "OpenBot coordinator runtime: ask specialists, route work into Spaces, and track todos.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -25,7 +25,7 @@
25
25
  "@ai-sdk/openai": "^4.0.72",
26
26
  "ai": "^7.0.111",
27
27
  "zod": "^4.3.5",
28
- "@meetopenbot/plugin-sdk": "^1.2.2"
28
+ "@meetopenbot/plugin-sdk": "^1.2.3"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/node": "^20.10.1",