@olares/lares-mobile 0.15.36 → 0.15.38

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@olares/lares-mobile",
3
- "version": "0.15.36",
3
+ "version": "0.15.38",
4
4
  "description": "Lares chat component for LarePass",
5
5
  "type": "module",
6
6
  "repository": {
@@ -28,7 +28,7 @@
28
28
  "vue": "^3.2.0"
29
29
  },
30
30
  "dependencies": {
31
- "@olares/lares-core": "0.15.36",
31
+ "@olares/lares-core": "0.15.38",
32
32
  "markdown-it": "^14.3.0"
33
33
  }
34
34
  }
package/src/App.vue CHANGED
@@ -135,6 +135,7 @@ import { playAudioStream, createStreamingCapture } from "@olares/lares-core/voic
135
135
  import { voiceHeaders, wavBlob } from "@olares/lares-core/voice/client";
136
136
  import { browserPlays } from "@olares/lares-core/voice/playback";
137
137
  import { speakProblemText, speakToggleNotice } from "@olares/lares-core/voice/problem";
138
+ import { voiceVisibleError } from "@olares/lares-core/voice/presentation";
138
139
  import { appendDraftMentions } from "@olares/lares-core/files/mention";
139
140
  import { FileIntake, partitionDocumentsBySize, splitComposerFiles } from "@olares/lares-core/files/intake";
140
141
  import {
@@ -597,7 +598,7 @@ export default {
597
598
  this.voicePanelUnsub = this.voicePanel.subscribe(() => {
598
599
  const view = this.voicePanel.getSnapshot(); this.voicePanelState = view;
599
600
  this.voiceCall = view.snapshot?.connection === "closed" ? null : view.snapshot;
600
- this.voicePhase = view.snapshot?.capture || "idle"; this.voiceError = view.error || view.snapshot?.error || "";
601
+ this.voicePhase = view.snapshot?.capture || "idle"; this.voiceError = voiceVisibleError(view) || "";
601
602
  // The call no longer owns the answer: a cancelled take gives it back.
602
603
  if (this.voiceSuspended && view.snapshot?.connection !== "open") this.resumeSuspendedReadout();
603
604
  });
@@ -28,7 +28,7 @@
28
28
  </button>
29
29
  </li>
30
30
  <li
31
- v-for="{ row, index, inProcess } in shown(block)"
31
+ v-for="{ row, index, inProcess, settled } in shown(block)"
32
32
  :key="row.id || row.key || index"
33
33
  class="lares-log__item"
34
34
  :data-type="row.type"
@@ -87,7 +87,7 @@
87
87
  <button type="button" class="lares-message-stop" @click="$emit('stop-speaking')">{{ t(playbackChrome.stopLabel) }}</button>
88
88
  </div>
89
89
  <LaresMessageActions
90
- v-if="!inProcess && !row.pending"
90
+ v-if="settled && !inProcess && !row.pending"
91
91
  :text="row.text"
92
92
  :reaction="reactions[actionKey(index)] || ''"
93
93
  :metrics="row.metrics || null"
package/src/host.js CHANGED
@@ -4,6 +4,7 @@ import { commandsUrl, normalizeCommands } from "@olares/lares-core/larepass/comm
4
4
  import { normalizeReferenceCandidates, referencesUrl } from "@olares/lares-core/larepass/references";
5
5
  import { muxWsUrl, remoteStreamOpen, workspaceBaseline } from "@olares/lares-core/larepass/mux";
6
6
  import { RESPOND_PATH } from "@olares/lares-core/larepass/rpc";
7
+ import { createPluginClient } from "@olares/lares-core/skills/client";
7
8
  import { createHostSettings } from "@olares/lares-core/larepass/settings";
8
9
  import { createVoiceKeysClient } from "@olares/lares-core/voice/keys-client";
9
10
  import {
@@ -341,6 +342,7 @@ export function createHostClient(ports = {}) {
341
342
  },
342
343
  consumeMux,
343
344
  settings: createHostSettings(request),
345
+ plugins: createPluginClient((path, init) => request(path, init)),
344
346
  voiceKeys: createVoiceKeysClient((path, init) => request(path, init)),
345
347
  };
346
348
  }