@estevia/evafusion-agent 1.5.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/README.md ADDED
@@ -0,0 +1,61 @@
1
+ # @estevia/evafusion-agent
2
+
3
+ The **EvaFusion Agent** (ChatWizard) is a premium, portable React-based AI assistant SDK designed to bring the power of EvaFusion Workbenches directly into any application.
4
+
5
+ ## 🚀 Quick Start
6
+
7
+ ### 1. Install
8
+
9
+ ```bash
10
+ npm install @estevia/evafusion-agent @estevia/evafusion-sdk
11
+ ```
12
+
13
+ ### 2. Implementation
14
+
15
+ Simply drop the `EvaFusionAgent` component into your main application layout.
16
+
17
+ ```tsx
18
+ import { EvaFusionAgent } from '@estevia/evafusion-agent';
19
+
20
+ function App() {
21
+ return (
22
+ <div className="app-container">
23
+ <h1>My Corporate Intelligence Hub</h1>
24
+
25
+ {/* Add the EvaFusion Agent */}
26
+ <EvaFusionAgent
27
+ apiKey="YOUR_EVAFUSION_API_KEY"
28
+ defaultVariant="ANALYST"
29
+ environment="PROD"
30
+ />
31
+ </div>
32
+ );
33
+ }
34
+ ```
35
+
36
+ ## 🧠 Core Features
37
+
38
+ - **Quantum Drawer UI**: High-fidelity, holographic side-panel matching the EvaFusion Console.
39
+ - **Neural Routing**: Automatically detects user intent and routes queries to the correct workbench (Analyst, Architect, Sentinel, etc.).
40
+ - **Data Handoff**: Pass host-application data directly into the agent for deep-vector analysis.
41
+ - **Payload Orchestration**: Real-time configuration of Vertical, Focus Mode, and Raw Data payloads.
42
+ - **Session Persistence**: Chat history and neural context persist across page refreshes.
43
+
44
+ ## 🛠 Props
45
+
46
+ | Prop | Type | Description |
47
+ | --- | --- | --- |
48
+ | `apiKey` | `string` | **Required**. Your EvaFusion API Key. |
49
+ | `defaultVariant`| `EvaVariant` | The initial workbench variant to target. |
50
+ | `initialData` | `any` | Data to prime the agent with on launch. |
51
+ | `organizationId`| `string` | Optional context for multi-tenant apps. |
52
+ | `environment` | `string` | Target environment (`PROD`, `DEV`, `LOCAL`). |
53
+ | `persist` | `boolean` | Whether to save chat history in `localStorage`. Default: `true`. |
54
+
55
+ ## 🎨 Styling
56
+
57
+ The agent uses its own scoped design system. To ensure proper rendering, ensure you have a modern browser with `backdrop-filter` support.
58
+
59
+ ---
60
+
61
+ &copy; 2026 Estevia TechSolutions. Neural Link Active.
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ export declare const EvaAgentDrawer: React.FC<{
3
+ onClose: () => void;
4
+ onMinimize: () => void;
5
+ }>;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ export declare const EvaAgentTrigger: React.FC<{
3
+ onClick: () => void;
4
+ }>;
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ import { EvaFusionAgentProps } from '../context/EvaAgentContext';
3
+ export declare const EvaFusionAgent: React.FC<EvaFusionAgentProps>;
@@ -0,0 +1,20 @@
1
+ import { default as React } from 'react';
2
+ import { EvaFusionClient, EvaVariant } from '@estevia/evafusion-sdk';
3
+ export interface EvaFusionAgentProps {
4
+ apiKey: string;
5
+ organizationId?: string;
6
+ defaultVariant?: EvaVariant;
7
+ initialData?: any;
8
+ baseUrl?: string;
9
+ environment?: 'PROD' | 'DEV' | 'QA' | 'LOCAL';
10
+ theme?: 'light' | 'dark';
11
+ persist?: boolean;
12
+ }
13
+ export declare const EvaAgentContext: React.Context<{
14
+ client: EvaFusionClient | null;
15
+ isOpen: boolean;
16
+ setIsOpen: (open: boolean) => void;
17
+ isMinimized: boolean;
18
+ setIsMinimized: (min: boolean) => void;
19
+ config: EvaFusionAgentProps;
20
+ } | null>;
@@ -0,0 +1,24 @@
1
+ import { EvaVariant } from '@estevia/evafusion-sdk';
2
+ export interface ChatMessage {
3
+ role: 'user' | 'assistant';
4
+ content: string;
5
+ variant?: EvaVariant;
6
+ timestamp: string;
7
+ }
8
+ export interface PayloadConfig {
9
+ vertical: string;
10
+ focus: string;
11
+ data: any;
12
+ }
13
+ export declare const useEvaAgent: () => {
14
+ messages: ChatMessage[];
15
+ input: string;
16
+ setInput: import('react').Dispatch<import('react').SetStateAction<string>>;
17
+ isProcessing: boolean;
18
+ activeVariant: EvaVariant;
19
+ setActiveVariant: import('react').Dispatch<import('react').SetStateAction<EvaVariant>>;
20
+ handleSend: (textOverride?: string) => Promise<void>;
21
+ payloadConfig: PayloadConfig;
22
+ updatePayloadConfig: (update: Partial<PayloadConfig>) => void;
23
+ isAuthorized: boolean;
24
+ };
@@ -0,0 +1,2 @@
1
+ export * from './components/EvaFusionAgent';
2
+ export * from './hooks/useEvaAgent';