@gengage/assistant-fe 0.6.12 → 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.
Files changed (50) hide show
  1. package/dist/agentic/adaptor/mount.d.ts +1 -0
  2. package/dist/agentic/context/context-store.d.ts +2 -1
  3. package/dist/agentic/context/persistence.d.ts +2 -1
  4. package/dist/agentic/index.d.ts +3 -2
  5. package/dist/agentic/index.js +244 -240
  6. package/dist/agentic/types.d.ts +28 -20
  7. package/dist/agentic/util/browser-memory.d.ts +2 -2
  8. package/dist/agentic/util/cache-key.d.ts +15 -0
  9. package/dist/agentic/worker/be-client.d.ts +3 -1
  10. package/dist/agentic/worker.d.ts +3 -2
  11. package/dist/agentic/worker.js +92 -86
  12. package/dist/agentic.iife.js +5 -5
  13. package/dist/{api-paths-Cth1szY1.js → api-paths-ChCMvKkx.js} +1 -1
  14. package/dist/{chat-CrEa2W-e.js → chat-BP-yXukW.js} +1 -1
  15. package/dist/chat-runtime.js +1 -1
  16. package/dist/chat.iife.js +17 -17
  17. package/dist/chat.js +2 -2
  18. package/dist/common/request-response-cache.d.ts +9 -0
  19. package/dist/{common-CmPjQ9RK.js → common-BD_DSsqY.js} +3 -3
  20. package/dist/common.js +7 -7
  21. package/dist/{connection-warning-Bx1TJaU9.js → connection-warning-CPeEsQ35.js} +1 -1
  22. package/dist/{fastIntent-nZXiT9DG.js → fastIntent-C1WeEqW8.js} +1 -1
  23. package/dist/index.js +12 -12
  24. package/dist/{native-webview-BlHM7cLs.js → native-webview-DbKq9lN8.js} +1 -1
  25. package/dist/native.iife.js +14 -14
  26. package/dist/native.js +1 -1
  27. package/dist/overlay.js +1 -1
  28. package/dist/{qna-BNvttR6s.js → qna-B3lMzHvS.js} +1 -1
  29. package/dist/qna-runtime.js +1 -1
  30. package/dist/qna.iife.js +13 -13
  31. package/dist/qna.js +2 -2
  32. package/dist/request-response-cache-zsgz3Awp.js +154 -0
  33. package/dist/request-text-su3Vlhrs.js +1318 -0
  34. package/dist/{runtime-xlTFF9HS.js → runtime-Dbwwd8yF.js} +38 -37
  35. package/dist/{runtime-B0v76aJ5.js → runtime-DclobJaN.js} +365 -364
  36. package/dist/{runtime-Dt6FUotQ.js → runtime-Duvrignh.js} +69 -68
  37. package/dist/{simbut-pTonQlCT.js → simbut-5C5EAfoM.js} +1 -1
  38. package/dist/simbut.iife.js +1 -1
  39. package/dist/simbut.js +1 -1
  40. package/dist/{simrel-C3ZJHVIW.js → simrel-DCcSBFez.js} +3 -3
  41. package/dist/simrel-runtime.js +1 -1
  42. package/dist/simrel.iife.js +12 -12
  43. package/dist/simrel.js +2 -2
  44. package/dist/{widget-base-C6H3cDSW.js → widget-base-BolzGV28.js} +1 -1
  45. package/package.json +1 -1
  46. package/dist/agentic/flow/beauty-consulting-turn.d.ts +0 -1
  47. package/dist/similarity-qMH5-do-.js +0 -1262
  48. /package/dist/{overlay-fgrzmFTR.js → overlay-CyoB1K0w.js} +0 -0
  49. /package/dist/{price-formatter-xI3g9Cd4.js → price-formatter-CFsWT0lP.js} +0 -0
  50. /package/dist/{schemas-CLo8wCjs.js → schemas-Cq2blsO_.js} +0 -0
@@ -18,6 +18,7 @@ interface AgentDiagnostics {
18
18
  workerUrl: string;
19
19
  mounted: boolean;
20
20
  transport: 'worker' | 'main-thread';
21
+ transportReason?: 'module-worker' | 'cross-origin-worker-url';
21
22
  flows: string[];
22
23
  }
23
24
  export interface AgentController {
@@ -5,11 +5,12 @@ interface ContextStoreOptions {
5
5
  locale?: string | undefined;
6
6
  parentUrl?: string | undefined;
7
7
  rpc: RpcFn;
8
+ persistentPanelKeys?: readonly string[] | undefined;
8
9
  }
9
10
  type PatchInput = Partial<ChatContext> | null | undefined | ((current: ChatContext) => Partial<ChatContext> | null | undefined);
10
11
  export declare class ContextStore {
11
12
  #private;
12
- constructor({ accountId, locale, parentUrl, rpc }: ContextStoreOptions);
13
+ constructor({ accountId, locale, parentUrl, rpc, persistentPanelKeys }: ContextStoreOptions);
13
14
  load(request: (ProcessActionRequest & {
14
15
  sessionId?: string;
15
16
  }) | null | undefined): Promise<ChatContext>;
@@ -6,7 +6,8 @@ interface LoadArgs {
6
6
  }
7
7
  interface SaveArgs extends LoadArgs {
8
8
  extensions: Record<string, unknown>;
9
+ panel?: Record<string, unknown> | undefined;
9
10
  }
10
11
  export declare function loadStickyContext({ accountId, threadId, rpc }: LoadArgs): Promise<Record<string, unknown>>;
11
- export declare function saveStickyContext({ accountId, threadId, extensions, rpc }: SaveArgs): Promise<void>;
12
+ export declare function saveStickyContext({ accountId, threadId, extensions, panel, rpc }: SaveArgs): Promise<void>;
12
13
  export {};
@@ -6,15 +6,16 @@ export { action, done, error, metadata, textChunk, uiSpec } from './events/build
6
6
  export { AgentError, beErrorToAgentError, caughtToStreamError, httpErrorToAgentError, } from './events/error-taxonomy.js';
7
7
  export { normalizeProduct, trimProductFactsCore, trimProductFactsListCore } from './events/product-normalize.js';
8
8
  export { actionButtonsUiSpec, comparisonUiSpec, productDetailsUiSpec, productsUiSpec } from './events/ui-specs.js';
9
- export { beautyConsultingTurnFlow } from './flow/beauty-consulting-turn.js';
10
9
  export { createFlow } from './flow/create-flow.js';
11
10
  export { resolveFlow } from './flow/dispatch.js';
12
11
  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';
13
12
  export { setAssistantHostVisible } from './util/assistant-host.js';
14
13
  export { resolveBeUrl } from './util/be-url.js';
15
14
  export { createBrowserMemory, stableKey } from './util/browser-memory.js';
15
+ export { llmCacheKey, productFactsKey, productSkuKey, textKey } from './util/cache-key.js';
16
+ export type { LlmCacheKeyOptions, ProductFactsKeyOptions, ProductKeyOptions } from './util/cache-key.js';
16
17
  export { createDiagnosticsTool, createReadPageTool, installBrowserTools } from './util/browser-tools.js';
17
18
  export { startLazyRuntimeLoader } from './util/lazy-runtime-loader.js';
18
19
  export { requestText } from './util/request-text.js';
19
20
  export { elapsedMs, nowIso } from './util/time.js';
20
- export type { AdapterStep, FlowAdapterFn, FlowAdapterMap } from './types.js';
21
+ export type { AccountModule, AdapterStep, AgentBeaconPayload, BeaconCallback, BeClient, BeOpStep, BranchStep, BrowserCachePolicy, ChatContext, ChatMessage, ChatMeta, ChatPanel, ChatThread, CommitStep, EmitStep, Flow, FlowAdapterFn, FlowAdapterMap, FlowPatch, FlowStep, FlowStepCtx, FlowValue, ParallelStep, RefusalStep, ToolFn, ToolMap, ToolStep, UiSpecEnvelope, } from './types.js';