@pluno/product-agent-web 0.1.54 → 0.1.55
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/product-agent-sdk.js +6 -4
- package/dist/product-agent-widget.js +365 -365
- package/package.json +1 -1
|
@@ -221,9 +221,11 @@ class ut {
|
|
|
221
221
|
};
|
|
222
222
|
this.setState({
|
|
223
223
|
messages: [...this.state.messages, a],
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
224
|
+
...this.state.isThinking ? {} : {
|
|
225
|
+
assistantDraft: "",
|
|
226
|
+
assistantDraftRespondsToUserMessageId: null,
|
|
227
|
+
assistantDraftRunId: null
|
|
228
|
+
},
|
|
227
229
|
isThinking: !0,
|
|
228
230
|
lastError: null
|
|
229
231
|
}), this.emit("message", a);
|
|
@@ -395,7 +397,7 @@ class ut {
|
|
|
395
397
|
});
|
|
396
398
|
}
|
|
397
399
|
stop() {
|
|
398
|
-
this.state.sessionId && (this.send({ type: "run.stop", sessionId: this.state.sessionId }), this.setState({
|
|
400
|
+
this.state.sessionId && (this.send({ type: "run.stop", sessionId: this.state.sessionId }), this.setState({ isThinking: !1 }), this.clearThinkingWatchdog());
|
|
399
401
|
}
|
|
400
402
|
startNewSession() {
|
|
401
403
|
this.state.sessionId && this.state.isThinking && this.sendNow({ type: "run.stop", sessionId: this.state.sessionId }), this.cleanupSessionUserFilesApi(), this.queuedClientEvents = this.queuedClientEvents.filter((t) => t.type !== "chat.user_message"), this.clearThinkingWatchdog(), this.send({
|