@webless/agent 0.6.10 → 0.7.0
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/{chunk-NEI5GKGH.js → chunk-CYI3OSWG.js} +1741 -695
- package/dist/chunk-CYI3OSWG.js.map +1 -0
- package/dist/embed.cjs +1755 -687
- package/dist/embed.cjs.map +1 -1
- package/dist/embed.css +359 -3
- package/dist/embed.css.map +1 -1
- package/dist/embed.d.cts +2 -2
- package/dist/embed.d.ts +2 -2
- package/dist/embed.js +27 -2
- package/dist/embed.js.map +1 -1
- package/dist/index.cjs +53 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +53 -0
- package/dist/index.js.map +1 -1
- package/dist/{manifest-RhudtqWJ.d.cts → manifest-BNJQfEow.d.cts} +15 -2
- package/dist/{manifest-RhudtqWJ.d.ts → manifest-BNJQfEow.d.ts} +15 -2
- package/dist/react.cjs +1735 -682
- package/dist/react.cjs.map +1 -1
- package/dist/react.css +359 -3
- package/dist/react.css.map +1 -1
- package/dist/react.d.cts +67 -8
- package/dist/react.d.ts +67 -8
- package/dist/react.js +11 -1
- package/package.json +1 -1
- package/dist/chunk-NEI5GKGH.js.map +0 -1
|
@@ -222,7 +222,9 @@ type VisitorHiddenToolResultPresentation = {
|
|
|
222
222
|
kind: "hidden";
|
|
223
223
|
};
|
|
224
224
|
type ResolvedVisitorToolResultPresentation = VisitorToolResultPresentation | VisitorEntityResultPresentation | VisitorCollectionResultPresentation | VisitorSignatureResultPresentation | VisitorBookingResultPresentation | VisitorToolInputResultPresentation | VisitorHiddenToolResultPresentation;
|
|
225
|
-
type VisitorToolResultPresenterOutput = Omit<VisitorToolResultPresentation, "id" | "toolName" | "status">
|
|
225
|
+
type VisitorToolResultPresenterOutput = (Omit<VisitorToolResultPresentation, "id" | "toolName" | "status"> & {
|
|
226
|
+
status?: AgentToolResult["status"];
|
|
227
|
+
}) | Omit<VisitorEntityResultPresentation, "id" | "toolName" | "status"> | Omit<VisitorCollectionResultPresentation, "id" | "toolName" | "status"> | Omit<VisitorSignatureResultPresentation, "id" | "toolName" | "status"> | {
|
|
226
228
|
kind: "booking";
|
|
227
229
|
card: ToolCard;
|
|
228
230
|
};
|
|
@@ -239,6 +241,7 @@ declare const builtInVisitorToolResultRegistry: VisitorToolResultRegistry;
|
|
|
239
241
|
declare function presentVisitorToolResult(result: AgentToolResult, registry?: VisitorToolResultRegistry): ResolvedVisitorToolResultPresentation;
|
|
240
242
|
|
|
241
243
|
type ToolStepState = "completed" | "active" | "pending" | "error";
|
|
244
|
+
type AgentMessageFeedback = "positive" | "negative";
|
|
242
245
|
type ToolStep = {
|
|
243
246
|
id: string;
|
|
244
247
|
kind: "planning" | "search" | "specialist";
|
|
@@ -355,6 +358,9 @@ type AgentBrandingConfig = {
|
|
|
355
358
|
greeting?: string;
|
|
356
359
|
composerPlaceholder?: string;
|
|
357
360
|
poweredByLabel?: string;
|
|
361
|
+
disclaimer?: string | null;
|
|
362
|
+
answerReceipt?: boolean;
|
|
363
|
+
readAloud?: boolean;
|
|
358
364
|
fontFamily?: string;
|
|
359
365
|
colors?: {
|
|
360
366
|
primary?: string;
|
|
@@ -367,6 +373,11 @@ type AgentBrandingConfig = {
|
|
|
367
373
|
border?: string;
|
|
368
374
|
};
|
|
369
375
|
};
|
|
376
|
+
type AgentAnalyticsConfig = {
|
|
377
|
+
companyIndex: string;
|
|
378
|
+
eventUrl: string;
|
|
379
|
+
trackingConsent: boolean;
|
|
380
|
+
};
|
|
370
381
|
type AgentTagManifest = {
|
|
371
382
|
customerId: string;
|
|
372
383
|
indexId: string;
|
|
@@ -380,9 +391,11 @@ type AgentTagManifest = {
|
|
|
380
391
|
pageShift?: boolean;
|
|
381
392
|
colorScheme?: AgentColorScheme;
|
|
382
393
|
branding?: AgentBrandingConfig;
|
|
394
|
+
analytics?: AgentAnalyticsConfig;
|
|
383
395
|
};
|
|
384
396
|
|
|
385
397
|
declare function normalizeAgentTagManifest(manifest: AgentTagManifest): {
|
|
398
|
+
analytics?: AgentAnalyticsConfig | undefined;
|
|
386
399
|
branding?: AgentBrandingConfig | undefined;
|
|
387
400
|
customerId: string;
|
|
388
401
|
indexId: string;
|
|
@@ -398,4 +411,4 @@ declare function normalizeAgentTagManifest(manifest: AgentTagManifest): {
|
|
|
398
411
|
};
|
|
399
412
|
type NormalizedAgentTagManifest = ReturnType<typeof normalizeAgentTagManifest>;
|
|
400
413
|
|
|
401
|
-
export { AGENT_STRUCTURED_TOOL_INPUT_HEADER as A,
|
|
414
|
+
export { presentVisitorToolResult as $, AGENT_STRUCTURED_TOOL_INPUT_HEADER as A, AssistEdgeTab as B, type AssistTabSide as C, type AssistTabVariant as D, type Citation as E, type ConversationMessage as F, DEFAULT_AGENT_PLACEMENT as G, type FollowUpSuggestion as H, type ToolStepState as I, type JourneyContext as J, type VisitorBookingResultPresentation as K, type VisitorToolInputResultPresentation as L, type VisitorToolResultLink as M, type NormalizedAgentTagManifest as N, type VisitorToolResultPresentation as O, type VisitorToolResultPresenter as P, type VisitorToolResultPresenterOutput as Q, type ResolvedVisitorToolResultPresentation as R, type VisitorToolResultRegistry as S, type ToolStep as T, builtInVisitorToolResultRegistry as U, type VisitorBooking as V, defaultAgentRailTheme as W, defaultDarkAgentRailTheme as X, formatAgentStructuredToolInput as Y, normalizeAgentPlacement as Z, normalizeAgentTagManifest as _, AGENT_STRUCTURED_TOOL_INPUT_SCHEMA_VERSION as a, type AgentAnalyticsConfig as b, type AgentBrandingConfig as c, type AgentColorScheme as d, type AgentIndexVersion as e, type AgentInputOption as f, type AgentInputRequest as g, type AgentInputResponse as h, type AgentMessageFeedback as i, type AgentMountStrategy as j, type AgentPlacementConfig as k, type AgentRailPhase as l, type AgentRailState as m, type AgentRailTheme as n, type AgentStructuredToolInput as o, type AgentTabSide as p, type AgentTabVariant as q, type AgentTagManifest as r, type AgentToolResult as s, type AgentToolResultJsonValue as t, type AgentToolUiAction as u, type AgentToolUiField as v, type AgentToolUiFieldKind as w, type AgentToolUiOption as x, type AgentToolUiStep as y, type AgentToolUiSurface as z };
|