@gengage/assistant-fe 0.6.18 → 0.6.21

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.
Files changed (49) hide show
  1. package/dist/account-config-D_EMuR0g.js +1479 -0
  2. package/dist/agentic/context/context-store.d.ts +2 -1
  3. package/dist/agentic/index.d.ts +0 -1
  4. package/dist/agentic/index.js +155 -181
  5. package/dist/agentic/types.d.ts +6 -1
  6. package/dist/agentic/worker.d.ts +0 -2
  7. package/dist/agentic/worker.js +117 -415
  8. package/dist/agentic.iife.js +6 -6
  9. package/dist/{api-paths-CEDR4rld.js → api-paths-DcKsQqb6.js} +1 -1
  10. package/dist/chat/components/InlineLauncher.d.ts +1 -1
  11. package/dist/chat/history-storage.d.ts +1 -0
  12. package/dist/chat/runtime.d.ts +1 -1
  13. package/dist/chat/types.d.ts +1 -0
  14. package/dist/chat-runtime.js +1 -1
  15. package/dist/chat.iife.js +10 -10
  16. package/dist/chat.js +1 -1
  17. package/dist/{common-BBgWfT-W.js → common-MpBmMLVk.js} +2 -2
  18. package/dist/common.js +8 -8
  19. package/dist/{connection-warning-B-doodzu.js → connection-warning-ClrMLgmZ.js} +1 -1
  20. package/dist/{context-heG8hv5l.js → context-UTzCGyR9.js} +19 -8
  21. package/dist/{fastIntent-CloHPZQh.js → fastIntent-Bl4xN0qL.js} +2 -2
  22. package/dist/index.js +13 -13
  23. package/dist/{native-webview-NWc9LrJh.js → native-webview-BcwGKkDe.js} +1 -1
  24. package/dist/native.iife.js +6 -6
  25. package/dist/native.js +1 -1
  26. package/dist/{overlay-COzFFq0-.js → overlay-cF2SjxYU.js} +1 -1
  27. package/dist/overlay.js +2 -2
  28. package/dist/qna-runtime.js +1 -1
  29. package/dist/qna.iife.js +1 -1
  30. package/dist/qna.js +1 -1
  31. package/dist/{runtime-BGCNkU1H.js → runtime-BlU1rKqc.js} +4 -4
  32. package/dist/{runtime-Ctqq0V6G.js → runtime-CS4mg3ra.js} +4 -4
  33. package/dist/{runtime-CbWCU424.js → runtime-_koZbJK_.js} +51 -48
  34. package/dist/{simbut-Dh4cJysK.js → simbut-BtL7zYIJ.js} +2 -2
  35. package/dist/simbut.iife.js +1 -1
  36. package/dist/simbut.js +1 -1
  37. package/dist/{simrel-B-sjHbL5.js → simrel-ekf3kUb_.js} +2 -2
  38. package/dist/simrel-runtime.js +1 -1
  39. package/dist/simrel.iife.js +2 -2
  40. package/dist/simrel.js +2 -2
  41. package/dist/{widget-base-CIJT5AiP.js → widget-base-p1EKDuiI.js} +2 -2
  42. package/package.json +4 -2
  43. package/dist/account-config-gj7_mF6Q.js +0 -1731
  44. package/dist/agentic/recipes/catalog-assistant-flow.d.ts +0 -50
  45. package/dist/agentic/recipes/input-text/actions.d.ts +0 -15
  46. package/dist/agentic/recipes/input-text/index.d.ts +0 -4
  47. package/dist/agentic/recipes/input-text/products.d.ts +0 -4
  48. package/dist/agentic/recipes/input-text/ranking.d.ts +0 -14
  49. package/dist/agentic/recipes/input-text/steps.d.ts +0 -31
@@ -81,6 +81,10 @@ export interface EmitStep {
81
81
  kind: 'emit';
82
82
  build: (ctx: FlowStepCtx) => StreamEvent;
83
83
  }
84
+ export interface PatchStep {
85
+ kind: 'patch';
86
+ patch: FlowPatch;
87
+ }
84
88
  export interface BranchStep {
85
89
  kind: 'branch';
86
90
  on: FlowValue<string | undefined>;
@@ -102,7 +106,7 @@ export interface RefusalStep {
102
106
  export interface CommitStep {
103
107
  kind: 'commit';
104
108
  }
105
- export type FlowStep = BeOpStep | ToolStep | AdapterStep | EmitStep | BranchStep | ParallelStep | RefusalStep | CommitStep;
109
+ export type FlowStep = BeOpStep | ToolStep | AdapterStep | EmitStep | PatchStep | BranchStep | ParallelStep | RefusalStep | CommitStep;
106
110
  export type Flow = readonly FlowStep[];
107
111
  export type ToolFn = (input: unknown) => unknown | Promise<unknown>;
108
112
  export type ToolMap = Record<string, ToolFn>;
@@ -115,6 +119,7 @@ export interface AccountModule {
115
119
  accountConfig?: Record<string, unknown>;
116
120
  contextPersistence?: {
117
121
  panelKeys?: readonly string[];
122
+ panelKeyLimits?: Record<string, number>;
118
123
  };
119
124
  }
120
125
  export interface AgentOpBeacon {
@@ -7,8 +7,6 @@ export { alignProductsToTable, comparisonResultForUi, normalizeComparisonTable }
7
7
  export { actionButtonsUiSpec, comparisonUiSpec, productDetailsUiSpec, productsUiSpec } from './events/ui-specs.js';
8
8
  export { createFlow } from './flow/create-flow.js';
9
9
  export { resolveFlow } from './flow/dispatch.js';
10
- export { createCatalogAssistantFlow, routeCatalogAssistantRequest, type CatalogAssistantCopy, type CatalogAssistantFlowOptions, type CatalogAssistantFlowResult, type CatalogAssistantRoute, type CatalogAssistantRoutePatterns, } from './recipes/catalog-assistant-flow.js';
11
- export { actionCandidatePayload, compareCachedResultSteps, compareResultSteps, compareSearchSteps, compareSteps, hasProductImage, hasUsablePrice, hasVisibleShoppingFacts, intentQuestionSteps, normalizeActionLabel, normalizeQueryText, normalizeSuggestedActions, panelProductScore, panelQuestionSteps, prioritizePanelProducts, productActions, productPanelActions, productQuestionSteps, productRankScore, productSearchText, productsMatchingParams, rankedSearchProducts, rankingTokens, searchResultSteps, searchSteps, suggestedActionSteps, uniqueProducts, } from './recipes/input-text/index.js';
12
10
  export { buildPhotoSimilarityProfile, buildProductSimilarityProfile, buildSimilarityQueries, normalizeSimilarityText, rankSimilarProducts, scoreSimilarityCandidate, tokenizeSimilarityText, type PhotoSimilaritySignals, type ProductSimilarityProfile, type SimilarityProductLike, type SimilarityRankedProduct, type SimilarityRankingOptions, type SimilarityScore, type SimilarityWeights, } from './similarity.js';
13
11
  export { requestText } from './util/request-text.js';
14
12
  export { anonymousRequestText, defaultPiiPatternPack, defaultPiiPatterns, redactPii } from './util/privacy.js';
@@ -1,443 +1,145 @@
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));
1
+ import { $ as E, A as J, B as g, C as F, D as L, E as R, F as j, G as q, H as z, I as m, J as x, K as B, L as M, M as C, N as I, O as D, P as W, Q as G, R as O, S as Q, T as H, U as N, V as T, W as K, X as V, Y as X, Z as h, _ as Y, a as Z, b as _, c as $, d as ee, f as te, g as re, h as oe, i as ae, j as ne, k as ie, l as ce, m as se, n as le, o as de, p as ue, q as pe, r as ke, s as ye, t as Pe, u as fe, v as Se, w as be, x as ve, y as Ue, z as we } from "../account-config-D_EMuR0g.js";
2
+ function me(a) {
3
+ const n = self, i = /* @__PURE__ */ new Map(), c = h(n), y = C(c);
4
+ let t = null, u = null, s = null, p = "";
5
+ n.addEventListener("message", (e) => {
6
+ const r = e.data;
7
+ if (r) {
8
+ if (r.type === "abort") {
9
+ typeof r.id == "number" && (i.get(r.id)?.abort(), i.delete(r.id));
280
10
  return;
281
11
  }
282
- s.type === "invoke" && R(s);
12
+ r.type === "invoke" && P(r);
283
13
  }
284
14
  });
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 || ""
15
+ async function P(e) {
16
+ t = {
17
+ accountId: String(e.accountId || a.accountId || ""),
18
+ beUrl: e.beUrl || "",
19
+ ...e.devJwtSecret ? { devJwtSecret: e.devJwtSecret } : {},
20
+ ...e.tokenBrokerUrl ? { tokenBrokerUrl: e.tokenBrokerUrl } : {},
21
+ ...e.tokenBrokerAudience ? { tokenBrokerAudience: e.tokenBrokerAudience } : {},
22
+ locale: e.defaultLocale || a.defaultLocale || "en-GB",
23
+ parentUrl: e.parentUrl || ""
294
24
  };
295
- const s = [
296
- a.accountId,
297
- a.devJwtSecret || "",
298
- a.tokenBrokerUrl || "",
299
- a.tokenBrokerAudience || ""
25
+ const r = [
26
+ t.accountId,
27
+ t.devJwtSecret || "",
28
+ t.tokenBrokerUrl || "",
29
+ t.tokenBrokerAudience || ""
300
30
  ].join(`
301
31
  `);
302
- (!P || F !== s) && (P = tt(a), F = s), o ||= new Z({
303
- accountId: a.accountId,
304
- locale: a.locale,
305
- parentUrl: a.parentUrl,
32
+ (!s || p !== r) && (s = B(t), p = r), u ||= new x({
33
+ accountId: t.accountId,
34
+ locale: t.locale,
35
+ parentUrl: t.parentUrl,
306
36
  rpc: c,
307
- persistentPanelKeys: t.contextPersistence?.panelKeys
37
+ persistentPanelKeys: a.contextPersistence?.panelKeys,
38
+ panelKeyLimits: a.contextPersistence?.panelKeyLimits
308
39
  });
309
- const h = new AbortController();
310
- r.set(n.id, h);
311
- const S = (d) => {
312
- e.postMessage({
313
- id: n.id,
40
+ const l = new AbortController();
41
+ i.set(e.id, l);
42
+ const d = (o) => {
43
+ n.postMessage({
44
+ id: e.id,
314
45
  type: "event",
315
- event: d
46
+ event: o
316
47
  });
317
48
  };
318
49
  try {
319
- const d = a, _ = P;
320
- await $({
321
- request: n.request || {},
50
+ const o = t, f = s;
51
+ await I({
52
+ request: e.request || {},
322
53
  accountModule: {
323
- ...t,
324
- accountId: d.accountId
54
+ ...a,
55
+ accountId: o.accountId
325
56
  },
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 } : {}
57
+ contextStore: u,
58
+ beClient: { invoke({ op: S, input: b, signal: k, cacheTtlS: v, cacheKey: U, browserCache: w }) {
59
+ return T({
60
+ beUrl: o.beUrl,
61
+ accountId: o.accountId,
62
+ jwtProvider: f,
63
+ parentUrl: o.parentUrl,
64
+ op: S,
65
+ input: b,
66
+ cacheTtlS: v,
67
+ cacheKey: U,
68
+ browserCache: w,
69
+ ...k ? { signal: k } : {}
339
70
  });
340
71
  } },
341
- toolBridge: u,
342
- emit: S,
72
+ toolBridge: y,
73
+ emit: d,
343
74
  rpc: c,
344
- signal: h.signal
345
- }), e.postMessage({
346
- id: n.id,
75
+ signal: l.signal
76
+ }), n.postMessage({
77
+ id: e.id,
347
78
  type: "end"
348
79
  });
349
- } catch (d) {
350
- h.signal.aborted || (S(G(d)), S(V()), e.postMessage({
351
- id: n.id,
80
+ } catch (o) {
81
+ l.signal.aborted || (d(K(o)), d(m()), n.postMessage({
82
+ id: e.id,
352
83
  type: "end"
353
84
  }));
354
85
  } finally {
355
- r.delete(n.id);
86
+ i.delete(e.id);
356
87
  }
357
88
  }
358
89
  }
359
90
  export {
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
91
+ z as AgentError,
92
+ x as ContextStore,
93
+ j as action,
94
+ re as actionButtonsUiSpec,
95
+ _ as alignProductsToTable,
96
+ ke as anonymousRequestText,
97
+ N as beErrorToAgentError,
98
+ $ as buildPhotoSimilarityProfile,
99
+ ce as buildProductSimilarityProfile,
100
+ fe as buildSimilarityQueries,
101
+ K as caughtToStreamError,
102
+ Pe as compactAccountConfig,
103
+ F as compactContextProducts,
104
+ ve as comparisonResultForUi,
105
+ Y as comparisonUiSpec,
106
+ oe as createFlow,
107
+ B as createJwtProvider,
108
+ C as createToolBridge,
109
+ h as createWorkerRpc,
110
+ ae as defaultPiiPatternPack,
111
+ Z as defaultPiiPatterns,
112
+ m as done,
113
+ X as elapsedMs,
114
+ M as error,
115
+ G as handleMainRpc,
116
+ q as httpErrorToAgentError,
117
+ T as invokeBeOp,
118
+ be as llmCacheKey,
119
+ O as metadata,
120
+ pe as mintDevJwt,
121
+ Q as normalizeComparisonTable,
122
+ ie as normalizeProduct,
123
+ ee as normalizeSimilarityText,
124
+ V as nowIso,
125
+ Se as productDetailsUiSpec,
126
+ H as productFactsKey,
127
+ R as productSkuKey,
128
+ Ue as productsUiSpec,
129
+ te as rankSimilarProducts,
130
+ de as redactPii,
131
+ ye as requestText,
132
+ W as resolveFlow,
133
+ E as runMainRpc,
134
+ I as runTurn,
135
+ ue as scoreSimilarityCandidate,
136
+ L as stableKey,
137
+ me as startWorker,
138
+ we as textChunk,
139
+ D as textKey,
140
+ se as tokenizeSimilarityText,
141
+ J as trimProductFactsCore,
142
+ ne as trimProductFactsListCore,
143
+ g as uiSpec,
144
+ le as withAccountConfig
443
145
  };