@elqnt/agents 3.1.0 → 3.2.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/README.md +40 -0
- package/dist/{agent-models-C36pvpUb.d.mts → agent-models-DLQlC7N6.d.mts} +143 -2
- package/dist/{agent-models-C36pvpUb.d.ts → agent-models-DLQlC7N6.d.ts} +143 -2
- package/dist/api/index.d.mts +227 -5
- package/dist/api/index.d.ts +227 -5
- package/dist/api/index.js +54 -2
- package/dist/api/index.js.map +1 -1
- package/dist/api/index.mjs +53 -1
- package/dist/api/server.d.mts +4 -2
- package/dist/api/server.d.ts +4 -2
- package/dist/api/server.js +9 -1
- package/dist/api/server.js.map +1 -1
- package/dist/api/server.mjs +8 -0
- package/dist/api/server.mjs.map +1 -1
- package/dist/chunk-2JDVRL35.js +133 -0
- package/dist/chunk-2JDVRL35.js.map +1 -0
- package/dist/chunk-2QL3LLC3.mjs +1075 -0
- package/dist/chunk-2QL3LLC3.mjs.map +1 -0
- package/dist/chunk-3EHE4O57.mjs +133 -0
- package/dist/chunk-3EHE4O57.mjs.map +1 -0
- package/dist/{chunk-TPQS2XAW.js → chunk-3VM5TCJR.js} +8 -2
- package/dist/chunk-3VM5TCJR.js.map +1 -0
- package/dist/chunk-AF4QJD73.js +1075 -0
- package/dist/chunk-AF4QJD73.js.map +1 -0
- package/dist/{chunk-RAA5NKA7.js → chunk-BH2FIDFK.js} +224 -2
- package/dist/chunk-BH2FIDFK.js.map +1 -0
- package/dist/{chunk-NF6PGOXP.mjs → chunk-GOHHT3ET.mjs} +224 -2
- package/dist/chunk-GOHHT3ET.mjs.map +1 -0
- package/dist/{chunk-SXYTVNKJ.mjs → chunk-ZK27UGO6.mjs} +7 -1
- package/dist/{chunk-SXYTVNKJ.mjs.map → chunk-ZK27UGO6.mjs.map} +1 -1
- package/dist/hooks/index.d.mts +224 -67
- package/dist/hooks/index.d.ts +224 -67
- package/dist/hooks/index.js +8 -3
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +11 -6
- package/dist/index.d.mts +7 -5
- package/dist/index.d.ts +7 -5
- package/dist/index.js +67 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +70 -7
- package/dist/models/index.d.mts +3 -131
- package/dist/models/index.d.ts +3 -131
- package/dist/models/index.js +8 -2
- package/dist/models/index.js.map +1 -1
- package/dist/models/index.mjs +7 -1
- package/dist/{integration-21IuOOeV.d.mts → sandbox-DOxoM2Ge.d.mts} +132 -1
- package/dist/{integration-21IuOOeV.d.ts → sandbox-DOxoM2Ge.d.ts} +132 -1
- package/dist/transport/index.d.mts +36 -0
- package/dist/transport/index.d.ts +36 -0
- package/dist/transport/index.js +8 -0
- package/dist/transport/index.js.map +1 -0
- package/dist/transport/index.mjs +8 -0
- package/dist/transport/index.mjs.map +1 -0
- package/dist/types-C2qd5f-E.d.mts +51 -0
- package/dist/types-k9PszCzt.d.ts +51 -0
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +10 -4
- package/dist/chunk-NF6PGOXP.mjs.map +0 -1
- package/dist/chunk-RAA5NKA7.js.map +0 -1
- package/dist/chunk-RWFVHX2J.js +0 -585
- package/dist/chunk-RWFVHX2J.js.map +0 -1
- package/dist/chunk-TPQS2XAW.js.map +0 -1
- package/dist/chunk-X4MSBDTZ.mjs +0 -585
- package/dist/chunk-X4MSBDTZ.mjs.map +0 -1
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,63 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { DateFilter } from '../api/index.js';
|
|
1
|
+
import { ApiClientOptions } from '@elqnt/api-client';
|
|
2
|
+
import { A as Agent, aI as AgentSummary, ds as Skill, dV as SubAgent, eh as ToolDefinition, Z as AgentJob, a$ as AgentWidget, dD as SkillUserConfig, dk as ResolveSkillConfigResponse, aB as AgentStatusUpdate, eG as TriggerBackgroundAgentRequest, eH as TriggerBackgroundAgentResponse, bc as BackgroundAgentStatusResponse } from '../agent-models-DLQlC7N6.js';
|
|
3
|
+
export { ba as BackgroundAgentProgressEvent } from '../agent-models-DLQlC7N6.js';
|
|
4
|
+
import { DateFilter, SchedulerTask, SchedulerSchedule } from '../api/index.js';
|
|
5
|
+
import { ba as UserIntegration, ap as IntegrationProviderTS, aA as IntegrationTypeTS, h as CreateSandboxRequest, aW as Sandbox } from '../sandbox-DOxoM2Ge.js';
|
|
6
|
+
import { ChatMessage, Attachment } from '@elqnt/chat/models';
|
|
7
|
+
export { B as BGAgentTransport, a as BGAgentTransportConfig } from '../types-k9PszCzt.js';
|
|
5
8
|
import '@elqnt/types';
|
|
6
9
|
|
|
7
|
-
interface UseAsyncOptions {
|
|
8
|
-
onError?: (error: string) => void;
|
|
9
|
-
}
|
|
10
|
-
interface UseAsyncReturn<TResult, TArgs extends unknown[] = []> {
|
|
11
|
-
execute: (...args: TArgs) => Promise<TResult>;
|
|
12
|
-
loading: boolean;
|
|
13
|
-
error: string | null;
|
|
14
|
-
clearError: () => void;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Generic async hook for any promise-returning function.
|
|
18
|
-
* Uses a request counter to properly track concurrent requests.
|
|
19
|
-
*/
|
|
20
|
-
declare function useAsync<TResult, TArgs extends unknown[] = []>(asyncFn: (...args: TArgs) => Promise<TResult>, options?: UseAsyncOptions): UseAsyncReturn<TResult, TArgs>;
|
|
21
|
-
/**
|
|
22
|
-
* Specialized async hook for API operations that return ApiResponse.
|
|
23
|
-
* Automatically extracts data and handles API errors.
|
|
24
|
-
*
|
|
25
|
-
* @param asyncFn - Function that returns ApiResponse<TResponse>
|
|
26
|
-
* @param extractor - Function to extract the desired result from response data
|
|
27
|
-
* @param defaultValue - Default value to return on error
|
|
28
|
-
* @param options - Optional configuration
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```tsx
|
|
32
|
-
* const { execute: listAgents, loading, error } = useApiAsync(
|
|
33
|
-
* () => listAgentsApi(optionsRef.current),
|
|
34
|
-
* (data) => data.agents,
|
|
35
|
-
* []
|
|
36
|
-
* );
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
declare function useApiAsync<TResponse, TResult, TArgs extends unknown[] = []>(asyncFn: (...args: TArgs) => Promise<ApiResponse<TResponse>>, extractor: (data: TResponse) => TResult, defaultValue: TResult, options?: UseAsyncOptions): UseAsyncReturn<TResult, TArgs>;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Creates a ref that stays synchronized with the provided options.
|
|
43
|
-
* Useful for accessing current options values in callbacks without
|
|
44
|
-
* causing re-renders or stale closure issues.
|
|
45
|
-
*
|
|
46
|
-
* @param options - The options object to track
|
|
47
|
-
* @returns A ref that always contains the latest options
|
|
48
|
-
*
|
|
49
|
-
* @example
|
|
50
|
-
* ```tsx
|
|
51
|
-
* const optionsRef = useOptionsRef(options);
|
|
52
|
-
*
|
|
53
|
-
* const fetchData = useCallback(async () => {
|
|
54
|
-
* // Always has the latest options, no stale closure
|
|
55
|
-
* const result = await api.fetch(optionsRef.current);
|
|
56
|
-
* }, []); // No need to include options in deps
|
|
57
|
-
* ```
|
|
58
|
-
*/
|
|
59
|
-
declare function useOptionsRef<T>(options: T): React.MutableRefObject<T>;
|
|
60
|
-
|
|
61
10
|
type UseAgentsOptions = ApiClientOptions;
|
|
62
11
|
/**
|
|
63
12
|
* Hook for agent CRUD operations
|
|
@@ -83,10 +32,12 @@ declare function useAgents(options: UseAgentsOptions): {
|
|
|
83
32
|
deleteAgent: (agentId: string) => Promise<boolean>;
|
|
84
33
|
getDefaultAgent: () => Promise<Agent | null>;
|
|
85
34
|
};
|
|
35
|
+
|
|
36
|
+
type UseSkillsOptions = ApiClientOptions;
|
|
86
37
|
/**
|
|
87
38
|
* Hook for skill CRUD operations
|
|
88
39
|
*/
|
|
89
|
-
declare function useSkills(options:
|
|
40
|
+
declare function useSkills(options: UseSkillsOptions): {
|
|
90
41
|
loading: boolean;
|
|
91
42
|
error: string | null;
|
|
92
43
|
listSkills: () => Promise<Skill[]>;
|
|
@@ -96,10 +47,12 @@ declare function useSkills(options: UseAgentsOptions): {
|
|
|
96
47
|
deleteSkill: (skillId: string) => Promise<boolean>;
|
|
97
48
|
getCategories: () => Promise<string[]>;
|
|
98
49
|
};
|
|
50
|
+
|
|
51
|
+
type UseSubAgentsOptions = ApiClientOptions;
|
|
99
52
|
/**
|
|
100
53
|
* Hook for sub-agent CRUD operations
|
|
101
54
|
*/
|
|
102
|
-
declare function useSubAgents(options:
|
|
55
|
+
declare function useSubAgents(options: UseSubAgentsOptions): {
|
|
103
56
|
loading: boolean;
|
|
104
57
|
error: string | null;
|
|
105
58
|
listSubAgents: () => Promise<SubAgent[]>;
|
|
@@ -108,6 +61,8 @@ declare function useSubAgents(options: UseAgentsOptions): {
|
|
|
108
61
|
updateSubAgent: (subAgentId: string, subAgent: Partial<SubAgent>) => Promise<SubAgent | null>;
|
|
109
62
|
deleteSubAgent: (subAgentId: string) => Promise<boolean>;
|
|
110
63
|
};
|
|
64
|
+
|
|
65
|
+
type UseToolDefinitionsOptions = ApiClientOptions;
|
|
111
66
|
/**
|
|
112
67
|
* Hook for tool definition CRUD operations
|
|
113
68
|
*
|
|
@@ -121,7 +76,7 @@ declare function useSubAgents(options: UseAgentsOptions): {
|
|
|
121
76
|
* const toolDefs = await listToolDefinitions();
|
|
122
77
|
* ```
|
|
123
78
|
*/
|
|
124
|
-
declare function useToolDefinitions(options:
|
|
79
|
+
declare function useToolDefinitions(options: UseToolDefinitionsOptions): {
|
|
125
80
|
loading: boolean;
|
|
126
81
|
error: string | null;
|
|
127
82
|
listToolDefinitions: () => Promise<ToolDefinition[]>;
|
|
@@ -131,6 +86,8 @@ declare function useToolDefinitions(options: UseAgentsOptions): {
|
|
|
131
86
|
updateToolDefinition: (toolDefId: string, toolDefinition: Partial<ToolDefinition>) => Promise<ToolDefinition | null>;
|
|
132
87
|
deleteToolDefinition: (toolDefId: string) => Promise<boolean>;
|
|
133
88
|
};
|
|
89
|
+
|
|
90
|
+
type UseAgentJobsOptions = ApiClientOptions;
|
|
134
91
|
/**
|
|
135
92
|
* Hook for agent job CRUD operations
|
|
136
93
|
*
|
|
@@ -145,7 +102,7 @@ declare function useToolDefinitions(options: UseAgentsOptions): {
|
|
|
145
102
|
* await pauseAgentJob(jobId);
|
|
146
103
|
* ```
|
|
147
104
|
*/
|
|
148
|
-
declare function useAgentJobs(options:
|
|
105
|
+
declare function useAgentJobs(options: UseAgentJobsOptions): {
|
|
149
106
|
loading: boolean;
|
|
150
107
|
error: string | null;
|
|
151
108
|
listAgentJobs: () => Promise<AgentJob[]>;
|
|
@@ -156,7 +113,8 @@ declare function useAgentJobs(options: UseAgentsOptions): {
|
|
|
156
113
|
pauseAgentJob: (jobId: string) => Promise<AgentJob | null>;
|
|
157
114
|
resumeAgentJob: (jobId: string) => Promise<AgentJob | null>;
|
|
158
115
|
};
|
|
159
|
-
|
|
116
|
+
|
|
117
|
+
interface UseWidgetsOptions extends ApiClientOptions {
|
|
160
118
|
agentId: string;
|
|
161
119
|
}
|
|
162
120
|
/**
|
|
@@ -184,6 +142,8 @@ declare function useWidgets(options: UseWidgetsOptions): {
|
|
|
184
142
|
deleteWidget: (widgetId: string) => Promise<boolean>;
|
|
185
143
|
setDefaultWidget: (widgetId: string) => Promise<boolean>;
|
|
186
144
|
};
|
|
145
|
+
|
|
146
|
+
type UseSkillUserConfigOptions = ApiClientOptions;
|
|
187
147
|
/**
|
|
188
148
|
* Hook for skill user configuration operations
|
|
189
149
|
*
|
|
@@ -198,7 +158,7 @@ declare function useWidgets(options: UseWidgetsOptions): {
|
|
|
198
158
|
* await updateSkillUserConfig(skillId, { enabled: true });
|
|
199
159
|
* ```
|
|
200
160
|
*/
|
|
201
|
-
declare function useSkillUserConfig(options:
|
|
161
|
+
declare function useSkillUserConfig(options: UseSkillUserConfigOptions): {
|
|
202
162
|
loading: boolean;
|
|
203
163
|
error: string | null;
|
|
204
164
|
getSkillUserConfig: (skillId: string, agentId?: string | undefined) => Promise<SkillUserConfig | null>;
|
|
@@ -216,6 +176,8 @@ declare function useSkillUserConfig(options: UseAgentsOptions): {
|
|
|
216
176
|
} | undefined) => Promise<SkillUserConfig[]>;
|
|
217
177
|
resolveSkillConfig: (skillId: string, agentId: string) => Promise<ResolveSkillConfigResponse | null>;
|
|
218
178
|
};
|
|
179
|
+
|
|
180
|
+
type UseAnalyticsOptions = ApiClientOptions;
|
|
219
181
|
/**
|
|
220
182
|
* Hook for agent analytics operations
|
|
221
183
|
*
|
|
@@ -229,7 +191,7 @@ declare function useSkillUserConfig(options: UseAgentsOptions): {
|
|
|
229
191
|
* const chatsData = await getAgentChatsAnalytics({ from: '2024-01-01', to: '2024-12-31' });
|
|
230
192
|
* ```
|
|
231
193
|
*/
|
|
232
|
-
declare function useAnalytics(options:
|
|
194
|
+
declare function useAnalytics(options: UseAnalyticsOptions): {
|
|
233
195
|
loading: boolean;
|
|
234
196
|
error: string | null;
|
|
235
197
|
getAgentChatsAnalytics: (params: {
|
|
@@ -245,6 +207,8 @@ declare function useAnalytics(options: UseAgentsOptions): {
|
|
|
245
207
|
date_filter: DateFilter;
|
|
246
208
|
}) => Promise<unknown[]>;
|
|
247
209
|
};
|
|
210
|
+
|
|
211
|
+
type UseIntegrationsOptions = ApiClientOptions;
|
|
248
212
|
/**
|
|
249
213
|
* Hook for user integration operations (OAuth connections)
|
|
250
214
|
*
|
|
@@ -259,7 +223,7 @@ declare function useAnalytics(options: UseAgentsOptions): {
|
|
|
259
223
|
* const { auth_url } = await connectIntegration({ provider: 'google', integrationType: 'email', redirectUri: '/callback' });
|
|
260
224
|
* ```
|
|
261
225
|
*/
|
|
262
|
-
declare function useIntegrations(options:
|
|
226
|
+
declare function useIntegrations(options: UseIntegrationsOptions): {
|
|
263
227
|
loading: boolean;
|
|
264
228
|
error: string | null;
|
|
265
229
|
listIntegrations: () => Promise<UserIntegration[]>;
|
|
@@ -292,4 +256,197 @@ declare function useIntegrations(options: UseAgentsOptions): {
|
|
|
292
256
|
} | null>;
|
|
293
257
|
};
|
|
294
258
|
|
|
295
|
-
|
|
259
|
+
type UseSandboxOptions = ApiClientOptions;
|
|
260
|
+
/**
|
|
261
|
+
* Hook for sandbox operations (AI-generated HTML sandboxes)
|
|
262
|
+
*
|
|
263
|
+
* @example
|
|
264
|
+
* ```tsx
|
|
265
|
+
* const { createSandbox, getSandbox, listSandboxes, loading, error } = useSandbox({
|
|
266
|
+
* baseUrl: apiGatewayUrl,
|
|
267
|
+
* orgId: selectedOrgId,
|
|
268
|
+
* });
|
|
269
|
+
*
|
|
270
|
+
* const result = await createSandbox({ prompt: "Create a bar chart showing sales data" });
|
|
271
|
+
* console.log(result.url); // sandbox URL
|
|
272
|
+
* ```
|
|
273
|
+
*/
|
|
274
|
+
declare function useSandbox(options: UseSandboxOptions): {
|
|
275
|
+
loading: boolean;
|
|
276
|
+
error: string | null;
|
|
277
|
+
createSandbox: (request: Omit<CreateSandboxRequest, "orgId">) => Promise<{
|
|
278
|
+
id: string;
|
|
279
|
+
url: string;
|
|
280
|
+
sandbox?: Sandbox;
|
|
281
|
+
} | null>;
|
|
282
|
+
getSandbox: (sandboxId: string) => Promise<Sandbox | null>;
|
|
283
|
+
updateSandbox: (sandboxId: string, request: {
|
|
284
|
+
prompt: string;
|
|
285
|
+
title?: string;
|
|
286
|
+
}) => Promise<{
|
|
287
|
+
id: string;
|
|
288
|
+
url: string;
|
|
289
|
+
sandbox?: Sandbox;
|
|
290
|
+
} | null>;
|
|
291
|
+
listSandboxes: (limit?: number | undefined) => Promise<{
|
|
292
|
+
sandboxes: Sandbox[];
|
|
293
|
+
total: number;
|
|
294
|
+
}>;
|
|
295
|
+
deleteSandbox: (sandboxId: string) => Promise<boolean>;
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
type UseSchedulerTasksOptions = ApiClientOptions;
|
|
299
|
+
/**
|
|
300
|
+
* Hook for scheduler task operations
|
|
301
|
+
*
|
|
302
|
+
* @example
|
|
303
|
+
* ```tsx
|
|
304
|
+
* const { listTasks, createTask, snoozeTask, loading, error } = useSchedulerTasks({
|
|
305
|
+
* baseUrl: apiGatewayUrl,
|
|
306
|
+
* orgId: selectedOrgId,
|
|
307
|
+
* });
|
|
308
|
+
*
|
|
309
|
+
* const tasks = await listTasks();
|
|
310
|
+
* await snoozeTask(taskId, { amount: 30, unit: "minutes" });
|
|
311
|
+
* ```
|
|
312
|
+
*/
|
|
313
|
+
declare function useSchedulerTasks(options: UseSchedulerTasksOptions): {
|
|
314
|
+
loading: boolean;
|
|
315
|
+
error: string | null;
|
|
316
|
+
listTasks: (params?: {
|
|
317
|
+
status?: string;
|
|
318
|
+
limit?: number;
|
|
319
|
+
offset?: number;
|
|
320
|
+
} | undefined) => Promise<SchedulerTask[]>;
|
|
321
|
+
createTask: (task: Partial<SchedulerTask>) => Promise<SchedulerTask | null>;
|
|
322
|
+
getTask: (taskId: string) => Promise<SchedulerTask | null>;
|
|
323
|
+
updateTask: (taskId: string, task: Partial<SchedulerTask>) => Promise<SchedulerTask | null>;
|
|
324
|
+
deleteTask: (taskId: string) => Promise<boolean>;
|
|
325
|
+
snoozeTask: (taskId: string, delay: {
|
|
326
|
+
amount: number;
|
|
327
|
+
unit: string;
|
|
328
|
+
}) => Promise<SchedulerTask | null>;
|
|
329
|
+
completeTask: (taskId: string) => Promise<SchedulerTask | null>;
|
|
330
|
+
startTask: (taskId: string) => Promise<SchedulerTask | null>;
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
type UseSchedulerSchedulesOptions = ApiClientOptions;
|
|
334
|
+
/**
|
|
335
|
+
* Hook for scheduler schedule operations (recurring jobs)
|
|
336
|
+
*
|
|
337
|
+
* @example
|
|
338
|
+
* ```tsx
|
|
339
|
+
* const { listSchedules, createSchedule, pauseSchedule, loading, error } = useSchedulerSchedules({
|
|
340
|
+
* baseUrl: apiGatewayUrl,
|
|
341
|
+
* orgId: selectedOrgId,
|
|
342
|
+
* });
|
|
343
|
+
*
|
|
344
|
+
* const schedules = await listSchedules();
|
|
345
|
+
* await pauseSchedule(scheduleId);
|
|
346
|
+
* ```
|
|
347
|
+
*/
|
|
348
|
+
declare function useSchedulerSchedules(options: UseSchedulerSchedulesOptions): {
|
|
349
|
+
loading: boolean;
|
|
350
|
+
error: string | null;
|
|
351
|
+
listSchedules: (params?: {
|
|
352
|
+
status?: string;
|
|
353
|
+
limit?: number;
|
|
354
|
+
offset?: number;
|
|
355
|
+
} | undefined) => Promise<SchedulerSchedule[]>;
|
|
356
|
+
createSchedule: (schedule: Partial<SchedulerSchedule>) => Promise<SchedulerSchedule | null>;
|
|
357
|
+
getSchedule: (scheduleId: string) => Promise<SchedulerSchedule | null>;
|
|
358
|
+
updateSchedule: (scheduleId: string, schedule: Partial<SchedulerSchedule>) => Promise<SchedulerSchedule | null>;
|
|
359
|
+
deleteSchedule: (scheduleId: string) => Promise<boolean>;
|
|
360
|
+
pauseSchedule: (scheduleId: string) => Promise<SchedulerSchedule | null>;
|
|
361
|
+
resumeSchedule: (scheduleId: string) => Promise<SchedulerSchedule | null>;
|
|
362
|
+
runSchedule: (scheduleId: string) => Promise<SchedulerSchedule | null>;
|
|
363
|
+
};
|
|
364
|
+
|
|
365
|
+
/** Live state accumulated from SSE events for a single background agent */
|
|
366
|
+
interface BGAgentLiveState {
|
|
367
|
+
status: "running" | "completed" | "failed";
|
|
368
|
+
progressLog: string[];
|
|
369
|
+
latestMessage: string;
|
|
370
|
+
result?: string;
|
|
371
|
+
error?: string;
|
|
372
|
+
}
|
|
373
|
+
/** Options for useBackgroundAgents hook */
|
|
374
|
+
interface UseBackgroundAgentsOptions extends ApiClientOptions {
|
|
375
|
+
/** Chat service URL for SSE streaming (e.g., wss://chat.example.com or https://chat.example.com) */
|
|
376
|
+
chatServiceUrl?: string;
|
|
377
|
+
/** User ID (typically email) for chat operations */
|
|
378
|
+
userId?: string;
|
|
379
|
+
}
|
|
380
|
+
/** Background status reported by the agent via report_status tool */
|
|
381
|
+
type BackgroundStatus = "processing" | "completed" | "failed";
|
|
382
|
+
/** Watched chat state with messages */
|
|
383
|
+
interface WatchedChatState {
|
|
384
|
+
chatKey: string;
|
|
385
|
+
messages: ChatMessage[];
|
|
386
|
+
status: "loading" | "active" | "completed" | "error";
|
|
387
|
+
/** Background agent status (from report_status tool) */
|
|
388
|
+
backgroundStatus?: BackgroundStatus;
|
|
389
|
+
/** Background agent status message (from report_status tool) */
|
|
390
|
+
backgroundStatusMessage?: string;
|
|
391
|
+
/** History of all status updates for inline display */
|
|
392
|
+
statusHistory: AgentStatusUpdate[];
|
|
393
|
+
title?: string;
|
|
394
|
+
metadata?: Record<string, unknown>;
|
|
395
|
+
error?: string;
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* Hook for triggering background agents, streaming progress via SSE, and checking status.
|
|
399
|
+
*
|
|
400
|
+
* @example
|
|
401
|
+
* ```tsx
|
|
402
|
+
* const { startChat, sendMessage } = useChatContext();
|
|
403
|
+
* const { liveStates, createTask, streamJob, checkStatus } = useBackgroundAgents({
|
|
404
|
+
* baseUrl: apiGatewayUrl,
|
|
405
|
+
* orgId: selectedOrgId,
|
|
406
|
+
* startChat,
|
|
407
|
+
* sendMessage,
|
|
408
|
+
* });
|
|
409
|
+
*
|
|
410
|
+
* // Create a background task (simplified flow using chat)
|
|
411
|
+
* const chatKey = await createTask("Analyze the quarterly report");
|
|
412
|
+
*
|
|
413
|
+
* // Or trigger via jobs API (PostgreSQL-backed)
|
|
414
|
+
* const result = await triggerAgent({ name: "Analysis", prompt: "...", agentName: "Research Agent" });
|
|
415
|
+
* if (result?.jobId) streamJob(result.jobId);
|
|
416
|
+
* ```
|
|
417
|
+
*/
|
|
418
|
+
declare function useBackgroundAgents(options: UseBackgroundAgentsOptions): {
|
|
419
|
+
liveStates: Record<string, BGAgentLiveState>;
|
|
420
|
+
streamJob: (jobId: string) => void;
|
|
421
|
+
createTask: (prompt: string, attachments?: Attachment[]) => Promise<string | null>;
|
|
422
|
+
watchChat: (chatKey: string) => Promise<void>;
|
|
423
|
+
unwatchChat: (chatKey: string) => void;
|
|
424
|
+
watchedChats: Record<string, WatchedChatState>;
|
|
425
|
+
triggerAgent: (request: Pick<TriggerBackgroundAgentRequest, "name" | "prompt" | "agentName" | "context" | "enableSSE" | "description">) => Promise<TriggerBackgroundAgentResponse | null>;
|
|
426
|
+
checkStatus: (jobId: string) => Promise<BackgroundAgentStatusResponse | null>;
|
|
427
|
+
listAgentSummaries: () => Promise<AgentSummary[]>;
|
|
428
|
+
loading: boolean;
|
|
429
|
+
error: string | null;
|
|
430
|
+
};
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Creates a ref that stays synchronized with the provided options.
|
|
434
|
+
* Useful for accessing current options values in callbacks without
|
|
435
|
+
* causing re-renders or stale closure issues.
|
|
436
|
+
*
|
|
437
|
+
* @param options - The options object to track
|
|
438
|
+
* @returns A ref that always contains the latest options
|
|
439
|
+
*
|
|
440
|
+
* @example
|
|
441
|
+
* ```tsx
|
|
442
|
+
* const optionsRef = useOptionsRef(options);
|
|
443
|
+
*
|
|
444
|
+
* const fetchData = useCallback(async () => {
|
|
445
|
+
* // Always has the latest options, no stale closure
|
|
446
|
+
* const result = await api.fetch(optionsRef.current);
|
|
447
|
+
* }, []); // No need to include options in deps
|
|
448
|
+
* ```
|
|
449
|
+
*/
|
|
450
|
+
declare function useOptionsRef<T>(options: T): React.MutableRefObject<T>;
|
|
451
|
+
|
|
452
|
+
export { type BGAgentLiveState, type BackgroundStatus, type UseAgentJobsOptions, type UseAgentsOptions, type UseAnalyticsOptions, type UseBackgroundAgentsOptions, type UseIntegrationsOptions, type UseSandboxOptions, type UseSchedulerSchedulesOptions, type UseSchedulerTasksOptions, type UseSkillUserConfigOptions, type UseSkillsOptions, type UseSubAgentsOptions, type UseToolDefinitionsOptions, type UseWidgetsOptions, type WatchedChatState, useAgentJobs, useAgents, useAnalytics, useBackgroundAgents, useIntegrations, useOptionsRef, useSandbox, useSchedulerSchedules, useSchedulerTasks, useSkillUserConfig, useSkills, useSubAgents, useToolDefinitions, useWidgets };
|
package/dist/hooks/index.js
CHANGED
|
@@ -13,10 +13,11 @@
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var _chunkRWFVHX2Jjs = require('../chunk-RWFVHX2J.js');
|
|
17
|
-
require('../chunk-RAA5NKA7.js');
|
|
18
16
|
|
|
19
17
|
|
|
18
|
+
var _chunkAF4QJD73js = require('../chunk-AF4QJD73.js');
|
|
19
|
+
require('../chunk-BH2FIDFK.js');
|
|
20
|
+
require('../chunk-2JDVRL35.js');
|
|
20
21
|
|
|
21
22
|
|
|
22
23
|
|
|
@@ -28,5 +29,9 @@ require('../chunk-RAA5NKA7.js');
|
|
|
28
29
|
|
|
29
30
|
|
|
30
31
|
|
|
31
|
-
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
exports.useAgentJobs = _chunkAF4QJD73js.useAgentJobs; exports.useAgents = _chunkAF4QJD73js.useAgents; exports.useAnalytics = _chunkAF4QJD73js.useAnalytics; exports.useBackgroundAgents = _chunkAF4QJD73js.useBackgroundAgents; exports.useIntegrations = _chunkAF4QJD73js.useIntegrations; exports.useOptionsRef = _chunkAF4QJD73js.useOptionsRef; exports.useSandbox = _chunkAF4QJD73js.useSandbox; exports.useSchedulerSchedules = _chunkAF4QJD73js.useSchedulerSchedules; exports.useSchedulerTasks = _chunkAF4QJD73js.useSchedulerTasks; exports.useSkillUserConfig = _chunkAF4QJD73js.useSkillUserConfig; exports.useSkills = _chunkAF4QJD73js.useSkills; exports.useSubAgents = _chunkAF4QJD73js.useSubAgents; exports.useToolDefinitions = _chunkAF4QJD73js.useToolDefinitions; exports.useWidgets = _chunkAF4QJD73js.useWidgets;
|
|
32
37
|
//# sourceMappingURL=index.js.map
|
package/dist/hooks/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/eloquent/eloquent/packages/@elqnt/agents/dist/hooks/index.js"],"names":[],"mappings":"AAAA,qFAAY;AACZ,YAAY;AACZ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/eloquent/eloquent/packages/@elqnt/agents/dist/hooks/index.js"],"names":[],"mappings":"AAAA,qFAAY;AACZ,YAAY;AACZ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yyBAAC","file":"/home/runner/work/eloquent/eloquent/packages/@elqnt/agents/dist/hooks/index.js"}
|
package/dist/hooks/index.mjs
CHANGED
|
@@ -4,25 +4,30 @@ import {
|
|
|
4
4
|
useAgentJobs,
|
|
5
5
|
useAgents,
|
|
6
6
|
useAnalytics,
|
|
7
|
-
|
|
8
|
-
useAsync,
|
|
7
|
+
useBackgroundAgents,
|
|
9
8
|
useIntegrations,
|
|
10
9
|
useOptionsRef,
|
|
10
|
+
useSandbox,
|
|
11
|
+
useSchedulerSchedules,
|
|
12
|
+
useSchedulerTasks,
|
|
11
13
|
useSkillUserConfig,
|
|
12
14
|
useSkills,
|
|
13
15
|
useSubAgents,
|
|
14
16
|
useToolDefinitions,
|
|
15
17
|
useWidgets
|
|
16
|
-
} from "../chunk-
|
|
17
|
-
import "../chunk-
|
|
18
|
+
} from "../chunk-2QL3LLC3.mjs";
|
|
19
|
+
import "../chunk-GOHHT3ET.mjs";
|
|
20
|
+
import "../chunk-3EHE4O57.mjs";
|
|
18
21
|
export {
|
|
19
22
|
useAgentJobs,
|
|
20
23
|
useAgents,
|
|
21
24
|
useAnalytics,
|
|
22
|
-
|
|
23
|
-
useAsync,
|
|
25
|
+
useBackgroundAgents,
|
|
24
26
|
useIntegrations,
|
|
25
27
|
useOptionsRef,
|
|
28
|
+
useSandbox,
|
|
29
|
+
useSchedulerSchedules,
|
|
30
|
+
useSchedulerTasks,
|
|
26
31
|
useSkillUserConfig,
|
|
27
32
|
useSkills,
|
|
28
33
|
useSubAgents,
|
package/dist/index.d.mts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
export { A as Agent, a as AgentCategory, b as AgentCategoryDevelopment, c as AgentCategoryFinance, d as AgentCategoryGeneral, e as AgentCategoryHR, f as AgentCategoryMarketing, g as AgentCategoryProductivity, h as AgentCategoryResearch, i as AgentCategorySales, j as AgentCategorySupport, k as AgentCategoryTS, l as AgentCategoryWriting, m as AgentChatCreateSubject, n as AgentChatGetSubject, o as AgentChatUpdateSubject, p as AgentChatValidateSubject, q as AgentCloneSubject, r as AgentContext, s as AgentContextConfig, t as AgentCreateSubject, u as AgentCreatedSubject, v as AgentDeleteSubject, w as AgentDeletedSubject, x as AgentEnsureDefaultSubject, y as AgentExecuteStatusSubject, z as AgentExecuteStopSubject, B as AgentExecuteSubject, C as AgentExecution, D as AgentExportSubject, E as AgentFilters, F as AgentFromTemplateSubject, G as AgentGetByOrgSubject, H as AgentGetDefaultSubject, I as AgentGetSubject, J as AgentImportSubject, K as AgentInstanceCancelPlanSubject, L as AgentInstanceClearHistorySubject, M as AgentInstanceCreatePlanSubject, N as AgentInstanceCreateSubject, O as AgentInstanceCreatedSubject, P as AgentInstanceDeleteSubject, Q as AgentInstanceDeletedSubject, R as AgentInstanceExecutePlanSubject, S as AgentInstanceGetHistorySubject, T as AgentInstanceGetSubject, U as AgentInstanceListSubject, V as AgentInstancePausePlanSubject, W as AgentInstanceResumePlanSubject, X as AgentInstanceUpdateSubject, Y as AgentInstanceUpdatedSubject, Z as AgentJob, _ as AgentJobCreateSubject, $ as AgentJobDeleteSubject, a0 as AgentJobGetSubject, a1 as AgentJobIDRequest, a2 as AgentJobListSubject, a3 as AgentJobPauseSubject, a4 as AgentJobResponse, a5 as AgentJobResumeSubject, a6 as AgentJobTriggerRequest, a7 as AgentJobTriggerResponse, a8 as AgentJobTriggerSubject, a9 as AgentJobUpdateSubject, aa as AgentJobsListResponse, ab as AgentListSubject, ac as AgentListSummarySubject, ad as AgentProvisionDefinition, ae as AgentReactCreateSubject, af as AgentReactGetSubject, ag as AgentReactUpdateSubject, ah as AgentReactValidateSubject, ai as AgentResponse, aj as AgentScope, ak as AgentScopeOrg, al as AgentScopeTS, am as AgentScopeTeam, an as AgentScopeUser, ao as AgentSearchSubject, ap as AgentSkill, aq as AgentSkillConfigResponse, ar as AgentSkillGetConfigSubject, as as AgentSkillUpdateConfigSubject, at as AgentStatus, au as AgentStatusActive, av as AgentStatusArchived, aw as AgentStatusDraft, ax as AgentStatusInactive, ay as AgentStatusTS, az as AgentSubType, aA as AgentSubTypeChat, aB as AgentSubTypeDocument, aC as AgentSubTypeReact, aD as AgentSubTypeTS, aE as AgentSubTypeWorkflow, aF as AgentSummary, aG as AgentTemplate, aH as AgentTemplateGetSubject, aI as AgentTemplateListSubject, aJ as AgentTool, aK as AgentToolConfiguration, aL as AgentType, aM as AgentTypeChat, aN as AgentTypeReact, aO as AgentTypeTS, aP as AgentUpdateOrgSubject, aQ as AgentUpdateSubject, aR as AgentUpdatedSubject, aS as AgentVersionActivateSubject, aT as AgentVersionActivatedSubject, aU as AgentVersionCreateSubject, aV as AgentVersionCreatedSubject, aW as AgentVersionGetSubject, aX as AgentVersionListSubject, aY as AgentWidget, aZ as AgentWidgetResponse, a_ as AgentWidgetsCreateSubject, a$ as AgentWidgetsDeleteSubject, b0 as AgentWidgetsGetByWidgetID, b1 as AgentWidgetsGetDefaultSubject, b2 as AgentWidgetsGetSubject, b3 as AgentWidgetsListSubject, b4 as AgentWidgetsSetDefaultSubject, b5 as AgentWidgetsUpdateSubject, b6 as ArtifactRef, b7 as CSATAnswer, b8 as CSATConfig, b9 as CSATQuestion, ba as CSATResponse, bb as CSATSurvey, bc as ChatAgentExecuteSubject, bd as ChatAgentStatusSubject, be as CreateAgentJobRequest, bf as CreateAgentRequest, bg as CreateAgentWidgetRequest, bh as CreateExecutionPlanRequest, bi as CreateExecutionPlanResponse, bj as CreateSkillRequest, bk as CreateSubAgentRequest, bl as CreateToolDefinitionRequest, bm as CustomizableField, bn as DefaultDefinitions, bo as DeleteAgentRequest, bp as DeleteAgentWidgetRequest, bq as DeleteSkillRequest, br as DeleteSkillUserConfigRequest, bs as DeleteSubAgentRequest, bt as DeleteToolDefinitionRequest, bu as ExecuteJobRequest, bv as ExecutePlanRequest, bw as ExecutePlanResponse, bx as ExecuteToolRequest, by as ExecuteToolResponse, bz as ExecutionCompletedEvent, bA as ExecutionMode, bB as ExecutionModeAsync, bC as ExecutionModeAsyncClient, bD as ExecutionModeSync, bE as ExecutionModeTS, bF as ExecutionPlan, bG as ExecutionResponse, bH as ExecutionStatus, bI as ExecutionStatusCompleted, bJ as ExecutionStatusFailed, bK as ExecutionStatusPending, bL as ExecutionStatusRunning, bM as ExecutionStatusSkipped, bN as ExecutionStatusTS, bO as ExecutionTTLHours, bP as ExecutionsTTLCleanupSubject, bQ as GetAgentRequest, bR as GetAgentSkillConfigRequest, bS as GetAgentWidgetRequest, bT as GetDefaultAgentRequest, bU as GetDefaultWidgetRequest, bV as GetExecutionRequest, bW as GetSkillRequest, bX as GetSkillUserConfigRequest, bY as GetSkillsByIDsRequest, bZ as GetSkillsByIDsResponse, b_ as GetSubAgentRequest, b$ as GetSubAgentsByIDsRequest, c0 as GetSubAgentsByIDsResponse, c1 as GetToolDefinitionRequest, c2 as GetToolDefinitionsByIDsRequest, c3 as GetToolDefinitionsByIDsResponse, c4 as GetWidgetByWidgetIDRequest, c5 as GetWidgetConfigRequest, c6 as GetWidgetConfigResponse, c7 as HandoffConfig, c8 as IntegrationRequirement, c9 as JobExecution, ca as JobExecutionGetSubject, cb as JobExecutionListSubject, cc as JobExecutionResult, cd as JobExecutionStatus, ce as JobExecutionStatusFailed, cf as JobExecutionStatusRunning, cg as JobExecutionStatusSuccess, ch as JobExecutionStatusTS, ci as JobExecutionStatusTimedOut, cj as JobFrequency, ck as JobFrequencyOneTime, cl as JobFrequencySchedule, cm as JobFrequencyTS, cn as JobScope, co as JobScopeOrg, cp as JobScopePrivate, cq as JobScopeTS, cr as JobScopeTeam, cs as JobStatus, ct as JobStatusActive, cu as JobStatusDisabled, cv as JobStatusExecuting, cw as JobStatusPaused, cx as JobStatusTS, cy as ListAgentJobsRequest, cz as ListAgentWidgetsRequest, cA as ListAgentWidgetsResponse, cB as ListAgentsRequest, cC as ListAgentsResponse, cD as ListAgentsSummaryRequest, cE as ListAgentsSummaryResponse, cF as ListExecutionsByAgentRequest, cG as ListExecutionsByJobRequest, cH as ListExecutionsResponse, cI as ListSkillUserConfigRequest, cJ as ListSkillsRequest, cK as ListSubAgentsRequest, cL as ListToolDefinitionsRequest, cM as MCPServerConfig, cN as MaxExecutions, cO as MergeConfig, cP as MergeStrategy, cQ as MergeStrategyAppend, cR as MergeStrategyMerge, cS as MergeStrategyReplace, cT as MergeStrategyTS, cU as PlanApprovalConfig, cV as PlanStatus, cW as PlanStatusApproved, cX as PlanStatusCancelled, cY as PlanStatusCompleted, cZ as PlanStatusExecuting, c_ as PlanStatusPendingApproval, c$ as PlanStatusRejected, d0 as PlanStatusTS, d1 as PlannedStep, d2 as ProcessJobTriggerResult, d3 as PublicWidgetConfig, d4 as PublisherType, d5 as PublisherTypeEloquent, d6 as PublisherTypePartner, d7 as PublisherTypeTS, d8 as ReactAgentConfig, d9 as ReactAgentExecuteSubject, da as ReactAgentStatusSubject, db as ReactAgentStopSubject, dc as ResolveSkillConfigRequest, dd as ResolveSkillConfigResponse, de as RetryPolicy, df as RuntimeJobCompletedSubject, dg as RuntimeJobExecuteSubject, dh as SaveWidgetConfigRequest, di as SaveWidgetConfigResponse, dj as SetDefaultWidgetRequest, dk as Skill, dl as SkillCategory, dm as SkillCategoryAnalysis, dn as SkillCategoryCommunication, dp as SkillCategoryCreative, dq as SkillCategoryCustom, dr as SkillCategoryIntegration, ds as SkillCategoryProductivity, dt as SkillCategoryTS, du as SkillResolveConfigSubject, dv as SkillResponse, dw as SkillUserConfig, dx as SkillUserConfigDeleteSubject, dy as SkillUserConfigGetSubject, dz as SkillUserConfigListResponse, dA as SkillUserConfigListSubject, dB as SkillUserConfigResponse, dC as SkillUserConfigUpdateSubject, dD as SkillsCreateSubject, dE as SkillsCreatedSubject, dF as SkillsDeleteSubject, dG as SkillsDeletedSubject, dH as SkillsGetByIDsSubject, dI as SkillsGetSubject, dJ as SkillsListResponse, dK as SkillsListSubject, dL as SkillsUpdateOrgConfigSubject, dM as SkillsUpdateSubject, dN as SkillsUpdatedSubject, dO as SubAgent, dP as SubAgentResponse, dQ as SubAgentsCreateSubject, dR as SubAgentsCreatedSubject, dS as SubAgentsDeleteSubject, dT as SubAgentsDeletedSubject, dU as SubAgentsExecuteSubject, dV as SubAgentsGetByIDsSubject, dW as SubAgentsGetSubject, dX as SubAgentsListResponse, dY as SubAgentsListSubject, dZ as SubAgentsUpdateSubject, d_ as SubAgentsUpdatedSubject, d$ as SubAgentsValidateSubject, e0 as TTLCleanupRequest, e1 as TTLCleanupResponse, e2 as TemplateCategoryCount, e3 as TemplateFilters, e4 as TemplateStatus, e5 as TemplateStatusDraft, e6 as TemplateStatusPublished, e7 as TemplateStatusTS, e8 as ToolConfig, e9 as ToolDefinition, ea as ToolDefinitionResponse, eb as ToolDefinitionsCreateSubject, ec as ToolDefinitionsCreatedSubject, ed as ToolDefinitionsDeleteSubject, ee as ToolDefinitionsDeletedSubject, ef as ToolDefinitionsExecuteSubject, eg as ToolDefinitionsGetByIDsSubject, eh as ToolDefinitionsGetSubject, ei as ToolDefinitionsListResponse, ej as ToolDefinitionsListSubject, ek as ToolDefinitionsUpdateSubject, el as ToolDefinitionsUpdatedSubject, em as ToolDefinitionsValidateSubject, en as ToolExecution, eo as ToolExecutionPolicy, ep as ToolExecutionProgress, eq as ToolExecutionStatus, er as ToolExecutionStatusCompleted, es as ToolExecutionStatusExecuting, et as ToolExecutionStatusFailed, eu as ToolExecutionStatusSkipped, ev as ToolExecutionStatusStarted, ew as ToolExecutionStatusTS, ex as ToolExecutionStatusTimeout, ey as UpdateAgentJobRequest, ez as UpdateAgentRequest, eA as UpdateAgentSkillConfigRequest, eB as UpdateAgentWidgetRequest, eC as UpdateOrgAgentsRequest, eD as UpdateOrgAgentsResponse, eE as UpdateSkillOrgConfigRequest, eF as UpdateSkillRequest, eG as UpdateSkillUserConfigRequest, eH as UpdateSubAgentRequest, eI as UpdateToolDefinitionRequest, eJ as UserSuggestedAction, eK as UserSuggestedActionsConfig, eL as UserSuggestedActionsRequest, eM as UserSuggestedActionsResponse, eN as ValidationError, eO as ValidationErrors, eP as WidgetAppearance, eQ as WidgetBehavior, eR as WidgetConfig, eS as WidgetConfigGetByAgentSubject, eT as WidgetConfigSaveSubject, eU as WidgetSecurity, eV as WorkflowAgentGetSubject, eW as WorkflowAgentUpdateSubject } from './agent-models-C36pvpUb.mjs';
|
|
2
|
-
export { AddFieldRequest, AddFieldResponse, AiTaskOutcome, AnalyticsRequest, AnalyticsResponse, BoardDetails, BoardSummary, ChatMetricsResponse,
|
|
3
|
-
export { A as ArchiveEmailRequest, a as ArchiveEmailResponse, C as CalendarEvent, b as ConfigureOrgIntegrationRequest, c as ConfigureOrgIntegrationResponse, d as ConnectIntegrationRequest, e as ConnectIntegrationResponse, f as CreateCalendarEventRequest, g as CreateCalendarEventResponse, D as DeleteCalendarEventRequest,
|
|
4
|
-
export { AnalyticsDataResponse, DateFilter, ProvisionAgentsResponse, SkillCategoriesResponse, connectIntegrationApi, createAgentApi, createAgentJobApi, createSkillApi, createSubAgentApi, createToolDefinitionApi, createWidgetApi, deleteAgentApi, deleteAgentJobApi, deleteSkillApi, deleteSkillUserConfigApi, deleteSubAgentApi, deleteToolDefinitionApi, deleteWidgetApi, disconnectIntegrationApi, getAgentApi, getAgentByNameApi, getAgentCSATAnalyticsApi, getAgentChatsAnalyticsApi, getAgentJobApi, getAgentListAnalyticsApi, getDefaultAgentApi, getDefaultWidgetApi, getIntegrationApi, getSkillApi, getSkillCategoriesApi, getSkillUserConfigApi, getSkillsByIdsApi, getSubAgentApi, getTaskOutcomesApi, getToolDefinitionApi, getToolDefinitionsByIdsApi, getWidgetApi, getWidgetByWidgetIdApi, integrationCallbackApi, listAgentJobsApi, listAgentsApi, listAgentsSummaryApi, listIntegrationsApi, listSkillUserConfigsApi, listSkillsApi, listSubAgentsApi, listToolDefinitionsApi, listWidgetsApi, pauseAgentJobApi, provisionAgentsApi, refreshIntegrationApi, resolveSkillConfigApi, resumeAgentJobApi, runEmailTriageApi, searchSkillsApi, setDefaultWidgetApi, updateAgentApi, updateAgentJobApi, updateIntegrationTriageApi, updateSkillApi, updateSkillOrgConfigApi, updateSkillUserConfigApi, updateSubAgentApi, updateToolDefinitionApi, updateWidgetApi } from './api/index.mjs';
|
|
5
|
-
export { UseAgentsOptions,
|
|
1
|
+
export { A as Agent, a as AgentCategory, b as AgentCategoryDevelopment, c as AgentCategoryFinance, d as AgentCategoryGeneral, e as AgentCategoryHR, f as AgentCategoryMarketing, g as AgentCategoryProductivity, h as AgentCategoryResearch, i as AgentCategorySales, j as AgentCategorySupport, k as AgentCategoryTS, l as AgentCategoryWriting, m as AgentChatCreateSubject, n as AgentChatGetSubject, o as AgentChatUpdateSubject, p as AgentChatValidateSubject, q as AgentCloneSubject, r as AgentContext, s as AgentContextConfig, t as AgentCreateSubject, u as AgentCreatedSubject, v as AgentDeleteSubject, w as AgentDeletedSubject, x as AgentEnsureDefaultSubject, y as AgentExecuteStatusSubject, z as AgentExecuteStopSubject, B as AgentExecuteSubject, C as AgentExecution, D as AgentExportSubject, E as AgentFilters, F as AgentFromTemplateSubject, G as AgentGetByOrgSubject, H as AgentGetDefaultSubject, I as AgentGetSubject, J as AgentImportSubject, K as AgentInstanceCancelPlanSubject, L as AgentInstanceClearHistorySubject, M as AgentInstanceCreatePlanSubject, N as AgentInstanceCreateSubject, O as AgentInstanceCreatedSubject, P as AgentInstanceDeleteSubject, Q as AgentInstanceDeletedSubject, R as AgentInstanceExecutePlanSubject, S as AgentInstanceGetHistorySubject, T as AgentInstanceGetSubject, U as AgentInstanceListSubject, V as AgentInstancePausePlanSubject, W as AgentInstanceResumePlanSubject, X as AgentInstanceUpdateSubject, Y as AgentInstanceUpdatedSubject, Z as AgentJob, _ as AgentJobCreateSubject, $ as AgentJobDeleteSubject, a0 as AgentJobGetSubject, a1 as AgentJobIDRequest, a2 as AgentJobListSubject, a3 as AgentJobPauseSubject, a4 as AgentJobResponse, a5 as AgentJobResumeSubject, a6 as AgentJobTriggerRequest, a7 as AgentJobTriggerResponse, a8 as AgentJobTriggerSubject, a9 as AgentJobUpdateSubject, aa as AgentJobsListResponse, ab as AgentListSubject, ac as AgentListSummarySubject, ad as AgentProvisionDefinition, ae as AgentReactCreateSubject, af as AgentReactGetSubject, ag as AgentReactUpdateSubject, ah as AgentReactValidateSubject, ai as AgentResponse, aj as AgentScope, ak as AgentScopeCustom, al as AgentScopeOrg, am as AgentScopeTS, an as AgentScopeTeam, ao as AgentScopeUser, ap as AgentSearchSubject, aq as AgentSkill, ar as AgentSkillConfigResponse, as as AgentSkillGetConfigSubject, at as AgentSkillTool, au as AgentSkillUpdateConfigSubject, av as AgentStatus, aw as AgentStatusActive, ax as AgentStatusArchived, ay as AgentStatusDraft, az as AgentStatusInactive, aA as AgentStatusTS, aB as AgentStatusUpdate, aC as AgentSubType, aD as AgentSubTypeChat, aE as AgentSubTypeDocument, aF as AgentSubTypeReact, aG as AgentSubTypeTS, aH as AgentSubTypeWorkflow, aI as AgentSummary, aJ as AgentTemplate, aK as AgentTemplateGetSubject, aL as AgentTemplateListSubject, aM as AgentTool, aN as AgentToolConfiguration, aO as AgentType, aP as AgentTypeChat, aQ as AgentTypeReact, aR as AgentTypeTS, aS as AgentUpdateOrgSubject, aT as AgentUpdateSubject, aU as AgentUpdatedSubject, aV as AgentVersionActivateSubject, aW as AgentVersionActivatedSubject, aX as AgentVersionCreateSubject, aY as AgentVersionCreatedSubject, aZ as AgentVersionGetSubject, a_ as AgentVersionListSubject, a$ as AgentWidget, b0 as AgentWidgetResponse, b1 as AgentWidgetsCreateSubject, b2 as AgentWidgetsDeleteSubject, b3 as AgentWidgetsGetByWidgetID, b4 as AgentWidgetsGetDefaultSubject, b5 as AgentWidgetsGetSubject, b6 as AgentWidgetsListSubject, b7 as AgentWidgetsSetDefaultSubject, b8 as AgentWidgetsUpdateSubject, b9 as ArtifactRef, ba as BackgroundAgentProgressEvent, bb as BackgroundAgentStatusRequest, bc as BackgroundAgentStatusResponse, bd as CSATAnswer, be as CSATConfig, bf as CSATQuestion, bg as CSATResponse, bh as CSATSurvey, bi as ChatAgentExecuteSubject, bj as ChatAgentStatusSubject, bk as CheckBackgroundAgentStatusToolSubject, bl as CreateAgentJobRequest, bm as CreateAgentRequest, bn as CreateAgentWidgetRequest, bo as CreateExecutionPlanRequest, bp as CreateExecutionPlanResponse, bq as CreateSkillRequest, br as CreateSubAgentRequest, bs as CreateToolDefinitionRequest, bt as CustomizableField, bu as DefaultDefinitions, bv as DeleteAgentRequest, bw as DeleteAgentWidgetRequest, bx as DeleteSkillRequest, by as DeleteSkillUserConfigRequest, bz as DeleteSubAgentRequest, bA as DeleteToolDefinitionRequest, bB as ExecuteJobRequest, bC as ExecutePlanRequest, bD as ExecutePlanResponse, bE as ExecuteToolRequest, bF as ExecuteToolResponse, bG as ExecutionCompletedEvent, bH as ExecutionMode, bI as ExecutionModeAsync, bJ as ExecutionModeAsyncClient, bK as ExecutionModeSync, bL as ExecutionModeTS, bM as ExecutionPlan, bN as ExecutionResponse, bO as ExecutionStatus, bP as ExecutionStatusCompleted, bQ as ExecutionStatusFailed, bR as ExecutionStatusPending, bS as ExecutionStatusRunning, bT as ExecutionStatusSkipped, bU as ExecutionStatusTS, bV as ExecutionTTLHours, bW as ExecutionsTTLCleanupSubject, bX as GetAgentRequest, bY as GetAgentSkillConfigRequest, bZ as GetAgentWidgetRequest, b_ as GetDefaultAgentRequest, b$ as GetDefaultWidgetRequest, c0 as GetExecutionRequest, c1 as GetSkillRequest, c2 as GetSkillUserConfigRequest, c3 as GetSkillsByIDsRequest, c4 as GetSkillsByIDsResponse, c5 as GetSubAgentRequest, c6 as GetSubAgentsByIDsRequest, c7 as GetSubAgentsByIDsResponse, c8 as GetToolDefinitionRequest, c9 as GetToolDefinitionsByIDsRequest, ca as GetToolDefinitionsByIDsResponse, cb as GetWidgetByWidgetIDRequest, cc as GetWidgetConfigRequest, cd as GetWidgetConfigResponse, ce as HandoffConfig, cf as IntegrationRequirement, cg as JobExecution, ch as JobExecutionGetSubject, ci as JobExecutionListSubject, cj as JobExecutionResult, ck as JobExecutionStatus, cl as JobExecutionStatusFailed, cm as JobExecutionStatusRunning, cn as JobExecutionStatusSuccess, co as JobExecutionStatusTS, cp as JobExecutionStatusTimedOut, cq as JobFrequency, cr as JobFrequencyOneTime, cs as JobFrequencySchedule, ct as JobFrequencyTS, cu as JobScope, cv as JobScopeOrg, cw as JobScopePrivate, cx as JobScopeTS, cy as JobScopeTeam, cz as JobStatus, cA as JobStatusActive, cB as JobStatusDisabled, cC as JobStatusExecuting, cD as JobStatusPaused, cE as JobStatusTS, cF as ListAgentJobsRequest, cG as ListAgentWidgetsRequest, cH as ListAgentWidgetsResponse, cI as ListAgentsRequest, cJ as ListAgentsResponse, cK as ListAgentsSummaryRequest, cL as ListAgentsSummaryResponse, cM as ListExecutionsByAgentRequest, cN as ListExecutionsByJobRequest, cO as ListExecutionsResponse, cP as ListSkillUserConfigRequest, cQ as ListSkillsRequest, cR as ListSubAgentsRequest, cS as ListToolDefinitionsRequest, cT as MCPServerConfig, cU as MaxExecutions, cV as MergeConfig, cW as MergeStrategy, cX as MergeStrategyAppend, cY as MergeStrategyMerge, cZ as MergeStrategyReplace, c_ as MergeStrategyTS, c$ as PlanApprovalConfig, d0 as PlanStatus, d1 as PlanStatusApproved, d2 as PlanStatusCancelled, d3 as PlanStatusCompleted, d4 as PlanStatusExecuting, d5 as PlanStatusPendingApproval, d6 as PlanStatusRejected, d7 as PlanStatusTS, d8 as PlannedStep, d9 as ProcessJobTriggerResult, da as PublicWidgetConfig, db as PublisherType, dc as PublisherTypeEloquent, dd as PublisherTypePartner, de as PublisherTypeTS, df as ReactAgentConfig, dg as ReactAgentExecuteSubject, dh as ReactAgentStatusSubject, di as ReactAgentStopSubject, dj as ResolveSkillConfigRequest, dk as ResolveSkillConfigResponse, dl as RetryPolicy, dm as RuntimeJobCompletedSubject, dn as RuntimeJobExecuteSubject, dp as SaveWidgetConfigRequest, dq as SaveWidgetConfigResponse, dr as SetDefaultWidgetRequest, ds as Skill, dt as SkillCategory, du as SkillCategoryAnalysis, dv as SkillCategoryCommunication, dw as SkillCategoryCreative, dx as SkillCategoryCustom, dy as SkillCategoryIntegration, dz as SkillCategoryProductivity, dA as SkillCategoryTS, dB as SkillResolveConfigSubject, dC as SkillResponse, dD as SkillUserConfig, dE as SkillUserConfigDeleteSubject, dF as SkillUserConfigGetSubject, dG as SkillUserConfigListResponse, dH as SkillUserConfigListSubject, dI as SkillUserConfigResponse, dJ as SkillUserConfigUpdateSubject, dK as SkillsCreateSubject, dL as SkillsCreatedSubject, dM as SkillsDeleteSubject, dN as SkillsDeletedSubject, dO as SkillsGetByIDsSubject, dP as SkillsGetSubject, dQ as SkillsListResponse, dR as SkillsListSubject, dS as SkillsUpdateOrgConfigSubject, dT as SkillsUpdateSubject, dU as SkillsUpdatedSubject, dV as SubAgent, dW as SubAgentResponse, dX as SubAgentsCreateSubject, dY as SubAgentsCreatedSubject, dZ as SubAgentsDeleteSubject, d_ as SubAgentsDeletedSubject, d$ as SubAgentsExecuteSubject, e0 as SubAgentsGetByIDsSubject, e1 as SubAgentsGetSubject, e2 as SubAgentsListResponse, e3 as SubAgentsListSubject, e4 as SubAgentsUpdateSubject, e5 as SubAgentsUpdatedSubject, e6 as SubAgentsValidateSubject, e7 as TTLCleanupRequest, e8 as TTLCleanupResponse, e9 as TaskStatusTS, ea as TemplateCategoryCount, eb as TemplateFilters, ec as TemplateStatus, ed as TemplateStatusDraft, ee as TemplateStatusPublished, ef as TemplateStatusTS, eg as ToolConfig, eh as ToolDefinition, ei as ToolDefinitionResponse, ej as ToolDefinitionsCreateSubject, ek as ToolDefinitionsCreatedSubject, el as ToolDefinitionsDeleteSubject, em as ToolDefinitionsDeletedSubject, en as ToolDefinitionsExecuteSubject, eo as ToolDefinitionsGetByIDsSubject, ep as ToolDefinitionsGetSubject, eq as ToolDefinitionsListResponse, er as ToolDefinitionsListSubject, es as ToolDefinitionsUpdateSubject, et as ToolDefinitionsUpdatedSubject, eu as ToolDefinitionsValidateSubject, ev as ToolExecution, ew as ToolExecutionPolicy, ex as ToolExecutionProgress, ey as ToolExecutionStatus, ez as ToolExecutionStatusCompleted, eA as ToolExecutionStatusExecuting, eB as ToolExecutionStatusFailed, eC as ToolExecutionStatusSkipped, eD as ToolExecutionStatusStarted, eE as ToolExecutionStatusTS, eF as ToolExecutionStatusTimeout, eG as TriggerBackgroundAgentRequest, eH as TriggerBackgroundAgentResponse, eI as TriggerBackgroundAgentToolSubject, eJ as UpdateAgentJobRequest, eK as UpdateAgentRequest, eL as UpdateAgentSkillConfigRequest, eM as UpdateAgentWidgetRequest, eN as UpdateOrgAgentsRequest, eO as UpdateOrgAgentsResponse, eP as UpdateSkillOrgConfigRequest, eQ as UpdateSkillRequest, eR as UpdateSkillUserConfigRequest, eS as UpdateSubAgentRequest, eT as UpdateToolDefinitionRequest, eU as UserSuggestedAction, eV as UserSuggestedActionsConfig, eW as UserSuggestedActionsRequest, eX as UserSuggestedActionsResponse, eY as ValidationError, eZ as ValidationErrors, e_ as WidgetAppearance, e$ as WidgetBehavior, f0 as WidgetConfig, f1 as WidgetConfigGetByAgentSubject, f2 as WidgetConfigSaveSubject, f3 as WidgetSecurity, f4 as WorkflowAgentGetSubject, f5 as WorkflowAgentUpdateSubject } from './agent-models-DLQlC7N6.mjs';
|
|
2
|
+
export { AddFieldRequest, AddFieldResponse, AiTaskOutcome, AnalyticsRequest, AnalyticsResponse, BoardDetails, BoardSummary, ChatMetricsResponse, DeleteFieldRequest, DeleteFieldResponse, EmployeeExperienceChat, HubAnalyticsGetTaskMetrics, HubAnalyticsGetTaskOutcomes, HubEventsInsertTaskOutcomes, HubEventsUpdateTaskOutcomeStatus, ListServiceDeskAdminsRequest, ListServiceDeskAdminsResponse, MarkdownDocumentDetails, MarkdownDocumentSummary, OnboardingGuideStep, OrgSettings, OrgSettingsRequest, OrgSettingsResponse, ServiceDeskAdmin, SettingsDateFilter, SettingsSubjects, TaskMetrics, TaskOutcomeInsertionResponse, TaskOutcomeStatusUpdateRequest, TaskOutcomeStatusUpdateResponse, TaskOutcomesInsertRequest } from './models/index.mjs';
|
|
3
|
+
export { A as ArchiveEmailRequest, a as ArchiveEmailResponse, C as CalendarEvent, b as ConfigureOrgIntegrationRequest, c as ConfigureOrgIntegrationResponse, d as ConnectIntegrationRequest, e as ConnectIntegrationResponse, f as CreateCalendarEventRequest, g as CreateCalendarEventResponse, h as CreateSandboxRequest, i as CreateSandboxResponse, j as CreateSandboxSubject, D as DeleteCalendarEventRequest, k as DeleteCalendarEventResponse, l as DeleteSandboxRequest, m as DeleteSandboxResponse, n as DeleteSandboxSubject, o as DisableOrgIntegrationRequest, p as DisableOrgIntegrationResponse, q as DisconnectIntegrationRequest, r as DisconnectIntegrationResponse, E as EmailAttachment, s as EmailDetails, t as EmailSummary, u as EventAttendee, v as EventReminder, F as FileDetails, w as FilePermission, x as FileSummary, y as FileWithContent, z as ForwardEmailRequest, G as GetCalendarEventRequest, B as GetCalendarEventResponse, H as GetDriveFileRequest, I as GetDriveFileResponse, J as GetEmailRequest, K as GetEmailResponse, L as GetEmailThreadRequest, M as GetEmailThreadResponse, N as GetSandboxRequest, O as GetSandboxResponse, P as GetSandboxSubject, Q as GetUserIntegrationRequest, R as GetUserIntegrationResponse, S as HubEmailTriageRunNow, T as HubIntegrationCalendarCreate, U as HubIntegrationCalendarDelete, V as HubIntegrationCalendarGet, W as HubIntegrationCalendarList, X as HubIntegrationCalendarRSVP, Y as HubIntegrationCalendarUpdate, Z as HubIntegrationDriveGet, _ as HubIntegrationDriveSearch, $ as HubIntegrationEmailArchive, a0 as HubIntegrationEmailForward, a1 as HubIntegrationEmailGet, a2 as HubIntegrationEmailMarkRead, a3 as HubIntegrationEmailSearch, a4 as HubIntegrationEmailSend, a5 as HubIntegrationEmailThread, a6 as HubIntegrationOrgConfigure, a7 as HubIntegrationOrgDisable, a8 as HubIntegrationOrgList, a9 as HubIntegrationSetupOrg, aa as HubIntegrationUserCallback, ab as HubIntegrationUserConnect, ac as HubIntegrationUserDisconnect, ad as HubIntegrationUserGet, ae as HubIntegrationUserList, af as HubIntegrationUserRefresh, ag as HubIntegrationUserUpdateTriage, ah as IntegrationCallbackRequest, ai as IntegrationCallbackResponse, aj as IntegrationMode, ak as IntegrationModeDomainDelegation, al as IntegrationModeServicePrincipal, am as IntegrationProvider, an as IntegrationProviderGoogle, ao as IntegrationProviderMicrosoft, ap as IntegrationProviderTS, aq as IntegrationStatus, ar as IntegrationStatusActive, as as IntegrationStatusError, at as IntegrationStatusExpired, au as IntegrationStatusRevoked, av as IntegrationStatusTS, aw as IntegrationType, ax as IntegrationTypeCalendar, ay as IntegrationTypeDrive, az as IntegrationTypeEmail, aA as IntegrationTypeTS, aB as ListCalendarEventsRequest, aC as ListCalendarEventsResponse, aD as ListDriveFilesRequest, aE as ListDriveFilesResponse, aF as ListOrgIntegrationsRequest, aG as ListOrgIntegrationsResponse, aH as ListSandboxSubject, aI as ListSandboxesRequest, aJ as ListSandboxesResponse, aK as ListUserIntegrationsRequest, aL as ListUserIntegrationsResponse, aM as MarkAsReadRequest, aN as MarkAsReadResponse, aO as OAuthState, aP as OrgIntegration, aQ as RSVPCalendarEventRequest, aR as RSVPCalendarEventResponse, aS as RefreshIntegrationRequest, aT as RefreshIntegrationResponse, aU as RunEmailTriageRequest, aV as RunEmailTriageResponse, aW as Sandbox, aX as SearchEmailsRequest, aY as SearchEmailsResponse, aZ as SendEmailRequest, a_ as SendEmailResponse, a$ as SendEmailResult, b0 as SetupIntegrationsRequest, b1 as SetupIntegrationsResponse, b2 as TokenData, b3 as UpdateCalendarEventRequest, b4 as UpdateCalendarEventResponse, b5 as UpdateSandboxRequest, b6 as UpdateSandboxResponse, b7 as UpdateSandboxSubject, b8 as UpdateTriageEnabledRequest, b9 as UpdateTriageEnabledResponse, ba as UserIntegration, bb as ValidationResult } from './sandbox-DOxoM2Ge.mjs';
|
|
4
|
+
export { AnalyticsDataResponse, CreateBackgroundChatRequest, CreateBackgroundChatResponse, DateFilter, LoadChatResponse, ProvisionAgentsResponse, SchedulerSchedule, SchedulerScheduleListResponse, SchedulerScheduleResponse, SchedulerTask, SchedulerTaskListResponse, SchedulerTaskResponse, SendChatMessageRequest, SendChatMessageResponse, SkillCategoriesResponse, checkBackgroundAgentStatusApi, completeSchedulerTaskApi, connectIntegrationApi, createAgentApi, createAgentJobApi, createBackgroundChatApi, createSandboxApi, createScheduleApi, createSchedulerTaskApi, createSkillApi, createSubAgentApi, createToolDefinitionApi, createWidgetApi, deleteAgentApi, deleteAgentJobApi, deleteSandboxApi, deleteScheduleApi, deleteSchedulerTaskApi, deleteSkillApi, deleteSkillUserConfigApi, deleteSubAgentApi, deleteToolDefinitionApi, deleteWidgetApi, disconnectIntegrationApi, getAgentApi, getAgentByNameApi, getAgentCSATAnalyticsApi, getAgentChatsAnalyticsApi, getAgentJobApi, getAgentListAnalyticsApi, getDefaultAgentApi, getDefaultWidgetApi, getIntegrationApi, getSandboxApi, getScheduleApi, getSchedulerTaskApi, getSkillApi, getSkillCategoriesApi, getSkillUserConfigApi, getSkillsByIdsApi, getSubAgentApi, getTaskOutcomesApi, getToolDefinitionApi, getToolDefinitionsByIdsApi, getWidgetApi, getWidgetByWidgetIdApi, integrationCallbackApi, listAgentJobsApi, listAgentsApi, listAgentsSummaryApi, listIntegrationsApi, listSandboxesApi, listSchedulerTasksApi, listSchedulesApi, listSkillUserConfigsApi, listSkillsApi, listSubAgentsApi, listToolDefinitionsApi, listWidgetsApi, loadChatApi, pauseAgentJobApi, pauseScheduleApi, provisionAgentsApi, refreshIntegrationApi, resolveSkillConfigApi, resumeAgentJobApi, resumeScheduleApi, runEmailTriageApi, runScheduleApi, searchSkillsApi, sendChatMessageApi, setDefaultWidgetApi, snoozeSchedulerTaskApi, startSchedulerTaskApi, triggerBackgroundAgentApi, updateAgentApi, updateAgentJobApi, updateIntegrationTriageApi, updateSandboxApi, updateScheduleApi, updateSchedulerTaskApi, updateSkillApi, updateSkillOrgConfigApi, updateSkillUserConfigApi, updateSubAgentApi, updateToolDefinitionApi, updateWidgetApi } from './api/index.mjs';
|
|
5
|
+
export { BGAgentLiveState, BackgroundStatus, UseAgentJobsOptions, UseAgentsOptions, UseAnalyticsOptions, UseBackgroundAgentsOptions, UseIntegrationsOptions, UseSandboxOptions, UseSchedulerSchedulesOptions, UseSchedulerTasksOptions, UseSkillUserConfigOptions, UseSkillsOptions, UseSubAgentsOptions, UseToolDefinitionsOptions, UseWidgetsOptions, WatchedChatState, useAgentJobs, useAgents, useAnalytics, useBackgroundAgents, useIntegrations, useOptionsRef, useSandbox, useSchedulerSchedules, useSchedulerTasks, useSkillUserConfig, useSkills, useSubAgents, useToolDefinitions, useWidgets } from './hooks/index.mjs';
|
|
6
|
+
export { B as BGAgentTransport, a as BGAgentTransportConfig } from './types-C2qd5f-E.mjs';
|
|
6
7
|
export { toDefaultDefinitions, toDefaultDefinitionsArray } from './utils/index.mjs';
|
|
8
|
+
export { Attachment, ChatMessage } from '@elqnt/chat/models';
|
|
7
9
|
import '@elqnt/types';
|
|
8
10
|
import '@elqnt/api-client';
|