@gengage/assistant-fe 0.6.18 → 0.6.19

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 (41) 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-lIioK7-S.js} +1 -1
  10. package/dist/chat/components/InlineLauncher.d.ts +1 -1
  11. package/dist/chat-runtime.js +1 -1
  12. package/dist/chat.iife.js +1 -1
  13. package/dist/chat.js +1 -1
  14. package/dist/{common-BBgWfT-W.js → common-8WOyaL9-.js} +1 -1
  15. package/dist/common.js +5 -5
  16. package/dist/{connection-warning-B-doodzu.js → connection-warning-CBR0CWsY.js} +1 -1
  17. package/dist/{fastIntent-CloHPZQh.js → fastIntent-Dw79pmRK.js} +1 -1
  18. package/dist/index.js +10 -10
  19. package/dist/native.iife.js +1 -1
  20. package/dist/qna-runtime.js +1 -1
  21. package/dist/qna.iife.js +1 -1
  22. package/dist/qna.js +1 -1
  23. package/dist/{runtime-Ctqq0V6G.js → runtime-BsnZ6gt2.js} +3 -3
  24. package/dist/{runtime-BGCNkU1H.js → runtime-D5Sj-_tA.js} +3 -3
  25. package/dist/{runtime-CbWCU424.js → runtime-w0f2VkzL.js} +3 -3
  26. package/dist/{simbut-Dh4cJysK.js → simbut-BvdJtzCu.js} +1 -1
  27. package/dist/simbut.iife.js +1 -1
  28. package/dist/simbut.js +1 -1
  29. package/dist/{simrel-B-sjHbL5.js → simrel-DU6a27g9.js} +1 -1
  30. package/dist/simrel-runtime.js +1 -1
  31. package/dist/simrel.iife.js +1 -1
  32. package/dist/simrel.js +2 -2
  33. package/dist/{widget-base-CIJT5AiP.js → widget-base-BeWuIxD6.js} +1 -1
  34. package/package.json +4 -2
  35. package/dist/account-config-gj7_mF6Q.js +0 -1731
  36. package/dist/agentic/recipes/catalog-assistant-flow.d.ts +0 -50
  37. package/dist/agentic/recipes/input-text/actions.d.ts +0 -15
  38. package/dist/agentic/recipes/input-text/index.d.ts +0 -4
  39. package/dist/agentic/recipes/input-text/products.d.ts +0 -4
  40. package/dist/agentic/recipes/input-text/ranking.d.ts +0 -14
  41. package/dist/agentic/recipes/input-text/steps.d.ts +0 -31
@@ -1,50 +0,0 @@
1
- import type { Flow, FlowStepCtx } from '../types.js';
2
- export type CatalogAssistantRoute = 'addToCart' | 'compare' | 'similar' | 'search' | 'review' | 'like' | 'home' | 'product';
3
- export interface CatalogAssistantCopy {
4
- productQuestion: string;
5
- compareQuestion: string;
6
- searchGoal: string;
7
- similarGoal: string;
8
- cartActionLabel: string;
9
- cartSuccess: string | ((ctx: FlowStepCtx) => string);
10
- cartFailure: string | ((ctx: FlowStepCtx) => string);
11
- comparisonReady: string | ((ctx: FlowStepCtx) => string);
12
- comparisonFallback: (products: unknown[]) => string;
13
- productFallback: (product: unknown | undefined) => string;
14
- searchResult: (products: unknown[], goal: string) => string;
15
- reviewUnavailable: string | ((ctx: FlowStepCtx) => string);
16
- likeAcknowledged: string | ((ctx: FlowStepCtx) => string);
17
- homeIntro: string | ((ctx: FlowStepCtx) => string);
18
- }
19
- export interface CatalogAssistantRoutePatterns {
20
- addToCart?: RegExp;
21
- compare?: RegExp;
22
- similar?: RegExp;
23
- search?: RegExp;
24
- }
25
- export interface CatalogAssistantFlowOptions {
26
- accountId: string;
27
- homeUrl: string;
28
- copy: CatalogAssistantCopy;
29
- cacheTtlS?: number;
30
- limit?: number;
31
- routePatterns?: CatalogAssistantRoutePatterns;
32
- readPageToolName?: string;
33
- searchToolName?: string;
34
- similarityToolName?: string;
35
- resolveProductsToolName?: string;
36
- addToCartToolName?: string;
37
- productAnswerOpName?: string;
38
- topPicksOpName?: string;
39
- compareOpName?: string;
40
- anonymousRequestText?: (request: FlowStepCtx['request']) => string;
41
- trimProductFacts?: (product: unknown) => unknown;
42
- trimProductFactsList?: (products: unknown[]) => unknown[];
43
- productFromPage?: (page: unknown) => unknown | undefined;
44
- }
45
- export interface CatalogAssistantFlowResult {
46
- flow: Flow;
47
- flows: Record<string, Flow>;
48
- }
49
- export declare function createCatalogAssistantFlow(options: CatalogAssistantFlowOptions): CatalogAssistantFlowResult;
50
- export declare function routeCatalogAssistantRequest(request: FlowStepCtx['request'] | undefined, patterns?: CatalogAssistantRoutePatterns): CatalogAssistantRoute;
@@ -1,15 +0,0 @@
1
- export interface ProductActionOptions {
2
- includeCompare?: boolean;
3
- includeSpecs?: boolean;
4
- includeSimilar?: boolean;
5
- labels?: {
6
- compare?: string;
7
- specs?: string;
8
- similar?: string;
9
- };
10
- }
11
- export declare function productActions(product: Record<string, unknown>, options?: ProductActionOptions): Record<string, unknown>[];
12
- export declare function productPanelActions(products: unknown, options?: ProductActionOptions): Record<string, unknown>[];
13
- export declare function actionCandidatePayload(label: unknown, requestDetails: unknown): Record<string, unknown>;
14
- export declare function normalizeSuggestedActions(actions: unknown, limit?: number): Record<string, unknown>[];
15
- export declare function normalizeActionLabel(label: unknown, maxLength?: number): string;
@@ -1,4 +0,0 @@
1
- export { hasProductImage, hasUsablePrice, hasVisibleShoppingFacts, normalizeQueryText, productRankScore, productSearchText, rankedSearchProducts, rankingTokens, type RankedSearchOptions, } from './ranking.js';
2
- export { panelProductScore, prioritizePanelProducts, productsMatchingParams, uniqueProducts } from './products.js';
3
- export { actionCandidatePayload, normalizeActionLabel, normalizeSuggestedActions, productActions, productPanelActions, type ProductActionOptions, } from './actions.js';
4
- export { compareCachedResultSteps, compareResultSteps, compareSearchSteps, compareSteps, intentQuestionSteps, panelQuestionSteps, productQuestionSteps, searchResultSteps, searchSteps, suggestedActionSteps, type CanonicalStepOptions, } from './steps.js';
@@ -1,4 +0,0 @@
1
- export declare function uniqueProducts(products: unknown): Record<string, unknown>[];
2
- export declare function productsMatchingParams(products: unknown, params: unknown): Record<string, unknown>[];
3
- export declare function prioritizePanelProducts(products: unknown, panelProducts: unknown, limit?: number): Record<string, unknown>[];
4
- export declare function panelProductScore(product: Record<string, unknown>, panelKeys: ReadonlySet<string>): number;
@@ -1,14 +0,0 @@
1
- export interface RankedSearchOptions {
2
- limit?: number;
3
- query?: unknown;
4
- searchInput?: Record<string, unknown> | null;
5
- intent?: Record<string, unknown> | null;
6
- }
7
- export declare function rankedSearchProducts(products: unknown, options?: RankedSearchOptions): Record<string, unknown>[];
8
- export declare function productRankScore(product: Record<string, unknown>, options?: RankedSearchOptions): number;
9
- export declare function rankingTokens(options?: RankedSearchOptions): string[];
10
- export declare function hasUsablePrice(product: Record<string, unknown>): boolean;
11
- export declare function hasProductImage(product: Record<string, unknown>): boolean;
12
- export declare function hasVisibleShoppingFacts(product: Record<string, unknown>): boolean;
13
- export declare function productSearchText(product: Record<string, unknown>): string;
14
- export declare function normalizeQueryText(value: unknown): string;
@@ -1,31 +0,0 @@
1
- import type { FlowPatch, FlowStep, FlowValue } from '../../types.js';
2
- export interface CanonicalStepOptions {
3
- steps?: FlowStep[];
4
- toolName?: string;
5
- beOpName?: string;
6
- input?: FlowValue<unknown>;
7
- cacheTtlS?: FlowValue<number | undefined>;
8
- cacheKey?: FlowValue<string | undefined>;
9
- browserCache?: FlowValue<boolean | {
10
- ttlMs?: number;
11
- } | undefined>;
12
- out?: string;
13
- errorOut?: string;
14
- patch?: FlowPatch;
15
- onError?: readonly FlowStep[];
16
- emitProducts?: boolean;
17
- emitProductDetails?: boolean;
18
- emitComparison?: boolean;
19
- emitActions?: boolean;
20
- emitText?: FlowValue<string>;
21
- }
22
- export declare function intentQuestionSteps(options?: CanonicalStepOptions): FlowStep[];
23
- export declare function searchSteps(options?: CanonicalStepOptions): FlowStep[];
24
- export declare function productQuestionSteps(options?: CanonicalStepOptions): FlowStep[];
25
- export declare function panelQuestionSteps(options?: CanonicalStepOptions): FlowStep[];
26
- export declare function compareSteps(options?: CanonicalStepOptions): FlowStep[];
27
- export declare function compareSearchSteps(options?: CanonicalStepOptions): FlowStep[];
28
- export declare function compareCachedResultSteps(options?: CanonicalStepOptions): FlowStep[];
29
- export declare function compareResultSteps(options?: CanonicalStepOptions): FlowStep[];
30
- export declare function searchResultSteps(options?: CanonicalStepOptions): FlowStep[];
31
- export declare function suggestedActionSteps(options?: CanonicalStepOptions): FlowStep[];