@gengage/assistant-fe 0.6.23 → 0.6.25
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/agentic/index.d.ts +1 -1
- package/dist/agentic/index.js +684 -639
- package/dist/agentic/types.d.ts +17 -2
- package/dist/agentic/worker.d.ts +1 -1
- package/dist/agentic/worker.js +294 -237
- package/dist/agentic.iife.js +8 -8
- package/dist/{api-paths-BmN07ddR.js → api-paths-C0t52SV3.js} +1 -1
- package/dist/chat-runtime.js +1 -1
- package/dist/chat.iife.js +1 -1
- package/dist/chat.js +1 -1
- package/dist/{common-sx2gD-IP.js → common-aUI01FdB.js} +1 -1
- package/dist/common.js +5 -5
- package/dist/{connection-warning-D5T4gHSM.js → connection-warning-DkdoruU2.js} +1 -1
- package/dist/{fastIntent-BFAGybCb.js → fastIntent-iu8Z5MpN.js} +1 -1
- package/dist/index.js +10 -10
- package/dist/native.iife.js +1 -1
- package/dist/qna-runtime.js +1 -1
- package/dist/qna.iife.js +1 -1
- package/dist/qna.js +1 -1
- package/dist/{route-params-5KSvTyeb.js → route-params-UDemctx_.js} +330 -313
- package/dist/{runtime-DM7DHhH9.js → runtime-Cu05VoNY.js} +3 -3
- package/dist/{runtime-BD2fW-ed.js → runtime-DGUqplEx.js} +3 -3
- package/dist/{runtime-DQ3ULuNF.js → runtime-aSV5XfKR.js} +3 -3
- package/dist/{simbut-hkt_4H97.js → simbut-S9Kviutm.js} +1 -1
- package/dist/simbut.iife.js +1 -1
- package/dist/simbut.js +1 -1
- package/dist/{simrel-BbkK5Bwt.js → simrel-BTn7A6VC.js} +1 -1
- package/dist/simrel-runtime.js +1 -1
- package/dist/simrel.iife.js +1 -1
- package/dist/simrel.js +2 -2
- package/dist/{widget-base-BPKfPh0N.js → widget-base-T-AFCGg6.js} +1 -1
- package/package.json +1 -1
package/dist/agentic/types.d.ts
CHANGED
|
@@ -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
|
|
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;
|
package/dist/agentic/worker.d.ts
CHANGED
|
@@ -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';
|