@prismiq/react 0.2.0 → 0.2.2
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/{ChatBubble-ARocmvZD.d.cts → ChatBubble-3mFpV7yX.d.ts} +4 -2
- package/dist/{ChatBubble-BN_CjIpk.d.ts → ChatBubble-CMkEupzn.d.cts} +4 -2
- package/dist/{DashboardDialog-Z-HypxmG.d.cts → DashboardDialog-DMmZ3bnf.d.cts} +1 -1
- package/dist/{DashboardDialog-UhUGXx2h.d.ts → DashboardDialog-RlcPkdMt.d.ts} +1 -1
- package/dist/charts/index.d.cts +2 -2
- package/dist/charts/index.d.ts +2 -2
- package/dist/{chunk-JBJ5LEAG.js → chunk-F6QYNQEW.js} +12 -4
- package/dist/chunk-F6QYNQEW.js.map +1 -0
- package/dist/{chunk-FKXCINUF.cjs → chunk-N6I3QOHG.cjs} +201 -193
- package/dist/chunk-N6I3QOHG.cjs.map +1 -0
- package/dist/{chunk-PG7QBH3G.cjs → chunk-NXXKG4GN.cjs} +50 -15
- package/dist/chunk-NXXKG4GN.cjs.map +1 -0
- package/dist/{chunk-GELI7MDZ.js → chunk-VEFYFB5H.js} +50 -15
- package/dist/chunk-VEFYFB5H.js.map +1 -0
- package/dist/components/index.cjs +56 -56
- package/dist/components/index.d.cts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.js +1 -1
- package/dist/dashboard/index.cjs +34 -34
- package/dist/dashboard/index.d.cts +3 -3
- package/dist/dashboard/index.d.ts +3 -3
- package/dist/dashboard/index.js +2 -2
- package/dist/export/index.d.cts +1 -1
- package/dist/export/index.d.ts +1 -1
- package/dist/{index-B8DelfpL.d.cts → index-BA2VUhgN.d.cts} +1 -1
- package/dist/{index-RbfYPQD_.d.ts → index-BPo89ZAj.d.ts} +1 -1
- package/dist/index.cjs +100 -100
- package/dist/index.d.cts +11 -8
- package/dist/index.d.ts +11 -8
- package/dist/index.js +4 -4
- package/dist/{types-ccB9Ps3k.d.cts → types-BaI6sSAG.d.cts} +20 -2
- package/dist/{types-ccB9Ps3k.d.ts → types-BaI6sSAG.d.ts} +20 -2
- package/dist/utils/index.d.cts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-FKXCINUF.cjs.map +0 -1
- package/dist/chunk-GELI7MDZ.js.map +0 -1
- package/dist/chunk-JBJ5LEAG.js.map +0 -1
- package/dist/chunk-PG7QBH3G.cjs.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { D as DatabaseSchema, c as TableSchema, d as DataSourceMeta, a as QueryDefinition, V as ValidationResult, Q as QueryResult, S as SQLValidationResult, e as Dashboard, f as DashboardCreate, g as DashboardUpdate, W as WidgetCreate, h as Widget, i as WidgetUpdate, j as WidgetPositionUpdate, k as SavedQuery, l as SavedQueryCreate, m as SavedQueryUpdate, P as PinnedDashboard, n as PinnedDashboardsResponse, L as LLMStatus, o as ChatMessage, p as StreamChunk, R as Relationship,
|
|
2
|
-
export { A as AggregationType,
|
|
3
|
-
import { P as PrismiqTheme, T as ThemeMode, D as DeepPartial, a as ThemeContextValue, C as ChartDataOptions, b as ChartDataResult } from './index-
|
|
4
|
-
export { A as AreaChart, c as AreaChartProps, d as AxisFormat, B as BarChart, e as BarChartProps, f as BaseChartProps, g as ChartClickParams, h as ChartDataPoint, i as ChartSeries, j as ChartSuggestion, k as ChartType, E as EChartWrapper, l as EChartWrapperProps, L as LegendPosition, m as LineChart, n as LineChartProps, M as MetricCard, o as MetricCardProps, p as PieChart, q as PieChartProps, R as ReferenceLineConfig, S as ScatterChart, r as ScatterChartProps, s as Sparkline, t as SparklineProps, u as TrendConfig, v as TrendIndicator, w as TrendIndicatorProps, x as applyThemeToOption, y as createChartTheme, z as createGradientColor, F as dataPointsToChartData, G as formatAxisLabel, H as formatCompact, I as formatMetricValue, J as getChartColors, K as isChartDataEmpty, N as queryResultToChartData, O as suggestChartType, Q as toChartData } from './index-
|
|
1
|
+
import { D as DatabaseSchema, c as TableSchema, d as DataSourceMeta, a as QueryDefinition, V as ValidationResult, Q as QueryResult, S as SQLValidationResult, e as Dashboard, f as DashboardCreate, g as DashboardUpdate, W as WidgetCreate, h as Widget, i as WidgetUpdate, j as WidgetPositionUpdate, k as SavedQuery, l as SavedQueryCreate, m as SavedQueryUpdate, P as PinnedDashboard, n as PinnedDashboardsResponse, L as LLMStatus, o as ChatMessage, p as WidgetContext, q as StreamChunk, R as Relationship, r as WidgetPosition } from './types-BaI6sSAG.js';
|
|
2
|
+
export { A as AggregationType, s as ChatRole, t as ColumnSchema, u as ColumnSelection, v as DashboardPinContextsResponse, E as ExecuteSQLRequest, F as FilterDefinition, w as FilterOperator, G as GroupByDefinition, J as JoinDefinition, x as JoinType, b as QueryTable, y as SortDefinition, z as SortDirection, B as StreamChunkType } from './types-BaI6sSAG.js';
|
|
3
|
+
import { P as PrismiqTheme, T as ThemeMode, D as DeepPartial, a as ThemeContextValue, C as ChartDataOptions, b as ChartDataResult } from './index-BPo89ZAj.js';
|
|
4
|
+
export { A as AreaChart, c as AreaChartProps, d as AxisFormat, B as BarChart, e as BarChartProps, f as BaseChartProps, g as ChartClickParams, h as ChartDataPoint, i as ChartSeries, j as ChartSuggestion, k as ChartType, E as EChartWrapper, l as EChartWrapperProps, L as LegendPosition, m as LineChart, n as LineChartProps, M as MetricCard, o as MetricCardProps, p as PieChart, q as PieChartProps, R as ReferenceLineConfig, S as ScatterChart, r as ScatterChartProps, s as Sparkline, t as SparklineProps, u as TrendConfig, v as TrendIndicator, w as TrendIndicatorProps, x as applyThemeToOption, y as createChartTheme, z as createGradientColor, F as dataPointsToChartData, G as formatAxisLabel, H as formatCompact, I as formatMetricValue, J as getChartColors, K as isChartDataEmpty, N as queryResultToChartData, O as suggestChartType, Q as toChartData } from './index-BPo89ZAj.js';
|
|
5
5
|
import { ReactNode, CSSProperties } from 'react';
|
|
6
|
-
export { A as AggregationPicker, a as AggregationPickerProps, B as Badge, b as BadgeProps, c as Button, d as ButtonProps, C as ChatBubble, e as ChatBubbleProps, f as ChatPanel, g as ChatPanelProps, h as Checkbox, i as CheckboxProps, j as ColumnNode, k as ColumnNodeProps, l as ColumnSelector, m as ColumnSelectorProps, n as CustomSQLEditor, o as CustomSQLEditorProps, D as Dialog, p as DialogFooter, q as DialogFooterProps, r as DialogHeader, s as DialogHeaderProps, t as DialogProps, u as Dropdown, v as DropdownItem, w as DropdownItemProps, x as DropdownProps, y as DropdownSeparator, z as DropdownSeparatorProps, E as EmptyDashboard, F as EmptyDashboardProps, G as EmptyState, H as EmptyStateProps, I as ErrorBoundary, J as ErrorBoundaryProps, K as ErrorFallback, L as ErrorFallbackProps, M as FilterBuilder, N as FilterBuilderProps, O as FilterRow, P as FilterRowProps, Q as FilterValueInput, R as FilterValueInputProps, S as Icon, T as IconName, U as IconProps, V as Input, W as InputProps, X as NoData, Y as NoDataProps, Z as NoResults, _ as NoResultsProps, $ as Pagination, a0 as PaginationProps, a1 as QueryBuilder, a2 as QueryBuilderProps, a3 as QueryBuilderState, a4 as QueryBuilderToolbar, a5 as QueryBuilderToolbarProps, a6 as QueryPreview, a7 as QueryPreviewProps, a8 as ResultsTable, a9 as ResultsTableProps, aa as SavedQueryPicker, ab as SavedQueryPickerProps, ac as SchemaExplorer, ad as SchemaExplorerProps, ae as Select, af as SelectOption, ag as SelectProps, ah as SelectedColumn, ai as SelectedColumnProps, aj as Skeleton, ak as SkeletonChart, al as SkeletonChartProps, am as SkeletonMetricCard, an as SkeletonMetricCardProps, ao as SkeletonProps, ap as SkeletonTable, aq as SkeletonTableProps, ar as SkeletonText, as as SkeletonTextProps, at as SortBuilder, au as SortBuilderProps, av as SortRow, aw as SortRowProps, ax as TableCell, ay as TableCellProps, az as TableHeader, aA as TableHeaderProps, aB as TableNode, aC as TableNodeProps, aD as TableRow, aE as TableRowProps, aF as Tooltip, aG as TooltipProps, aH as WidgetErrorBoundary, aI as WidgetErrorBoundaryProps } from './ChatBubble-
|
|
6
|
+
export { A as AggregationPicker, a as AggregationPickerProps, B as Badge, b as BadgeProps, c as Button, d as ButtonProps, C as ChatBubble, e as ChatBubbleProps, f as ChatPanel, g as ChatPanelProps, h as Checkbox, i as CheckboxProps, j as ColumnNode, k as ColumnNodeProps, l as ColumnSelector, m as ColumnSelectorProps, n as CustomSQLEditor, o as CustomSQLEditorProps, D as Dialog, p as DialogFooter, q as DialogFooterProps, r as DialogHeader, s as DialogHeaderProps, t as DialogProps, u as Dropdown, v as DropdownItem, w as DropdownItemProps, x as DropdownProps, y as DropdownSeparator, z as DropdownSeparatorProps, E as EmptyDashboard, F as EmptyDashboardProps, G as EmptyState, H as EmptyStateProps, I as ErrorBoundary, J as ErrorBoundaryProps, K as ErrorFallback, L as ErrorFallbackProps, M as FilterBuilder, N as FilterBuilderProps, O as FilterRow, P as FilterRowProps, Q as FilterValueInput, R as FilterValueInputProps, S as Icon, T as IconName, U as IconProps, V as Input, W as InputProps, X as NoData, Y as NoDataProps, Z as NoResults, _ as NoResultsProps, $ as Pagination, a0 as PaginationProps, a1 as QueryBuilder, a2 as QueryBuilderProps, a3 as QueryBuilderState, a4 as QueryBuilderToolbar, a5 as QueryBuilderToolbarProps, a6 as QueryPreview, a7 as QueryPreviewProps, a8 as ResultsTable, a9 as ResultsTableProps, aa as SavedQueryPicker, ab as SavedQueryPickerProps, ac as SchemaExplorer, ad as SchemaExplorerProps, ae as Select, af as SelectOption, ag as SelectProps, ah as SelectedColumn, ai as SelectedColumnProps, aj as Skeleton, ak as SkeletonChart, al as SkeletonChartProps, am as SkeletonMetricCard, an as SkeletonMetricCardProps, ao as SkeletonProps, ap as SkeletonTable, aq as SkeletonTableProps, ar as SkeletonText, as as SkeletonTextProps, at as SortBuilder, au as SortBuilderProps, av as SortRow, aw as SortRowProps, ax as TableCell, ay as TableCellProps, az as TableHeader, aA as TableHeaderProps, aB as TableNode, aC as TableNodeProps, aD as TableRow, aE as TableRowProps, aF as Tooltip, aG as TooltipProps, aH as WidgetErrorBoundary, aI as WidgetErrorBoundaryProps } from './ChatBubble-3mFpV7yX.js';
|
|
7
7
|
export { ExcelCellStyle, ExcelExportOptions, ExportData, ExportOptions, UseExportOptions, UseExportResult, downloadFile, exportMultipleSheets, exportToCSV, exportToExcel, generateCSV, useExport } from './export/index.js';
|
|
8
|
-
export { d as Dashboard, e as DashboardCard, f as DashboardCardProps, g as DashboardContext, h as DashboardContextValue, i as DashboardDefinition, j as DashboardDialog, k as DashboardDialogProps, l as DashboardEditor, m as DashboardEditorContextValue, n as DashboardEditorProps, o as DashboardFilter, p as DashboardFilterType, D as DashboardLayout, q as DashboardLayoutComponent, r as DashboardLayoutProps, s as DashboardList, t as DashboardListProps, u as DashboardProps, v as DashboardProvider, w as DashboardProviderProps, x as DateRangeFilter, y as DateRangeFilterProps, z as DateRangeValue, E as EditorToolbar, A as EditorToolbarProps, F as FilterBar, B as FilterBarProps, C as FilterOption, G as FilterValue, M as MultiSelectFilter, H as MultiSelectFilterProps, N as NumberRangeValue, S as SelectFilter, I as SelectFilterProps, T as TextFilter, J as TextFilterProps, U as UseAutoRefreshOptions, K as UseAutoRefreshResult, O as UseDashboardFiltersResult, P as UseFullscreenResult, Q as UseWidgetResult, V as Widget, c as WidgetConfig, X as WidgetContent, Y as WidgetContentProps, W as WidgetDefinition, _ as WidgetEditor, $ as WidgetEditorProps, a0 as WidgetHeader, a1 as WidgetHeaderProps, a3 as WidgetPalette, a4 as WidgetPaletteProps, a as WidgetPosition, a5 as WidgetProps, b as WidgetType, a6 as useAutoRefresh, a7 as useDashboard, a8 as useDashboardFilters, a9 as useFullscreen, aa as useWidget } from './DashboardDialog-
|
|
8
|
+
export { d as Dashboard, e as DashboardCard, f as DashboardCardProps, g as DashboardContext, h as DashboardContextValue, i as DashboardDefinition, j as DashboardDialog, k as DashboardDialogProps, l as DashboardEditor, m as DashboardEditorContextValue, n as DashboardEditorProps, o as DashboardFilter, p as DashboardFilterType, D as DashboardLayout, q as DashboardLayoutComponent, r as DashboardLayoutProps, s as DashboardList, t as DashboardListProps, u as DashboardProps, v as DashboardProvider, w as DashboardProviderProps, x as DateRangeFilter, y as DateRangeFilterProps, z as DateRangeValue, E as EditorToolbar, A as EditorToolbarProps, F as FilterBar, B as FilterBarProps, C as FilterOption, G as FilterValue, M as MultiSelectFilter, H as MultiSelectFilterProps, N as NumberRangeValue, S as SelectFilter, I as SelectFilterProps, T as TextFilter, J as TextFilterProps, U as UseAutoRefreshOptions, K as UseAutoRefreshResult, O as UseDashboardFiltersResult, P as UseFullscreenResult, Q as UseWidgetResult, V as Widget, c as WidgetConfig, X as WidgetContent, Y as WidgetContentProps, W as WidgetDefinition, _ as WidgetEditor, $ as WidgetEditorProps, a0 as WidgetHeader, a1 as WidgetHeaderProps, a3 as WidgetPalette, a4 as WidgetPaletteProps, a as WidgetPosition, a5 as WidgetProps, b as WidgetType, a6 as useAutoRefresh, a7 as useDashboard, a8 as useDashboardFilters, a9 as useFullscreen, aa as useWidget } from './DashboardDialog-RlcPkdMt.js';
|
|
9
9
|
export { A as ArrowNavigationOptions, F as FocusTrapOptions, S as SkipLinkProps, U as UseArrowNavigationResult, a as UseFocusTrapResult, b as announceToScreenReader, f as focusVisibleStyles, s as skipLinkFocusStyles, c as skipLinkStyles, u as useArrowNavigation, d as useFocusTrap, e as useFocusVisible, g as useRovingTabIndex } from './accessibility-Bu2mNtaB.js';
|
|
10
10
|
export { BREAKPOINTS, Breakpoint, ClientOnly, ClientOnlyProps, WindowSize, getLocalStorage, getWindowHeight, getWindowWidth, isBrowser, isServer, removeLocalStorage, setLocalStorage, useBreakpoint, useIsBreakpoint, useIsClient, useMediaQuery, useWindowSize } from './ssr/index.js';
|
|
11
11
|
|
|
@@ -361,9 +361,10 @@ declare class PrismiqClient {
|
|
|
361
361
|
* @param history - Previous conversation messages.
|
|
362
362
|
* @param currentSql - Current SQL in the editor (for context).
|
|
363
363
|
* @param signal - Optional AbortSignal for cancellation.
|
|
364
|
+
* @param widgetContext - Optional widget context for targeted SQL generation.
|
|
364
365
|
* @yields StreamChunk objects as the response is generated.
|
|
365
366
|
*/
|
|
366
|
-
streamChat(message: string, history: ChatMessage[], currentSql: string | null, signal?: AbortSignal): AsyncGenerator<StreamChunk, void, undefined>;
|
|
367
|
+
streamChat(message: string, history: ChatMessage[], currentSql: string | null, signal?: AbortSignal, widgetContext?: WidgetContext): AsyncGenerator<StreamChunk, void, undefined>;
|
|
367
368
|
}
|
|
368
369
|
|
|
369
370
|
/**
|
|
@@ -1282,11 +1283,13 @@ interface UseLLMChatResult {
|
|
|
1282
1283
|
/** Last SQL suggestion extracted from the response. */
|
|
1283
1284
|
suggestedSql: string | null;
|
|
1284
1285
|
/** Send a message to the agent. */
|
|
1285
|
-
sendMessage: (message: string, currentSql: string | null) => Promise<void>;
|
|
1286
|
+
sendMessage: (message: string, currentSql: string | null, widgetContext?: WidgetContext) => Promise<void>;
|
|
1286
1287
|
/** Clear conversation history. */
|
|
1287
1288
|
clearHistory: () => void;
|
|
1288
1289
|
/** Error from the last request. */
|
|
1289
1290
|
error: string | null;
|
|
1291
|
+
/** Current status message from the agent (e.g., "Inspecting schema..."). */
|
|
1292
|
+
statusMessage: string | null;
|
|
1290
1293
|
}
|
|
1291
1294
|
/**
|
|
1292
1295
|
* Hook for streaming chat with the LLM agent.
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Dashboard } from './chunk-
|
|
2
|
-
export { Dashboard, DashboardCard, DashboardContext, DashboardDialog, DashboardEditor, DashboardLayout as DashboardLayoutComponent, DashboardList, DashboardProvider, DateRangeFilter, EditorToolbar, FilterBar, MultiSelectFilter, SelectFilter, TextFilter, Widget, WidgetContent, WidgetEditor, WidgetHeader, WidgetPalette, useAutoRefresh, useDashboard, useDashboardFilters, useFullscreen, useWidget } from './chunk-
|
|
1
|
+
import { Dashboard } from './chunk-F6QYNQEW.js';
|
|
2
|
+
export { Dashboard, DashboardCard, DashboardContext, DashboardDialog, DashboardEditor, DashboardLayout as DashboardLayoutComponent, DashboardList, DashboardProvider, DateRangeFilter, EditorToolbar, FilterBar, MultiSelectFilter, SelectFilter, TextFilter, Widget, WidgetContent, WidgetEditor, WidgetHeader, WidgetPalette, useAutoRefresh, useDashboard, useDashboardFilters, useFullscreen, useWidget } from './chunk-F6QYNQEW.js';
|
|
3
3
|
export { AreaChart, BarChart, EChartWrapper, LineChart, MetricCard, PieChart, ScatterChart, Sparkline, TrendIndicator, applyThemeToOption, createChartTheme, createGradientColor, dataPointsToChartData, formatAxisLabel, formatCompact, formatMetricValue, getChartColors, isChartDataEmpty, queryResultToChartData, suggestChartType, toChartData } from './chunk-FQ23KG6G.js';
|
|
4
|
-
import { useDashboardPinStatus, usePinMutations, usePinnedDashboards } from './chunk-
|
|
5
|
-
export { AggregationPicker, AnalyticsProvider, Badge, Button, ChatBubble, ChatPanel, Checkbox, ColumnNode, ColumnSelector, CustomSQLEditor, Dialog, DialogFooter, DialogHeader, Dropdown, DropdownItem, DropdownSeparator, EmptyDashboard, EmptyState, ErrorBoundary, ErrorFallback, FilterBuilder, FilterRow, FilterValueInput, Icon, Input, NoData, NoResults, Pagination, PrismiqClient, PrismiqError, QueryBuilder, QueryBuilderToolbar, QueryPreview, ResultsTable, SavedQueryPicker, SchemaExplorer, Select, SelectedColumn, Skeleton, SkeletonChart, SkeletonMetricCard, SkeletonTable, SkeletonText, SortBuilder, SortRow, TableCell, TableHeader, TableNode, TableRow, Tooltip, WidgetErrorBoundary, useAnalytics, useAnalyticsCallbacks, useChartData, useCustomSQL, useDashboard as useDashboardData, useDashboardMutations, useDashboardPinStatus, useDashboards, useLLMChat, useLLMStatus, usePinMutations, usePinnedDashboards, useQuery, useSavedQueries, useSchema } from './chunk-
|
|
4
|
+
import { useDashboardPinStatus, usePinMutations, usePinnedDashboards } from './chunk-VEFYFB5H.js';
|
|
5
|
+
export { AggregationPicker, AnalyticsProvider, Badge, Button, ChatBubble, ChatPanel, Checkbox, ColumnNode, ColumnSelector, CustomSQLEditor, Dialog, DialogFooter, DialogHeader, Dropdown, DropdownItem, DropdownSeparator, EmptyDashboard, EmptyState, ErrorBoundary, ErrorFallback, FilterBuilder, FilterRow, FilterValueInput, Icon, Input, NoData, NoResults, Pagination, PrismiqClient, PrismiqError, QueryBuilder, QueryBuilderToolbar, QueryPreview, ResultsTable, SavedQueryPicker, SchemaExplorer, Select, SelectedColumn, Skeleton, SkeletonChart, SkeletonMetricCard, SkeletonTable, SkeletonText, SortBuilder, SortRow, TableCell, TableHeader, TableNode, TableRow, Tooltip, WidgetErrorBoundary, useAnalytics, useAnalyticsCallbacks, useChartData, useCustomSQL, useDashboard as useDashboardData, useDashboardMutations, useDashboardPinStatus, useDashboards, useLLMChat, useLLMStatus, usePinMutations, usePinnedDashboards, useQuery, useSavedQueries, useSchema } from './chunk-VEFYFB5H.js';
|
|
6
6
|
export { ThemeProvider, darkTheme, lightTheme, useTheme } from './chunk-T6STUE7E.js';
|
|
7
7
|
export { downloadFile, exportMultipleSheets, exportToCSV, exportToExcel, generateCSV, useExport } from './chunk-HKZFEXT6.js';
|
|
8
8
|
export { BREAKPOINTS, ClientOnly, getLocalStorage, getWindowHeight, getWindowWidth, isBrowser, isServer, removeLocalStorage, setLocalStorage, useBreakpoint, useIsBreakpoint, useIsClient, useMediaQuery, useWindowSize } from './chunk-JTCBZDHY.js';
|
|
@@ -567,7 +567,7 @@ interface ChatMessage {
|
|
|
567
567
|
/**
|
|
568
568
|
* Types of streaming chunks from the LLM agent.
|
|
569
569
|
*/
|
|
570
|
-
type StreamChunkType = 'text' | 'sql' | 'tool_call' | 'tool_result' | 'error' | 'done';
|
|
570
|
+
type StreamChunkType = 'text' | 'sql' | 'tool_call' | 'tool_result' | 'status' | 'error' | 'done';
|
|
571
571
|
/**
|
|
572
572
|
* A single chunk in a streaming LLM response.
|
|
573
573
|
*/
|
|
@@ -581,6 +581,24 @@ interface StreamChunk {
|
|
|
581
581
|
/** Tool arguments (for tool_call chunks). */
|
|
582
582
|
tool_args?: Record<string, unknown>;
|
|
583
583
|
}
|
|
584
|
+
/**
|
|
585
|
+
* Context about the target widget for SQL generation.
|
|
586
|
+
*
|
|
587
|
+
* Tells the LLM what kind of widget the query is for, so it can
|
|
588
|
+
* generate queries with the correct column structure.
|
|
589
|
+
*/
|
|
590
|
+
interface WidgetContext {
|
|
591
|
+
/** Widget type (matches WidgetType enum values). */
|
|
592
|
+
widget_type: string;
|
|
593
|
+
/** Configured x-axis column. */
|
|
594
|
+
x_axis?: string;
|
|
595
|
+
/** Configured y-axis column(s). */
|
|
596
|
+
y_axis?: string[];
|
|
597
|
+
/** Multi-series grouping column. */
|
|
598
|
+
series_column?: string;
|
|
599
|
+
/** Last execution error for self-correction. */
|
|
600
|
+
last_error?: string;
|
|
601
|
+
}
|
|
584
602
|
/**
|
|
585
603
|
* LLM agent status response.
|
|
586
604
|
*/
|
|
@@ -624,4 +642,4 @@ interface DashboardPinContextsResponse {
|
|
|
624
642
|
contexts: string[];
|
|
625
643
|
}
|
|
626
644
|
|
|
627
|
-
export type { AggregationType as A, CalculatedField as C, DatabaseSchema as D, ExecuteSQLRequest as E, FilterDefinition as F, GroupByDefinition as G, JoinDefinition as J, LLMStatus as L, PinnedDashboard as P, QueryResult as Q, Relationship as R, SQLValidationResult as S, TimeSeriesConfig as T, ValidationResult as V, WidgetCreate as W, QueryDefinition as a, QueryTable as b, TableSchema as c, DataSourceMeta as d, Dashboard as e, DashboardCreate as f, DashboardUpdate as g, Widget as h, WidgetUpdate as i, WidgetPositionUpdate as j, SavedQuery as k, SavedQueryCreate as l, SavedQueryUpdate as m, PinnedDashboardsResponse as n, ChatMessage as o,
|
|
645
|
+
export type { AggregationType as A, StreamChunkType as B, CalculatedField as C, DatabaseSchema as D, ExecuteSQLRequest as E, FilterDefinition as F, GroupByDefinition as G, JoinDefinition as J, LLMStatus as L, PinnedDashboard as P, QueryResult as Q, Relationship as R, SQLValidationResult as S, TimeSeriesConfig as T, ValidationResult as V, WidgetCreate as W, QueryDefinition as a, QueryTable as b, TableSchema as c, DataSourceMeta as d, Dashboard as e, DashboardCreate as f, DashboardUpdate as g, Widget as h, WidgetUpdate as i, WidgetPositionUpdate as j, SavedQuery as k, SavedQueryCreate as l, SavedQueryUpdate as m, PinnedDashboardsResponse as n, ChatMessage as o, WidgetContext as p, StreamChunk as q, WidgetPosition as r, ChatRole as s, ColumnSchema as t, ColumnSelection as u, DashboardPinContextsResponse as v, FilterOperator as w, JoinType as x, SortDefinition as y, SortDirection as z };
|
|
@@ -567,7 +567,7 @@ interface ChatMessage {
|
|
|
567
567
|
/**
|
|
568
568
|
* Types of streaming chunks from the LLM agent.
|
|
569
569
|
*/
|
|
570
|
-
type StreamChunkType = 'text' | 'sql' | 'tool_call' | 'tool_result' | 'error' | 'done';
|
|
570
|
+
type StreamChunkType = 'text' | 'sql' | 'tool_call' | 'tool_result' | 'status' | 'error' | 'done';
|
|
571
571
|
/**
|
|
572
572
|
* A single chunk in a streaming LLM response.
|
|
573
573
|
*/
|
|
@@ -581,6 +581,24 @@ interface StreamChunk {
|
|
|
581
581
|
/** Tool arguments (for tool_call chunks). */
|
|
582
582
|
tool_args?: Record<string, unknown>;
|
|
583
583
|
}
|
|
584
|
+
/**
|
|
585
|
+
* Context about the target widget for SQL generation.
|
|
586
|
+
*
|
|
587
|
+
* Tells the LLM what kind of widget the query is for, so it can
|
|
588
|
+
* generate queries with the correct column structure.
|
|
589
|
+
*/
|
|
590
|
+
interface WidgetContext {
|
|
591
|
+
/** Widget type (matches WidgetType enum values). */
|
|
592
|
+
widget_type: string;
|
|
593
|
+
/** Configured x-axis column. */
|
|
594
|
+
x_axis?: string;
|
|
595
|
+
/** Configured y-axis column(s). */
|
|
596
|
+
y_axis?: string[];
|
|
597
|
+
/** Multi-series grouping column. */
|
|
598
|
+
series_column?: string;
|
|
599
|
+
/** Last execution error for self-correction. */
|
|
600
|
+
last_error?: string;
|
|
601
|
+
}
|
|
584
602
|
/**
|
|
585
603
|
* LLM agent status response.
|
|
586
604
|
*/
|
|
@@ -624,4 +642,4 @@ interface DashboardPinContextsResponse {
|
|
|
624
642
|
contexts: string[];
|
|
625
643
|
}
|
|
626
644
|
|
|
627
|
-
export type { AggregationType as A, CalculatedField as C, DatabaseSchema as D, ExecuteSQLRequest as E, FilterDefinition as F, GroupByDefinition as G, JoinDefinition as J, LLMStatus as L, PinnedDashboard as P, QueryResult as Q, Relationship as R, SQLValidationResult as S, TimeSeriesConfig as T, ValidationResult as V, WidgetCreate as W, QueryDefinition as a, QueryTable as b, TableSchema as c, DataSourceMeta as d, Dashboard as e, DashboardCreate as f, DashboardUpdate as g, Widget as h, WidgetUpdate as i, WidgetPositionUpdate as j, SavedQuery as k, SavedQueryCreate as l, SavedQueryUpdate as m, PinnedDashboardsResponse as n, ChatMessage as o,
|
|
645
|
+
export type { AggregationType as A, StreamChunkType as B, CalculatedField as C, DatabaseSchema as D, ExecuteSQLRequest as E, FilterDefinition as F, GroupByDefinition as G, JoinDefinition as J, LLMStatus as L, PinnedDashboard as P, QueryResult as Q, Relationship as R, SQLValidationResult as S, TimeSeriesConfig as T, ValidationResult as V, WidgetCreate as W, QueryDefinition as a, QueryTable as b, TableSchema as c, DataSourceMeta as d, Dashboard as e, DashboardCreate as f, DashboardUpdate as g, Widget as h, WidgetUpdate as i, WidgetPositionUpdate as j, SavedQuery as k, SavedQueryCreate as l, SavedQueryUpdate as m, PinnedDashboardsResponse as n, ChatMessage as o, WidgetContext as p, StreamChunk as q, WidgetPosition as r, ChatRole as s, ColumnSchema as t, ColumnSelection as u, DashboardPinContextsResponse as v, FilterOperator as w, JoinType as x, SortDefinition as y, SortDirection as z };
|
package/dist/utils/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { A as ArrowNavigationOptions, F as FocusTrapOptions, S as SkipLinkProps, U as UseArrowNavigationResult, a as UseFocusTrapResult, b as announceToScreenReader, f as focusVisibleStyles, s as skipLinkFocusStyles, c as skipLinkStyles, u as useArrowNavigation, d as useFocusTrap, e as useFocusVisible, g as useRovingTabIndex } from '../accessibility-Bu2mNtaB.cjs';
|
|
2
|
-
import { Q as QueryResult } from '../types-
|
|
2
|
+
import { Q as QueryResult } from '../types-BaI6sSAG.cjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { A as ArrowNavigationOptions, F as FocusTrapOptions, S as SkipLinkProps, U as UseArrowNavigationResult, a as UseFocusTrapResult, b as announceToScreenReader, f as focusVisibleStyles, s as skipLinkFocusStyles, c as skipLinkStyles, u as useArrowNavigation, d as useFocusTrap, e as useFocusVisible, g as useRovingTabIndex } from '../accessibility-Bu2mNtaB.js';
|
|
2
|
-
import { Q as QueryResult } from '../types-
|
|
2
|
+
import { Q as QueryResult } from '../types-BaI6sSAG.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
|
|
5
5
|
/**
|