@optilogic/chat 1.0.0-beta.1
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/LICENSE +21 -0
- package/dist/index.cjs +567 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +378 -0
- package/dist/index.d.ts +378 -0
- package/dist/index.js +537 -0
- package/dist/index.js.map +1 -0
- package/package.json +66 -0
- package/src/components/agent-response/AgentResponse.tsx +232 -0
- package/src/components/agent-response/components/ActionBar.tsx +150 -0
- package/src/components/agent-response/components/ActivityIndicators.tsx +140 -0
- package/src/components/agent-response/components/MetadataRow.tsx +145 -0
- package/src/components/agent-response/components/ThinkingSection.tsx +48 -0
- package/src/components/agent-response/components/index.ts +15 -0
- package/src/components/agent-response/hooks/index.ts +12 -0
- package/src/components/agent-response/hooks/useAgentResponseAccumulator.ts +186 -0
- package/src/components/agent-response/hooks/useThinkingTimer.ts +52 -0
- package/src/components/agent-response/index.ts +48 -0
- package/src/components/agent-response/types.ts +124 -0
- package/src/components/agent-response/utils.ts +48 -0
- package/src/index.ts +46 -0
package/src/index.ts
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @optilogic/chat
|
|
3
|
+
*
|
|
4
|
+
* Chat UI components for displaying LLM/AI agent interactions.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// Agent Response - Main component for displaying AI agent responses
|
|
8
|
+
export {
|
|
9
|
+
// Main component
|
|
10
|
+
AgentResponse,
|
|
11
|
+
type AgentResponseProps,
|
|
12
|
+
|
|
13
|
+
// Sub-components (for advanced customization)
|
|
14
|
+
ActivityIndicators,
|
|
15
|
+
MetadataRow,
|
|
16
|
+
ThinkingSection,
|
|
17
|
+
ActionBar,
|
|
18
|
+
type ActivityIndicatorsProps,
|
|
19
|
+
type MetadataRowProps,
|
|
20
|
+
type ThinkingSectionProps,
|
|
21
|
+
type ActionBarProps,
|
|
22
|
+
|
|
23
|
+
// Hooks
|
|
24
|
+
useAgentResponseAccumulator,
|
|
25
|
+
useThinkingTimer,
|
|
26
|
+
type UseAgentResponseAccumulatorOptions,
|
|
27
|
+
type UseAgentResponseAccumulatorReturn,
|
|
28
|
+
type UseThinkingTimerOptions,
|
|
29
|
+
|
|
30
|
+
// Types
|
|
31
|
+
type AgentResponseState,
|
|
32
|
+
type AgentResponseStatus,
|
|
33
|
+
type FeedbackValue,
|
|
34
|
+
type ToolCall,
|
|
35
|
+
type KnowledgeItem,
|
|
36
|
+
type MemoryItem,
|
|
37
|
+
type AgentMessage,
|
|
38
|
+
type GenericWebSocketMessage,
|
|
39
|
+
|
|
40
|
+
// Constants
|
|
41
|
+
initialAgentResponseState,
|
|
42
|
+
|
|
43
|
+
// Utilities
|
|
44
|
+
formatTime,
|
|
45
|
+
formatTotalTime,
|
|
46
|
+
} from "./components/agent-response";
|