openmates 0.11.0-alpha.20 → 0.11.0-alpha.22

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.
@@ -1206,6 +1206,7 @@ var MODEL_ALIASES = {
1206
1206
  fast: "qwen3-235b-a22b-2507"
1207
1207
  };
1208
1208
  var CHAT_MODELS = [
1209
+ { id: "claude-fable-5", name: "Claude Fable 5", providerId: "anthropic" },
1209
1210
  { id: "claude-opus-4-7", name: "Claude Opus 4.7" },
1210
1211
  { id: "claude-opus-4-6", name: "Claude Opus 4.6" },
1211
1212
  { id: "claude-sonnet-4-6", name: "Claude Sonnet 4.6" },
@@ -1274,7 +1275,7 @@ function resolveToken(token, context) {
1274
1275
  return {
1275
1276
  original: `@${token}`,
1276
1277
  type: "model",
1277
- wireSyntax: `@ai-model:${model.id}`,
1278
+ wireSyntax: `@ai-model:${model.id}${model.providerId ? `:${model.providerId}` : ""}`,
1278
1279
  displayName: `@${model.name.replace(/\s+/g, "-")}`
1279
1280
  };
1280
1281
  }
@@ -8747,7 +8748,7 @@ var SETTINGS_EXECUTABLE_COMMANDS = [
8747
8748
  { path: ["interface", "language", "set"], description: "Set interface language", examples: ["openmates settings interface language set en"] },
8748
8749
  { path: ["interface", "dark-mode", "set"], description: "Set dark mode on or off", examples: ["openmates settings interface dark-mode set on"] },
8749
8750
  { path: ["interface", "font", "set"], description: "Set interface font", examples: ["openmates settings interface font set lexend"] },
8750
- { path: ["ai", "models", "set-defaults"], description: "Set default AI models", examples: ["openmates settings ai models set-defaults --simple gpt-5.4 --complex claude-opus-4-7"] },
8751
+ { path: ["ai", "models", "set-defaults"], description: "Set default AI models", examples: ["openmates settings ai models set-defaults --simple mistral/mistral-small-2506", "openmates settings ai models set-defaults --simple auto"] },
8751
8752
  { path: ["privacy", "auto-delete", "chats", "set"], description: "Set chat auto-deletion period", examples: ["openmates settings privacy auto-delete chats set 90d"] },
8752
8753
  { path: ["privacy", "debug-logs", "share"], description: "Create a debug log sharing session", examples: ["openmates settings privacy debug-logs share --duration 1h --confirm"] },
8753
8754
  { path: ["billing", "overview"], description: "Show billing overview", examples: ["openmates settings billing overview"] },
@@ -8833,6 +8834,13 @@ function parseOnOff(value, label) {
8833
8834
  if (value === "off" || value === "false" || value === "0") return false;
8834
8835
  throw new Error(`Invalid ${label} value '${value ?? ""}'. Use on/off or true/false.`);
8835
8836
  }
8837
+ function parseModelDefaultFlag(value, flag) {
8838
+ if (typeof value !== "string" || value.length === 0) {
8839
+ throw new Error(`Missing value for ${flag}. Use a provider/model-id or auto.`);
8840
+ }
8841
+ if (value === "auto" || value === "null") return null;
8842
+ return value;
8843
+ }
8836
8844
  function parseRequiredNumber(value, flag) {
8837
8845
  if (typeof value !== "string") throw new Error(`Missing ${flag}.`);
8838
8846
  const parsed = Number(value);
@@ -9135,10 +9143,17 @@ async function handleSettings(client, subcommand, rest, flags) {
9135
9143
  return;
9136
9144
  }
9137
9145
  if (matches(tokens, ["ai", "models", "set-defaults"])) {
9138
- const simple = typeof flags.simple === "string" ? flags.simple : void 0;
9139
- const complex = typeof flags.complex === "string" ? flags.complex : void 0;
9140
- if (!simple && !complex) throw new Error("Provide --simple <model-id> and/or --complex <model-id>.");
9141
- await printSettingsMutationResult(client.settingsPost("ai-model-defaults", { simple, complex }), flags);
9146
+ const body = {};
9147
+ if (flags.simple !== void 0) {
9148
+ body.default_ai_model_simple = parseModelDefaultFlag(flags.simple, "--simple");
9149
+ }
9150
+ if (flags.complex !== void 0) {
9151
+ body.default_ai_model_complex = parseModelDefaultFlag(flags.complex, "--complex");
9152
+ }
9153
+ if (Object.keys(body).length === 0) {
9154
+ throw new Error("Provide --simple <model-id|auto> and/or --complex <model-id|auto>.");
9155
+ }
9156
+ await printSettingsMutationResult(client.settingsPost("ai-model-defaults", body), flags);
9142
9157
  return;
9143
9158
  }
9144
9159
  if (matches(tokens, ["privacy", "auto-delete", "chats", "set"])) {
package/dist/cli.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  getExtForLang,
4
4
  serializeToYaml
5
- } from "./chunk-DJNY2PVR.js";
5
+ } from "./chunk-C6N5GXSK.js";
6
6
  import "./chunk-AXNRPVLE.js";
7
7
  export {
8
8
  getExtForLang,
package/dist/index.d.ts CHANGED
@@ -76,6 +76,7 @@ interface SubChatEvent {
76
76
  interface ModelInfo {
77
77
  id: string;
78
78
  name: string;
79
+ providerId?: string;
79
80
  }
80
81
  /** Minimal app info from /v1/apps */
81
82
  interface AppInfo {
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  getExtForLang,
8
8
  parseNewChatSuggestionText,
9
9
  serializeToYaml
10
- } from "./chunk-DJNY2PVR.js";
10
+ } from "./chunk-C6N5GXSK.js";
11
11
  import "./chunk-AXNRPVLE.js";
12
12
  export {
13
13
  MATE_NAMES,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openmates",
3
- "version": "0.11.0-alpha.20",
3
+ "version": "0.11.0-alpha.22",
4
4
  "description": "OpenMates CLI and SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",