@gengage/assistant-fe 0.6.23 → 0.6.25

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.
@@ -1,88 +1,91 @@
1
- import { buildPhotoSimilarityProfile as X, buildProductSimilarityProfile as Y, buildSimilarityQueries as Z, normalizeSimilarityText as tt, rankSimilarProducts as et, rankSimilarProductsAsync as rt, scoreSimilarityCandidate as at, tokenizeSimilarityText as ot } from "./algos/similarity.js";
2
- import { $ as ct, A as st, B as b, C as it, D as I, E as ut, F as lt, G as U, H as dt, I as pt, J as yt, K as mt, L as ft, M as _t, N as Pt, O as C, P as gt, Q as kt, R as ht, S as St, T as R, U as xt, V as B, W as vt, X as wt, Y as At, Z as K, _ as Tt, a as bt, at as F, b as It, ct as Ut, d as Ct, dt as Rt, et as Bt, f as Kt, ft as Ft, g as Lt, gt as jt, h as zt, ht as Et, i as Ot, it as Mt, j as Jt, k as L, lt as j, m as Nt, n as qt, nt as z, o as Dt, ot as $t, p as Ht, pt as E, q as Qt, r as Vt, rt as Wt, s as Gt, st as O, t as Xt, tt as Yt, u as Zt, ut as te, v as ee, w as M, x as J, y as re, z as N } from "../route-params-5KSvTyeb.js";
3
- function ae(t) {
4
- const e = self, r = /* @__PURE__ */ new Map(), a = E(e), d = N(a);
5
- let i = null, f = null, m = null, _ = "";
6
- e.addEventListener("message", (o) => {
7
- const u = o.data;
8
- if (u) {
9
- if (u.type === "abort") {
10
- typeof u.id == "number" && (r.get(u.id)?.abort(), r.delete(u.id));
1
+ import { buildPhotoSimilarityProfile as V, buildProductSimilarityProfile as W, buildSimilarityQueries as G, normalizeSimilarityText as X, rankSimilarProducts as Y, rankSimilarProductsAsync as Z, scoreSimilarityCandidate as ee, tokenizeSimilarityText as te } from "./algos/similarity.js";
2
+ import { $ as ae, A as oe, B as v, C as ne, D as S, E as ce, F as se, G as b, H as ie, I as ue, J as le, K as de, L as pe, M as ye, N as me, O as A, P as fe, Q as _e, R as ke, S as Pe, T, U as ge, V as I, W as he, X as we, Y as xe, Z as U, _ as ve, a as Se, at as C, b as be, ct as Ae, d as Te, dt as Ie, et as Ue, f as Ce, ft as Be, g as Re, gt as Ke, h as Me, ht as Fe, i as Le, it as je, j as ze, k as B, lt as R, m as Ee, n as Oe, nt as K, o as Je, ot as qe, p as Ne, pt as M, q as $e, r as De, rt as He, s as Qe, st as F, t as Ve, tt as We, u as Ge, ut as Xe, v as Ye, w as L, x as j, y as Ze, z } from "../route-params-UDemctx_.js";
3
+ function et(e) {
4
+ const t = self, r = /* @__PURE__ */ new Map(), a = M(t), l = z(a);
5
+ let s = null, y = null, p = null, f = "";
6
+ t.addEventListener("message", (o) => {
7
+ const i = o.data;
8
+ if (i) {
9
+ if (i.type === "abort") {
10
+ typeof i.id == "number" && (r.get(i.id)?.abort(), r.delete(i.id));
11
11
  return;
12
12
  }
13
- u.type === "invoke" && k(u);
13
+ i.type === "invoke" && k(i);
14
14
  }
15
15
  });
16
16
  async function k(o) {
17
- i = {
18
- accountId: String(o.accountId || t.accountId || ""),
17
+ s = {
18
+ accountId: String(o.accountId || e.accountId || ""),
19
19
  beUrl: o.beUrl || "",
20
20
  ...o.devJwtSecret ? { devJwtSecret: o.devJwtSecret } : {},
21
21
  ...o.tokenBrokerUrl ? { tokenBrokerUrl: o.tokenBrokerUrl } : {},
22
22
  ...o.tokenBrokerAudience ? { tokenBrokerAudience: o.tokenBrokerAudience } : {},
23
- locale: o.defaultLocale || t.defaultLocale || "en-GB",
23
+ locale: o.defaultLocale || e.defaultLocale || "en-GB",
24
24
  parentUrl: o.parentUrl || ""
25
25
  };
26
- const u = [
27
- i.accountId,
28
- i.devJwtSecret || "",
29
- i.tokenBrokerUrl || "",
30
- i.tokenBrokerAudience || ""
26
+ const i = [
27
+ s.accountId,
28
+ s.devJwtSecret || "",
29
+ s.tokenBrokerUrl || "",
30
+ s.tokenBrokerAudience || ""
31
31
  ].join(`
32
32
  `);
33
- (!m || _ !== u) && (m = O(i), _ = u), f ||= new j({
34
- accountId: i.accountId,
35
- locale: i.locale,
36
- parentUrl: i.parentUrl,
33
+ (!p || f !== i) && (p = F(s), f = i), y ||= new R({
34
+ accountId: s.accountId,
35
+ locale: s.locale,
36
+ parentUrl: s.parentUrl,
37
37
  rpc: a,
38
- persistentPanelKeys: t.contextPersistence?.panelKeys,
39
- panelKeyLimits: t.contextPersistence?.panelKeyLimits,
40
- messageLimit: t.contextPersistence?.messageLimit,
41
- maxThreads: t.contextPersistence?.maxThreads,
42
- threadTtlMs: t.contextPersistence?.threadTtlMs
38
+ persistentPanelKeys: e.contextPersistence?.panelKeys,
39
+ panelKeyLimits: e.contextPersistence?.panelKeyLimits,
40
+ messageLimit: e.contextPersistence?.messageLimit,
41
+ maxThreads: e.contextPersistence?.maxThreads,
42
+ threadTtlMs: e.contextPersistence?.threadTtlMs
43
43
  });
44
- const c = new AbortController();
45
- r.set(o.id, c);
46
- const s = (n) => {
47
- e.postMessage({
44
+ const n = new AbortController();
45
+ r.set(o.id, n);
46
+ const u = (c) => {
47
+ t.postMessage({
48
48
  id: o.id,
49
49
  type: "event",
50
- event: n
50
+ event: c
51
+ });
52
+ }, d = (c) => {
53
+ o.debugActivity === !0 && t.postMessage({
54
+ id: o.id,
55
+ type: "activity",
56
+ entry: c
51
57
  });
52
58
  };
53
59
  try {
54
- const n = i, l = m;
55
- await b({
60
+ const c = s, P = p;
61
+ await v({
56
62
  request: o.request || {},
57
63
  accountModule: {
58
- ...t,
59
- accountId: n.accountId
64
+ ...e,
65
+ accountId: c.accountId,
66
+ trace: async (w) => {
67
+ d({
68
+ kind: "flow/trace",
69
+ event: w
70
+ }), await e.trace?.(w);
71
+ }
60
72
  },
61
- contextStore: f,
62
- beClient: { invoke({ op: P, input: v, signal: S, cacheTtlS: w, cacheKey: A, browserCache: T }) {
63
- return z({
64
- beUrl: n.beUrl,
65
- accountId: n.accountId,
66
- jwtProvider: l,
67
- parentUrl: n.parentUrl,
68
- op: P,
69
- input: v,
70
- cacheTtlS: w,
71
- cacheKey: A,
72
- browserCache: T,
73
- ...S ? { signal: S } : {}
74
- });
75
- } },
76
- toolBridge: d,
77
- emit: s,
73
+ contextStore: y,
74
+ beClient: E({
75
+ config: c,
76
+ jwtProvider: P,
77
+ postActivity: d
78
+ }),
79
+ toolBridge: l,
80
+ emit: u,
78
81
  rpc: a,
79
- signal: c.signal
80
- }), e.postMessage({
82
+ signal: n.signal
83
+ }), t.postMessage({
81
84
  id: o.id,
82
85
  type: "end"
83
86
  });
84
- } catch (n) {
85
- c.signal.aborted || (s(F(n)), s(K()), e.postMessage({
87
+ } catch (c) {
88
+ n.signal.aborted || (u(C(c)), u(U()), t.postMessage({
86
89
  id: o.id,
87
90
  type: "end"
88
91
  }));
@@ -91,8 +94,62 @@ function ae(t) {
91
94
  }
92
95
  }
93
96
  }
97
+ function E({ config: e, jwtProvider: t, postActivity: r }) {
98
+ return { async invoke({ op: a, input: l, signal: s, cacheTtlS: y, cacheKey: p, browserCache: f }) {
99
+ const k = performance.now(), o = e.accountId.replace(/-agentic$/u, ""), i = `${String(e.beUrl).replace(/\/+$/u, "")}/v1/execute`;
100
+ r({
101
+ kind: "be/request",
102
+ source: "worker-fetch",
103
+ url: i,
104
+ op: a,
105
+ opDomain: o,
106
+ params: l || {},
107
+ rawBody: {
108
+ op_domain: o,
109
+ op_name: a,
110
+ op_payload: l,
111
+ ...y !== void 0 ? { cache_ttl_s: y } : {},
112
+ ...p !== void 0 ? { cache_key: p } : {}
113
+ }
114
+ });
115
+ try {
116
+ const n = await K({
117
+ beUrl: e.beUrl,
118
+ accountId: e.accountId,
119
+ jwtProvider: t,
120
+ parentUrl: e.parentUrl,
121
+ op: a,
122
+ input: l,
123
+ cacheTtlS: y,
124
+ cacheKey: p,
125
+ browserCache: f,
126
+ ...s ? { signal: s } : {}
127
+ });
128
+ return r({
129
+ kind: "be/response",
130
+ source: "worker-fetch",
131
+ url: i,
132
+ status: 200,
133
+ op: a,
134
+ opDomain: o,
135
+ latencyMs: Math.max(0, Math.round(performance.now() - k)),
136
+ result: n
137
+ }), n;
138
+ } catch (n) {
139
+ throw r({
140
+ kind: "be/response",
141
+ source: "worker-fetch",
142
+ url: i,
143
+ op: a,
144
+ opDomain: o,
145
+ latencyMs: Math.max(0, Math.round(performance.now() - k)),
146
+ error: n instanceof Error ? n.message : String(n)
147
+ }), n;
148
+ }
149
+ } };
150
+ }
94
151
  var h = { patterns: [
95
- ...I,
152
+ ...S,
96
153
  {
97
154
  pattern: /(?:adresim|adres|address)\s*[:=]?\s*[^.;\n]{0,160}/giu,
98
155
  replacement: "[address]"
@@ -101,80 +158,80 @@ var h = { patterns: [
101
158
  pattern: /[^\s,.;]{2,}\s+(?:mahallesi|mah\.|sokak|sk\.|cadde|cad\.)\s+[^.;\n]{0,120}/giu,
102
159
  replacement: "[address]"
103
160
  }
104
- ] }, q = "llm-flow-routing-v1";
105
- function D(t) {
106
- return String(t?.payload?.text || t?.payload?.query || t?.action?.payload?.text || "");
161
+ ] }, O = "llm-flow-routing-v1";
162
+ function J(e) {
163
+ return String(e?.payload?.text || e?.payload?.query || e?.action?.payload?.text || "");
107
164
  }
108
- function oe(t, e = {}) {
109
- return e[t?.type || t?.action?.type] || "";
165
+ function tt(e, t = {}) {
166
+ return t[e?.type || e?.action?.type] || "";
110
167
  }
111
- function ne({ accountId: t, cacheTtlS: e = 3600, browserCacheTtlMs: r, promptVersion: a = q, cacheable: d = !0, piiPatternPack: i = h, utterance: f, compactPageContext: m = H, compactStructuredContext: _ = Q, extraInput: k, cacheKeyParts: o, onError: u = [] } = {}) {
168
+ function rt({ accountId: e, cacheTtlS: t = 3600, browserCacheTtlMs: r, promptVersion: a = O, cacheable: l = !0, piiPatternPack: s = h, utterance: y, compactPageContext: p = N, compactStructuredContext: f = $, extraInput: k, cacheKeyParts: o, onError: i = [] } = {}) {
112
169
  return {
113
170
  kind: "be_op",
114
171
  op: "intent",
115
- input: (c) => {
116
- const { request: s, context: n, bag: l, accountConfig: P } = c;
117
- return M(y({
118
- utterance: x(s, {
119
- request: s,
120
- context: n,
121
- bag: l,
172
+ input: (n) => {
173
+ const { request: u, context: d, bag: c, accountConfig: P } = n;
174
+ return L(_({
175
+ utterance: x(u, {
176
+ request: u,
177
+ context: d,
178
+ bag: c,
122
179
  accountConfig: P
123
- }, f, i),
124
- page_context: p(m, l.page, c),
125
- structured_context: p(_, n, c),
126
- locale: n.meta.locale,
127
- ...y(p(k, c))
180
+ }, y, s),
181
+ page_context: m(p, c.page, n),
182
+ structured_context: m(f, d, n),
183
+ locale: d.meta.locale,
184
+ ..._(m(k, n))
128
185
  }), P, "intent");
129
186
  },
130
187
  out: "route",
131
- cache: (c) => p(d, c) ? J({
132
- ttlS: e,
188
+ cache: (n) => m(l, n) ? j({
189
+ ttlS: t,
133
190
  promptVersion: a
134
191
  }) : void 0,
135
192
  ...r ? { browserCache: { ttlMs: r } } : {},
136
- cacheKey: ({ request: c, context: s, bag: n, accountConfig: l }) => {
137
- if (p(d, {
138
- request: c,
139
- context: s,
140
- bag: n,
141
- accountConfig: l
193
+ cacheKey: ({ request: n, context: u, bag: d, accountConfig: c }) => {
194
+ if (m(l, {
195
+ request: n,
196
+ context: u,
197
+ bag: d,
198
+ accountConfig: c
142
199
  }))
143
- return B("intent", {
144
- account: t,
200
+ return I("intent", {
201
+ account: e,
145
202
  prompt: a,
146
- locale: s.meta.locale,
147
- utterance: U(x(c, {
148
- request: c,
149
- context: s,
150
- bag: n,
151
- accountConfig: l
152
- }, f, i), s.meta.locale),
153
- page: p(m, n.page, {
154
- request: c,
155
- context: s,
156
- bag: n,
157
- accountConfig: l
203
+ locale: u.meta.locale,
204
+ utterance: b(x(n, {
205
+ request: n,
206
+ context: u,
207
+ bag: d,
208
+ accountConfig: c
209
+ }, y, s), u.meta.locale),
210
+ page: m(p, d.page, {
211
+ request: n,
212
+ context: u,
213
+ bag: d,
214
+ accountConfig: c
158
215
  }),
159
- panel: p(_, s, {
160
- request: c,
161
- context: s,
162
- bag: n,
163
- accountConfig: l
216
+ panel: m(f, u, {
217
+ request: n,
218
+ context: u,
219
+ bag: d,
220
+ accountConfig: c
164
221
  }),
165
- ...y(p(o, {
166
- request: c,
167
- context: s,
168
- bag: n,
169
- accountConfig: l
222
+ ..._(m(o, {
223
+ request: n,
224
+ context: u,
225
+ bag: d,
226
+ accountConfig: c
170
227
  }))
171
228
  });
172
229
  },
173
- onError: u
230
+ onError: i
174
231
  };
175
232
  }
176
- function ce(t, e = "product") {
177
- const r = String(t?.intent?.kind || t?.kind || "").trim();
233
+ function at(e, t = "product") {
234
+ const r = String(e?.intent?.kind || e?.kind || "").trim();
178
235
  return {
179
236
  product_search: "search",
180
237
  add_to_cart: "cart",
@@ -188,16 +245,16 @@ function ce(t, e = "product") {
188
245
  consulting_redirect: "consulting",
189
246
  handoff_shopping: "consulting",
190
247
  handOffShopping: "consulting"
191
- }[r] || r || e;
248
+ }[r] || r || t;
192
249
  }
193
- function se(t, e) {
194
- return $(t, e).query || "";
250
+ function ot(e, t) {
251
+ return q(e, t).query || "";
195
252
  }
196
- function $(t, e) {
197
- const r = e.route?.search_params || e.route?.searchParams || {}, a = t?.payload || {}, d = r.query || a.query;
198
- return y({
253
+ function q(e, t) {
254
+ const r = t.route?.search_params || t.route?.searchParams || {}, a = e?.payload || {}, l = r.query || a.query;
255
+ return _({
199
256
  ...r,
200
- query: d,
257
+ query: l,
201
258
  text: r.text || a.text,
202
259
  facetParams: r.facetParams || r.facet_params || a.facetParams || a.facet_params,
203
260
  facets: r.facets || a.facets,
@@ -208,135 +265,135 @@ function $(t, e) {
208
265
  maxPrice: r.maxPrice || a.maxPrice
209
266
  });
210
267
  }
211
- function ie(t) {
212
- return (t.route?.flow_params && typeof t.route.flow_params == "object" ? t.route.flow_params : null) || (t.route?.flowParams && typeof t.route.flowParams == "object" ? t.route.flowParams : null) || {};
268
+ function nt(e) {
269
+ return (e.route?.flow_params && typeof e.route.flow_params == "object" ? e.route.flow_params : null) || (e.route?.flowParams && typeof e.route.flowParams == "object" ? e.route.flowParams : null) || {};
213
270
  }
214
- function H(t = {}) {
215
- const e = t?.product && typeof t.product == "object" ? t.product : null;
216
- return y({
217
- pageType: t?.pageType || t?.type || "other",
218
- sku: t?.sku || e?.sku,
219
- product_name: e?.name || e?.title,
220
- category_names: Array.isArray(e?.category_names) ? e.category_names.slice(0, 5) : void 0
271
+ function N(e = {}) {
272
+ const t = e?.product && typeof e.product == "object" ? e.product : null;
273
+ return _({
274
+ pageType: e?.pageType || e?.type || "other",
275
+ sku: e?.sku || t?.sku,
276
+ product_name: t?.name || t?.title,
277
+ category_names: Array.isArray(t?.category_names) ? t.category_names.slice(0, 5) : void 0
221
278
  });
222
279
  }
223
- function Q(t = {}) {
224
- const e = t.panel || {};
225
- return y({
226
- screen_type: e.screen_type,
227
- screen_sku_list: Array.isArray(e.screen_sku_list) ? e.screen_sku_list.slice(0, 24) : void 0,
228
- chat_mentioned_skus: Array.isArray(e.chat_mentioned_skus) ? e.chat_mentioned_skus.slice(0, 12) : void 0,
229
- last_search: V(e.last_search),
230
- current_panel_product_count: Array.isArray(e.last_search_products) ? e.last_search_products.length : 0
280
+ function $(e = {}) {
281
+ const t = e.panel || {};
282
+ return _({
283
+ screen_type: t.screen_type,
284
+ screen_sku_list: Array.isArray(t.screen_sku_list) ? t.screen_sku_list.slice(0, 24) : void 0,
285
+ chat_mentioned_skus: Array.isArray(t.chat_mentioned_skus) ? t.chat_mentioned_skus.slice(0, 12) : void 0,
286
+ last_search: D(t.last_search),
287
+ current_panel_product_count: Array.isArray(t.last_search_products) ? t.last_search_products.length : 0
231
288
  });
232
289
  }
233
- function V(t) {
234
- return !t || typeof t != "object" ? null : y({
235
- query: g(t.query),
236
- source: t.source,
237
- count: t.count,
238
- category: g(t.category),
239
- goal: g(t.goal)
290
+ function D(e) {
291
+ return !e || typeof e != "object" ? null : _({
292
+ query: g(e.query),
293
+ source: e.source,
294
+ count: e.count,
295
+ category: g(e.category),
296
+ goal: g(e.goal)
240
297
  });
241
298
  }
242
- function W(t, e = h) {
243
- return R(t, e) || g(L(t) || D(t), e);
299
+ function H(e, t = h) {
300
+ return T(e, t) || g(B(e) || J(e), t);
244
301
  }
245
- function x(t, e, r, a) {
246
- const d = p(r, t, e);
247
- return d ? String(d) : W(t, a);
302
+ function x(e, t, r, a) {
303
+ const l = m(r, e, t);
304
+ return l ? String(l) : H(e, a);
248
305
  }
249
- function g(t, e = h) {
250
- return C(String(t || ""), e);
306
+ function g(e, t = h) {
307
+ return A(String(e || ""), t);
251
308
  }
252
- function p(t, e, r) {
253
- return typeof t == "function" ? t(e, r) : t;
309
+ function m(e, t, r) {
310
+ return typeof e == "function" ? e(t, r) : e;
254
311
  }
255
- function y(t) {
256
- return Object.fromEntries(Object.entries(t || {}).filter(([, e]) => e != null && e !== "" && (!Array.isArray(e) || e.length)));
312
+ function _(e) {
313
+ return Object.fromEntries(Object.entries(e || {}).filter(([, t]) => t != null && t !== "" && (!Array.isArray(t) || t.length)));
257
314
  }
258
315
  export {
259
- Wt as AgentError,
260
- j as ContextStore,
261
- Tt as FALLBACK_STATUS,
262
- wt as action,
263
- Jt as actionButtonsUiSpec,
264
- lt as alignProductsToTable,
265
- R as anonymousRequestText,
266
- Mt as beErrorToAgentError,
267
- X as buildPhotoSimilarityProfile,
268
- Y as buildProductSimilarityProfile,
269
- Z as buildSimilarityQueries,
270
- F as caughtToStreamError,
271
- it as compactAccountConfig,
272
- ht as compactContextProducts,
273
- zt as compactObject,
274
- Gt as compactProductSurfaceForLlm,
275
- pt as comparisonResultForUi,
276
- _t as comparisonUiSpec,
277
- st as createFlow,
278
- O as createJwtProvider,
279
- Kt as createPrivacyHelpers,
280
- Lt as createReadPageStep,
281
- N as createToolBridge,
282
- E as createWorkerRpc,
283
- It as declarativeBeOpCache,
284
- ut as defaultPiiPatternPack,
285
- I as defaultPiiPatterns,
286
- K as done,
287
- Rt as elapsedMs,
288
- kt as error,
289
- oe as explicitRoute,
290
- ee as fallbackStatus,
291
- Xt as firstArrayValue,
292
- ie as flowParamsFromRoute,
293
- Et as handleMainRpc,
294
- Nt as homePanelReset,
295
- $t as httpErrorToAgentError,
296
- J as inputHashCachePolicy,
297
- z as invokeBeOp,
298
- re as isFallbackStatus,
299
- B as llmCacheKey,
300
- ne as llmIntentStep,
301
- Zt as mergeProductSurfaceEvidence,
302
- ct as metadata,
303
- Ut as mintDevJwt,
304
- ft as normalizeComparisonTable,
305
- mt as normalizeProduct,
306
- tt as normalizeSimilarityText,
307
- Ft as nowIso,
308
- Ht as plainMessageContent,
309
- Pt as productDetailsUiSpec,
310
- dt as productFactsKey,
311
- xt as productSkuKey,
312
- Ct as productSurfaceReviewText,
313
- gt as productsUiSpec,
314
- et as rankSimilarProducts,
315
- rt as rankSimilarProductsAsync,
316
- C as redactPii,
317
- L as requestText,
318
- At as resolveFlow,
319
- Ot as retailAnonymizeMessages,
320
- bt as retailAnonymousRequestText,
321
- Dt as retailRedactPii,
322
- qt as routeFlowParams,
323
- ce as routeKind,
324
- Vt as routeSkuList,
325
- D as routeText,
326
- jt as runMainRpc,
327
- b as runTurn,
328
- at as scoreSimilarityCandidate,
329
- $ as searchInputFromRoute,
330
- se as searchQueryFromRoute,
331
- vt as stableKey,
332
- ae as startWorker,
333
- te as stickyContextKey,
334
- Bt as textChunk,
335
- U as textKey,
336
- ot as tokenizeSimilarityText,
337
- Qt as trimProductFactsCore,
338
- yt as trimProductFactsListCore,
339
- Yt as uiSpec,
340
- M as withAccountConfig,
341
- St as withDeclarativeBeOpCache
316
+ He as AgentError,
317
+ R as ContextStore,
318
+ ve as FALLBACK_STATUS,
319
+ we as action,
320
+ ze as actionButtonsUiSpec,
321
+ se as alignProductsToTable,
322
+ T as anonymousRequestText,
323
+ je as beErrorToAgentError,
324
+ V as buildPhotoSimilarityProfile,
325
+ W as buildProductSimilarityProfile,
326
+ G as buildSimilarityQueries,
327
+ C as caughtToStreamError,
328
+ ne as compactAccountConfig,
329
+ ke as compactContextProducts,
330
+ Me as compactObject,
331
+ Qe as compactProductSurfaceForLlm,
332
+ ue as comparisonResultForUi,
333
+ ye as comparisonUiSpec,
334
+ oe as createFlow,
335
+ F as createJwtProvider,
336
+ Ce as createPrivacyHelpers,
337
+ Re as createReadPageStep,
338
+ z as createToolBridge,
339
+ M as createWorkerRpc,
340
+ be as declarativeBeOpCache,
341
+ ce as defaultPiiPatternPack,
342
+ S as defaultPiiPatterns,
343
+ U as done,
344
+ Ie as elapsedMs,
345
+ _e as error,
346
+ tt as explicitRoute,
347
+ Ye as fallbackStatus,
348
+ Ve as firstArrayValue,
349
+ nt as flowParamsFromRoute,
350
+ Fe as handleMainRpc,
351
+ Ee as homePanelReset,
352
+ qe as httpErrorToAgentError,
353
+ j as inputHashCachePolicy,
354
+ K as invokeBeOp,
355
+ Ze as isFallbackStatus,
356
+ I as llmCacheKey,
357
+ rt as llmIntentStep,
358
+ Ge as mergeProductSurfaceEvidence,
359
+ ae as metadata,
360
+ Ae as mintDevJwt,
361
+ pe as normalizeComparisonTable,
362
+ de as normalizeProduct,
363
+ X as normalizeSimilarityText,
364
+ Be as nowIso,
365
+ Ne as plainMessageContent,
366
+ me as productDetailsUiSpec,
367
+ ie as productFactsKey,
368
+ ge as productSkuKey,
369
+ Te as productSurfaceReviewText,
370
+ fe as productsUiSpec,
371
+ Y as rankSimilarProducts,
372
+ Z as rankSimilarProductsAsync,
373
+ A as redactPii,
374
+ B as requestText,
375
+ xe as resolveFlow,
376
+ Le as retailAnonymizeMessages,
377
+ Se as retailAnonymousRequestText,
378
+ Je as retailRedactPii,
379
+ Oe as routeFlowParams,
380
+ at as routeKind,
381
+ De as routeSkuList,
382
+ J as routeText,
383
+ Ke as runMainRpc,
384
+ v as runTurn,
385
+ ee as scoreSimilarityCandidate,
386
+ q as searchInputFromRoute,
387
+ ot as searchQueryFromRoute,
388
+ he as stableKey,
389
+ et as startWorker,
390
+ Xe as stickyContextKey,
391
+ Ue as textChunk,
392
+ b as textKey,
393
+ te as tokenizeSimilarityText,
394
+ $e as trimProductFactsCore,
395
+ le as trimProductFactsListCore,
396
+ We as uiSpec,
397
+ L as withAccountConfig,
398
+ Pe as withDeclarativeBeOpCache
342
399
  };