@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 +1 -1
- package/package.json +1 -1
- package/plugin.yaml +1 -1
- package/renderer/conversation-surface.mjs +2 -3
- package/renderer/surface.mjs +0 -1
package/manifest.json
CHANGED
package/package.json
CHANGED
package/plugin.yaml
CHANGED
|
@@ -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,
|
|
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,
|
|
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) {
|
package/renderer/surface.mjs
CHANGED
|
@@ -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,
|