@pluno/product-agent-web 0.1.286 → 0.1.289
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/adapters/web/conversationAdapters.d.ts +1 -1
- package/dist/core/features/contracts.d.ts +2 -0
- package/dist/core/interactions/contracts.d.ts +2 -0
- package/dist/core/model-selection/selectors.d.ts +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/product-agent-runtime.cjs +1 -1
- package/dist/product-agent-runtime.js +135 -132
- package/dist/product-agent-sdk.js +2666 -2644
- package/dist/product-agent-widget.js +5432 -5410
- package/dist/runtime/modelSelection.d.ts +1 -1
- package/dist/runtimeClient.d.ts +14 -5
- package/package.json +1 -1
|
@@ -114,13 +114,13 @@ function Ae(i) {
|
|
|
114
114
|
const e = i.paidCreditFallbackModel;
|
|
115
115
|
return typeof e == "string" && e.length > 0;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Me(i) {
|
|
118
118
|
return i ? i.submissionGate?.allowed === !1 ? ["credits_exhausted", "payment_issue", "onboarding_required"].includes(i.submissionGate.reason) ? { state: "action_required", reason: i.submissionGate.reason } : { state: "hidden" } : i.usingPaidCreditFallback === !0 ? { state: "paid_credit_fallback" } : i.creditLimit !== null && i.creditLimit > 0 && i.creditsRemaining !== null && i.creditsRemaining > 0 && i.creditsRemaining / i.creditLimit <= 0.2 ? { state: "low_credits" } : i.creditsUsed !== null ? { state: "usage" } : { state: "hidden" } : { state: "hidden" };
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Ee(i) {
|
|
121
121
|
return i.submissionAllowed && i.isAuthenticated && i.hasWorkspace && !i.isWebsiteBlocked && i.isCurrentPageResolved && !i.isSubmitting && !i.hasPendingMessage;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Pe(i) {
|
|
124
124
|
const e = i.hasDraftMessage || i.hasPreSubmittedAttachment;
|
|
125
125
|
return i.hasRunningAssistantTurn && !e ? {
|
|
126
126
|
action: "stop",
|
|
@@ -320,10 +320,10 @@ function ee(i, e) {
|
|
|
320
320
|
return !0;
|
|
321
321
|
return !1;
|
|
322
322
|
}
|
|
323
|
-
class
|
|
323
|
+
class Re {
|
|
324
324
|
constructor(e, t = null) {
|
|
325
325
|
this.storage = e, t && (this.decisions = new Map(
|
|
326
|
-
t.filter(
|
|
326
|
+
t.filter(P).map((s) => [this.getDecisionKey(s), s])
|
|
327
327
|
), this.initialized = !0);
|
|
328
328
|
}
|
|
329
329
|
storage;
|
|
@@ -401,7 +401,7 @@ class ke {
|
|
|
401
401
|
if (this.initialized) return;
|
|
402
402
|
const e = await this.storage.load();
|
|
403
403
|
this.decisions = new Map(
|
|
404
|
-
e.filter(
|
|
404
|
+
e.filter(P).map((t) => [this.getDecisionKey(t), t])
|
|
405
405
|
), this.initialized = !0;
|
|
406
406
|
}
|
|
407
407
|
isEligible(e, t = Date.now()) {
|
|
@@ -473,7 +473,7 @@ class ke {
|
|
|
473
473
|
return `${A(e.scope)}:category:${e.category}`;
|
|
474
474
|
}
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function ke(i, e) {
|
|
477
477
|
return {
|
|
478
478
|
load: async () => te(i, e),
|
|
479
479
|
save: async (t) => i.setItem(e, JSON.stringify(t))
|
|
@@ -483,7 +483,7 @@ function te(i, e) {
|
|
|
483
483
|
const t = i.getItem(e);
|
|
484
484
|
if (!t) return [];
|
|
485
485
|
const s = JSON.parse(t);
|
|
486
|
-
return Array.isArray(s) ? s.filter(
|
|
486
|
+
return Array.isArray(s) ? s.filter(P) : [];
|
|
487
487
|
}
|
|
488
488
|
function A(i) {
|
|
489
489
|
return `${i.level}:${i.key}`;
|
|
@@ -491,7 +491,7 @@ function A(i) {
|
|
|
491
491
|
function U(i) {
|
|
492
492
|
return i === "dismiss" || i === "later" || i === "snooze" || i === "never" || i === "dont_show_again";
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function P(i) {
|
|
495
495
|
if (!i || typeof i != "object") return !1;
|
|
496
496
|
const e = i;
|
|
497
497
|
return typeof e.promptKey == "string" && typeof e.category == "string" && typeof e.decidedAt == "string" && (e.nextEligibleAt === null || typeof e.nextEligibleAt == "string") && U(e.action) && !!(e.scope && typeof e.scope == "object" && typeof e.scope.level == "string" && typeof e.scope.key == "string");
|
|
@@ -564,7 +564,7 @@ function Oe(i) {
|
|
|
564
564
|
function w(i) {
|
|
565
565
|
return i.replace(ie, "");
|
|
566
566
|
}
|
|
567
|
-
const re = "0.1.
|
|
567
|
+
const re = "0.1.289", oe = {
|
|
568
568
|
version: re
|
|
569
569
|
}, g = (i) => typeof i == "string" && /^[a-zA-Z0-9:_.-]{1,160}$/.test(i) ? i : null;
|
|
570
570
|
function ae(i) {
|
|
@@ -577,11 +577,11 @@ function F(i) {
|
|
|
577
577
|
const e = i;
|
|
578
578
|
return Object.keys(e).every((t) => ["sessionId", "episodeId", "consecutiveFailures", "transportCode", "requestId", "durationMs"].includes(t)) && typeof e.sessionId == "string" && /^[a-zA-Z0-9:_-]{1,160}$/.test(e.sessionId) && typeof e.episodeId == "string" && /^[a-zA-Z0-9:_-]{1,500}$/.test(e.episodeId) && (e.transportCode === void 0 || typeof e.transportCode == "string" && /^[a-z0-9_]{1,80}$/.test(e.transportCode)) && (e.requestId === void 0 || typeof e.requestId == "string" && /^[a-zA-Z0-9_-]{1,160}$/.test(e.requestId)) && (e.durationMs === void 0 || typeof e.durationMs == "number" && Number.isFinite(e.durationMs) && e.durationMs >= 0) && Number.isSafeInteger(e.consecutiveFailures) && e.consecutiveFailures >= 1;
|
|
579
579
|
}
|
|
580
|
-
const x = ["messageKeys", "canonicalItemKeys", "terminalResponseKeys", "toolCallKeys", "activeResponseKeys"], T = (i) => typeof i == "string" && /^[a-zA-Z0-9:_-]{1,160}$/.test(i),
|
|
580
|
+
const x = ["messageKeys", "canonicalItemKeys", "terminalResponseKeys", "toolCallKeys", "activeResponseKeys"], T = (i) => typeof i == "string" && /^[a-zA-Z0-9:_-]{1,160}$/.test(i), m = (i) => i === null || T(i), de = (i) => typeof i == "string" && /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,6})?(?:Z|\+00:00)$/.test(i) && Number.isFinite(Date.parse(i));
|
|
581
581
|
function L(i) {
|
|
582
582
|
if (!i || typeof i != "object") return !1;
|
|
583
583
|
const e = i;
|
|
584
|
-
return Object.keys(i).every((t) => ["sessionId", "itemId", "userMessageId", "createdAt", "runId", "retryable"].includes(t)) &&
|
|
584
|
+
return Object.keys(i).every((t) => ["sessionId", "itemId", "userMessageId", "createdAt", "runId", "retryable"].includes(t)) && m(e.sessionId) && T(e.itemId) && m(e.userMessageId) && (e.retryable === void 0 || typeof e.retryable == "boolean") && m(e.runId) && (e.createdAt === null || de(e.createdAt));
|
|
585
585
|
}
|
|
586
586
|
function ce(i) {
|
|
587
587
|
if (!i || typeof i != "object") return !1;
|
|
@@ -593,7 +593,7 @@ function G(i) {
|
|
|
593
593
|
const e = (s) => {
|
|
594
594
|
if (!s || typeof s != "object") return !1;
|
|
595
595
|
const n = s;
|
|
596
|
-
return Object.keys(s).every((r) => [...x, "sessionId", "runtimeItemCount", "welcome", "truncated", "thinkingSequence", "context", "duplicateToolCalls"].includes(r)) && (n.duplicateToolCalls === void 0 || Array.isArray(n.duplicateToolCalls) && n.duplicateToolCalls.length <= 5 && n.duplicateToolCalls.every((r) => r && Object.keys(r).every((o) => ["key", "count", "rows", "truncated"].includes(o)) &&
|
|
596
|
+
return Object.keys(s).every((r) => [...x, "sessionId", "runtimeItemCount", "welcome", "truncated", "thinkingSequence", "context", "duplicateToolCalls"].includes(r)) && (n.duplicateToolCalls === void 0 || Array.isArray(n.duplicateToolCalls) && n.duplicateToolCalls.length <= 5 && n.duplicateToolCalls.every((r) => r && Object.keys(r).every((o) => ["key", "count", "rows", "truncated"].includes(o)) && m(r.key) && Number.isSafeInteger(r.count) && r.count >= 2 && typeof r.truncated == "boolean" && Array.isArray(r.rows) && r.rows.length >= 1 && r.rows.length <= 5 && r.rows.length <= r.count && r.rows.every((o) => o && Object.keys(o).every((a) => ["itemId", "groupId"].includes(a)) && m(o.itemId) && m(o.groupId)))) && (n.context === void 0 || ce(n.context)) && (n.thinkingSequence === void 0 || Array.isArray(n.thinkingSequence) && n.thinkingSequence.length <= 20 && n.thinkingSequence.every((r) => r === "user" || r === "thinking")) && m(n.sessionId) && Number.isSafeInteger(n.runtimeItemCount) && n.runtimeItemCount >= 0 && typeof n.welcome == "boolean" && typeof n.truncated == "boolean" && x.every((r) => Array.isArray(n[r]) && n[r].length <= 20 && n[r].every(T));
|
|
597
597
|
}, t = i;
|
|
598
598
|
return (t.before === null || e(t.before)) && e(t.current);
|
|
599
599
|
}
|
|
@@ -608,7 +608,7 @@ function le(i) {
|
|
|
608
608
|
e ^= i.charCodeAt(t), e = Math.imul(e, 16777619);
|
|
609
609
|
return `fnv1a-${(e >>> 0).toString(16).padStart(8, "0")}`;
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
function R(i) {
|
|
612
612
|
if (!i || typeof i != "object") return !1;
|
|
613
613
|
const e = i;
|
|
614
614
|
return Object.keys(i).every((t) => ["boundary", "category", "messageKind"].includes(t)) && ["runtime", "web_transport", "extension_ipc"].includes(e.boundary) && ["error", "object", "null", "array", "string", "undefined", "number", "boolean", "bigint", "symbol", "function"].includes(e.category) && ["object_coercion", "text", "blank", "non_text"].includes(e.messageKind);
|
|
@@ -616,7 +616,7 @@ function k(i) {
|
|
|
616
616
|
function ue(i) {
|
|
617
617
|
if (!i || typeof i != "object") return !1;
|
|
618
618
|
const e = i;
|
|
619
|
-
return Object.keys(e).every((t) => ["sessionId", "requestId", "code", "normalization", "builds", "clientMessageId"].includes(t)) && (e.clientMessageId === void 0 || g(e.clientMessageId) !== null) && [e.sessionId, e.requestId, e.code].every((t) => t === null || g(t) !== null) && (e.normalization === void 0 ||
|
|
619
|
+
return Object.keys(e).every((t) => ["sessionId", "requestId", "code", "normalization", "builds", "clientMessageId"].includes(t)) && (e.clientMessageId === void 0 || g(e.clientMessageId) !== null) && [e.sessionId, e.requestId, e.code].every((t) => t === null || g(t) !== null) && (e.normalization === void 0 || R(e.normalization)) && !!e.builds && typeof e.builds == "object" && typeof e.builds.sdk == "string" && Object.entries(e.builds).every(([t, s]) => ["sdk", "rendererExtension", "contentExtension", "backgroundExtension"].includes(t) && typeof s == "string" && /^\d{1,5}\.\d{1,5}\.\d{1,5}$/.test(s));
|
|
620
620
|
}
|
|
621
621
|
function pe(i, e, t, s, n = {}) {
|
|
622
622
|
const r = !s && e === "conversation_error" && t !== void 0 && i.conversationDiagnostics?.errorMessageFingerprint === le(B(t)) ? i.conversationDiagnostics : void 0;
|
|
@@ -625,7 +625,7 @@ function pe(i, e, t, s, n = {}) {
|
|
|
625
625
|
requestId: g(r?.httpRequest?.requestId ?? r?.errorRequestId ?? r?.queryRequestId),
|
|
626
626
|
...g(r?.failedClientMessageId) ? { clientMessageId: r.failedClientMessageId } : {},
|
|
627
627
|
code: r ? g(i.lastErrorCode) : null,
|
|
628
|
-
...
|
|
628
|
+
...R(r?.errorNormalization) ? { normalization: r.errorNormalization } : {},
|
|
629
629
|
builds: { sdk: oe.version, ...n }
|
|
630
630
|
};
|
|
631
631
|
}
|
|
@@ -639,11 +639,11 @@ function he(i) {
|
|
|
639
639
|
...i.details === void 0 ? {} : { details: i.details }
|
|
640
640
|
};
|
|
641
641
|
}
|
|
642
|
-
function
|
|
642
|
+
function y(i, e = "runtime_error", t = "runtime") {
|
|
643
643
|
const s = i !== null && typeof i == "object" ? i : null, n = typeof i == "string" ? i : s && "message" in s && typeof s.message == "string" ? s.message : "", r = s && "code" in s && typeof s.code == "string" && s.code.trim() ? s.code : e, o = s && "details" in s ? s.details : null, a = o && typeof o == "object" ? o : {}, c = {
|
|
644
644
|
...typeof a.httpStatus == "number" && Number.isInteger(a.httpStatus) && a.httpStatus >= 100 && a.httpStatus <= 599 ? { httpStatus: a.httpStatus } : {},
|
|
645
645
|
// Preserve the first boundary's shape after normalization replaces the original message/prototype.
|
|
646
|
-
errorNormalization:
|
|
646
|
+
errorNormalization: R(a.errorNormalization) ? a.errorNormalization : {
|
|
647
647
|
boundary: t,
|
|
648
648
|
category: i instanceof Error ? "error" : i === null ? "null" : Array.isArray(i) ? "array" : typeof i,
|
|
649
649
|
messageKind: n.trim() === "[object Object]" ? "object_coercion" : n.trim() ? "text" : typeof i == "string" || s && "message" in s && typeof s.message == "string" ? "blank" : "non_text"
|
|
@@ -771,14 +771,14 @@ function fe(i) {
|
|
|
771
771
|
return e?.backendRefusal === !0 ? "backend_refusal" : typeof t == "string" && t !== "backend_refusal" && H.includes(t) ? t : e?.name === "AbortError" ? "aborted" : e?.name === "TypeError" ? "type_error" : "unknown";
|
|
772
772
|
}
|
|
773
773
|
const V = Math.random().toString(36).slice(2);
|
|
774
|
-
let
|
|
775
|
-
const
|
|
776
|
-
function
|
|
774
|
+
let me = 0;
|
|
775
|
+
const N = () => `timing:${V}:${++me}`, b = (i) => typeof i == "string" && /^[a-zA-Z0-9:_-]{1,160}$/.test(i);
|
|
776
|
+
function k(i) {
|
|
777
777
|
if (!i || typeof i != "object") return !1;
|
|
778
778
|
const e = i;
|
|
779
779
|
return Object.keys(e).every((t) => ["entrySurface", "operation", "layer", "stage", "status", "spanId", "requestId", "clientMessageId", "sessionId", "occurredAt", "durationMs", "failureCategory", "tabId", "queueDepth", "workerId"].includes(t)) && (e.tabId === void 0 || Number.isSafeInteger(e.tabId) && e.tabId >= 0) && (e.queueDepth === void 0 || Number.isSafeInteger(e.queueDepth) && e.queueDepth >= 0) && (e.workerId === void 0 || b(e.workerId)) && (e.failureCategory === void 0 || e.status === "failed" && H.includes(e.failureCategory)) && (e.entrySurface === void 0 || ["extension_sidepanel", "extension_widget", "main_web_chat", "embedded_widget", "embedded_custom_ui", "automation", "mcp", "whatsapp", "email"].includes(e.entrySurface)) && ["send", "stop"].includes(e.operation) && ["renderer", "sdk", "extension", "http"].includes(e.layer) && ge.includes(e.stage) && ["started", "completed", "failed", "observed"].includes(e.status) && b(e.spanId) && b(e.requestId) && (e.clientMessageId === null || b(e.clientMessageId)) && (e.sessionId === null || b(e.sessionId)) && typeof e.occurredAt == "string" && e.occurredAt.length <= 40 && Number.isFinite(Date.parse(e.occurredAt)) && Number.isSafeInteger(e.durationMs) && e.durationMs >= 0;
|
|
780
780
|
}
|
|
781
|
-
function
|
|
781
|
+
function j(i, e) {
|
|
782
782
|
if (e = { workerId: V, ...e }, !i) return {
|
|
783
783
|
identity: e,
|
|
784
784
|
mark: (n) => {
|
|
@@ -795,14 +795,14 @@ function N(i, e) {
|
|
|
795
795
|
durationMs: Math.max(0, Math.round(performance.now() - o)),
|
|
796
796
|
...r === "failed" ? { failureCategory: fe(c) } : {}
|
|
797
797
|
};
|
|
798
|
-
i &&
|
|
798
|
+
i && k(d) && Promise.resolve().then(() => i(d)).catch(() => {
|
|
799
799
|
});
|
|
800
800
|
};
|
|
801
801
|
return {
|
|
802
802
|
identity: e,
|
|
803
|
-
mark: (n) => s(n, "observed", t,
|
|
803
|
+
mark: (n) => s(n, "observed", t, N()),
|
|
804
804
|
measure(n, r) {
|
|
805
|
-
const o = performance.now(), a =
|
|
805
|
+
const o = performance.now(), a = N();
|
|
806
806
|
return s(n, "started", o, a), r().then(
|
|
807
807
|
(c) => (s(n, "completed", o, a), c),
|
|
808
808
|
(c) => {
|
|
@@ -812,11 +812,11 @@ function N(i, e) {
|
|
|
812
812
|
}
|
|
813
813
|
};
|
|
814
814
|
}
|
|
815
|
-
const
|
|
816
|
-
function
|
|
815
|
+
const M = (i) => i === null || typeof i == "string" && /^[a-zA-Z0-9:_-]{1,160}$/.test(i);
|
|
816
|
+
function ye(i) {
|
|
817
817
|
if (!i || typeof i != "object") return !1;
|
|
818
818
|
const e = i;
|
|
819
|
-
return typeof e.observedAt == "string" && e.observedAt.length <= 40 && Number.isFinite(Date.parse(e.observedAt)) &&
|
|
819
|
+
return typeof e.observedAt == "string" && e.observedAt.length <= 40 && Number.isFinite(Date.parse(e.observedAt)) && M(e.sessionId) && M(e.responseItemId) && M(e.respondsToUserMessageId) && typeof e.panelVisible == "boolean" && typeof e.documentVisible == "boolean" && typeof e.loading == "boolean";
|
|
820
820
|
}
|
|
821
821
|
function be(i, e, t = "stopped", s, n = "Run stopped by user.") {
|
|
822
822
|
const r = new Set(s ?? [
|
|
@@ -887,11 +887,11 @@ function Ce(i) {
|
|
|
887
887
|
case "run.stop":
|
|
888
888
|
return e.clientMessageIds === void 0 || Array.isArray(e.clientMessageIds) && e.clientMessageIds.length <= 100 && e.clientMessageIds.every((t) => typeof t == "string" && t.length > 0 && t.length <= 160);
|
|
889
889
|
case "runtime.report_response_visibility":
|
|
890
|
-
return
|
|
890
|
+
return ye(e.observation);
|
|
891
891
|
case "runtime.warmup":
|
|
892
|
-
return e.reason === "panel_open" || e.reason === "extension_install" || e.reason === "composer_input";
|
|
892
|
+
return (e.reason === "panel_open" || e.reason === "extension_install" || e.reason === "composer_input") && (e.requestedModel === void 0 || typeof e.requestedModel == "string");
|
|
893
893
|
case "runtime.report_operation_timing":
|
|
894
|
-
return
|
|
894
|
+
return k(e.timing);
|
|
895
895
|
case "runtime.report_displayed_error":
|
|
896
896
|
return (e.errorDiagnostic === void 0 || ue(e.errorDiagnostic)) && (e.httpRequest === void 0 || Q(e.httpRequest)) && (e.historyRefreshFailure === void 0 || F(e.historyRefreshFailure)) && (e.renderedError === void 0 || L(e.renderedError)) && (e.reason === "conversation_error" || e.reason === "attachment_error" || e.reason === "history_error" || e.reason === "action_error") && typeof e.errorFingerprint == "string" && /^fnv1a-[0-9a-f]{8}$/.test(e.errorFingerprint) && (e.displayedMessage === void 0 || typeof e.displayedMessage == "string" && e.displayedMessage.length <= 500);
|
|
897
897
|
case "runtime.report_invalid_state_transition":
|
|
@@ -912,7 +912,7 @@ function Ce(i) {
|
|
|
912
912
|
case "session.rename":
|
|
913
913
|
return typeof e.sessionId == "string" && typeof e.title == "string";
|
|
914
914
|
case "interaction.act":
|
|
915
|
-
return typeof e.interactionId == "string" && typeof e.action == "string" && typeof e.expectedRevision == "number";
|
|
915
|
+
return (e.requestedModel === void 0 || typeof e.requestedModel == "string") && typeof e.interactionId == "string" && typeof e.action == "string" && typeof e.expectedRevision == "number";
|
|
916
916
|
case "conversation.stage_proactive_suggestion":
|
|
917
917
|
return typeof e.question == "string" && typeof e.clientMessageId == "string";
|
|
918
918
|
case "conversation.stage":
|
|
@@ -920,14 +920,14 @@ function Ce(i) {
|
|
|
920
920
|
case "conversation.fail_staged":
|
|
921
921
|
return typeof e.clientMessageId == "string" && typeof e.message == "string";
|
|
922
922
|
case "conversation.send":
|
|
923
|
-
return typeof e.content == "string" && typeof e.clientMessageId == "string" && (e.requestedModel === void 0 || typeof e.requestedModel == "string") && (e.automationOnboarding === void 0 || typeof e.automationOnboarding == "boolean") && (e.attachments === void 0 || Array.isArray(e.attachments));
|
|
923
|
+
return (e.selectionKey === void 0 || typeof e.selectionKey == "string") && typeof e.content == "string" && typeof e.clientMessageId == "string" && (e.requestedModel === void 0 || typeof e.requestedModel == "string") && (e.automationOnboarding === void 0 || typeof e.automationOnboarding == "boolean") && (e.attachments === void 0 || Array.isArray(e.attachments));
|
|
924
924
|
default:
|
|
925
925
|
return !1;
|
|
926
926
|
}
|
|
927
927
|
}
|
|
928
928
|
class xe {
|
|
929
929
|
constructor(e, t, s) {
|
|
930
|
-
this.adapter = t, this.state =
|
|
930
|
+
this.adapter = t, this.state = E(e), this.hasBeenReady = e.status === "connected" && e.submissionReady !== !1, this.initialModel = s ?? "gpt-5.6-terra", this.model = this.initialModel;
|
|
931
931
|
}
|
|
932
932
|
adapter;
|
|
933
933
|
listeners = {};
|
|
@@ -938,6 +938,7 @@ class xe {
|
|
|
938
938
|
state;
|
|
939
939
|
sessionHistoryState = _("unavailable");
|
|
940
940
|
model;
|
|
941
|
+
initialModel;
|
|
941
942
|
interactions = [];
|
|
942
943
|
account = null;
|
|
943
944
|
stagedProactiveSuggestionClientMessageId = null;
|
|
@@ -952,7 +953,8 @@ class xe {
|
|
|
952
953
|
stopError = null;
|
|
953
954
|
stopPreviews = /* @__PURE__ */ new Map();
|
|
954
955
|
durabilityWaiters = /* @__PURE__ */ new Set();
|
|
955
|
-
|
|
956
|
+
navigationRevision = 0;
|
|
957
|
+
pendingNavigation = !1;
|
|
956
958
|
destroyed = !1;
|
|
957
959
|
hasBeenReady;
|
|
958
960
|
on(e, t) {
|
|
@@ -960,7 +962,8 @@ class xe {
|
|
|
960
962
|
return s.add(t), this.listeners[e] = s, () => s.delete(t);
|
|
961
963
|
}
|
|
962
964
|
getState() {
|
|
963
|
-
const e =
|
|
965
|
+
const e = E(this.state);
|
|
966
|
+
this.pendingNavigation && (e.isLoadingSession = !0);
|
|
964
967
|
for (const [n, r] of this.submissionPreviews)
|
|
965
968
|
e.messages.some((o) => o.id === n) || (e.messages.push({ ...r.message, attachments: r.message.attachments?.map((o) => ({ ...o })) }), e.segments && (e.segments = [...e.segments, { id: n, userMessageId: n, activityIds: [], outcomeIds: [], collapsed: !1 }]), e.isLoadingSession = !1, r.pending && (e.activeResponseUserMessageId = n, e.pendingMessageStatus = "sending", e.turnPhase = "sending", e.activity = { phase: "submitting", activeItemId: null }), r.error && (e.lastError = r.error.message, e.lastErrorCode = ["unauthorized", "401", "auth_reconnecting", "submission_not_available", "submission_checkpoint_pending"].includes(r.error.code) ? r.error.code : "message_delivery_failed"));
|
|
966
969
|
this.stopError && (e.lastError = this.stopError, e.lastErrorCode = "stop_failed");
|
|
@@ -971,33 +974,33 @@ class xe {
|
|
|
971
974
|
}
|
|
972
975
|
updateProjection(e, t, s, n, r) {
|
|
973
976
|
if (this.destroyed) return;
|
|
974
|
-
const o = this.getState(), a = !this.hasBeenReady && (!o.user || o.user.id === e.user?.id), c = o.stableSelectionKey !== void 0 && o.stableSelectionKey === e.stableSelectionKey && o.user?.id === e.user?.id && o.sessionId === e.sessionId && this.pendingTransfers.size > 0 && this.submissionRetries.size === 0 && [...this.pendingTransfers.keys()].every((
|
|
975
|
-
!a && !
|
|
976
|
-
for (const
|
|
977
|
-
|
|
978
|
-
this.state =
|
|
979
|
-
for (const [
|
|
980
|
-
const
|
|
981
|
-
(
|
|
977
|
+
const o = this.getState(), a = !this.hasBeenReady && (!o.user || o.user.id === e.user?.id), c = o.stableSelectionKey !== void 0 && o.stableSelectionKey === e.stableSelectionKey && o.user?.id === e.user?.id && o.sessionId === e.sessionId, d = c && this.pendingTransfers.size > 0 && this.submissionRetries.size === 0 && [...this.pendingTransfers.keys()].every((l) => this.readinessPendingSubmissions.has(l));
|
|
978
|
+
!a && !d && (o.user?.id !== e.user?.id || o.selectionKey !== void 0 && o.selectionKey !== e.selectionKey || o.selectionKey === void 0 && o.sessionId !== null && o.sessionId !== e.sessionId) && (c || (this.model = this.initialModel), this.cancelPendingSubmissions(), this.submissionPreviews.clear());
|
|
979
|
+
for (const l of e.messages)
|
|
980
|
+
l.role === "user" && e.receipts?.find((u) => u.userMessageId === l.id)?.durable !== !1 && this.submissionPreviews.delete(l.id);
|
|
981
|
+
this.state = E(e), e.status === "connected" && e.submissionReady !== !1 && (this.hasBeenReady = !0);
|
|
982
|
+
for (const [l, u] of this.stopPreviews) {
|
|
983
|
+
const p = e.activity?.executionKey;
|
|
984
|
+
(u !== void 0 && u !== "[]" && p !== void 0 && p !== "[]" && (p !== u || ["completed", "failed", "stopped"].includes(e.activity.phase)) || (u === void 0 || u === "[]") && e.messages.some((h) => h.respondsToUserMessageId === l && !h.provisional && h.loading !== !0 && (h.dataType === "run_status" || h.dataType === "run_error" || h.role === "assistant" && h.phase !== "commentary" && (h.streamState === void 0 || ["finished", "stopped", "failed"].includes(h.streamState))))) && this.stopPreviews.delete(l);
|
|
982
985
|
}
|
|
983
|
-
if (this.pendingStop?.userMessageIds.every((
|
|
984
|
-
for (const
|
|
985
|
-
if (
|
|
986
|
-
const
|
|
987
|
-
o.sessionId !== e.sessionId && !(o.sessionId === null &&
|
|
986
|
+
if (this.pendingStop?.userMessageIds.every((l) => !this.stopPreviews.has(l)) && (this.pendingStop = null), o.user?.id === e.user?.id)
|
|
987
|
+
for (const l of this.state.messages) {
|
|
988
|
+
if (l.role !== "user" || !l.attachments?.length) continue;
|
|
989
|
+
const u = o.messages.find((p) => p.role === "user" && p.id === l.id);
|
|
990
|
+
o.sessionId !== e.sessionId && !(o.sessionId === null && u) || (l.attachments = Ie(u?.attachments, l.attachments));
|
|
988
991
|
}
|
|
989
|
-
if (
|
|
992
|
+
if (s && JSON.stringify(s) !== JSON.stringify(this.sessionHistoryState)) {
|
|
990
993
|
this.sessionHistoryState = z(s);
|
|
991
|
-
for (const
|
|
992
|
-
|
|
994
|
+
for (const l of this.sessionHistoryListeners)
|
|
995
|
+
l(this.getSessionHistoryState());
|
|
993
996
|
}
|
|
994
997
|
if (n && JSON.stringify(n) !== JSON.stringify(this.interactions)) {
|
|
995
|
-
this.interactions = n.map((
|
|
996
|
-
for (const
|
|
998
|
+
this.interactions = n.map((l) => ({ ...l }));
|
|
999
|
+
for (const l of this.interactionListeners) l(this.getInteractions());
|
|
997
1000
|
}
|
|
998
1001
|
if (r !== void 0 && JSON.stringify(r) !== JSON.stringify(this.account)) {
|
|
999
1002
|
this.account = r ? { ...r } : null;
|
|
1000
|
-
for (const
|
|
1003
|
+
for (const l of this.accountListeners) l(this.getAccount());
|
|
1001
1004
|
}
|
|
1002
1005
|
this.emit("state", this.getState());
|
|
1003
1006
|
}
|
|
@@ -1013,8 +1016,8 @@ class xe {
|
|
|
1013
1016
|
this.adapter.onDisconnect?.();
|
|
1014
1017
|
}
|
|
1015
1018
|
}
|
|
1016
|
-
warmup(e = "panel_open") {
|
|
1017
|
-
return this.adapter.dispatch({ type: "runtime.warmup", reason: e }).then(() => {
|
|
1019
|
+
warmup(e = "panel_open", t = this.model) {
|
|
1020
|
+
return this.adapter.dispatch({ type: "runtime.warmup", reason: e, requestedModel: t }).then(() => {
|
|
1018
1021
|
});
|
|
1019
1022
|
}
|
|
1020
1023
|
recordPromptPresented(e, t) {
|
|
@@ -1024,7 +1027,7 @@ class xe {
|
|
|
1024
1027
|
this.dispatch({ type: "runtime.widget_lifecycle", action: e, trigger: t });
|
|
1025
1028
|
}
|
|
1026
1029
|
reportOperationTiming(e) {
|
|
1027
|
-
!this.destroyed &&
|
|
1030
|
+
!this.destroyed && k(e) && this.adapter.dispatch({ type: "runtime.report_operation_timing", timing: e }).catch(() => {
|
|
1028
1031
|
});
|
|
1029
1032
|
}
|
|
1030
1033
|
reportResponseVisibility(e) {
|
|
@@ -1059,7 +1062,12 @@ class xe {
|
|
|
1059
1062
|
}
|
|
1060
1063
|
sendMessage(e, t = {}) {
|
|
1061
1064
|
const s = e.trim();
|
|
1062
|
-
|
|
1065
|
+
if (this.pendingNavigation) return Promise.reject(new Error("Wait for the conversation to finish loading."));
|
|
1066
|
+
t = {
|
|
1067
|
+
...t,
|
|
1068
|
+
requestedModel: t.requestedModel ?? this.getModel(),
|
|
1069
|
+
attachments: t.attachments?.map((d) => ({ ...d }))
|
|
1070
|
+
};
|
|
1063
1071
|
const n = t.attachments ?? [];
|
|
1064
1072
|
if (!s && n.length === 0) return Promise.resolve(null);
|
|
1065
1073
|
this.pendingStop = null, this.stopError = null;
|
|
@@ -1077,7 +1085,7 @@ class xe {
|
|
|
1077
1085
|
});
|
|
1078
1086
|
}
|
|
1079
1087
|
async sendMessageNow(e, t, s) {
|
|
1080
|
-
const n = e, r = t.clientMessageId, o =
|
|
1088
|
+
const n = e, r = t.clientMessageId, o = j((l) => {
|
|
1081
1089
|
s === this.submissionGeneration && this.reportOperationTiming(l);
|
|
1082
1090
|
}, {
|
|
1083
1091
|
operation: "send",
|
|
@@ -1092,31 +1100,30 @@ class xe {
|
|
|
1092
1100
|
d && this.readinessPendingSubmissions.add(r);
|
|
1093
1101
|
try {
|
|
1094
1102
|
const l = await o.measure("staging_ipc", async () => {
|
|
1095
|
-
|
|
1096
|
-
if (
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1103
|
+
if (d) {
|
|
1104
|
+
if (!await o.measure("authentication", () => this.waitForSubmissionReadiness(s))) return null;
|
|
1105
|
+
this.readinessPendingSubmissions.delete(r), d = !1, t = { ...t, selectionKey: this.state.selectionKey };
|
|
1106
|
+
}
|
|
1107
|
+
return this.destroyed || s !== this.submissionGeneration ? null : this.adapter.dispatch({
|
|
1108
|
+
type: "conversation.stage",
|
|
1109
|
+
...t.reconcileAcceptance ? { reconcileAcceptance: !0 } : {},
|
|
1110
|
+
selectionKey: t.selectionKey,
|
|
1111
|
+
requestedModel: t.requestedModel,
|
|
1112
|
+
initiatedBy: t.initiatedBy,
|
|
1113
|
+
invocation: t.invocation,
|
|
1114
|
+
automationOnboarding: t.automationOnboarding,
|
|
1115
|
+
content: n,
|
|
1116
|
+
clientMessageId: r,
|
|
1117
|
+
proactiveSuggestionQuestion: t.proactiveSuggestionQuestion,
|
|
1118
|
+
// Preview URLs belong to the renderer's optimistic snapshot and are not valid runtime-command metadata.
|
|
1119
|
+
attachments: a.length > 0 ? a.map(K) : void 0,
|
|
1120
|
+
submittedAt: t.submittedAt
|
|
1121
|
+
}).then((p) => ({ result: p }), async (p) => {
|
|
1122
|
+
const f = y(p);
|
|
1123
|
+
if (f.code !== "submission_checkpoint_pending") throw p;
|
|
1124
|
+
const h = this.submissionPreviews.get(r);
|
|
1125
|
+
return h && (h.error = f), this.emit("state", this.getState()), await this.waitForSubmissionDurability(r, s) ? { result: void 0 } : null;
|
|
1113
1126
|
});
|
|
1114
|
-
return u ? u.result.then((h) => ({ result: h }), async (h) => {
|
|
1115
|
-
const p = m(h);
|
|
1116
|
-
if (p.code !== "submission_checkpoint_pending") throw h;
|
|
1117
|
-
const f = this.submissionPreviews.get(r);
|
|
1118
|
-
return f && (f.error = p), this.emit("state", this.getState()), await this.waitForSubmissionDurability(r, s) ? { result: void 0 } : null;
|
|
1119
|
-
}) : null;
|
|
1120
1127
|
});
|
|
1121
1128
|
if (!l || s !== this.submissionGeneration) return null;
|
|
1122
1129
|
if (c = !0, this.submissionRetries.delete(r), l.result?.submissionAccepted) {
|
|
@@ -1129,14 +1136,14 @@ class xe {
|
|
|
1129
1136
|
if (!this.adapter.uploadAttachment)
|
|
1130
1137
|
throw new Error("The runtime does not support attachments.");
|
|
1131
1138
|
const u = [];
|
|
1132
|
-
for (const
|
|
1133
|
-
if (
|
|
1134
|
-
u.push(
|
|
1139
|
+
for (const p of a) {
|
|
1140
|
+
if (p.sandboxPath || p.storageKey) {
|
|
1141
|
+
u.push(p);
|
|
1135
1142
|
continue;
|
|
1136
1143
|
}
|
|
1137
|
-
const
|
|
1138
|
-
if (!
|
|
1139
|
-
if (u.push(await o.measure("attachment_transfer", () => this.adapter.uploadAttachment(
|
|
1144
|
+
const f = p.id ? this.attachmentFiles.get(p.id) : void 0;
|
|
1145
|
+
if (!f) throw new Error(`Attachment bytes are unavailable for ${p.name}`);
|
|
1146
|
+
if (u.push(await o.measure("attachment_transfer", () => this.adapter.uploadAttachment(f, p, { clientMessageId: r }))), s !== this.submissionGeneration) return null;
|
|
1140
1147
|
}
|
|
1141
1148
|
a = u;
|
|
1142
1149
|
}
|
|
@@ -1144,6 +1151,8 @@ class xe {
|
|
|
1144
1151
|
type: "conversation.send",
|
|
1145
1152
|
content: n,
|
|
1146
1153
|
clientMessageId: r,
|
|
1154
|
+
requestedModel: t.requestedModel,
|
|
1155
|
+
selectionKey: t.selectionKey,
|
|
1147
1156
|
initiatedBy: t.initiatedBy,
|
|
1148
1157
|
invocation: t.invocation,
|
|
1149
1158
|
automationOnboarding: t.automationOnboarding,
|
|
@@ -1156,18 +1165,18 @@ class xe {
|
|
|
1156
1165
|
} catch (l) {
|
|
1157
1166
|
if (s !== this.submissionGeneration) return null;
|
|
1158
1167
|
if (O(l))
|
|
1159
|
-
for (const
|
|
1160
|
-
|
|
1161
|
-
const
|
|
1162
|
-
!c && !O(l) && (d ||
|
|
1163
|
-
retry: async () => (d && await this.connect(), this.sendMessageNow(e, { ...t, reconcileAcceptance: !d && !
|
|
1164
|
-
attachmentIds: (t.attachments ?? []).flatMap((
|
|
1168
|
+
for (const h of t.attachments ?? [])
|
|
1169
|
+
h.id && this.attachmentFiles.delete(h.id);
|
|
1170
|
+
const p = y(l).code === "command_not_received";
|
|
1171
|
+
!c && !O(l) && (d || p || t.selectionKey !== void 0) && this.submissionRetries.set(r, {
|
|
1172
|
+
retry: async () => (d && await this.connect(), this.sendMessageNow(e, { ...t, reconcileAcceptance: !d && !p }, s)),
|
|
1173
|
+
attachmentIds: (t.attachments ?? []).flatMap((h) => h.id ? [h.id] : [])
|
|
1165
1174
|
});
|
|
1166
|
-
const
|
|
1167
|
-
throw
|
|
1175
|
+
const f = this.submissionPreviews.get(r);
|
|
1176
|
+
throw f && (f.pending = !1, f.error = y(l), this.emit("state", this.getState())), c && await this.adapter.dispatch({
|
|
1168
1177
|
type: "conversation.fail_staged",
|
|
1169
1178
|
clientMessageId: r,
|
|
1170
|
-
message:
|
|
1179
|
+
message: y(l).message
|
|
1171
1180
|
}), l;
|
|
1172
1181
|
} finally {
|
|
1173
1182
|
this.readinessPendingSubmissions.delete(r);
|
|
@@ -1177,8 +1186,7 @@ class xe {
|
|
|
1177
1186
|
return this.model;
|
|
1178
1187
|
}
|
|
1179
1188
|
setModel(e) {
|
|
1180
|
-
return this.
|
|
1181
|
-
});
|
|
1189
|
+
return this.model === e || (this.model = e, this.emit("state", this.getState())), Promise.resolve();
|
|
1182
1190
|
}
|
|
1183
1191
|
async retryLastMessage(e) {
|
|
1184
1192
|
const t = e ?? [...this.submissionPreviews].reverse().find(([, a]) => a.error)?.[0] ?? this.state.messages.filter((a) => a.role === "user").slice(-1)[0]?.id;
|
|
@@ -1190,7 +1198,7 @@ class xe {
|
|
|
1190
1198
|
return n && r ? (s && (s.pending = !0, s.error = void 0), this.submissionRetries.delete(t), this.pendingTransfers.set(t, n.attachmentIds), this.emit("state", this.getState()), await r()) : await this.dispatch({ type: "run.retry", clientMessageId: t }), !0;
|
|
1191
1199
|
} catch (a) {
|
|
1192
1200
|
if (!s && !r) throw a;
|
|
1193
|
-
return s && o === this.submissionGeneration && this.submissionPreviews.get(t) === s && (s.error =
|
|
1201
|
+
return s && o === this.submissionGeneration && this.submissionPreviews.get(t) === s && (s.error = y(a), this.emit("state", this.getState())), !1;
|
|
1194
1202
|
} finally {
|
|
1195
1203
|
r && this.pendingTransfers.delete(t), s && o === this.submissionGeneration && this.submissionPreviews.get(t) === s && (s.pending = !1, this.emit("state", this.getState()));
|
|
1196
1204
|
}
|
|
@@ -1213,7 +1221,7 @@ class xe {
|
|
|
1213
1221
|
...t,
|
|
1214
1222
|
e.activeResponseUserMessageId,
|
|
1215
1223
|
e.messages.filter((d) => d.role === "user").slice(-1)[0]?.id
|
|
1216
|
-
].filter((d) => !!d))], n =
|
|
1224
|
+
].filter((d) => !!d))], n = j((d) => this.reportOperationTiming(d), {
|
|
1217
1225
|
operation: "stop",
|
|
1218
1226
|
layer: "renderer",
|
|
1219
1227
|
requestId: crypto.randomUUID(),
|
|
@@ -1227,19 +1235,15 @@ class xe {
|
|
|
1227
1235
|
for (const d of s)
|
|
1228
1236
|
this.stopPreviews.set(d, t.includes(d) ? void 0 : o);
|
|
1229
1237
|
const a = this.submissionGeneration;
|
|
1230
|
-
r.promise = n.measure("stop_ipc", () => this.adapter.dispatch({ type: "run.stop", ...t.length ? { clientMessageIds: t } : {} })).then(() => {
|
|
1238
|
+
return r.promise = n.measure("stop_ipc", () => this.adapter.dispatch({ type: "run.stop", ...t.length ? { clientMessageIds: t } : {} })).then(() => {
|
|
1231
1239
|
}, (d) => {
|
|
1232
1240
|
if (!(a !== this.submissionGeneration || s.every((l) => !this.stopPreviews.has(l)))) {
|
|
1233
1241
|
for (const l of s) this.stopPreviews.delete(l);
|
|
1234
|
-
this.stopError =
|
|
1242
|
+
this.stopError = y(d).message;
|
|
1235
1243
|
}
|
|
1236
1244
|
}).finally(() => {
|
|
1237
1245
|
this.destroyed || a !== this.submissionGeneration || (this.pendingStop === r && (this.pendingStop = null), this.emit("state", this.getState()));
|
|
1238
|
-
}), this.emit("state", this.getState())
|
|
1239
|
-
const c = r.promise;
|
|
1240
|
-
return this.operationQueue = c.then(() => {
|
|
1241
|
-
}, () => {
|
|
1242
|
-
}), c.then(() => {
|
|
1246
|
+
}), this.emit("state", this.getState()), r.promise.then(() => {
|
|
1243
1247
|
});
|
|
1244
1248
|
}
|
|
1245
1249
|
async waitForSubmissionReadiness(e) {
|
|
@@ -1308,11 +1312,10 @@ class xe {
|
|
|
1308
1312
|
for (const n of s.message.attachments ?? [])
|
|
1309
1313
|
n.id && this.attachmentFiles.delete(n.id);
|
|
1310
1314
|
}
|
|
1311
|
-
return
|
|
1315
|
+
return t;
|
|
1312
1316
|
}
|
|
1313
1317
|
startNewSession(e = {}) {
|
|
1314
|
-
return this.cancelPendingSubmissions(), this.submissionPreviews.clear(), this.emit("state", this.getState()), e.notifyTransport === !1 ? Promise.resolve() : this.
|
|
1315
|
-
});
|
|
1318
|
+
return this.cancelPendingSubmissions(), this.submissionPreviews.clear(), this.model = this.initialModel, this.emit("state", this.getState()), e.notifyTransport === !1 ? Promise.resolve() : this.navigate({ type: "session.new" });
|
|
1316
1319
|
}
|
|
1317
1320
|
async listSessions(e = {}) {
|
|
1318
1321
|
const t = await this.dispatch({ type: "session.list", ...e });
|
|
@@ -1360,7 +1363,8 @@ class xe {
|
|
|
1360
1363
|
action: t,
|
|
1361
1364
|
expectedRevision: s,
|
|
1362
1365
|
...n,
|
|
1363
|
-
expectedSourceVersion: r
|
|
1366
|
+
expectedSourceVersion: r,
|
|
1367
|
+
...t === "run" ? { requestedModel: n.requestedModel ?? this.getModel() } : {}
|
|
1364
1368
|
}).then(() => {
|
|
1365
1369
|
});
|
|
1366
1370
|
}
|
|
@@ -1375,8 +1379,7 @@ class xe {
|
|
|
1375
1379
|
}
|
|
1376
1380
|
loadSession(e) {
|
|
1377
1381
|
return e === this.getState().sessionId ? this.adapter.dispatch({ type: "session.load", sessionId: e }).then(() => {
|
|
1378
|
-
}) : (this.cancelPendingSubmissions(), this.submissionPreviews.clear(), this.emit("state", this.getState()), this.
|
|
1379
|
-
}));
|
|
1382
|
+
}) : (this.cancelPendingSubmissions(), this.submissionPreviews.clear(), this.emit("state", this.getState()), this.navigate({ type: "session.load", sessionId: e }));
|
|
1380
1383
|
}
|
|
1381
1384
|
stageProactiveSuggestionQuestion(e) {
|
|
1382
1385
|
const t = e.trim();
|
|
@@ -1390,16 +1393,16 @@ class xe {
|
|
|
1390
1393
|
});
|
|
1391
1394
|
}
|
|
1392
1395
|
dispatch(e) {
|
|
1393
|
-
return
|
|
1394
|
-
}
|
|
1395
|
-
|
|
1396
|
-
const t = this.
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1396
|
+
return this.adapter.dispatch(e);
|
|
1397
|
+
}
|
|
1398
|
+
async navigate(e) {
|
|
1399
|
+
const t = ++this.navigationRevision;
|
|
1400
|
+
this.pendingNavigation = !0, this.model = this.initialModel, this.emit("state", this.getState());
|
|
1401
|
+
try {
|
|
1402
|
+
await this.dispatch(e);
|
|
1403
|
+
} finally {
|
|
1404
|
+
t === this.navigationRevision && (this.pendingNavigation = !1, this.emit("state", this.getState()));
|
|
1405
|
+
}
|
|
1403
1406
|
}
|
|
1404
1407
|
emit(e, t) {
|
|
1405
1408
|
const s = this.listeners[e];
|
|
@@ -1418,7 +1421,7 @@ function Ie(i, e) {
|
|
|
1418
1421
|
return n ? { ...s, previewUrl: n } : s;
|
|
1419
1422
|
});
|
|
1420
1423
|
}
|
|
1421
|
-
function
|
|
1424
|
+
function E(i) {
|
|
1422
1425
|
return {
|
|
1423
1426
|
...i,
|
|
1424
1427
|
starterPrompts: [...i.starterPrompts],
|
|
@@ -1453,13 +1456,13 @@ function z(i) {
|
|
|
1453
1456
|
}
|
|
1454
1457
|
export {
|
|
1455
1458
|
W as PRODUCT_AGENT_AUTH_RECONNECTING_ERROR_MESSAGE,
|
|
1456
|
-
|
|
1459
|
+
Re as ProductAgentInteractionManager,
|
|
1457
1460
|
q as ProductAgentQueryController,
|
|
1458
1461
|
xe as ProductAgentRemoteRuntimeClient,
|
|
1459
1462
|
Te as ProductAgentSessionHistoryManager,
|
|
1460
1463
|
qe as ProductAgentTaskPageTitleController,
|
|
1461
|
-
|
|
1462
|
-
|
|
1464
|
+
Ee as canSubmitPersonalProductAgentMessage,
|
|
1465
|
+
ke as createLocalStorageInteractionDecisionStorage,
|
|
1463
1466
|
_ as createProductAgentQueryState,
|
|
1464
1467
|
Oe as createProductAgentTaskPageTitleDocument,
|
|
1465
1468
|
ne as formatProductAgentTaskPageTitle,
|
|
@@ -1470,8 +1473,8 @@ export {
|
|
|
1470
1473
|
I as normalizeProductAgentEntityPage,
|
|
1471
1474
|
te as readLocalStorageInteractionDecisions,
|
|
1472
1475
|
Se as reconcileProductAgentSubmissionGate,
|
|
1473
|
-
|
|
1474
|
-
|
|
1476
|
+
Me as resolveProductAgentBillingPresentation,
|
|
1477
|
+
Pe as resolveProductAgentComposerAction,
|
|
1475
1478
|
we as resolveProductAgentWidgetPresentation,
|
|
1476
1479
|
J as selectProductAgentQueryEntities
|
|
1477
1480
|
};
|