@pluno/product-agent-web 0.1.154 → 0.1.156
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 +3 -0
- package/dist/product-agent-widget.js +2724 -2671
- package/package.json +1 -1
|
@@ -3357,6 +3357,9 @@ function vr(e) {
|
|
|
3357
3357
|
return typeof t.id != "string" || typeof t.content != "string" || typeof t.createdAt != "string" || !["user", "assistant", "tool", "system"].includes(String(t.role)) ? null : {
|
|
3358
3358
|
id: t.id,
|
|
3359
3359
|
role: t.role,
|
|
3360
|
+
// Commentary can be persisted while an embedded agent navigates the host page mid-run. Keep its phase so the
|
|
3361
|
+
// restored draft stays in activity history instead of flashing as a completed assistant answer after navigation.
|
|
3362
|
+
...t.phase === "commentary" || t.phase === "final_answer" ? { phase: t.phase } : {},
|
|
3360
3363
|
content: t.content,
|
|
3361
3364
|
createdAt: t.createdAt,
|
|
3362
3365
|
respondsToUserMessageId: typeof t.respondsToUserMessageId == "string" ? t.respondsToUserMessageId : void 0,
|