@hasna/assistants 1.1.67 → 1.1.68

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/index.js CHANGED
@@ -89205,7 +89205,7 @@ Not a git repository or git not available.
89205
89205
  context.setProjectContext(projectContext);
89206
89206
  }
89207
89207
  }
89208
- var VERSION2 = "1.1.67";
89208
+ var VERSION2 = "1.1.68";
89209
89209
  var init_builtin = __esm(async () => {
89210
89210
  init_src2();
89211
89211
  init_context3();
@@ -256431,7 +256431,7 @@ function ModelPanel({
256431
256431
  }
256432
256432
  setIsSwitching(true);
256433
256433
  onSelectModel(row.model.id).then(() => {
256434
- setStatus({ type: "success", text: `Switched to ${row.model.name}.` });
256434
+ onCancel();
256435
256435
  }).catch((err) => {
256436
256436
  const message = err instanceof Error ? err.message : String(err);
256437
256437
  setStatus({ type: "error", text: message });
@@ -268022,9 +268022,20 @@ When done, report the result.`);
268022
268022
  const loop = activeSession.client.getAssistantLoop?.();
268023
268023
  if (loop && typeof loop.switchModel === "function") {
268024
268024
  await loop.switchModel(modelId);
268025
- return;
268025
+ } else {
268026
+ await activeSession.client.send(`/model ${modelId}`);
268026
268027
  }
268027
- await activeSession.client.send(`/model ${modelId}`);
268028
+ const displayName = getModelDisplayName(modelId);
268029
+ setShowModelPanel(false);
268030
+ setMessages((prev) => [
268031
+ ...prev,
268032
+ {
268033
+ id: generateId(),
268034
+ role: "assistant",
268035
+ content: `Switched model to **${displayName}** (\`${modelId}\`).`,
268036
+ timestamp: now()
268037
+ }
268038
+ ]);
268028
268039
  };
268029
268040
  return /* @__PURE__ */ jsx_dev_runtime51.jsxDEV(Box_default, {
268030
268041
  flexDirection: "column",
@@ -269393,7 +269404,7 @@ process.on("unhandledRejection", (reason) => {
269393
269404
  cleanup();
269394
269405
  process.exit(1);
269395
269406
  });
269396
- var VERSION4 = "1.1.67";
269407
+ var VERSION4 = "1.1.68";
269397
269408
  var SYNC_START = "\x1B[?2026h";
269398
269409
  var SYNC_END = "\x1B[?2026l";
269399
269410
  function enableSynchronizedOutput() {
@@ -269534,4 +269545,4 @@ export {
269534
269545
  main
269535
269546
  };
269536
269547
 
269537
- //# debugId=A5FDCCEC1934D13964756E2164756E21
269548
+ //# debugId=185AA4EF92CD31F064756E2164756E21