@gengage/assistant-fe 0.6.17 → 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-xsHH9jtm.js → api-paths-CEDR4rld.js} +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 +11 -11
- package/dist/chat.js +2 -2
- package/dist/{common-O0BUdXOn.js → common-BBgWfT-W.js} +3 -3
- package/dist/common.js +8 -8
- package/dist/{connection-warning-DWMfjv0Y.js → connection-warning-B-doodzu.js} +1 -1
- package/dist/{fastIntent-RTSVRJhw.js → fastIntent-CloHPZQh.js} +2 -2
- package/dist/index.js +13 -13
- package/dist/{native-webview-U9HtGabb.js → native-webview-NWc9LrJh.js} +1 -1
- package/dist/native.iife.js +2 -2
- 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-n7fEJGDt.js → runtime-BGCNkU1H.js} +6 -6
- package/dist/{runtime-BKU-NQXf.js → runtime-CbWCU424.js} +116 -116
- package/dist/{runtime-COh3CwNU.js → runtime-Ctqq0V6G.js} +8 -8
- package/dist/{simbut-DaFCfvp7.js → simbut-Dh4cJysK.js} +3 -3
- package/dist/simbut.iife.js +1 -1
- package/dist/simbut.js +1 -1
- package/dist/{simrel-CX1JBDa5.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-DoZrhVze.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
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface ComparisonNormalizeOptions {
|
|
2
|
+
stockLabels?: readonly string[];
|
|
3
|
+
}
|
|
4
|
+
export declare function normalizeComparisonTable(table: unknown): Record<string, unknown>;
|
|
5
|
+
export declare function alignProductsToTable(products: unknown, table: unknown): Record<string, unknown>[];
|
|
6
|
+
export declare function comparisonResultForUi(comparison: Record<string, unknown> | null | undefined, products: unknown): Record<string, unknown>;
|
package/dist/agentic/index.d.ts
CHANGED
|
@@ -5,15 +5,23 @@ export { ContextStore } from './context/context-store.js';
|
|
|
5
5
|
export { action, done, error, metadata, textChunk, uiSpec } from './events/builders.js';
|
|
6
6
|
export { AgentError, beErrorToAgentError, caughtToStreamError, httpErrorToAgentError, } from './events/error-taxonomy.js';
|
|
7
7
|
export { normalizeProduct, trimProductFactsCore, trimProductFactsListCore } from './events/product-normalize.js';
|
|
8
|
+
export { compactContextProducts } from './events/context-products.js';
|
|
9
|
+
export { alignProductsToTable, comparisonResultForUi, normalizeComparisonTable } from './events/comparison.js';
|
|
8
10
|
export { actionButtonsUiSpec, comparisonUiSpec, productDetailsUiSpec, productsUiSpec } from './events/ui-specs.js';
|
|
9
11
|
export { createFlow } from './flow/create-flow.js';
|
|
10
12
|
export { resolveFlow } from './flow/dispatch.js';
|
|
13
|
+
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';
|
|
14
|
+
export { createEndpointCachePolicies, createEndpointHandlers, endpointStableKey, jsonResponse, ndjsonResponse, } from './widgets/endpoints.js';
|
|
11
15
|
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';
|
|
12
16
|
export { setAssistantHostVisible } from './util/assistant-host.js';
|
|
13
17
|
export { resolveBeUrl } from './util/be-url.js';
|
|
14
18
|
export { createBrowserMemory, stableKey } from './util/browser-memory.js';
|
|
15
19
|
export { llmCacheKey, productFactsKey, productSkuKey, textKey } from './util/cache-key.js';
|
|
16
20
|
export type { LlmCacheKeyOptions, ProductFactsKeyOptions, ProductKeyOptions } from './util/cache-key.js';
|
|
21
|
+
export { anonymousRequestText, defaultPiiPatternPack, defaultPiiPatterns, redactPii } from './util/privacy.js';
|
|
22
|
+
export { compactAccountConfig, withAccountConfig } from './util/account-config.js';
|
|
23
|
+
export type { RedactionPattern, RedactionPatternPack } from './util/privacy.js';
|
|
24
|
+
export type { AccountConfigPayloadOptions } from './util/account-config.js';
|
|
17
25
|
export { createDiagnosticsTool, createReadPageTool, installBrowserTools } from './util/browser-tools.js';
|
|
18
26
|
export { startLazyRuntimeLoader } from './util/lazy-runtime-loader.js';
|
|
19
27
|
export { requestText } from './util/request-text.js';
|