@altimateai/ui-components 0.0.24 → 0.0.25
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/CoachForm.js +10831 -10692
- package/dist/chatbotV2/index.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/{types-MLsaGOQh.d.ts → types-CPlzEfL7.d.ts} +31 -3
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default, { FC } from 'react';
|
|
2
|
-
import { j as ChatbotProps, k as ChatbotProviderProps, m as ChatState, A as Artifact, n as ContextOption, I as InteractionRequest, o as ChatMessage, p as AgentAction, q as ChatResponse, i as Citation } from '../types-
|
|
3
|
-
export {
|
|
2
|
+
import { j as ChatbotProps, k as ChatbotProviderProps, m as ChatState, A as Artifact, n as ContextOption, I as InteractionRequest, o as ChatMessage, p as AgentAction, q as ChatResponse, i as Citation } from '../types-CPlzEfL7.js';
|
|
3
|
+
export { E as AgentStreamResponse, s as AssistantMeta, t as ChatSession, v as ChatbotUrls, F as Feedback, u as FileUploadProps, D as FinalResponseData, x as InteractionChoice, w as InteractionType, r as LoadingState, B as ProgressUpdate, y as TodoItem, z as ToolUsageData } from '../types-CPlzEfL7.js';
|
|
4
4
|
import { UnknownAction } from '@reduxjs/toolkit';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import 'zod';
|
package/dist/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import * as React$1 from 'react';
|
|
|
2
2
|
import { HTMLAttributes, ButtonHTMLAttributes, ReactNode, FC, MouseEvent } from 'react';
|
|
3
3
|
import { B as ButtonProps } from './Button-C4jhPGlR.js';
|
|
4
4
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
-
import { T as TaskLabels, a as TeamMateContextProps, b as TeamMateState, c as TeamMateConfig, d as TeamMateActionType, e as TeamMateAvailability } from './types-
|
|
6
|
-
export { i as Citation, f as CoachAiConfirmationResponse, C as CoachAiResponse, g as ContentCategory, L as Learning, P as PersonalizationScope, h as TeamMateComponentProps, l as learningSchema } from './types-
|
|
5
|
+
import { T as TaskLabels, a as TeamMateContextProps, b as TeamMateState, c as TeamMateConfig, d as TeamMateActionType, e as TeamMateAvailability } from './types-CPlzEfL7.js';
|
|
6
|
+
export { i as Citation, f as CoachAiConfirmationResponse, C as CoachAiResponse, g as ContentCategory, L as Learning, P as PersonalizationScope, h as TeamMateComponentProps, l as learningSchema } from './types-CPlzEfL7.js';
|
|
7
7
|
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
8
8
|
import { PayloadAction } from '@reduxjs/toolkit';
|
|
9
9
|
import * as immer from 'immer';
|
|
@@ -104,6 +104,7 @@ interface ChatMessage {
|
|
|
104
104
|
artifacts?: Artifact[];
|
|
105
105
|
heading: string;
|
|
106
106
|
citations?: Citation[];
|
|
107
|
+
todos?: TodoItem[];
|
|
107
108
|
}
|
|
108
109
|
interface Artifact {
|
|
109
110
|
content: string;
|
|
@@ -119,6 +120,7 @@ interface ChatResponse {
|
|
|
119
120
|
timestamp: number;
|
|
120
121
|
artifacts?: Artifact[];
|
|
121
122
|
heading: string;
|
|
123
|
+
todos?: TodoItem[];
|
|
122
124
|
}
|
|
123
125
|
interface ChatState {
|
|
124
126
|
sessions: Record<string, ChatSession>;
|
|
@@ -127,6 +129,7 @@ interface ChatState {
|
|
|
127
129
|
error: string | null;
|
|
128
130
|
abortController: AbortController | null;
|
|
129
131
|
currentActions: AgentAction[];
|
|
132
|
+
currentTodos: TodoItem[];
|
|
130
133
|
taskLabel?: keyof typeof TaskLabels;
|
|
131
134
|
initialValidation?: (data: {
|
|
132
135
|
context: ChatSession["context"];
|
|
@@ -143,11 +146,36 @@ interface ChatState {
|
|
|
143
146
|
feedback?: ReactNode;
|
|
144
147
|
};
|
|
145
148
|
}
|
|
149
|
+
interface TodoItem {
|
|
150
|
+
id: string;
|
|
151
|
+
content: string;
|
|
152
|
+
status: "pending" | "in_progress" | "completed";
|
|
153
|
+
priority: "high" | "medium" | "low";
|
|
154
|
+
}
|
|
155
|
+
interface ToolUsageData {
|
|
156
|
+
tool: string;
|
|
157
|
+
id: string;
|
|
158
|
+
}
|
|
159
|
+
interface ProgressUpdate {
|
|
160
|
+
timestamp: string;
|
|
161
|
+
todos: TodoItem[];
|
|
162
|
+
}
|
|
163
|
+
interface FinalResponseData {
|
|
164
|
+
tool_usage?: ToolUsageData[];
|
|
165
|
+
turns?: number;
|
|
166
|
+
tools_used?: number;
|
|
167
|
+
progress_updates?: ProgressUpdate[];
|
|
168
|
+
total_progress_updates?: number;
|
|
169
|
+
}
|
|
146
170
|
interface AgentStreamResponse {
|
|
147
171
|
id?: string;
|
|
148
|
-
type: "info" | "agent_outcome" | "require_user_action" | "analysis" | "error" | "citations";
|
|
172
|
+
type: "info" | "agent_outcome" | "require_user_action" | "analysis" | "error" | "citations" | "text" | "tool_use" | "final_response" | "complete";
|
|
149
173
|
heading?: string;
|
|
150
|
-
content
|
|
174
|
+
content?: string;
|
|
175
|
+
tool?: string;
|
|
176
|
+
todos?: TodoItem[];
|
|
177
|
+
response?: string;
|
|
178
|
+
data?: FinalResponseData;
|
|
151
179
|
interaction?: {
|
|
152
180
|
type: "text" | "multiSelect" | "confirm" | "select";
|
|
153
181
|
id: string;
|
|
@@ -271,4 +299,4 @@ interface Citation {
|
|
|
271
299
|
taskLabel: TaskLabels;
|
|
272
300
|
}
|
|
273
301
|
|
|
274
|
-
export { type Artifact as A, type CoachAiResponse as C, type Feedback as F, type InteractionRequest as I, type Learning as L, PersonalizationScope as P, TaskLabels as T, type TeamMateContextProps as a, type TeamMateState as b, type TeamMateConfig as c, TeamMateActionType as d, TeamMateAvailability as e, type CoachAiConfirmationResponse as f, ContentCategory as g, type TeamMateComponentProps as h, type Citation as i, type ChatbotProps as j, type ChatbotProviderProps as k, learningSchema as l, type ChatState as m, type ContextOption as n, type ChatMessage as o, type AgentAction as p, type ChatResponse as q, LoadingState as r, type AssistantMeta as s, type ChatSession as t, type FileUploadProps as u, type ChatbotUrls as v, type InteractionType as w, type InteractionChoice as x, type
|
|
302
|
+
export { type Artifact as A, type ProgressUpdate as B, type CoachAiResponse as C, type FinalResponseData as D, type AgentStreamResponse as E, type Feedback as F, type InteractionRequest as I, type Learning as L, PersonalizationScope as P, TaskLabels as T, type TeamMateContextProps as a, type TeamMateState as b, type TeamMateConfig as c, TeamMateActionType as d, TeamMateAvailability as e, type CoachAiConfirmationResponse as f, ContentCategory as g, type TeamMateComponentProps as h, type Citation as i, type ChatbotProps as j, type ChatbotProviderProps as k, learningSchema as l, type ChatState as m, type ContextOption as n, type ChatMessage as o, type AgentAction as p, type ChatResponse as q, LoadingState as r, type AssistantMeta as s, type ChatSession as t, type FileUploadProps as u, type ChatbotUrls as v, type InteractionType as w, type InteractionChoice as x, type TodoItem as y, type ToolUsageData as z };
|