@gengage/assistant-fe 0.6.24 → 0.6.26

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 (33) hide show
  1. package/dist/agentic/index.d.ts +1 -1
  2. package/dist/agentic/index.js +684 -639
  3. package/dist/agentic/types.d.ts +17 -2
  4. package/dist/agentic/worker.d.ts +1 -1
  5. package/dist/agentic/worker.js +294 -237
  6. package/dist/agentic.iife.js +8 -8
  7. package/dist/api-paths-CmFRzaMd.js +1274 -0
  8. package/dist/chat-runtime.js +1 -1
  9. package/dist/chat.iife.js +13 -13
  10. package/dist/chat.js +1 -1
  11. package/dist/{common-CzYj5Rg3.js → common-uHKZ-s5H.js} +1 -1
  12. package/dist/common.js +5 -5
  13. package/dist/{connection-warning-B1BbjAAP.js → connection-warning-xRmq7uJ3.js} +1 -1
  14. package/dist/{fastIntent-DtvKVSIo.js → fastIntent-B3qZhCis.js} +1 -1
  15. package/dist/index.js +10 -10
  16. package/dist/native.iife.js +11 -11
  17. package/dist/qna-runtime.js +1 -1
  18. package/dist/qna.iife.js +25 -25
  19. package/dist/qna.js +1 -1
  20. package/dist/{route-params-5KSvTyeb.js → route-params-UDemctx_.js} +330 -313
  21. package/dist/{runtime-C2RFDcMJ.js → runtime-C1mVW5y1.js} +4 -4
  22. package/dist/{runtime-BwKxrcVs.js → runtime-Cpi9hXiL.js} +3 -3
  23. package/dist/{runtime-DLqO5X8q.js → runtime-DhhnaNUQ.js} +3 -3
  24. package/dist/{simbut-C5AbbA4L.js → simbut-csGdfd9_.js} +1 -1
  25. package/dist/simbut.iife.js +1 -1
  26. package/dist/simbut.js +1 -1
  27. package/dist/{simrel-mH70kmF9.js → simrel-B1VHfhBf.js} +1 -1
  28. package/dist/simrel-runtime.js +1 -1
  29. package/dist/simrel.iife.js +38 -38
  30. package/dist/simrel.js +2 -2
  31. package/dist/{widget-base-Cfjsry5x.js → widget-base-DNT8SYtf.js} +1 -1
  32. package/package.json +1 -1
  33. package/dist/api-paths-Bgg7-gUO.js +0 -1235
@@ -115,6 +115,15 @@ export interface BranchStep {
115
115
  on: FlowValue<string | undefined>;
116
116
  cases: Record<string, readonly FlowStep[]>;
117
117
  }
118
+ export type AgentLoopPredicate = (bag: Record<string, unknown>, ctx: FlowStepCtx) => Awaitable<boolean>;
119
+ export type AgentLoopPatch = (bag: Record<string, unknown>, ctx: FlowStepCtx) => Awaitable<Partial<Record<string, unknown>> | null | undefined>;
120
+ export interface AgentLoopStep {
121
+ kind: 'agent_loop';
122
+ body: readonly FlowStep[];
123
+ shouldContinue: AgentLoopPredicate;
124
+ maxIterations: number;
125
+ onIterate?: AgentLoopPatch;
126
+ }
118
127
  export interface ParallelStep {
119
128
  kind: 'parallel';
120
129
  steps: readonly (readonly FlowStep[])[];
@@ -132,7 +141,7 @@ export interface RefusalStep {
132
141
  export interface CommitStep {
133
142
  kind: 'commit';
134
143
  }
135
- export type FlowStep = BeOpStep | ToolStep | AdapterStep | EmitStep | PatchStep | BranchStep | ParallelStep | RefusalStep | CommitStep;
144
+ export type FlowStep = BeOpStep | ToolStep | AdapterStep | EmitStep | PatchStep | BranchStep | AgentLoopStep | ParallelStep | RefusalStep | CommitStep;
136
145
  export type Flow = readonly FlowStep[];
137
146
  export type ToolFn = (input: unknown) => unknown | Promise<unknown>;
138
147
  export type ToolMap = Record<string, ToolFn>;
@@ -274,6 +283,7 @@ export interface WorkerInvokeMessage {
274
283
  defaultLocale?: string;
275
284
  request: ProcessActionRequest;
276
285
  parentUrl?: string;
286
+ debugActivity?: boolean;
277
287
  }
278
288
  export interface WorkerAbortMessage {
279
289
  id: number;
@@ -294,7 +304,12 @@ export interface WorkerErrorOutbound {
294
304
  type: 'error';
295
305
  message?: string;
296
306
  }
297
- export type WorkerOutboundMessage = WorkerEventOutbound | WorkerEndOutbound | WorkerErrorOutbound;
307
+ export interface WorkerActivityOutbound {
308
+ id?: number;
309
+ type: 'activity';
310
+ entry: Record<string, unknown>;
311
+ }
312
+ export type WorkerOutboundMessage = WorkerEventOutbound | WorkerEndOutbound | WorkerErrorOutbound | WorkerActivityOutbound;
298
313
  export interface RpcRequestMessage {
299
314
  type: 'rpc.req';
300
315
  rpcId: number;
@@ -34,5 +34,5 @@ export { createPrivacyHelpers, plainMessageContent } from './util/common/privacy
34
34
  export { compactProductSurfaceForLlm, mergeProductSurfaceEvidence, productSurfaceReviewText, } from './util/common/product-surface.js';
35
35
  export { anonymousRequestText as retailAnonymousRequestText, anonymizeMessages as retailAnonymizeMessages, redactPii as retailRedactPii, } from './util/common/retail-privacy.js';
36
36
  export { firstArrayValue, routeFlowParams, routeSkuList } from './util/common/route-params.js';
37
- export type { AccountModule, AgentConfirmationRequest, AgentConfirmationResult, AgentMemoryProvider, AgentTraceCallback, AgentTraceEvent, AdapterStep, AgentBeaconPayload, Awaitable, BeClient, BeOpStep, BranchStep, BrowserCachePolicy, ChatContext, CommitStep, EmitStep, Flow, FlowAdapterFn, FlowAdapterMap, FlowConfirmationGate, FlowConfirmationRequest, FlowConfirmationValue, FlowPatch, FlowStep, FlowStepCtx, FlowValue, MemoryTier, ParallelStep, RefusalStep, ToolFn, ToolMap, ToolStep, } from './types.js';
37
+ export type { AccountModule, AgentLoopPatch, AgentLoopPredicate, AgentLoopStep, AgentConfirmationRequest, AgentConfirmationResult, AgentMemoryProvider, AgentTraceCallback, AgentTraceEvent, AdapterStep, AgentBeaconPayload, Awaitable, BeClient, BeOpStep, BranchStep, BrowserCachePolicy, ChatContext, CommitStep, EmitStep, Flow, FlowAdapterFn, FlowAdapterMap, FlowConfirmationGate, FlowConfirmationRequest, FlowConfirmationValue, FlowPatch, FlowStep, FlowStepCtx, FlowValue, MemoryTier, ParallelStep, RefusalStep, ToolFn, ToolMap, ToolStep, } from './types.js';
38
38
  export type { BeOpInputBase, CompareInput, CompareOutput, GssInstallmentOption, GssProductDetails, GssProductFeature, GssProductQuestionAnswer, GssProductReview, GssProductSeller, GssShippingOption, IntentOpInput, IntentOpOutput, LocaleCode, MoneyValue, ProductAnswerInput, ProductAnswerOutput, RefPayload, UiSpec, UiSpecElement, UiSpecElementType, UiSpecEvent, } from './contracts/agentic-contracts.js';