@altimateai/ui-components 0.0.24 → 0.0.26

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';
@@ -2,7 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react";
2
2
  import { addDays } from "date-fns";
3
3
  import { TZDate } from "react-day-picker";
4
4
 
5
- import { Calendar } from "./Calendar.tsx";
5
+ import { Calendar } from "../shadcn";
6
6
  import { action } from "@storybook/addon-actions";
7
7
 
8
8
  /**
@@ -1,5 +1,5 @@
1
1
  import type { Meta, StoryObj } from "@storybook/react";
2
- import { TZDateRange, PREDEFINED_RANGES } from "./DateRange";
2
+ import { TZDateRange, PREDEFINED_RANGES } from "../shadcn";
3
3
  import { action } from "@storybook/addon-actions";
4
4
 
5
5
  const timeZones: string[] = [
@@ -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.24",
3
+ "version": "0.0.26",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/AltimateAI/altimate-components.git"