@clowder-ai/companion 0.1.0-alpha.30 → 0.1.0-alpha.31

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/manifest.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "pluginId": "official.companion",
3
- "version": "0.1.0-alpha.30",
3
+ "version": "0.1.0-alpha.31",
4
4
  "contractVersion": "0.1.0",
5
5
  "name": "猫猫球",
6
6
  "icon": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clowder-ai/companion",
3
- "version": "0.1.0-alpha.30",
3
+ "version": "0.1.0-alpha.31",
4
4
  "description": "The desktop voice body for your Clowder companion",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/plugin.yaml CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "pluginId": "official.companion",
3
- "version": "0.1.0-alpha.30",
3
+ "version": "0.1.0-alpha.31",
4
4
  "contractVersion": "0.1.0",
5
5
  "name": "猫猫球",
6
6
  "icon": {
@@ -6,11 +6,11 @@ import { ReplyLetterView } from './reply-letter-view.mjs';
6
6
 
7
7
  /** Owns the chat panel's history, durable draft and reply-letter interaction. */
8
8
  export class ConversationSurface {
9
- constructor({ document, client, controls, bubble, transcript, getCallPhase,
9
+ constructor({ document, client, controls, bubble, transcript,
10
10
  onAccepted, retryLegacy, status, scheduleInterval = setInterval,
11
11
  cancelInterval = clearInterval }) {
12
12
  this.$ = id => document.getElementById(id);
13
- Object.assign(this, { client, controls, bubble, transcript, getCallPhase,
13
+ Object.assign(this, { client, controls, bubble, transcript,
14
14
  onAccepted, retryLegacy, status });
15
15
  this.scheduleInterval = (...args) => Reflect.apply(scheduleInterval, globalThis, args);
16
16
  this.cancelInterval = (...args) => Reflect.apply(cancelInterval, globalThis, args);
@@ -140,7 +140,6 @@ export class ConversationSurface {
140
140
  try {
141
141
  const page = await this.client.readConversationPage(before === undefined ? {} : { before });
142
142
  this.history.loadPage(page, { older });
143
- void this.controls.setAmbient(this.getCallPhase() === 'idle' ? 'none' : 'actions');
144
143
  this.$('chat-connection-status').textContent = page.status === 'stale'
145
144
  ? '聊天位置已变化 · 请重新往上翻' : '';
146
145
  } catch (error) {
@@ -301,7 +301,6 @@ if (!window.clowderCompanion) {
301
301
  $('app-assist-start').onclick = () => { void appAssist.settle('accept'); };
302
302
  conversationSurface = new ConversationSurface({
303
303
  document, client, controls, bubble, transcript,
304
- getCallPhase: () => conversation.phase,
305
304
  onAccepted: () => motion.signal('received'),
306
305
  retryLegacy: text => conversation.send(text),
307
306
  status,