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.
- package/dist/{chunk-DJNY2PVR.js → chunk-C6N5GXSK.js} +21 -6
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
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
|
|
9139
|
-
|
|
9140
|
-
|
|
9141
|
-
|
|
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
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED