@altimateai/ui-components 0.0.23-beta.5 → 0.0.23-beta.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.
@@ -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-MLsaGOQh.js';
3
- export { y as AgentStreamResponse, s as AssistantMeta, t as ChatSession, v as ChatbotUrls, F as Feedback, u as FileUploadProps, x as InteractionChoice, w as InteractionType, r as LoadingState } from '../types-MLsaGOQh.js';
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-MLsaGOQh.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-MLsaGOQh.js';
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';
@@ -5,7 +5,7 @@ import { j as a, h as lo, i as Tr, k as Ir, l as l2, e as Zr, d as Dr, m as co,
5
5
  import * as g from "react";
6
6
  import V, { createContext as Ht, memo as ce, useMemo as pe, forwardRef as L2, useEffect as X, useRef as J, useContext as ke, useState as re, useCallback as se, useReducer as Or, useImperativeHandle as Rr } from "react";
7
7
  import { s as Te, d as Co, i as Ge, T as Wt, e as $t, a as zr, g as go, A as de, C as At, I as mo, u as Wr, b as $r } from "../redux-toolkit.modern.js";
8
- import { a0 as Je, a2 as po, a3 as xo, Q as ye, a4 as Eo, Z as W, a1 as Me, a5 as c2, $ as Ur, U as N2, X as yo, N as xt, a6 as Kr, H as Yr, a7 as Xr, a8 as Gr, h as qr, c as Jr } from "../Stack.js";
8
+ import { a0 as Je, a2 as po, a3 as xo, Q as ye, a4 as Eo, Z as W, a1 as Me, a5 as c2, $ as Ur, U as N2, X as yo, N as xt, a6 as Kr, H as Yr, a7 as Xr, a8 as Gr, J as qr, c as Jr } from "../Stack.js";
9
9
  import { createPortal as tt } from "react-dom";
10
10
  import { C as Qr, T as e5 } from "../Table.js";
11
11
  function t5(e) {
package/dist/main.js CHANGED
@@ -4312,7 +4312,7 @@ const Hi = {
4312
4312
  }, y = n === e.train_doc_uid;
4313
4313
  return /* @__PURE__ */ h.jsx($e, { className: y ? "al-border-blue-500" : "", children: /* @__PURE__ */ h.jsxs("form", { onSubmit: d, children: [
4314
4314
  /* @__PURE__ */ h.jsx(rr, { children: /* @__PURE__ */ h.jsxs(oe, { align: "start", children: [
4315
- /* @__PURE__ */ h.jsxs("div", { style: { flex: 1 }, children: [
4315
+ /* @__PURE__ */ h.jsxs("div", { className: "al-flex-1", children: [
4316
4316
  /* @__PURE__ */ h.jsx("div", { children: t ? /* @__PURE__ */ h.jsxs(Mt, { children: [
4317
4317
  /* @__PURE__ */ h.jsx(
4318
4318
  or,
@@ -4488,7 +4488,7 @@ const Hi = {
4488
4488
  const n = async () => await i(e, rt.REQUEST_ACCESS), { loading: t, mutate: o, data: s } = cn({
4489
4489
  queryFn: n
4490
4490
  }), u = typeof e.comingSoon == "function" ? e.comingSoon() : e.comingSoon;
4491
- return /* @__PURE__ */ h.jsx("div", { className: "al-flex al-flex-col", children: /* @__PURE__ */ h.jsx($e, { children: /* @__PURE__ */ h.jsxs(He, { className: "al-pt-4", children: [
4491
+ return /* @__PURE__ */ h.jsx(oe, { direction: "column", children: /* @__PURE__ */ h.jsx($e, { children: /* @__PURE__ */ h.jsxs(He, { className: "al-pt-4", children: [
4492
4492
  /* @__PURE__ */ h.jsxs(oe, { justify: "between", align: "center", className: "al-mb-2", children: [
4493
4493
  /* @__PURE__ */ h.jsx("img", { alt: "Teammate", src: e.avatar, className: "al-w-16 al-h-16 al-rounded" }),
4494
4494
  /* @__PURE__ */ h.jsxs("div", { className: "al-ml-2 al-mt-2", children: [
@@ -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: string;
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 AgentStreamResponse as y };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altimateai/ui-components",
3
- "version": "0.0.23-beta.5",
3
+ "version": "0.0.23-beta.7",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/AltimateAI/altimate-components.git"