@gengage/assistant-fe 0.6.16 → 0.6.18
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/{request-text-DThlE-Xd.js → account-config-gj7_mF6Q.js} +725 -312
- package/dist/agentic/events/comparison.d.ts +6 -0
- package/dist/agentic/events/context-products.d.ts +6 -0
- package/dist/agentic/index.d.ts +8 -0
- package/dist/agentic/index.js +251 -168
- package/dist/agentic/recipes/catalog-assistant-flow.d.ts +50 -0
- package/dist/agentic/recipes/input-text/actions.d.ts +15 -0
- package/dist/agentic/recipes/input-text/index.d.ts +4 -0
- package/dist/agentic/recipes/input-text/products.d.ts +4 -0
- package/dist/agentic/recipes/input-text/ranking.d.ts +14 -0
- package/dist/agentic/recipes/input-text/steps.d.ts +31 -0
- package/dist/agentic/util/account-config.d.ts +8 -0
- package/dist/agentic/util/privacy.d.ts +12 -0
- package/dist/agentic/widgets/endpoints.d.ts +12 -0
- package/dist/agentic/worker.d.ts +8 -0
- package/dist/agentic/worker.js +415 -106
- package/dist/agentic.iife.js +7 -5
- package/dist/{api-paths-C7Y4wTde.js → api-paths-CEDR4rld.js} +1 -1
- package/dist/chat/components/InlineLauncher.d.ts +15 -0
- package/dist/chat/index.d.ts +1 -1
- package/dist/chat-runtime.js +1 -1
- package/dist/{chat-BP-yXukW.js → chat-rvSffJXw.js} +1 -1
- package/dist/chat.iife.js +15 -12
- package/dist/chat.js +2 -2
- package/dist/{common-BR9JIIjb.js → common-BBgWfT-W.js} +3 -3
- package/dist/common.js +8 -8
- package/dist/{connection-warning-DyeP1AB2.js → connection-warning-B-doodzu.js} +1 -1
- package/dist/{fastIntent-C8jh7D1D.js → fastIntent-CloHPZQh.js} +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +13 -13
- package/dist/{native-webview-U9HtGabb.js → native-webview-NWc9LrJh.js} +1 -1
- package/dist/native.iife.js +13 -10
- package/dist/native.js +1 -1
- package/dist/{overlay-ClYgI2Kl.js → overlay-COzFFq0-.js} +1 -1
- package/dist/overlay.js +2 -2
- package/dist/{qna-B3lMzHvS.js → qna-DUs97irI.js} +1 -1
- package/dist/qna-runtime.js +1 -1
- package/dist/qna.iife.js +1 -1
- package/dist/qna.js +2 -2
- package/dist/{runtime-LY1J9JFl.js → runtime-BGCNkU1H.js} +6 -6
- package/dist/{runtime-Bt2VV3L3.js → runtime-CbWCU424.js} +1082 -1042
- package/dist/{runtime-rjNaPWIi.js → runtime-Ctqq0V6G.js} +8 -8
- package/dist/{simbut-DV4oPMpH.js → simbut-Dh4cJysK.js} +3 -3
- package/dist/simbut.iife.js +1 -1
- package/dist/simbut.js +1 -1
- package/dist/{simrel-DaAhtabq.js → simrel-B-sjHbL5.js} +4 -4
- package/dist/simrel-runtime.js +1 -1
- package/dist/simrel.iife.js +2 -2
- package/dist/simrel.js +2 -2
- package/dist/{widget-base-DRaUfd-H.js → widget-base-CIJT5AiP.js} +2 -2
- package/package.json +1 -1
- /package/dist/{context-BBuSsXZ9.js → context-heG8hv5l.js} +0 -0
- /package/dist/{locale-CfqNifrU.js → locale-uQ5XZ2yS.js} +0 -0
- /package/dist/{price-formatter-CFsWT0lP.js → price-formatter-CHUmYq8I.js} +0 -0
- /package/dist/{request-response-cache-zsgz3Awp.js → request-response-cache-BxRsKGJ0.js} +0 -0
- /package/dist/{schemas-Cq2blsO_.js → schemas-BnYUhYSy.js} +0 -0
package/dist/agentic/worker.js
CHANGED
|
@@ -1,134 +1,443 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { $ as g, A as it, B as st, C as dt, Ct as lt, D as pt, E as mt, Et as kt, F as yt, G as J, H as M, I as ft, J as Pt, K as Q, L as ht, M as St, N as bt, O as Tt, P as gt, Q as w, R as wt, S as Ct, St as At, T as vt, Tt as Ut, U as q, V as Ft, W as j, X as xt, Y as Lt, Z as C, _ as It, _t as G, a as Bt, at as H, b as Et, bt as Rt, c as _t, ct as Kt, d as Nt, dt as Ot, et as zt, f as Dt, ft as p, g as Jt, gt as Mt, h as Qt, ht as qt, i as jt, it as Gt, j as Ht, k as Vt, l as Wt, lt as V, m as $t, mt as W, n as A, nt as Xt, o as Yt, ot as $, p as Zt, pt as f, q as te, r as ee, rt as re, s as v, st as ae, t as ce, tt as X, u as oe, ut as ne, v as ue, vt as ie, w as se, wt as Y, x as de, xt as Z, y as le, yt as tt, z as pe } from "../account-config-gj7_mF6Q.js";
|
|
2
|
+
var U = 3600 * 24 * 14, et = 12;
|
|
3
|
+
function me(t) {
|
|
4
|
+
const e = M([
|
|
5
|
+
{
|
|
6
|
+
kind: "tool",
|
|
7
|
+
name: t.readPageToolName || "readPage",
|
|
8
|
+
input: () => ({}),
|
|
9
|
+
out: "page"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
kind: "branch",
|
|
13
|
+
on: ({ request: r }) => rt(r, t.routePatterns),
|
|
14
|
+
cases: {
|
|
15
|
+
addToCart: ot(t),
|
|
16
|
+
compare: ct(t),
|
|
17
|
+
similar: L(t, t.copy.similarGoal, !0),
|
|
18
|
+
search: L(t, t.copy.searchGoal, !1),
|
|
19
|
+
review: b(t.copy.reviewUnavailable),
|
|
20
|
+
like: b(t.copy.likeAcknowledged),
|
|
21
|
+
home: b(t.copy.homeIntro),
|
|
22
|
+
product: at(t)
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{ kind: "commit" }
|
|
26
|
+
]);
|
|
27
|
+
return {
|
|
28
|
+
flow: e,
|
|
29
|
+
flows: {
|
|
30
|
+
inputText: e,
|
|
31
|
+
user_message: e,
|
|
32
|
+
findSimilar: e,
|
|
33
|
+
addToCart: e,
|
|
34
|
+
compare: e,
|
|
35
|
+
getComparisonTable: e,
|
|
36
|
+
launchProductDetails: e,
|
|
37
|
+
launchSingleProduct: e,
|
|
38
|
+
launchProductList: e,
|
|
39
|
+
launchPLP: e,
|
|
40
|
+
initPLP: e,
|
|
41
|
+
"init-plp": e,
|
|
42
|
+
launchHomepage: e,
|
|
43
|
+
launchOther: e,
|
|
44
|
+
recommendProducts: e,
|
|
45
|
+
reviewSummary: e,
|
|
46
|
+
like: e
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function rt(t, e = {}) {
|
|
51
|
+
const r = t?.type || t?.action?.type;
|
|
52
|
+
if (r === "addToCart") return "addToCart";
|
|
53
|
+
if (r === "compare" || r === "getComparisonTable") return "compare";
|
|
54
|
+
if (r === "findSimilar") return "similar";
|
|
55
|
+
if (r === "launchHomepage" || r === "launchOther") return "home";
|
|
56
|
+
if (r === "reviewSummary") return "review";
|
|
57
|
+
if (r === "like") return "like";
|
|
58
|
+
if (r === "launchProductList" || r === "launchPLP" || r === "initPLP" || r === "init-plp") return "search";
|
|
59
|
+
const c = v(t).toLowerCase();
|
|
60
|
+
return e.addToCart?.test(c) ? "addToCart" : e.compare?.test(c) ? "compare" : e.similar?.test(c) ? "similar" : e.search?.test(c) ? "search" : "product";
|
|
61
|
+
}
|
|
62
|
+
function at(t) {
|
|
63
|
+
const e = t.cacheTtlS ?? U;
|
|
64
|
+
return [
|
|
65
|
+
{
|
|
66
|
+
kind: "be_op",
|
|
67
|
+
op: t.productAnswerOpName || "product-answer",
|
|
68
|
+
input: ({ request: r, bag: c, context: u, accountConfig: a }) => {
|
|
69
|
+
const o = m(t, c.page);
|
|
70
|
+
return A({
|
|
71
|
+
utterance: T(t, r) || t.copy.productQuestion,
|
|
72
|
+
products: o ? [B(t, o)] : [],
|
|
73
|
+
locale: u.meta.locale
|
|
74
|
+
}, a, "product-answer");
|
|
75
|
+
},
|
|
76
|
+
cacheTtlS: e,
|
|
77
|
+
cacheKey: ({ request: r, bag: c, context: u }) => {
|
|
78
|
+
const a = m(t, c.page), o = a ? [a] : [];
|
|
79
|
+
return C(t.productAnswerOpName || "product-answer", {
|
|
80
|
+
account: t.accountId,
|
|
81
|
+
utterance: X(T(t, r), u.meta.locale),
|
|
82
|
+
skus: g(o),
|
|
83
|
+
products: w(o)
|
|
84
|
+
});
|
|
85
|
+
},
|
|
86
|
+
out: "answer",
|
|
87
|
+
onError: [{
|
|
88
|
+
kind: "emit",
|
|
89
|
+
build: ({ bag: r }) => I(m(t, r.page))
|
|
90
|
+
}, {
|
|
91
|
+
kind: "emit",
|
|
92
|
+
build: ({ bag: r }) => p(t.copy.productFallback(m(t, r.page)), !0)
|
|
93
|
+
}]
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
kind: "emit",
|
|
97
|
+
build: ({ bag: r }) => I(m(t, r.page))
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
kind: "emit",
|
|
101
|
+
build: ({ bag: r }) => p(nt(r.answer, t.copy.productFallback(m(t, r.page))), !0)
|
|
102
|
+
}
|
|
103
|
+
];
|
|
104
|
+
}
|
|
105
|
+
function L(t, e, r) {
|
|
106
|
+
const c = t.cacheTtlS ?? U, u = t.limit ?? et;
|
|
107
|
+
return [
|
|
108
|
+
{
|
|
109
|
+
kind: "tool",
|
|
110
|
+
name: r ? t.similarityToolName || "similaritySearch" : t.searchToolName || "search",
|
|
111
|
+
input: ({ request: a }) => {
|
|
112
|
+
const o = i(a?.payload);
|
|
113
|
+
return {
|
|
114
|
+
query: v(a) || k(o?.query),
|
|
115
|
+
product: o?.product,
|
|
116
|
+
sku: o?.sku,
|
|
117
|
+
limit: o?.limit || u
|
|
118
|
+
};
|
|
119
|
+
},
|
|
120
|
+
out: "products"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
kind: "be_op",
|
|
124
|
+
op: t.topPicksOpName || "top-picks",
|
|
125
|
+
input: ({ bag: a, accountConfig: o }) => A({
|
|
126
|
+
candidates: E(t, l(a.products).slice(0, u)),
|
|
127
|
+
mode: "group",
|
|
128
|
+
goal: e
|
|
129
|
+
}, o, "top-picks"),
|
|
130
|
+
cacheTtlS: c,
|
|
131
|
+
cacheKey: ({ bag: a }) => {
|
|
132
|
+
const o = l(a.products);
|
|
133
|
+
return C(t.topPicksOpName || "top-picks", {
|
|
134
|
+
account: t.accountId,
|
|
135
|
+
goal: e,
|
|
136
|
+
skus: g(o),
|
|
137
|
+
products: w(o)
|
|
138
|
+
});
|
|
139
|
+
},
|
|
140
|
+
out: "picks",
|
|
141
|
+
onError: []
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
kind: "emit",
|
|
145
|
+
build: ({ bag: a }) => f(Q(l(a.products)))
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
kind: "emit",
|
|
149
|
+
build: ({ bag: a }) => p(t.copy.searchResult(l(a.products), e), !0)
|
|
150
|
+
}
|
|
151
|
+
];
|
|
152
|
+
}
|
|
153
|
+
function ct(t) {
|
|
154
|
+
const e = t.cacheTtlS ?? U;
|
|
155
|
+
return [
|
|
156
|
+
{
|
|
157
|
+
kind: "tool",
|
|
158
|
+
name: t.resolveProductsToolName || "resolveProducts",
|
|
159
|
+
input: ({ request: r, context: c }) => {
|
|
160
|
+
const u = i(r?.payload);
|
|
161
|
+
return {
|
|
162
|
+
products: u?.products,
|
|
163
|
+
skus: u?.skus || c.panel?.screen_sku_list
|
|
164
|
+
};
|
|
165
|
+
},
|
|
166
|
+
out: "products"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
kind: "be_op",
|
|
170
|
+
op: t.compareOpName || "compare",
|
|
171
|
+
input: ({ bag: r, request: c, accountConfig: u }) => A({
|
|
172
|
+
utterance: T(t, c) || t.copy.compareQuestion,
|
|
173
|
+
products: E(t, l(r.products))
|
|
174
|
+
}, u, "compare"),
|
|
175
|
+
cacheTtlS: e,
|
|
176
|
+
cacheKey: ({ bag: r }) => {
|
|
177
|
+
const c = l(r.products);
|
|
178
|
+
return C(t.compareOpName || "compare", {
|
|
179
|
+
account: t.accountId,
|
|
180
|
+
skus: g(c),
|
|
181
|
+
products: w(c)
|
|
182
|
+
});
|
|
183
|
+
},
|
|
184
|
+
out: "comparison",
|
|
185
|
+
onError: [{
|
|
186
|
+
kind: "emit",
|
|
187
|
+
build: ({ bag: r }) => p(t.copy.comparisonFallback(l(r.products)), !0)
|
|
188
|
+
}]
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
kind: "emit",
|
|
192
|
+
build: ({ bag: r }) => f(j({
|
|
193
|
+
...i(r.comparison) || {},
|
|
194
|
+
products: l(r.products)
|
|
195
|
+
}))
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
kind: "emit",
|
|
199
|
+
build: (r) => p(k(i(r.bag.comparison)?.summary) || y(t.copy.comparisonReady, r), !0)
|
|
200
|
+
}
|
|
201
|
+
];
|
|
202
|
+
}
|
|
203
|
+
function ot(t) {
|
|
204
|
+
return [
|
|
205
|
+
{
|
|
206
|
+
kind: "tool",
|
|
207
|
+
name: t.addToCartToolName || "addToCart",
|
|
208
|
+
input: ({ request: e, bag: r }) => {
|
|
209
|
+
const c = i(e?.payload) || i(e?.action?.payload) || {};
|
|
210
|
+
return {
|
|
211
|
+
...c,
|
|
212
|
+
sku: c.sku || i(m(t, r.page))?.sku
|
|
213
|
+
};
|
|
214
|
+
},
|
|
215
|
+
out: "cart"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
kind: "emit",
|
|
219
|
+
build: (e) => p(i(e.bag.cart)?.ok === !1 ? y(t.copy.cartFailure, e) : y(t.copy.cartSuccess, e), !0)
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
kind: "emit",
|
|
223
|
+
build: ({ bag: e }) => f(q([{
|
|
224
|
+
label: t.copy.cartActionLabel,
|
|
225
|
+
requestDetails: {
|
|
226
|
+
type: "navigate",
|
|
227
|
+
payload: { url: k(i(e.cart)?.cartUrl) || t.homeUrl }
|
|
228
|
+
}
|
|
229
|
+
}]))
|
|
230
|
+
}
|
|
231
|
+
];
|
|
232
|
+
}
|
|
233
|
+
function b(t) {
|
|
234
|
+
return [{
|
|
235
|
+
kind: "emit",
|
|
236
|
+
build: (e) => p(y(t, e), !0)
|
|
237
|
+
}];
|
|
238
|
+
}
|
|
239
|
+
function I(t) {
|
|
240
|
+
return t ? f(J(t)) : p("", !1);
|
|
241
|
+
}
|
|
242
|
+
function T(t, e) {
|
|
243
|
+
return t.anonymousRequestText ? t.anonymousRequestText(e) : v(e);
|
|
244
|
+
}
|
|
245
|
+
function m(t, e) {
|
|
246
|
+
return t.productFromPage ? t.productFromPage(e) : i(e)?.product;
|
|
247
|
+
}
|
|
248
|
+
function B(t, e) {
|
|
249
|
+
return t.trimProductFacts ? t.trimProductFacts(e) : e;
|
|
250
|
+
}
|
|
251
|
+
function E(t, e) {
|
|
252
|
+
return t.trimProductFactsList ? t.trimProductFactsList(e) : e.map((r) => B(t, r));
|
|
253
|
+
}
|
|
254
|
+
function l(t) {
|
|
255
|
+
if (Array.isArray(t)) return t;
|
|
256
|
+
const e = i(t);
|
|
257
|
+
return Array.isArray(e?.products) ? e.products : [];
|
|
258
|
+
}
|
|
259
|
+
function nt(t, e) {
|
|
260
|
+
const r = i(t);
|
|
261
|
+
return k(r?.answer_html) || k(r?.plain_text) || e;
|
|
262
|
+
}
|
|
263
|
+
function y(t, e) {
|
|
264
|
+
return typeof t == "function" ? t(e) : t;
|
|
265
|
+
}
|
|
266
|
+
function k(t) {
|
|
267
|
+
return typeof t == "string" ? t : "";
|
|
268
|
+
}
|
|
269
|
+
function i(t) {
|
|
270
|
+
return t && typeof t == "object" ? t : void 0;
|
|
271
|
+
}
|
|
272
|
+
function ke(t) {
|
|
273
|
+
const e = self, r = /* @__PURE__ */ new Map(), c = Y(e), u = H(c);
|
|
274
|
+
let a = null, o = null, P = null, F = "";
|
|
275
|
+
e.addEventListener("message", (n) => {
|
|
276
|
+
const s = n.data;
|
|
277
|
+
if (s) {
|
|
278
|
+
if (s.type === "abort") {
|
|
279
|
+
typeof s.id == "number" && (r.get(s.id)?.abort(), r.delete(s.id));
|
|
10
280
|
return;
|
|
11
281
|
}
|
|
12
|
-
|
|
282
|
+
s.type === "invoke" && R(s);
|
|
13
283
|
}
|
|
14
284
|
});
|
|
15
|
-
async function
|
|
16
|
-
|
|
17
|
-
accountId: String(
|
|
18
|
-
beUrl:
|
|
19
|
-
...
|
|
20
|
-
...
|
|
21
|
-
...
|
|
22
|
-
locale:
|
|
23
|
-
parentUrl:
|
|
285
|
+
async function R(n) {
|
|
286
|
+
a = {
|
|
287
|
+
accountId: String(n.accountId || t.accountId || ""),
|
|
288
|
+
beUrl: n.beUrl || "",
|
|
289
|
+
...n.devJwtSecret ? { devJwtSecret: n.devJwtSecret } : {},
|
|
290
|
+
...n.tokenBrokerUrl ? { tokenBrokerUrl: n.tokenBrokerUrl } : {},
|
|
291
|
+
...n.tokenBrokerAudience ? { tokenBrokerAudience: n.tokenBrokerAudience } : {},
|
|
292
|
+
locale: n.defaultLocale || t.defaultLocale || "en-GB",
|
|
293
|
+
parentUrl: n.parentUrl || ""
|
|
24
294
|
};
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
295
|
+
const s = [
|
|
296
|
+
a.accountId,
|
|
297
|
+
a.devJwtSecret || "",
|
|
298
|
+
a.tokenBrokerUrl || "",
|
|
299
|
+
a.tokenBrokerAudience || ""
|
|
30
300
|
].join(`
|
|
31
301
|
`);
|
|
32
|
-
(!
|
|
33
|
-
accountId:
|
|
34
|
-
locale:
|
|
35
|
-
parentUrl:
|
|
302
|
+
(!P || F !== s) && (P = tt(a), F = s), o ||= new Z({
|
|
303
|
+
accountId: a.accountId,
|
|
304
|
+
locale: a.locale,
|
|
305
|
+
parentUrl: a.parentUrl,
|
|
36
306
|
rpc: c,
|
|
37
|
-
persistentPanelKeys:
|
|
307
|
+
persistentPanelKeys: t.contextPersistence?.panelKeys
|
|
38
308
|
});
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
id:
|
|
309
|
+
const h = new AbortController();
|
|
310
|
+
r.set(n.id, h);
|
|
311
|
+
const S = (d) => {
|
|
312
|
+
e.postMessage({
|
|
313
|
+
id: n.id,
|
|
44
314
|
type: "event",
|
|
45
|
-
event:
|
|
315
|
+
event: d
|
|
46
316
|
});
|
|
47
317
|
};
|
|
48
318
|
try {
|
|
49
|
-
const
|
|
50
|
-
await
|
|
51
|
-
request:
|
|
319
|
+
const d = a, _ = P;
|
|
320
|
+
await $({
|
|
321
|
+
request: n.request || {},
|
|
52
322
|
accountModule: {
|
|
53
|
-
...
|
|
54
|
-
accountId:
|
|
323
|
+
...t,
|
|
324
|
+
accountId: d.accountId
|
|
55
325
|
},
|
|
56
|
-
contextStore:
|
|
57
|
-
beClient: { invoke({ op:
|
|
58
|
-
return
|
|
59
|
-
beUrl:
|
|
60
|
-
accountId:
|
|
61
|
-
jwtProvider:
|
|
62
|
-
parentUrl:
|
|
63
|
-
op:
|
|
64
|
-
input:
|
|
65
|
-
cacheTtlS:
|
|
66
|
-
cacheKey:
|
|
67
|
-
browserCache:
|
|
68
|
-
...
|
|
326
|
+
contextStore: o,
|
|
327
|
+
beClient: { invoke({ op: K, input: N, signal: x, cacheTtlS: O, cacheKey: z, browserCache: D }) {
|
|
328
|
+
return W({
|
|
329
|
+
beUrl: d.beUrl,
|
|
330
|
+
accountId: d.accountId,
|
|
331
|
+
jwtProvider: _,
|
|
332
|
+
parentUrl: d.parentUrl,
|
|
333
|
+
op: K,
|
|
334
|
+
input: N,
|
|
335
|
+
cacheTtlS: O,
|
|
336
|
+
cacheKey: z,
|
|
337
|
+
browserCache: D,
|
|
338
|
+
...x ? { signal: x } : {}
|
|
69
339
|
});
|
|
70
340
|
} },
|
|
71
|
-
toolBridge:
|
|
72
|
-
emit:
|
|
341
|
+
toolBridge: u,
|
|
342
|
+
emit: S,
|
|
73
343
|
rpc: c,
|
|
74
|
-
signal:
|
|
75
|
-
}),
|
|
76
|
-
id:
|
|
344
|
+
signal: h.signal
|
|
345
|
+
}), e.postMessage({
|
|
346
|
+
id: n.id,
|
|
77
347
|
type: "end"
|
|
78
348
|
});
|
|
79
|
-
} catch (
|
|
80
|
-
|
|
81
|
-
id:
|
|
349
|
+
} catch (d) {
|
|
350
|
+
h.signal.aborted || (S(G(d)), S(V()), e.postMessage({
|
|
351
|
+
id: n.id,
|
|
82
352
|
type: "end"
|
|
83
353
|
}));
|
|
84
354
|
} finally {
|
|
85
|
-
|
|
355
|
+
r.delete(n.id);
|
|
86
356
|
}
|
|
87
357
|
}
|
|
88
358
|
}
|
|
89
359
|
export {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
360
|
+
qt as AgentError,
|
|
361
|
+
Z as ContextStore,
|
|
362
|
+
Kt as action,
|
|
363
|
+
q as actionButtonsUiSpec,
|
|
364
|
+
ue as actionCandidatePayload,
|
|
365
|
+
te as alignProductsToTable,
|
|
366
|
+
ee as anonymousRequestText,
|
|
367
|
+
Mt as beErrorToAgentError,
|
|
368
|
+
yt as buildPhotoSimilarityProfile,
|
|
369
|
+
ft as buildProductSimilarityProfile,
|
|
370
|
+
ht as buildSimilarityQueries,
|
|
371
|
+
G as caughtToStreamError,
|
|
372
|
+
ce as compactAccountConfig,
|
|
373
|
+
xt as compactContextProducts,
|
|
374
|
+
_t as compareCachedResultSteps,
|
|
375
|
+
Wt as compareResultSteps,
|
|
376
|
+
oe as compareSearchSteps,
|
|
377
|
+
Nt as compareSteps,
|
|
378
|
+
Pt as comparisonResultForUi,
|
|
379
|
+
j as comparisonUiSpec,
|
|
380
|
+
me as createCatalogAssistantFlow,
|
|
381
|
+
M as createFlow,
|
|
382
|
+
tt as createJwtProvider,
|
|
383
|
+
H as createToolBridge,
|
|
384
|
+
Y as createWorkerRpc,
|
|
385
|
+
jt as defaultPiiPatternPack,
|
|
386
|
+
Bt as defaultPiiPatterns,
|
|
387
|
+
V as done,
|
|
388
|
+
At as elapsedMs,
|
|
389
|
+
ne as error,
|
|
390
|
+
Ut as handleMainRpc,
|
|
391
|
+
pt as hasProductImage,
|
|
392
|
+
Tt as hasUsablePrice,
|
|
393
|
+
Vt as hasVisibleShoppingFacts,
|
|
394
|
+
ie as httpErrorToAgentError,
|
|
395
|
+
Dt as intentQuestionSteps,
|
|
396
|
+
W as invokeBeOp,
|
|
397
|
+
C as llmCacheKey,
|
|
398
|
+
Ot as metadata,
|
|
399
|
+
Rt as mintDevJwt,
|
|
400
|
+
le as normalizeActionLabel,
|
|
401
|
+
Lt as normalizeComparisonTable,
|
|
402
|
+
Xt as normalizeProduct,
|
|
403
|
+
it as normalizeQueryText,
|
|
404
|
+
wt as normalizeSimilarityText,
|
|
405
|
+
Et as normalizeSuggestedActions,
|
|
406
|
+
lt as nowIso,
|
|
407
|
+
dt as panelProductScore,
|
|
408
|
+
Zt as panelQuestionSteps,
|
|
409
|
+
se as prioritizePanelProducts,
|
|
410
|
+
de as productActions,
|
|
411
|
+
J as productDetailsUiSpec,
|
|
412
|
+
w as productFactsKey,
|
|
413
|
+
Ct as productPanelActions,
|
|
414
|
+
$t as productQuestionSteps,
|
|
415
|
+
Ht as productRankScore,
|
|
416
|
+
St as productSearchText,
|
|
417
|
+
g as productSkuKey,
|
|
418
|
+
vt as productsMatchingParams,
|
|
419
|
+
Q as productsUiSpec,
|
|
420
|
+
pe as rankSimilarProducts,
|
|
421
|
+
bt as rankedSearchProducts,
|
|
422
|
+
gt as rankingTokens,
|
|
423
|
+
Yt as redactPii,
|
|
424
|
+
v as requestText,
|
|
425
|
+
ae as resolveFlow,
|
|
426
|
+
rt as routeCatalogAssistantRequest,
|
|
427
|
+
kt as runMainRpc,
|
|
428
|
+
$ as runTurn,
|
|
429
|
+
st as scoreSimilarityCandidate,
|
|
430
|
+
Qt as searchResultSteps,
|
|
431
|
+
Jt as searchSteps,
|
|
432
|
+
zt as stableKey,
|
|
433
|
+
ke as startWorker,
|
|
434
|
+
It as suggestedActionSteps,
|
|
435
|
+
p as textChunk,
|
|
436
|
+
X as textKey,
|
|
437
|
+
Ft as tokenizeSimilarityText,
|
|
438
|
+
re as trimProductFactsCore,
|
|
439
|
+
Gt as trimProductFactsListCore,
|
|
440
|
+
f as uiSpec,
|
|
441
|
+
mt as uniqueProducts,
|
|
442
|
+
A as withAccountConfig
|
|
134
443
|
};
|