@moxt-ai/mobius 0.0.310 → 0.0.311

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/runtime.js CHANGED
@@ -22693,7 +22693,7 @@ import { fetch as fetch3 } from "undici";
22693
22693
  // package.json
22694
22694
  var package_default = {
22695
22695
  name: "@moxt-ai/mobius",
22696
- version: "0.0.310",
22696
+ version: "0.0.311",
22697
22697
  description: "Mobius CLI for pairing and running local AI agent services.",
22698
22698
  type: "module",
22699
22699
  bin: {
@@ -85385,12 +85385,14 @@ var SessionManager2 = class {
85385
85385
  const prepared = runtime.prepared();
85386
85386
  const discoveredModelEffort = runtime.agentSettingsModelEffort();
85387
85387
  const model = options2.model;
85388
- const configOptions = model === void 0 ? prepared.configOptions : await runtime.configure({
85388
+ const modelOption2 = prepared.configOptions.find(
85389
+ (option) => option.id === "model" || option.category === "model"
85390
+ );
85391
+ const modelIsFixed = modelOption2?.type === "select" && modelOption2.values.length < 2 && modelOption2.currentValue === model;
85392
+ const configOptions = model === void 0 || modelIsFixed ? prepared.configOptions : await runtime.configure({
85389
85393
  ...options2,
85390
85394
  booleanValue: false,
85391
- configId: prepared.configOptions.find(
85392
- (option) => option.id === "model" || option.category === "model"
85393
- )?.id ?? "model",
85395
+ configId: modelOption2?.id ?? "model",
85394
85396
  requestId: "agent-settings-model",
85395
85397
  sessionId: `agent-settings-${crypto.randomUUID()}`,
85396
85398
  value: model,