@gengage/assistant-fe 0.6.17 → 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 (51) 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/events/comparison.d.ts +6 -0
  4. package/dist/agentic/events/context-products.d.ts +6 -0
  5. package/dist/agentic/index.d.ts +7 -0
  6. package/dist/agentic/index.js +245 -188
  7. package/dist/agentic/types.d.ts +6 -1
  8. package/dist/agentic/util/account-config.d.ts +8 -0
  9. package/dist/agentic/util/privacy.d.ts +12 -0
  10. package/dist/agentic/widgets/endpoints.d.ts +12 -0
  11. package/dist/agentic/worker.d.ts +6 -0
  12. package/dist/agentic/worker.js +80 -69
  13. package/dist/agentic.iife.js +7 -5
  14. package/dist/{api-paths-xsHH9jtm.js → api-paths-lIioK7-S.js} +1 -1
  15. package/dist/chat/components/InlineLauncher.d.ts +1 -1
  16. package/dist/chat-runtime.js +1 -1
  17. package/dist/{chat-BP-yXukW.js → chat-rvSffJXw.js} +1 -1
  18. package/dist/chat.iife.js +11 -11
  19. package/dist/chat.js +2 -2
  20. package/dist/{common-O0BUdXOn.js → common-8WOyaL9-.js} +3 -3
  21. package/dist/common.js +8 -8
  22. package/dist/{connection-warning-DWMfjv0Y.js → connection-warning-CBR0CWsY.js} +1 -1
  23. package/dist/{fastIntent-RTSVRJhw.js → fastIntent-Dw79pmRK.js} +2 -2
  24. package/dist/index.js +13 -13
  25. package/dist/{native-webview-U9HtGabb.js → native-webview-NWc9LrJh.js} +1 -1
  26. package/dist/native.iife.js +2 -2
  27. package/dist/native.js +1 -1
  28. package/dist/{overlay-ClYgI2Kl.js → overlay-COzFFq0-.js} +1 -1
  29. package/dist/overlay.js +2 -2
  30. package/dist/{qna-B3lMzHvS.js → qna-DUs97irI.js} +1 -1
  31. package/dist/qna-runtime.js +1 -1
  32. package/dist/qna.iife.js +1 -1
  33. package/dist/qna.js +2 -2
  34. package/dist/{runtime-COh3CwNU.js → runtime-BsnZ6gt2.js} +8 -8
  35. package/dist/{runtime-n7fEJGDt.js → runtime-D5Sj-_tA.js} +6 -6
  36. package/dist/{runtime-BKU-NQXf.js → runtime-w0f2VkzL.js} +116 -116
  37. package/dist/{simbut-DaFCfvp7.js → simbut-BvdJtzCu.js} +3 -3
  38. package/dist/simbut.iife.js +1 -1
  39. package/dist/simbut.js +1 -1
  40. package/dist/{simrel-CX1JBDa5.js → simrel-DU6a27g9.js} +4 -4
  41. package/dist/simrel-runtime.js +1 -1
  42. package/dist/simrel.iife.js +2 -2
  43. package/dist/simrel.js +2 -2
  44. package/dist/{widget-base-DoZrhVze.js → widget-base-BeWuIxD6.js} +2 -2
  45. package/package.json +4 -2
  46. package/dist/request-text-DThlE-Xd.js +0 -1318
  47. /package/dist/{context-BBuSsXZ9.js → context-heG8hv5l.js} +0 -0
  48. /package/dist/{locale-CfqNifrU.js → locale-uQ5XZ2yS.js} +0 -0
  49. /package/dist/{price-formatter-CFsWT0lP.js → price-formatter-CHUmYq8I.js} +0 -0
  50. /package/dist/{request-response-cache-zsgz3Awp.js → request-response-cache-BxRsKGJ0.js} +0 -0
  51. /package/dist/{schemas-Cq2blsO_.js → schemas-BnYUhYSy.js} +0 -0
@@ -6,11 +6,12 @@ interface ContextStoreOptions {
6
6
  parentUrl?: string | undefined;
7
7
  rpc: RpcFn;
8
8
  persistentPanelKeys?: readonly string[] | undefined;
9
+ panelKeyLimits?: Record<string, number> | undefined;
9
10
  }
10
11
  type PatchInput = Partial<ChatContext> | null | undefined | ((current: ChatContext) => Partial<ChatContext> | null | undefined);
11
12
  export declare class ContextStore {
12
13
  #private;
13
- constructor({ accountId, locale, parentUrl, rpc, persistentPanelKeys }: ContextStoreOptions);
14
+ constructor({ accountId, locale, parentUrl, rpc, persistentPanelKeys, panelKeyLimits, }: ContextStoreOptions);
14
15
  load(request: (ProcessActionRequest & {
15
16
  sessionId?: string;
16
17
  }) | null | undefined): Promise<ChatContext>;
@@ -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>;
@@ -0,0 +1,6 @@
1
+ export interface CompactContextProductsOptions {
2
+ defaultBrand?: string;
3
+ maxItems?: number;
4
+ maxFeatures?: number;
5
+ }
6
+ export declare function compactContextProducts(products: unknown, options?: CompactContextProductsOptions): Record<string, unknown>[];
@@ -5,15 +5,22 @@ 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 { createEndpointCachePolicies, createEndpointHandlers, endpointStableKey, jsonResponse, ndjsonResponse, } from './widgets/endpoints.js';
11
14
  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
15
  export { setAssistantHostVisible } from './util/assistant-host.js';
13
16
  export { resolveBeUrl } from './util/be-url.js';
14
17
  export { createBrowserMemory, stableKey } from './util/browser-memory.js';
15
18
  export { llmCacheKey, productFactsKey, productSkuKey, textKey } from './util/cache-key.js';
16
19
  export type { LlmCacheKeyOptions, ProductFactsKeyOptions, ProductKeyOptions } from './util/cache-key.js';
20
+ export { anonymousRequestText, defaultPiiPatternPack, defaultPiiPatterns, redactPii } from './util/privacy.js';
21
+ export { compactAccountConfig, withAccountConfig } from './util/account-config.js';
22
+ export type { RedactionPattern, RedactionPatternPack } from './util/privacy.js';
23
+ export type { AccountConfigPayloadOptions } from './util/account-config.js';
17
24
  export { createDiagnosticsTool, createReadPageTool, installBrowserTools } from './util/browser-tools.js';
18
25
  export { startLazyRuntimeLoader } from './util/lazy-runtime-loader.js';
19
26
  export { requestText } from './util/request-text.js';