@webless/agent 0.6.5 → 0.6.7
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-U2TIUZJM.js → chunk-U5IPERNA.js} +693 -180
- package/dist/chunk-U5IPERNA.js.map +1 -0
- package/dist/embed.cjs +696 -186
- package/dist/embed.cjs.map +1 -1
- package/dist/embed.css +192 -0
- 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 +1 -1
- package/dist/index.cjs +19 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +16 -2
- package/dist/index.js.map +1 -1
- package/dist/{manifest-Cad-TQJw.d.cts → manifest-RhudtqWJ.d.cts} +11 -1
- package/dist/{manifest-Cad-TQJw.d.ts → manifest-RhudtqWJ.d.ts} +11 -1
- package/dist/react.cjs +698 -182
- package/dist/react.cjs.map +1 -1
- package/dist/react.css +192 -0
- package/dist/react.css.map +1 -1
- package/dist/react.d.cts +3 -3
- package/dist/react.d.ts +3 -3
- package/dist/react.js +7 -1
- package/package.json +1 -1
- package/dist/chunk-U2TIUZJM.js.map +0 -1
package/dist/react.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { d as AgentIndexVersion, i as AgentPlacementConfig, c as AgentColorScheme, b as AgentBrandingConfig, P as VisitorToolResultRegistry, k as AgentRailState, l as AgentRailTheme, g as AgentInputResponse, x as AgentToolUiSurface, r as AgentToolResultJsonValue, F as FollowUpSuggestion, D as ConversationMessage, j as AgentRailPhase, V as VisitorBooking } from './manifest-RhudtqWJ.cjs';
|
|
3
|
+
export { A as AGENT_STRUCTURED_TOOL_INPUT_HEADER, a as AGENT_STRUCTURED_TOOL_INPUT_SCHEMA_VERSION, e as AgentInputOption, f as AgentInputRequest, m as AgentStructuredToolInput, q as AgentToolResult, s as AgentToolUiAction, t as AgentToolUiField, u as AgentToolUiFieldKind, v as AgentToolUiOption, w as AgentToolUiStep, y as AssistEdgeTab, z as AssistTabSide, B as AssistTabVariant, C as Citation, E as DEFAULT_AGENT_PLACEMENT, J as JourneyContext, R as ResolvedVisitorToolResultPresentation, T as ToolStep, G as ToolStepState, H as VisitorBookingResultPresentation, I as VisitorToolInputResultPresentation, K as VisitorToolResultLink, L as VisitorToolResultPresentation, M as VisitorToolResultPresenter, O as VisitorToolResultPresenterOutput, Q as builtInVisitorToolResultRegistry, S as defaultAgentRailTheme, U as defaultDarkAgentRailTheme, W as formatAgentStructuredToolInput, X as normalizeAgentPlacement, Z as presentVisitorToolResult } from './manifest-RhudtqWJ.cjs';
|
|
4
4
|
|
|
5
5
|
type AgentWidgetProps = {
|
|
6
6
|
indexId: string;
|
|
@@ -43,7 +43,7 @@ type AgentRailProps = {
|
|
|
43
43
|
onInputResponse?: (response: AgentInputResponse) => void;
|
|
44
44
|
onToolInput?: (surface: AgentToolUiSurface, values: Record<string, AgentToolResultJsonValue>) => void;
|
|
45
45
|
};
|
|
46
|
-
declare function AgentRail({ state, theme, colorScheme, brandLabel, brandLogoUrl, poweredByLabel, composerPlaceholder, mobileFullscreen, expanded, onCollapse, onClose, onExpandToggle, onReset, onRetry, onSubmit, onFollowUpSelect, onBook, onInputResponse, }: AgentRailProps): react.JSX.Element;
|
|
46
|
+
declare function AgentRail({ state, theme, colorScheme, brandLabel, brandLogoUrl, poweredByLabel, composerPlaceholder, mobileFullscreen, expanded, onCollapse, onClose, onExpandToggle, onReset, onRetry, onSubmit, onFollowUpSelect, onBook, onInputResponse, onToolInput, }: AgentRailProps): react.JSX.Element;
|
|
47
47
|
|
|
48
48
|
type UseAgentChatOptions = {
|
|
49
49
|
customerId?: string;
|
package/dist/react.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
2
|
+
import { d as AgentIndexVersion, i as AgentPlacementConfig, c as AgentColorScheme, b as AgentBrandingConfig, P as VisitorToolResultRegistry, k as AgentRailState, l as AgentRailTheme, g as AgentInputResponse, x as AgentToolUiSurface, r as AgentToolResultJsonValue, F as FollowUpSuggestion, D as ConversationMessage, j as AgentRailPhase, V as VisitorBooking } from './manifest-RhudtqWJ.js';
|
|
3
|
+
export { A as AGENT_STRUCTURED_TOOL_INPUT_HEADER, a as AGENT_STRUCTURED_TOOL_INPUT_SCHEMA_VERSION, e as AgentInputOption, f as AgentInputRequest, m as AgentStructuredToolInput, q as AgentToolResult, s as AgentToolUiAction, t as AgentToolUiField, u as AgentToolUiFieldKind, v as AgentToolUiOption, w as AgentToolUiStep, y as AssistEdgeTab, z as AssistTabSide, B as AssistTabVariant, C as Citation, E as DEFAULT_AGENT_PLACEMENT, J as JourneyContext, R as ResolvedVisitorToolResultPresentation, T as ToolStep, G as ToolStepState, H as VisitorBookingResultPresentation, I as VisitorToolInputResultPresentation, K as VisitorToolResultLink, L as VisitorToolResultPresentation, M as VisitorToolResultPresenter, O as VisitorToolResultPresenterOutput, Q as builtInVisitorToolResultRegistry, S as defaultAgentRailTheme, U as defaultDarkAgentRailTheme, W as formatAgentStructuredToolInput, X as normalizeAgentPlacement, Z as presentVisitorToolResult } from './manifest-RhudtqWJ.js';
|
|
4
4
|
|
|
5
5
|
type AgentWidgetProps = {
|
|
6
6
|
indexId: string;
|
|
@@ -43,7 +43,7 @@ type AgentRailProps = {
|
|
|
43
43
|
onInputResponse?: (response: AgentInputResponse) => void;
|
|
44
44
|
onToolInput?: (surface: AgentToolUiSurface, values: Record<string, AgentToolResultJsonValue>) => void;
|
|
45
45
|
};
|
|
46
|
-
declare function AgentRail({ state, theme, colorScheme, brandLabel, brandLogoUrl, poweredByLabel, composerPlaceholder, mobileFullscreen, expanded, onCollapse, onClose, onExpandToggle, onReset, onRetry, onSubmit, onFollowUpSelect, onBook, onInputResponse, }: AgentRailProps): react.JSX.Element;
|
|
46
|
+
declare function AgentRail({ state, theme, colorScheme, brandLabel, brandLogoUrl, poweredByLabel, composerPlaceholder, mobileFullscreen, expanded, onCollapse, onClose, onExpandToggle, onReset, onRetry, onSubmit, onFollowUpSelect, onBook, onInputResponse, onToolInput, }: AgentRailProps): react.JSX.Element;
|
|
47
47
|
|
|
48
48
|
type UseAgentChatOptions = {
|
|
49
49
|
customerId?: string;
|
package/dist/react.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import "./react.css";
|
|
2
2
|
import {
|
|
3
|
+
AGENT_STRUCTURED_TOOL_INPUT_HEADER,
|
|
4
|
+
AGENT_STRUCTURED_TOOL_INPUT_SCHEMA_VERSION,
|
|
3
5
|
AgentRail,
|
|
4
6
|
AgentWidget,
|
|
5
7
|
AssistEdgeTab,
|
|
@@ -8,13 +10,16 @@ import {
|
|
|
8
10
|
createIdleSuggestions,
|
|
9
11
|
defaultAgentRailTheme,
|
|
10
12
|
defaultDarkAgentRailTheme,
|
|
13
|
+
formatAgentStructuredToolInput,
|
|
11
14
|
hasVisitorMessages,
|
|
12
15
|
isAgentBusy,
|
|
13
16
|
normalizeAgentPlacement,
|
|
14
17
|
presentVisitorToolResult,
|
|
15
18
|
useAgentChat
|
|
16
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-U5IPERNA.js";
|
|
17
20
|
export {
|
|
21
|
+
AGENT_STRUCTURED_TOOL_INPUT_HEADER,
|
|
22
|
+
AGENT_STRUCTURED_TOOL_INPUT_SCHEMA_VERSION,
|
|
18
23
|
AgentRail,
|
|
19
24
|
AgentWidget,
|
|
20
25
|
AssistEdgeTab,
|
|
@@ -23,6 +28,7 @@ export {
|
|
|
23
28
|
createIdleSuggestions,
|
|
24
29
|
defaultAgentRailTheme,
|
|
25
30
|
defaultDarkAgentRailTheme,
|
|
31
|
+
formatAgentStructuredToolInput,
|
|
26
32
|
hasVisitorMessages,
|
|
27
33
|
isAgentBusy,
|
|
28
34
|
normalizeAgentPlacement,
|