@gengage/assistant-fe 0.6.11 → 0.6.13
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/agentic/adaptor/mount.d.ts +1 -0
- package/dist/agentic/context/context-store.d.ts +2 -1
- package/dist/agentic/context/persistence.d.ts +2 -1
- package/dist/agentic/index.d.ts +3 -1
- package/dist/agentic/index.js +244 -240
- package/dist/agentic/types.d.ts +39 -21
- package/dist/agentic/util/browser-memory.d.ts +2 -2
- package/dist/agentic/util/cache-key.d.ts +15 -0
- package/dist/agentic/worker/be-client.d.ts +3 -1
- package/dist/agentic/worker.d.ts +3 -1
- package/dist/agentic/worker.js +92 -86
- package/dist/agentic.iife.js +5 -5
- package/dist/{api-paths-D65Uavfh.js → api-paths-ChCMvKkx.js} +1 -1
- package/dist/{chat-CrEa2W-e.js → chat-BP-yXukW.js} +1 -1
- package/dist/chat-runtime.js +1 -1
- package/dist/chat.iife.js +17 -17
- package/dist/chat.js +2 -2
- package/dist/common/request-response-cache.d.ts +9 -0
- package/dist/{common-D9p39tcK.js → common-BD_DSsqY.js} +3 -3
- package/dist/common.js +7 -7
- package/dist/{connection-warning-B4WXvW_P.js → connection-warning-CPeEsQ35.js} +1 -1
- package/dist/{fastIntent-CtaxOsQe.js → fastIntent-C1WeEqW8.js} +1 -1
- package/dist/index.js +12 -12
- package/dist/{native-webview-BlHM7cLs.js → native-webview-DbKq9lN8.js} +1 -1
- package/dist/native.iife.js +14 -14
- package/dist/native.js +1 -1
- package/dist/overlay.js +1 -1
- package/dist/{qna-BNvttR6s.js → qna-B3lMzHvS.js} +1 -1
- package/dist/qna-runtime.js +1 -1
- package/dist/qna.iife.js +13 -13
- package/dist/qna.js +2 -2
- package/dist/request-response-cache-zsgz3Awp.js +154 -0
- package/dist/request-text-su3Vlhrs.js +1318 -0
- package/dist/{runtime-BozDJELC.js → runtime-Dbwwd8yF.js} +38 -37
- package/dist/{runtime-CDjc7MP2.js → runtime-DclobJaN.js} +365 -364
- package/dist/{runtime-Brx9ReJA.js → runtime-Duvrignh.js} +69 -68
- package/dist/{simbut-DFRlkncH.js → simbut-5C5EAfoM.js} +1 -1
- package/dist/simbut.iife.js +1 -1
- package/dist/simbut.js +1 -1
- package/dist/{simrel-Cizk0RY8.js → simrel-DCcSBFez.js} +3 -3
- package/dist/simrel-runtime.js +1 -1
- package/dist/simrel.iife.js +12 -12
- package/dist/simrel.js +2 -2
- package/dist/{widget-base-Bux39ZWf.js → widget-base-BolzGV28.js} +1 -1
- package/package.json +1 -1
- package/dist/agentic/flow/beauty-consulting-turn.d.ts +0 -1
- package/dist/similarity-CqRK9i75.js +0 -1251
- /package/dist/{overlay-fgrzmFTR.js → overlay-CyoB1K0w.js} +0 -0
- /package/dist/{price-formatter-xI3g9Cd4.js → price-formatter-CFsWT0lP.js} +0 -0
- /package/dist/{schemas-CLo8wCjs.js → schemas-Cq2blsO_.js} +0 -0
package/dist/agentic/types.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ export interface BeClient {
|
|
|
33
33
|
signal?: AbortSignal;
|
|
34
34
|
cacheTtlS?: number;
|
|
35
35
|
cacheKey?: string;
|
|
36
|
+
browserCache?: BrowserCachePolicy;
|
|
36
37
|
}): Promise<unknown>;
|
|
37
38
|
}
|
|
38
39
|
export interface FlowStepCtx {
|
|
@@ -43,13 +44,21 @@ export interface FlowStepCtx {
|
|
|
43
44
|
}
|
|
44
45
|
export type FlowValue<T> = T | ((ctx: FlowStepCtx) => T);
|
|
45
46
|
export type FlowPatch = (ctx: ChatContext, result: unknown, snapshot: FlowStepCtx) => Partial<ChatContext> | null | undefined;
|
|
47
|
+
export type BrowserCachePolicy = boolean | {
|
|
48
|
+
ttlMs?: number;
|
|
49
|
+
};
|
|
50
|
+
export type FlowAdapterFn = (input: unknown, ctx: FlowStepCtx) => unknown | Promise<unknown>;
|
|
51
|
+
export type FlowAdapterMap = Record<string, FlowAdapterFn>;
|
|
46
52
|
export interface BeOpStep {
|
|
47
53
|
kind: 'be_op';
|
|
48
54
|
op: string;
|
|
49
55
|
input: FlowValue<unknown>;
|
|
50
56
|
cacheTtlS?: FlowValue<number | undefined>;
|
|
51
57
|
cacheKey?: FlowValue<string | undefined>;
|
|
58
|
+
browserCache?: FlowValue<BrowserCachePolicy | undefined>;
|
|
52
59
|
out?: string;
|
|
60
|
+
errorOut?: string;
|
|
61
|
+
onError?: readonly FlowStep[];
|
|
53
62
|
patch?: FlowPatch;
|
|
54
63
|
}
|
|
55
64
|
export interface ToolStep {
|
|
@@ -57,6 +66,15 @@ export interface ToolStep {
|
|
|
57
66
|
name: string;
|
|
58
67
|
input: FlowValue<unknown>;
|
|
59
68
|
out?: string;
|
|
69
|
+
errorOut?: string;
|
|
70
|
+
onError?: readonly FlowStep[];
|
|
71
|
+
patch?: FlowPatch;
|
|
72
|
+
}
|
|
73
|
+
export interface AdapterStep {
|
|
74
|
+
kind: 'adapter';
|
|
75
|
+
name: string;
|
|
76
|
+
input: FlowValue<unknown>;
|
|
77
|
+
out?: string;
|
|
60
78
|
patch?: FlowPatch;
|
|
61
79
|
}
|
|
62
80
|
export interface EmitStep {
|
|
@@ -71,6 +89,11 @@ export interface BranchStep {
|
|
|
71
89
|
export interface ParallelStep {
|
|
72
90
|
kind: 'parallel';
|
|
73
91
|
steps: readonly (readonly FlowStep[])[];
|
|
92
|
+
merge?: {
|
|
93
|
+
bag?: readonly string[];
|
|
94
|
+
panel?: readonly string[];
|
|
95
|
+
threadExtensions?: readonly string[];
|
|
96
|
+
};
|
|
74
97
|
}
|
|
75
98
|
export interface RefusalStep {
|
|
76
99
|
kind: 'refusal';
|
|
@@ -79,7 +102,7 @@ export interface RefusalStep {
|
|
|
79
102
|
export interface CommitStep {
|
|
80
103
|
kind: 'commit';
|
|
81
104
|
}
|
|
82
|
-
export type FlowStep = BeOpStep | ToolStep | EmitStep | BranchStep | ParallelStep | RefusalStep | CommitStep;
|
|
105
|
+
export type FlowStep = BeOpStep | ToolStep | AdapterStep | EmitStep | BranchStep | ParallelStep | RefusalStep | CommitStep;
|
|
83
106
|
export type Flow = readonly FlowStep[];
|
|
84
107
|
export type ToolFn = (input: unknown) => unknown | Promise<unknown>;
|
|
85
108
|
export type ToolMap = Record<string, ToolFn>;
|
|
@@ -88,7 +111,11 @@ export interface AccountModule {
|
|
|
88
111
|
defaultLocale?: string;
|
|
89
112
|
flows: Record<string, Flow>;
|
|
90
113
|
tools?: ToolMap;
|
|
114
|
+
adapters?: FlowAdapterMap;
|
|
91
115
|
accountConfig?: Record<string, unknown>;
|
|
116
|
+
contextPersistence?: {
|
|
117
|
+
panelKeys?: readonly string[];
|
|
118
|
+
};
|
|
92
119
|
}
|
|
93
120
|
export interface AgentOpBeacon {
|
|
94
121
|
type: 'agentOp';
|
|
@@ -100,6 +127,16 @@ export interface AgentOpBeacon {
|
|
|
100
127
|
latencyMs: number;
|
|
101
128
|
errorCode?: string | undefined;
|
|
102
129
|
}
|
|
130
|
+
export interface AgentToolBeacon {
|
|
131
|
+
type: 'agentTool';
|
|
132
|
+
threadId: string;
|
|
133
|
+
sessionId: string;
|
|
134
|
+
accountId: string;
|
|
135
|
+
tool: string;
|
|
136
|
+
status: 'ok' | 'error';
|
|
137
|
+
latencyMs: number;
|
|
138
|
+
errorCode?: string | undefined;
|
|
139
|
+
}
|
|
103
140
|
export interface TurnSummaryBeacon {
|
|
104
141
|
type: 'turnSummary';
|
|
105
142
|
threadId: string;
|
|
@@ -114,7 +151,7 @@ export interface GenericBeacon {
|
|
|
114
151
|
accountId?: string;
|
|
115
152
|
[key: string]: unknown;
|
|
116
153
|
}
|
|
117
|
-
export type AgentBeaconPayload = AgentOpBeacon | TurnSummaryBeacon | GenericBeacon;
|
|
154
|
+
export type AgentBeaconPayload = AgentOpBeacon | AgentToolBeacon | TurnSummaryBeacon | GenericBeacon;
|
|
118
155
|
export type BeaconCallback = (payload: AgentBeaconPayload) => void;
|
|
119
156
|
export interface UiSpecEnvelope {
|
|
120
157
|
widget: 'chat' | 'qna' | 'simrel';
|
|
@@ -195,22 +232,3 @@ export interface RpcResultMessage {
|
|
|
195
232
|
message?: string;
|
|
196
233
|
} | string;
|
|
197
234
|
}
|
|
198
|
-
export interface BeautyConsultingResult {
|
|
199
|
-
consultation_state?: {
|
|
200
|
-
stage?: string;
|
|
201
|
-
captured_profile?: Record<string, unknown>;
|
|
202
|
-
};
|
|
203
|
-
refusal?: {
|
|
204
|
-
message?: string;
|
|
205
|
-
};
|
|
206
|
-
plain_text?: string;
|
|
207
|
-
answer_html?: string;
|
|
208
|
-
product_mentions?: Array<{
|
|
209
|
-
sku: string;
|
|
210
|
-
short_name?: string;
|
|
211
|
-
}>;
|
|
212
|
-
search_params?: {
|
|
213
|
-
query?: string;
|
|
214
|
-
facets?: Record<string, unknown>;
|
|
215
|
-
};
|
|
216
|
-
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { BrowserMemory } from '../types.js';
|
|
2
|
+
import { stableKey } from './cache-key.js';
|
|
3
|
+
export { stableKey };
|
|
2
4
|
interface BrowserMemoryOptions {
|
|
3
5
|
dbName?: string;
|
|
4
6
|
dbStore?: string;
|
|
@@ -8,6 +10,4 @@ interface BrowserMemoryOptions {
|
|
|
8
10
|
policy?: Record<string, string>;
|
|
9
11
|
aliases?: string[];
|
|
10
12
|
}
|
|
11
|
-
export declare function stableKey(value: unknown): string;
|
|
12
13
|
export declare function createBrowserMemory(accountId: string, options?: BrowserMemoryOptions): BrowserMemory;
|
|
13
|
-
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface LlmCacheKeyOptions {
|
|
2
|
+
version?: string;
|
|
3
|
+
}
|
|
4
|
+
export interface ProductKeyOptions {
|
|
5
|
+
limit?: number;
|
|
6
|
+
locale?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface ProductFactsKeyOptions extends ProductKeyOptions {
|
|
9
|
+
mapProduct?: (product: Record<string, unknown>) => Record<string, unknown> | null | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare function llmCacheKey(op: string, parts: unknown, options?: LlmCacheKeyOptions): string;
|
|
12
|
+
export declare function productSkuKey(products: unknown, options?: ProductKeyOptions): string;
|
|
13
|
+
export declare function productFactsKey(products: unknown, options?: ProductFactsKeyOptions): string;
|
|
14
|
+
export declare function textKey(value: unknown, locale?: string): string;
|
|
15
|
+
export declare function stableKey(value: unknown): string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type JwtProvider } from './jwt-mint.js';
|
|
2
|
+
import type { BrowserCachePolicy } from '../types.js';
|
|
2
3
|
interface InvokeBeOpArgs {
|
|
3
4
|
beUrl: string;
|
|
4
5
|
accountId: string;
|
|
@@ -11,7 +12,8 @@ interface InvokeBeOpArgs {
|
|
|
11
12
|
input?: unknown;
|
|
12
13
|
cacheTtlS?: number | undefined;
|
|
13
14
|
cacheKey?: string | undefined;
|
|
15
|
+
browserCache?: BrowserCachePolicy | undefined;
|
|
14
16
|
signal?: AbortSignal | undefined;
|
|
15
17
|
}
|
|
16
|
-
export declare function invokeBeOp({ beUrl, accountId, devJwtSecret, tokenBrokerUrl, tokenBrokerAudience, jwtProvider, parentUrl, op, input, cacheTtlS, cacheKey, signal, }: InvokeBeOpArgs): Promise<Record<string, unknown>>;
|
|
18
|
+
export declare function invokeBeOp({ beUrl, accountId, devJwtSecret, tokenBrokerUrl, tokenBrokerAudience, jwtProvider, parentUrl, op, input, cacheTtlS, cacheKey, browserCache, signal, }: InvokeBeOpArgs): Promise<Record<string, unknown>>;
|
|
17
19
|
export {};
|
package/dist/agentic/worker.d.ts
CHANGED
|
@@ -3,11 +3,12 @@ export { action, done, error, metadata, textChunk, uiSpec } from './events/build
|
|
|
3
3
|
export { AgentError, beErrorToAgentError, caughtToStreamError, httpErrorToAgentError, } from './events/error-taxonomy.js';
|
|
4
4
|
export { normalizeProduct, trimProductFactsCore, trimProductFactsListCore } from './events/product-normalize.js';
|
|
5
5
|
export { actionButtonsUiSpec, comparisonUiSpec, productDetailsUiSpec, productsUiSpec } from './events/ui-specs.js';
|
|
6
|
-
export { beautyConsultingTurnFlow } from './flow/beauty-consulting-turn.js';
|
|
7
6
|
export { createFlow } from './flow/create-flow.js';
|
|
8
7
|
export { resolveFlow } from './flow/dispatch.js';
|
|
9
8
|
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';
|
|
10
9
|
export { requestText } from './util/request-text.js';
|
|
10
|
+
export { llmCacheKey, productFactsKey, productSkuKey, stableKey, textKey } from './util/cache-key.js';
|
|
11
|
+
export type { LlmCacheKeyOptions, ProductFactsKeyOptions, ProductKeyOptions } from './util/cache-key.js';
|
|
11
12
|
export { elapsedMs, nowIso } from './util/time.js';
|
|
12
13
|
export { invokeBeOp } from './worker/be-client.js';
|
|
13
14
|
export { startWorker } from './worker/entry.js';
|
|
@@ -15,3 +16,4 @@ export { runTurn } from './worker/flow-runner.js';
|
|
|
15
16
|
export { createJwtProvider, mintDevJwt } from './worker/jwt-mint.js';
|
|
16
17
|
export { createWorkerRpc, handleMainRpc, runMainRpc } from './worker/rpc.js';
|
|
17
18
|
export { createToolBridge } from './worker/tool-bridge.js';
|
|
19
|
+
export type { AccountModule, AdapterStep, AgentBeaconPayload, BeClient, BeOpStep, BranchStep, BrowserCachePolicy, ChatContext, CommitStep, EmitStep, Flow, FlowAdapterFn, FlowAdapterMap, FlowPatch, FlowStep, FlowStepCtx, FlowValue, ParallelStep, RefusalStep, ToolFn, ToolMap, ToolStep, } from './types.js';
|
package/dist/agentic/worker.js
CHANGED
|
@@ -1,128 +1,134 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
function
|
|
3
|
-
const a = self,
|
|
4
|
-
let
|
|
5
|
-
a.addEventListener("message", (
|
|
6
|
-
const r =
|
|
1
|
+
import { A as E, B as J, C as B, D as F, E as I, F as M, H as j, I as x, L, M as g, N as z, O as R, P as h, R as C, S as A, T as q, U as D, V as K, _ as O, a as W, b as G, c as H, d as N, f as Q, g as V, h as _, i as X, j as T, k as Y, l as Z, m as $, n as ee, o as te, p as re, r as oe, s as ae, t as ne, u as ie, v as ce, w as le, x as se, y as de, z as ue } from "../request-text-su3Vlhrs.js";
|
|
2
|
+
function pe(n) {
|
|
3
|
+
const a = self, i = /* @__PURE__ */ new Map(), c = K(a), y = A(c);
|
|
4
|
+
let t = null, u = null, l = null, p = "";
|
|
5
|
+
a.addEventListener("message", (e) => {
|
|
6
|
+
const r = e.data;
|
|
7
7
|
if (r) {
|
|
8
8
|
if (r.type === "abort") {
|
|
9
|
-
typeof r.id == "number" && (
|
|
9
|
+
typeof r.id == "number" && (i.get(r.id)?.abort(), i.delete(r.id));
|
|
10
10
|
return;
|
|
11
11
|
}
|
|
12
|
-
r.type === "invoke" &&
|
|
12
|
+
r.type === "invoke" && S(r);
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
|
-
async function
|
|
16
|
-
|
|
17
|
-
accountId: String(
|
|
18
|
-
beUrl:
|
|
19
|
-
...
|
|
20
|
-
...
|
|
21
|
-
...
|
|
22
|
-
locale:
|
|
23
|
-
parentUrl:
|
|
15
|
+
async function S(e) {
|
|
16
|
+
t = {
|
|
17
|
+
accountId: String(e.accountId || n.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 || n.defaultLocale || "en-GB",
|
|
23
|
+
parentUrl: e.parentUrl || ""
|
|
24
24
|
};
|
|
25
25
|
const r = [
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
t.accountId,
|
|
27
|
+
t.devJwtSecret || "",
|
|
28
|
+
t.tokenBrokerUrl || "",
|
|
29
|
+
t.tokenBrokerAudience || ""
|
|
30
30
|
].join(`
|
|
31
31
|
`);
|
|
32
|
-
(!l || p !== r) && (l =
|
|
33
|
-
accountId:
|
|
34
|
-
locale:
|
|
35
|
-
parentUrl:
|
|
36
|
-
rpc: c
|
|
32
|
+
(!l || p !== r) && (l = x(t), p = r), u ||= new C({
|
|
33
|
+
accountId: t.accountId,
|
|
34
|
+
locale: t.locale,
|
|
35
|
+
parentUrl: t.parentUrl,
|
|
36
|
+
rpc: c,
|
|
37
|
+
persistentPanelKeys: n.contextPersistence?.panelKeys
|
|
37
38
|
});
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
const
|
|
39
|
+
const s = new AbortController();
|
|
40
|
+
i.set(e.id, s);
|
|
41
|
+
const d = (o) => {
|
|
41
42
|
a.postMessage({
|
|
42
|
-
id:
|
|
43
|
+
id: e.id,
|
|
43
44
|
type: "event",
|
|
44
45
|
event: o
|
|
45
46
|
});
|
|
46
47
|
};
|
|
47
48
|
try {
|
|
48
|
-
const o =
|
|
49
|
-
await
|
|
50
|
-
request:
|
|
49
|
+
const o = t, v = l;
|
|
50
|
+
await B({
|
|
51
|
+
request: e.request || {},
|
|
51
52
|
accountModule: {
|
|
52
|
-
...
|
|
53
|
+
...n,
|
|
53
54
|
accountId: o.accountId
|
|
54
55
|
},
|
|
55
56
|
contextStore: u,
|
|
56
|
-
beClient: { invoke({ op:
|
|
57
|
-
return
|
|
57
|
+
beClient: { invoke({ op: f, input: U, signal: k, cacheTtlS: b, cacheKey: w, browserCache: P }) {
|
|
58
|
+
return T({
|
|
58
59
|
beUrl: o.beUrl,
|
|
59
60
|
accountId: o.accountId,
|
|
60
|
-
jwtProvider:
|
|
61
|
+
jwtProvider: v,
|
|
61
62
|
parentUrl: o.parentUrl,
|
|
62
|
-
op:
|
|
63
|
-
input:
|
|
63
|
+
op: f,
|
|
64
|
+
input: U,
|
|
64
65
|
cacheTtlS: b,
|
|
65
|
-
cacheKey:
|
|
66
|
+
cacheKey: w,
|
|
67
|
+
browserCache: P,
|
|
66
68
|
...k ? { signal: k } : {}
|
|
67
69
|
});
|
|
68
70
|
} },
|
|
69
|
-
toolBridge:
|
|
70
|
-
emit:
|
|
71
|
+
toolBridge: y,
|
|
72
|
+
emit: d,
|
|
71
73
|
rpc: c,
|
|
72
|
-
signal:
|
|
74
|
+
signal: s.signal
|
|
73
75
|
}), a.postMessage({
|
|
74
|
-
id:
|
|
76
|
+
id: e.id,
|
|
75
77
|
type: "end"
|
|
76
78
|
});
|
|
77
79
|
} catch (o) {
|
|
78
|
-
|
|
79
|
-
id:
|
|
80
|
+
s.signal.aborted || (d(h(o)), d(I()), a.postMessage({
|
|
81
|
+
id: e.id,
|
|
80
82
|
type: "end"
|
|
81
83
|
}));
|
|
82
84
|
} finally {
|
|
83
|
-
|
|
85
|
+
i.delete(e.id);
|
|
84
86
|
}
|
|
85
87
|
}
|
|
86
88
|
}
|
|
87
89
|
export {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
I as
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
90
|
+
g as AgentError,
|
|
91
|
+
C as ContextStore,
|
|
92
|
+
q as action,
|
|
93
|
+
_ as actionButtonsUiSpec,
|
|
94
|
+
z as beErrorToAgentError,
|
|
95
|
+
ae as buildPhotoSimilarityProfile,
|
|
96
|
+
H as buildProductSimilarityProfile,
|
|
97
|
+
Z as buildSimilarityQueries,
|
|
98
|
+
h as caughtToStreamError,
|
|
99
|
+
V as comparisonUiSpec,
|
|
100
|
+
$ as createFlow,
|
|
101
|
+
x as createJwtProvider,
|
|
102
|
+
A as createToolBridge,
|
|
103
|
+
K as createWorkerRpc,
|
|
104
|
+
I as done,
|
|
105
|
+
ue as elapsedMs,
|
|
106
|
+
F as error,
|
|
107
|
+
j as handleMainRpc,
|
|
108
|
+
M as httpErrorToAgentError,
|
|
109
|
+
T as invokeBeOp,
|
|
110
|
+
ee as llmCacheKey,
|
|
111
|
+
R as metadata,
|
|
112
|
+
L as mintDevJwt,
|
|
113
|
+
de as normalizeProduct,
|
|
114
|
+
ie as normalizeSimilarityText,
|
|
115
|
+
J as nowIso,
|
|
116
|
+
O as productDetailsUiSpec,
|
|
117
|
+
oe as productFactsKey,
|
|
118
|
+
X as productSkuKey,
|
|
119
|
+
ce as productsUiSpec,
|
|
120
|
+
N as rankSimilarProducts,
|
|
121
|
+
ne as requestText,
|
|
122
|
+
le as resolveFlow,
|
|
123
|
+
D as runMainRpc,
|
|
124
|
+
B as runTurn,
|
|
125
|
+
Q as scoreSimilarityCandidate,
|
|
126
|
+
W as stableKey,
|
|
127
|
+
pe as startWorker,
|
|
128
|
+
Y as textChunk,
|
|
129
|
+
te as textKey,
|
|
130
|
+
re as tokenizeSimilarityText,
|
|
125
131
|
G as trimProductFactsCore,
|
|
126
|
-
|
|
127
|
-
|
|
132
|
+
se as trimProductFactsListCore,
|
|
133
|
+
E as uiSpec
|
|
128
134
|
};
|