@pluno/product-agent-web 0.1.87 → 0.1.89
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.
|
@@ -772,11 +772,11 @@ class qt {
|
|
|
772
772
|
});
|
|
773
773
|
}
|
|
774
774
|
stop() {
|
|
775
|
-
this.state.sessionId && (this.send({ type: "run.stop", sessionId: this.state.sessionId }), this.setState({ isThinking: !1 }), this.clearThinkingWatchdog());
|
|
775
|
+
this.state.sessionId && (this.send({ type: "run.stop", sessionId: this.state.sessionId, reason: "user_requested" }), this.setState({ isThinking: !1 }), this.clearThinkingWatchdog());
|
|
776
776
|
}
|
|
777
777
|
startNewSession(t = {}) {
|
|
778
778
|
const s = t.notifyTransport !== !1;
|
|
779
|
-
!this.options.keepRunsActiveOnSessionNavigation && s && this.state.sessionId && this.state.isThinking && this.
|
|
779
|
+
!this.options.keepRunsActiveOnSessionNavigation && s && this.state.sessionId && this.state.isThinking && this.send({ type: "run.stop", sessionId: this.state.sessionId, reason: "new_chat" }), this.cleanupSessionUserFilesApi(), this.queuedClientEvents = this.queuedClientEvents.filter((n) => n.type !== "chat.user_message"), this.clearThinkingWatchdog(), this.retryableClientMessageId = null, this.retryAttemptsByClientMessageId = {}, this.thinkingWatchdogResyncAttemptsByClientMessageId = {}, s && this.send({
|
|
780
780
|
type: "session.reset",
|
|
781
781
|
sessionId: this.state.sessionId ?? void 0,
|
|
782
782
|
page: A()
|
|
@@ -811,7 +811,7 @@ class qt {
|
|
|
811
811
|
return n;
|
|
812
812
|
}
|
|
813
813
|
loadSession(t) {
|
|
814
|
-
!this.options.keepRunsActiveOnSessionNavigation && this.state.sessionId && this.state.isThinking && this.
|
|
814
|
+
!this.options.keepRunsActiveOnSessionNavigation && this.state.sessionId && this.state.isThinking && this.send({ type: "run.stop", sessionId: this.state.sessionId, reason: "session_switch" }), this.clearThinkingWatchdog(), this.setState({
|
|
815
815
|
sessionId: t,
|
|
816
816
|
assistantDraft: "",
|
|
817
817
|
assistantDraftRespondsToUserMessageId: null,
|
|
@@ -2445,7 +2445,7 @@ function gt(e) {
|
|
|
2445
2445
|
if (!e || typeof e != "object")
|
|
2446
2446
|
return !1;
|
|
2447
2447
|
const t = e;
|
|
2448
|
-
return t.type === "chat.user_message" ? typeof t.content == "string" && _t(t.page) : t.type === "page.upsert" || t.type === "session.reset" || t.type === "network.batch" ? _t(t.page) : t.type === "tool.result" ? typeof t.sessionId == "string" && typeof t.callId == "string" && t.toolName === "execute_code" : t.type === "chat.retry_last_user_message" ? typeof t.sessionId == "string" && typeof t.clientMessageId == "string" : t.type === "run.stop" ? typeof t.sessionId == "string" : !1;
|
|
2448
|
+
return t.type === "chat.user_message" ? typeof t.content == "string" && _t(t.page) : t.type === "page.upsert" || t.type === "session.reset" || t.type === "network.batch" ? _t(t.page) : t.type === "tool.result" ? typeof t.sessionId == "string" && typeof t.callId == "string" && t.toolName === "execute_code" : t.type === "chat.retry_last_user_message" ? typeof t.sessionId == "string" && typeof t.clientMessageId == "string" : t.type === "run.stop" ? typeof t.sessionId == "string" && (t.reason === "user_requested" || t.reason === "new_chat" || t.reason === "session_switch") : !1;
|
|
2449
2449
|
}
|
|
2450
2450
|
function _t(e) {
|
|
2451
2451
|
if (!e || typeof e != "object")
|
|
@@ -3637,22 +3637,6 @@ function co(e, t) {
|
|
|
3637
3637
|
padding: 0;
|
|
3638
3638
|
overflow: visible;
|
|
3639
3639
|
pointer-events: auto;
|
|
3640
|
-
isolation: isolate;
|
|
3641
|
-
}
|
|
3642
|
-
.pluno-pa-widget--minimized .pluno-pa-widget__launcher::before {
|
|
3643
|
-
content: "";
|
|
3644
|
-
position: absolute;
|
|
3645
|
-
inset: 0;
|
|
3646
|
-
z-index: -1;
|
|
3647
|
-
border: 1px solid rgba(40, 36, 20, 0.45);
|
|
3648
|
-
border-radius: 999px;
|
|
3649
|
-
background-color: #fdfaf1;
|
|
3650
|
-
background-image:
|
|
3651
|
-
linear-gradient(rgba(96, 138, 188, 0.22) 1px, transparent 1px),
|
|
3652
|
-
linear-gradient(90deg, rgba(96, 138, 188, 0.22) 1px, transparent 1px);
|
|
3653
|
-
background-size: 22px 22px;
|
|
3654
|
-
filter: url(#pluno-pa-scribble-wobble-3);
|
|
3655
|
-
pointer-events: none;
|
|
3656
3640
|
}
|
|
3657
3641
|
.pluno-pa-widget--minimized .pluno-pa-widget__launcher-input,
|
|
3658
3642
|
.pluno-pa-widget--minimized .pluno-pa-widget__launcher-drag-handle,
|
|
@@ -5578,17 +5562,7 @@ function co(e, t) {
|
|
|
5578
5562
|
min-height: 0;
|
|
5579
5563
|
padding: 0;
|
|
5580
5564
|
}
|
|
5581
|
-
.pluno-pa-widget--scribble.pluno-pa-widget--minimized .pluno-pa-widget__launcher::before
|
|
5582
|
-
inset: 0;
|
|
5583
|
-
border: 1px solid var(--pluno-pa-divider);
|
|
5584
|
-
border-radius: 999px;
|
|
5585
|
-
background-color: var(--pluno-pa-bg);
|
|
5586
|
-
background-image:
|
|
5587
|
-
linear-gradient(var(--pluno-pa-scribble-grid-line) 1px, transparent 1px),
|
|
5588
|
-
linear-gradient(90deg, var(--pluno-pa-scribble-grid-line) 1px, transparent 1px);
|
|
5589
|
-
background-size: 22px 22px;
|
|
5590
|
-
filter: url(#pluno-pa-scribble-wobble-3);
|
|
5591
|
-
}
|
|
5565
|
+
.pluno-pa-widget--scribble.pluno-pa-widget--minimized .pluno-pa-widget__launcher::before,
|
|
5592
5566
|
.pluno-pa-widget--scribble.pluno-pa-widget--minimized .pluno-pa-widget__launcher::after {
|
|
5593
5567
|
content: none;
|
|
5594
5568
|
}
|
package/package.json
CHANGED