drizzle-cube 0.6.6 → 0.7.0
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 +231 -106
- package/dist/adapters/ActivityGridChart.config-DaYILvFZ.cjs +1 -0
- package/dist/adapters/ActivityGridChart.config-_SyTBEyR.js +2 -0
- package/dist/adapters/AreaChart.config-BKh6fY1_.cjs +1 -0
- package/dist/adapters/AreaChart.config-CJoxLP3Y.js +2 -0
- package/dist/adapters/BarChart.config-Bm1bfRbI.cjs +1 -0
- package/dist/adapters/BarChart.config-CGu2Bqrx.js +2 -0
- package/dist/adapters/BoxPlotChart.config-B7M9CQaE.js +2 -0
- package/dist/adapters/BoxPlotChart.config-CXQel8Hk.cjs +1 -0
- package/dist/adapters/BubbleChart.config-BJ36IuVS.cjs +1 -0
- package/dist/adapters/BubbleChart.config-CWoXeLdm.js +2 -0
- package/dist/adapters/CandlestickChart.config-CGMLZVIy.cjs +1 -0
- package/dist/adapters/CandlestickChart.config-CzOcfF1e.js +2 -0
- package/dist/adapters/DataTable.config-CdAzueTs.cjs +1 -0
- package/dist/adapters/DataTable.config-D_KmPyxV.js +2 -0
- package/dist/adapters/FunnelChart.config-D1QAUuYl.cjs +1 -0
- package/dist/adapters/FunnelChart.config-DCRHQoFc.js +2 -0
- package/dist/adapters/GaugeChart.config-DAybRXP3.js +2 -0
- package/dist/adapters/GaugeChart.config-WUPfyLP-.cjs +1 -0
- package/dist/adapters/HeatMapChart.config-CziltPnC.cjs +1 -0
- package/dist/adapters/HeatMapChart.config-DHpXNONW.js +2 -0
- package/dist/adapters/KpiDelta.config-Bw5o0ocY.js +2 -0
- package/dist/adapters/KpiDelta.config-CdAmE1pw.cjs +1 -0
- package/dist/adapters/KpiNumber.config-CQ_wq2gx.js +2 -0
- package/dist/adapters/KpiNumber.config-wxN8x4DC.cjs +1 -0
- package/dist/adapters/KpiText.config-DIRIC97F.cjs +1 -0
- package/dist/adapters/KpiText.config-eODcP6Hn.js +2 -0
- package/dist/adapters/LineChart.config-32-9zA2V.js +2 -0
- package/dist/adapters/LineChart.config-BukeFp6z.cjs +1 -0
- package/dist/adapters/MarkdownChart.config-BVsR5LDy.js +2 -0
- package/dist/adapters/MarkdownChart.config-j4veYjcZ.cjs +1 -0
- package/dist/adapters/MeasureProfileChart.config-BRDYx1hw.js +2 -0
- package/dist/adapters/MeasureProfileChart.config-CIosBxco.cjs +1 -0
- package/dist/adapters/PieChart.config-Bj8KiA0n.cjs +1 -0
- package/dist/adapters/PieChart.config-DgAj3y-I.js +2 -0
- package/dist/adapters/ProportionBarChart.config-BfFOppHY.js +2 -0
- package/dist/adapters/ProportionBarChart.config-c8GGE1aK.cjs +1 -0
- package/dist/adapters/RadarChart.config-D7iHY1v9.js +2 -0
- package/dist/adapters/RadarChart.config-ghlANG2-.cjs +1 -0
- package/dist/adapters/RadialBarChart.config-CsXIz-0v.js +2 -0
- package/dist/adapters/RadialBarChart.config-Dsvu2CPV.cjs +1 -0
- package/dist/adapters/RetentionCombinedChart.config-CdT1kXC7.js +2 -0
- package/dist/adapters/RetentionCombinedChart.config-sDjFKH9K.cjs +1 -0
- package/dist/adapters/RetentionHeatmap.config-CvKBvQmu.cjs +1 -0
- package/dist/adapters/RetentionHeatmap.config-DbM3ICwc.js +2 -0
- package/dist/adapters/SankeyChart.config-BNBcIHaD.js +2 -0
- package/dist/adapters/SankeyChart.config-DZscz3kh.cjs +1 -0
- package/dist/adapters/ScatterChart.config-BNYIddyM.cjs +1 -0
- package/dist/adapters/ScatterChart.config-CEhtoLWc.js +2 -0
- package/dist/adapters/SunburstChart.config-ClseCzji.cjs +1 -0
- package/dist/adapters/SunburstChart.config-nnphNoVO.js +2 -0
- package/dist/adapters/TreeMapChart.config-C8-75muA.js +2 -0
- package/dist/adapters/TreeMapChart.config-DoXeUg9Y.cjs +1 -0
- package/dist/adapters/WaterfallChart.config-BOF1qxY3.cjs +1 -0
- package/dist/adapters/WaterfallChart.config-uW5YyOji.js +2 -0
- package/dist/adapters/chartConfigHelpers-BZMu_1EP.cjs +1 -0
- package/dist/adapters/{chartConfigHelpers-CcvqrIWF.js → chartConfigHelpers-BsnbxA2c.js} +30 -1
- package/dist/adapters/compiler-DAyodAnH.cjs +166 -0
- package/dist/adapters/{compiler-ZruQ85ff.js → compiler-Dq04wAjm.js} +116 -60
- package/dist/adapters/core/index.cjs +1 -1
- package/dist/adapters/core/index.js +1 -1
- package/dist/adapters/{core-BMZhIzaI.js → core-BjxfG6Uf.js} +8 -8
- package/dist/adapters/core-zV2w0hO2.cjs +1 -0
- package/dist/adapters/{dist-CH3hwAUk.js → dist-ChBfLb7x.js} +7 -4
- package/dist/adapters/{dist-BOdf-GQO.cjs → dist-CohrBmKe.cjs} +2 -2
- package/dist/adapters/express/index.cjs +1 -1
- package/dist/adapters/express/index.js +5 -5
- package/dist/adapters/fastify/index.cjs +2 -2
- package/dist/adapters/fastify/index.js +10 -6
- package/dist/adapters/google-BhvizbFR.cjs +2 -0
- package/dist/adapters/{google-CvKM9yVM.js → google-eKAc20al.js} +3 -3
- package/dist/adapters/{handler-_PXp3G47.cjs → handler-C6Hj6_Yk.cjs} +9 -9
- package/dist/adapters/{handler-xR2P1EI4.js → handler-ox6qxLw5.js} +230 -152
- package/dist/adapters/hono/index.cjs +1 -1
- package/dist/adapters/hono/index.js +26 -18
- package/dist/adapters/mcp-tools.cjs +1 -1
- package/dist/adapters/mcp-tools.js +2 -2
- package/dist/adapters/mcp-transport-C_t_p0wU.cjs +40 -0
- package/dist/adapters/mcp-transport-DFH9e6de.js +603 -0
- package/dist/adapters/nextjs/index.cjs +1 -1
- package/dist/adapters/nextjs/index.js +14 -11
- package/dist/{server/openai-C3-mjSAc.cjs → adapters/openai-BffpdO4n.cjs} +1 -1
- package/dist/adapters/openai-C9LNhHfK.js +9295 -0
- package/dist/adapters/{openai-B6hWZk_r.js → openai-CmyXJWti.js} +18 -17
- package/dist/adapters/openai-DlT-0VRC.cjs +19 -0
- package/dist/adapters/utils-C5FLHK04.cjs +128 -0
- package/dist/adapters/{utils-U7gV5wQL.js → utils-tjiwXFnP.js} +69 -17
- package/dist/adapters/utils.cjs +1 -1
- package/dist/adapters/utils.js +1 -1
- package/dist/cjs/client/charts/chartConfigHelpers.d.ts +20 -0
- package/dist/cjs/client/components/AgenticNotebook/AgentChatPanel.d.ts +1 -1
- package/dist/cjs/client/components/AgenticNotebook/ChatInput.d.ts +1 -1
- package/dist/cjs/client/components/AgenticNotebook/ChatMessage.d.ts +1 -1
- package/dist/cjs/client/components/AgenticNotebook/NotebookCanvas.d.ts +2 -2
- package/dist/cjs/client/components/AgenticNotebook/NotebookMarkdownBlock.d.ts +1 -1
- package/dist/cjs/client/components/AgenticNotebook/NotebookPortletBlock.d.ts +1 -1
- package/dist/cjs/client/components/AgenticNotebook/index.d.ts +1 -1
- package/dist/cjs/client/components/AnalysisBuilder/AnalysisQueryPanel.d.ts +1 -1
- package/dist/cjs/client/components/AnalysisBuilder/AnalysisResultsPanel.d.ts +1 -1
- package/dist/cjs/client/components/AnalysisBuilder/AnalysisTypeSelector.d.ts +1 -1
- package/dist/cjs/client/components/AnalysisBuilder/BreakdownComparisonToggle.d.ts +1 -1
- package/dist/cjs/client/components/AnalysisBuilder/BreakdownItemCard.d.ts +1 -1
- package/dist/cjs/client/components/AnalysisBuilder/BreakdownRow.d.ts +1 -1
- package/dist/cjs/client/components/AnalysisBuilder/BreakdownSection.d.ts +1 -1
- package/dist/cjs/client/components/AnalysisBuilder/ExecutionPlanPanel.d.ts +1 -1
- package/dist/cjs/client/components/AnalysisBuilder/FieldSearchResults.d.ts +1 -1
- package/dist/cjs/client/components/AnalysisBuilder/FlowConfigPanel.d.ts +1 -1
- package/dist/cjs/client/components/AnalysisBuilder/FlowDepthControls.d.ts +1 -1
- package/dist/cjs/client/components/AnalysisBuilder/FlowModeContent.d.ts +1 -1
- package/dist/cjs/client/components/AnalysisBuilder/FlowVisualizationPicker.d.ts +1 -1
- package/dist/cjs/client/components/AnalysisBuilder/FunnelBindingKeySelector.d.ts +1 -1
- package/dist/cjs/client/components/AnalysisBuilder/FunnelConfigPanel.d.ts +1 -1
- package/dist/cjs/client/components/AnalysisBuilder/FunnelModeContent.d.ts +1 -1
- package/dist/cjs/client/components/AnalysisBuilder/FunnelStepCard.d.ts +1 -1
- package/dist/cjs/client/components/AnalysisBuilder/FunnelStepList.d.ts +1 -1
- package/dist/cjs/client/components/AnalysisBuilder/LegacyBooleanOptions.d.ts +1 -1
- package/dist/cjs/client/components/AnalysisBuilder/MetricItemCard.d.ts +1 -1
- package/dist/cjs/client/components/AnalysisBuilder/MetricRow.d.ts +1 -1
- package/dist/cjs/client/components/AnalysisBuilder/MetricsSection.d.ts +1 -1
- package/dist/cjs/client/components/AnalysisBuilder/RetentionConfigPanel.d.ts +2 -2
- package/dist/cjs/client/components/AnalysisBuilder/RetentionModeContent.d.ts +1 -1
- package/dist/cjs/client/components/AnalysisBuilder/SortToggleButton.d.ts +1 -1
- package/dist/cjs/client/components/DashboardPortletCard.d.ts +1 -1
- package/dist/cjs/client/components/DataBrowser/DataBrowserTable.d.ts +1 -1
- package/dist/cjs/client/components/PortletGroupCard.d.ts +18 -0
- package/dist/cjs/client/components/RowManagedLayout.d.ts +15 -3
- package/dist/cjs/client/components/analyticsPortlet/intrinsicChartHeight.d.ts +9 -0
- package/dist/cjs/client/components/charts/ActivityGridChart.d.ts +1 -1
- package/dist/cjs/client/components/charts/AngledXAxisTick.d.ts +5 -0
- package/dist/cjs/client/components/charts/AreaChart.d.ts +1 -1
- package/dist/cjs/client/components/charts/BarChart.d.ts +1 -1
- package/dist/cjs/client/components/charts/BoxPlotChart.d.ts +1 -1
- package/dist/cjs/client/components/charts/BubbleChart.d.ts +1 -1
- package/dist/cjs/client/components/charts/CandlestickChart.d.ts +1 -1
- package/dist/cjs/client/components/charts/ChartContainer.d.ts +7 -1
- package/dist/cjs/client/components/charts/ChartSummaryHeader.d.ts +31 -0
- package/dist/cjs/client/components/charts/DataTable.d.ts +1 -1
- package/dist/cjs/client/components/charts/FunnelChart.d.ts +1 -1
- package/dist/cjs/client/components/charts/GaugeChart.d.ts +1 -1
- package/dist/cjs/client/components/charts/HeatMapChart.d.ts +1 -1
- package/dist/cjs/client/components/charts/KpiCompactLayout.d.ts +31 -0
- package/dist/cjs/client/components/charts/KpiDelta.d.ts +1 -1
- package/dist/cjs/client/components/charts/KpiDelta.helpers.d.ts +2 -0
- package/dist/cjs/client/components/charts/KpiNumber.d.ts +1 -1
- package/dist/cjs/client/components/charts/KpiStates.d.ts +7 -2
- package/dist/cjs/client/components/charts/KpiText.d.ts +1 -1
- package/dist/cjs/client/components/charts/LineChart.d.ts +1 -1
- package/dist/cjs/client/components/charts/MarkdownChart.d.ts +1 -1
- package/dist/cjs/client/components/charts/MeasureProfileChart.d.ts +1 -1
- package/dist/cjs/client/components/charts/PieChart.d.ts +1 -1
- package/dist/cjs/client/components/charts/ProportionBarChart.config.d.ts +10 -0
- package/dist/cjs/client/components/charts/ProportionBarChart.d.ts +12 -0
- package/dist/cjs/client/components/charts/RadarChart.d.ts +1 -1
- package/dist/cjs/client/components/charts/RadialBarChart.d.ts +1 -1
- package/dist/cjs/client/components/charts/RetentionCombinedChart.d.ts +1 -1
- package/dist/cjs/client/components/charts/RetentionHeatmap.d.ts +1 -1
- package/dist/cjs/client/components/charts/SankeyChart.d.ts +1 -1
- package/dist/cjs/client/components/charts/ScatterChart.d.ts +1 -1
- package/dist/cjs/client/components/charts/SunburstChart.d.ts +1 -1
- package/dist/cjs/client/components/charts/TreeMapChart.d.ts +1 -1
- package/dist/cjs/client/components/charts/WaterfallChart.d.ts +1 -1
- package/dist/cjs/client/components/charts/cartesianChartHelpers.d.ts +62 -0
- package/dist/cjs/client/components/charts/chartScaffolding.d.ts +29 -0
- package/dist/cjs/client/components/dashboard/DashboardContext.d.ts +5 -1
- package/dist/cjs/client/components/dashboard/dashboardGridUtils.d.ts +2 -4
- package/dist/cjs/client/components/dashboardPortletCard/EditActionButtons.d.ts +34 -0
- package/dist/cjs/client/components/dashboardPortletCard/PortletCardHeader.d.ts +2 -12
- package/dist/cjs/client/components/dashboardPortletCard/PortletFloatingActions.d.ts +24 -0
- package/dist/cjs/client/components/dashboardPortletCard/cardStyles.d.ts +5 -0
- package/dist/cjs/client/components/dashboardPortletCard/propsEqual.d.ts +2 -0
- package/dist/cjs/client/components/mobileStackedLayout/memberDisplay.d.ts +21 -0
- package/dist/cjs/client/components.d.ts +1 -1
- package/dist/cjs/client/hooks/dashboard/groupGeometry.d.ts +23 -0
- package/dist/cjs/client/hooks/dashboard/groupUtils.d.ts +57 -0
- package/dist/cjs/client/hooks/dashboard/layoutUtils.d.ts +34 -3
- package/dist/cjs/client/hooks/dashboard/useDashboardController.d.ts +11 -3
- package/dist/cjs/client/hooks/dashboard/useRowLayoutEngine.d.ts +12 -2
- package/dist/cjs/client/hooks/useDashboardHook.d.ts +14 -1
- package/dist/cjs/client/icons/types.d.ts +1 -0
- package/dist/cjs/client/index.d.ts +1 -1
- package/dist/cjs/client/stores/dashboardStore.d.ts +11 -1
- package/dist/cjs/client/types.d.ts +37 -2
- package/dist/cli/index.cjs +6 -5
- package/dist/client/charts/chartConfigHelpers.d.ts +20 -0
- package/dist/client/charts.js +13 -13
- package/dist/client/chunks/DashboardEditModal-ByXLlXZD.js +11777 -0
- package/dist/client/chunks/DashboardEditModal-ByXLlXZD.js.map +1 -0
- package/dist/client/chunks/ProportionBarChart-lOeVz8ZC.js +109 -0
- package/dist/client/chunks/ProportionBarChart-lOeVz8ZC.js.map +1 -0
- package/dist/client/chunks/{RetentionCombinedChart-DY7wKLs5.js → RetentionCombinedChart-Mcm7zHFx.js} +8 -8
- package/dist/client/chunks/{RetentionCombinedChart-DY7wKLs5.js.map → RetentionCombinedChart-Mcm7zHFx.js.map} +1 -1
- package/dist/client/chunks/{RetentionHeatmap-iNCG-dLd.js → RetentionHeatmap-4VJx5KDM.js} +6 -6
- package/dist/client/chunks/{RetentionHeatmap-iNCG-dLd.js.map → RetentionHeatmap-4VJx5KDM.js.map} +1 -1
- package/dist/client/chunks/{analysis-builder-BDWychCW.js → analysis-builder-CWTJQQtL.js} +421 -413
- package/dist/client/chunks/analysis-builder-CWTJQQtL.js.map +1 -0
- package/dist/client/chunks/{analysis-builder-shared-DkL0e-wU.js → analysis-builder-shared-l-4WKVS1.js} +454 -452
- package/dist/client/chunks/analysis-builder-shared-l-4WKVS1.js.map +1 -0
- package/dist/client/chunks/{chart-activity-grid-DDqFVWoa.js → chart-activity-grid-DVOhLgxv.js} +61 -6
- package/dist/client/chunks/{chart-activity-grid-DDqFVWoa.js.map → chart-activity-grid-DVOhLgxv.js.map} +1 -1
- package/dist/client/chunks/chart-area-C-5ATxvi.js +963 -0
- package/dist/client/chunks/chart-area-C-5ATxvi.js.map +1 -0
- package/dist/client/chunks/{chart-bar-DAO3PPcE.js → chart-bar-CPiLaXHP.js} +71 -64
- package/dist/client/chunks/chart-bar-CPiLaXHP.js.map +1 -0
- package/dist/client/chunks/{chart-box-plot-CUpFyQQk.js → chart-box-plot-Bae5O9xC.js} +3 -3
- package/dist/client/chunks/{chart-box-plot-CUpFyQQk.js.map → chart-box-plot-Bae5O9xC.js.map} +1 -1
- package/dist/client/chunks/{chart-bubble-DvP_6_n9.js → chart-bubble-BFN5WIpf.js} +5 -5
- package/dist/client/chunks/{chart-bubble-DvP_6_n9.js.map → chart-bubble-BFN5WIpf.js.map} +1 -1
- package/dist/client/chunks/{chart-candlestick-Dx8ZCMzl.js → chart-candlestick-PBQKp_z7.js} +3 -3
- package/dist/client/chunks/{chart-candlestick-Dx8ZCMzl.js.map → chart-candlestick-PBQKp_z7.js.map} +1 -1
- package/dist/client/chunks/{chart-config-activity-grid-BU_bkvER.js → chart-config-activity-grid-C4vXGQNu.js} +2 -2
- package/dist/client/chunks/{chart-config-activity-grid-BU_bkvER.js.map → chart-config-activity-grid-C4vXGQNu.js.map} +1 -1
- package/dist/client/chunks/{chart-config-area-DxwIZ4Uf.js → chart-config-area-DsrZCIwF.js} +35 -4
- package/dist/client/chunks/chart-config-area-DsrZCIwF.js.map +1 -0
- package/dist/client/chunks/{chart-config-bar-Cc8GY9aQ.js → chart-config-bar-BixSs43E.js} +7 -7
- package/dist/client/chunks/{chart-config-bar-Cc8GY9aQ.js.map → chart-config-bar-BixSs43E.js.map} +1 -1
- package/dist/client/chunks/{chart-config-box-plot-Bs8ovYvV.js → chart-config-box-plot-DMuJZqkr.js} +2 -2
- package/dist/client/chunks/{chart-config-box-plot-Bs8ovYvV.js.map → chart-config-box-plot-DMuJZqkr.js.map} +1 -1
- package/dist/client/chunks/{chart-config-bubble-BfgY7pt8.js → chart-config-bubble-1IyZinH0.js} +2 -2
- package/dist/client/chunks/{chart-config-bubble-BfgY7pt8.js.map → chart-config-bubble-1IyZinH0.js.map} +1 -1
- package/dist/client/chunks/{chart-config-candlestick-jaeNNEtC.js → chart-config-candlestick-QwQwJB_-.js} +2 -2
- package/dist/client/chunks/{chart-config-candlestick-jaeNNEtC.js.map → chart-config-candlestick-QwQwJB_-.js.map} +1 -1
- package/dist/client/chunks/{chart-config-data-table-CRk0C0rW.js → chart-config-data-table-CrGyS7aJ.js} +2 -2
- package/dist/client/chunks/{chart-config-data-table-CRk0C0rW.js.map → chart-config-data-table-CrGyS7aJ.js.map} +1 -1
- package/dist/client/chunks/{chart-config-funnel-boT_LNfl.js → chart-config-funnel-DMLLKtPF.js} +2 -2
- package/dist/client/chunks/{chart-config-funnel-boT_LNfl.js.map → chart-config-funnel-DMLLKtPF.js.map} +1 -1
- package/dist/client/chunks/{chart-config-gauge-C5uJEr97.js → chart-config-gauge-DNafFwfS.js} +2 -2
- package/dist/client/chunks/{chart-config-gauge-C5uJEr97.js.map → chart-config-gauge-DNafFwfS.js.map} +1 -1
- package/dist/client/chunks/{chart-config-heat-map-CCarP44-.js → chart-config-heat-map-CJF65SyL.js} +2 -2
- package/dist/client/chunks/{chart-config-heat-map-CCarP44-.js.map → chart-config-heat-map-CJF65SyL.js.map} +1 -1
- package/dist/client/chunks/{chart-config-kpi-delta-DYopvwyG.js → chart-config-kpi-delta-Cl7k6jTj.js} +13 -4
- package/dist/client/chunks/chart-config-kpi-delta-Cl7k6jTj.js.map +1 -0
- package/dist/client/chunks/{chart-config-kpi-number-BhMdoArB.js → chart-config-kpi-number-DCcnANWC.js} +6 -4
- package/dist/client/chunks/chart-config-kpi-number-DCcnANWC.js.map +1 -0
- package/dist/client/chunks/{chart-config-kpi-text-DE6Zdi53.js → chart-config-kpi-text-DnnxvOSA.js} +2 -2
- package/dist/client/chunks/{chart-config-kpi-text-DE6Zdi53.js.map → chart-config-kpi-text-DnnxvOSA.js.map} +1 -1
- package/dist/client/chunks/{chart-config-line-CBfM0Rds.js → chart-config-line-CBF9Px9b.js} +9 -7
- package/dist/client/chunks/chart-config-line-CBF9Px9b.js.map +1 -0
- package/dist/client/chunks/{chart-config-markdown-BCDyBI8K.js → chart-config-markdown-C5kBQOjP.js} +2 -2
- package/dist/client/chunks/{chart-config-markdown-BCDyBI8K.js.map → chart-config-markdown-C5kBQOjP.js.map} +1 -1
- package/dist/client/chunks/{chart-config-measure-profile-BgQIH1u2.js → chart-config-measure-profile-CRSRIpKh.js} +2 -2
- package/dist/client/chunks/{chart-config-measure-profile-BgQIH1u2.js.map → chart-config-measure-profile-CRSRIpKh.js.map} +1 -1
- package/dist/client/chunks/{chart-config-pie-ChfFz6DV.js → chart-config-pie-DZLa6Eqm.js} +3 -3
- package/dist/client/chunks/{chart-config-pie-ChfFz6DV.js.map → chart-config-pie-DZLa6Eqm.js.map} +1 -1
- package/dist/client/chunks/{chart-config-radar-BlAIGnww.js → chart-config-radar-DR6vHHyd.js} +3 -3
- package/dist/client/chunks/{chart-config-radar-BlAIGnww.js.map → chart-config-radar-DR6vHHyd.js.map} +1 -1
- package/dist/client/chunks/{chart-config-radial-bar-VFerwbCO.js → chart-config-radial-bar-DVFou4fB.js} +3 -3
- package/dist/client/chunks/{chart-config-radial-bar-VFerwbCO.js.map → chart-config-radial-bar-DVFou4fB.js.map} +1 -1
- package/dist/client/chunks/{chart-config-sankey-BhrDxIgj.js → chart-config-sankey-De8E0C1A.js} +2 -2
- package/dist/client/chunks/{chart-config-sankey-BhrDxIgj.js.map → chart-config-sankey-De8E0C1A.js.map} +1 -1
- package/dist/client/chunks/{chart-config-scatter-q_olh54e.js → chart-config-scatter-CWA89oX4.js} +2 -2
- package/dist/client/chunks/{chart-config-scatter-q_olh54e.js.map → chart-config-scatter-CWA89oX4.js.map} +1 -1
- package/dist/client/chunks/{chart-config-sunburst-BOmkOnKn.js → chart-config-sunburst-B4NUYHMH.js} +2 -2
- package/dist/client/chunks/{chart-config-sunburst-BOmkOnKn.js.map → chart-config-sunburst-B4NUYHMH.js.map} +1 -1
- package/dist/client/chunks/{chart-config-tree-map-BjX88YBY.js → chart-config-tree-map-Uhise6Bx.js} +3 -3
- package/dist/client/chunks/{chart-config-tree-map-BjX88YBY.js.map → chart-config-tree-map-Uhise6Bx.js.map} +1 -1
- package/dist/client/chunks/{chart-config-waterfall-QsWXVSoF.js → chart-config-waterfall-DlQb_PLh.js} +2 -2
- package/dist/client/chunks/{chart-config-waterfall-QsWXVSoF.js.map → chart-config-waterfall-DlQb_PLh.js.map} +1 -1
- package/dist/client/chunks/{chart-data-table-BP6DMdom.js → chart-data-table-SNSqZj9B.js} +1072 -1034
- package/dist/client/chunks/chart-data-table-SNSqZj9B.js.map +1 -0
- package/dist/client/chunks/{chart-funnel-xeVGBy-p.js → chart-funnel-CkHSXp6h.js} +3 -3
- package/dist/client/chunks/{chart-funnel-xeVGBy-p.js.map → chart-funnel-CkHSXp6h.js.map} +1 -1
- package/dist/client/chunks/{chart-gauge-DXQ4r3cb.js → chart-gauge-DHIGq3TH.js} +62 -62
- package/dist/client/chunks/{chart-gauge-DXQ4r3cb.js.map → chart-gauge-DHIGq3TH.js.map} +1 -1
- package/dist/client/chunks/{chart-heat-map-Pnk6rhqQ.js → chart-heat-map-Bb8L1XQr.js} +4 -4
- package/dist/client/chunks/{chart-heat-map-Pnk6rhqQ.js.map → chart-heat-map-Bb8L1XQr.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-delta-nXQnRRBr.js → chart-kpi-delta-BJCOXE-F.js} +122 -48
- package/dist/client/chunks/chart-kpi-delta-BJCOXE-F.js.map +1 -0
- package/dist/client/chunks/chart-kpi-number-Cdqgv20g.js +263 -0
- package/dist/client/chunks/chart-kpi-number-Cdqgv20g.js.map +1 -0
- package/dist/client/chunks/{chart-kpi-text-CurpqmaD.js → chart-kpi-text-B10ZHCsI.js} +4 -4
- package/dist/client/chunks/{chart-kpi-text-CurpqmaD.js.map → chart-kpi-text-B10ZHCsI.js.map} +1 -1
- package/dist/client/chunks/chart-line-CzvVL3Be.js +117 -0
- package/dist/client/chunks/chart-line-CzvVL3Be.js.map +1 -0
- package/dist/client/chunks/{chart-markdown-BVrqqygz.js → chart-markdown-C0xxBW81.js} +1550 -1349
- package/dist/client/chunks/chart-markdown-C0xxBW81.js.map +1 -0
- package/dist/client/chunks/{chart-measure-profile-k9_QDQbB.js → chart-measure-profile-BSUPFZCR.js} +6 -5
- package/dist/client/chunks/{chart-measure-profile-k9_QDQbB.js.map → chart-measure-profile-BSUPFZCR.js.map} +1 -1
- package/dist/client/chunks/{chart-pie-BDaaYt7a.js → chart-pie-CwRfwWWZ.js} +11 -11
- package/dist/client/chunks/{chart-pie-BDaaYt7a.js.map → chart-pie-CwRfwWWZ.js.map} +1 -1
- package/dist/client/chunks/{chart-radar-Bz07PIVe.js → chart-radar-Dfql2E7i.js} +10 -10
- package/dist/client/chunks/{chart-radar-Bz07PIVe.js.map → chart-radar-Dfql2E7i.js.map} +1 -1
- package/dist/client/chunks/{chart-radial-bar-DpyxKQMj.js → chart-radial-bar-oE9OZ1IX.js} +11 -11
- package/dist/client/chunks/{chart-radial-bar-DpyxKQMj.js.map → chart-radial-bar-oE9OZ1IX.js.map} +1 -1
- package/dist/client/chunks/{chart-sankey-BAeNbI-p.js → chart-sankey-tK7Oz1bC.js} +3 -3
- package/dist/client/chunks/{chart-sankey-BAeNbI-p.js.map → chart-sankey-tK7Oz1bC.js.map} +1 -1
- package/dist/client/chunks/{chart-scatter-CRhGLCcy.js → chart-scatter-BtLfAsZb.js} +10 -10
- package/dist/client/chunks/{chart-scatter-CRhGLCcy.js.map → chart-scatter-BtLfAsZb.js.map} +1 -1
- package/dist/client/chunks/{chart-sunburst-D3wV5OrK.js → chart-sunburst-B7ryWwQ1.js} +4 -4
- package/dist/client/chunks/{chart-sunburst-D3wV5OrK.js.map → chart-sunburst-B7ryWwQ1.js.map} +1 -1
- package/dist/client/chunks/{chart-tree-map-iI3ewOKY.js → chart-tree-map-DU5M3-qe.js} +31 -29
- package/dist/client/chunks/{chart-tree-map-iI3ewOKY.js.map → chart-tree-map-DU5M3-qe.js.map} +1 -1
- package/dist/client/chunks/{chart-waterfall-BrrYTZfs.js → chart-waterfall-CAwutpzd.js} +4 -4
- package/dist/client/chunks/{chart-waterfall-BrrYTZfs.js.map → chart-waterfall-CAwutpzd.js.map} +1 -1
- package/dist/client/chunks/{charts-core-Cs-UIsQa.js → charts-core-BxBB2zBE.js} +2 -2
- package/dist/client/chunks/{charts-core-Cs-UIsQa.js.map → charts-core-BxBB2zBE.js.map} +1 -1
- package/dist/client/chunks/charts-loader-0avVzeDd.js +85 -0
- package/dist/client/chunks/charts-loader-0avVzeDd.js.map +1 -0
- package/dist/client/chunks/{core-D7vPfUIe.js → core-BWRP9s8x.js} +9 -8
- package/dist/client/chunks/core-BWRP9s8x.js.map +1 -0
- package/dist/client/chunks/{dist-BwQr11Fz.js → dist-BPmPx7kz.js} +56 -51
- package/dist/client/chunks/{dist-BwQr11Fz.js.map → dist-BPmPx7kz.js.map} +1 -1
- package/dist/client/chunks/{exceljs.min-Dey-qIFL.js → exceljs.min-DWC_b8G9.js} +236 -202
- package/dist/client/chunks/{exceljs.min-Dey-qIFL.js.map → exceljs.min-DWC_b8G9.js.map} +1 -1
- package/dist/client/chunks/{javascript-DFnKaHmQ.js → javascript-D6aJaG8F.js} +7 -5
- package/dist/client/chunks/javascript-D6aJaG8F.js.map +1 -0
- package/dist/client/chunks/json-BrJhaXJI.js +44 -0
- package/dist/client/chunks/json-BrJhaXJI.js.map +1 -0
- package/dist/client/chunks/{nl-NL-2zTAWTej.js → nl-NL-BSMhprPr.js} +57 -2
- package/dist/client/chunks/{nl-NL-2zTAWTej.js.map → nl-NL-BSMhprPr.js.map} +1 -1
- package/dist/client/chunks/{rolldown-runtime-CWhphoD1.js → rolldown-runtime-DArdT4gl.js} +2 -2
- package/dist/client/chunks/{schema-visualization-BGT_cNon.js → schema-visualization-CGbnbzj_.js} +10 -10
- package/dist/client/chunks/schema-visualization-CGbnbzj_.js.map +1 -0
- package/dist/client/chunks/{syntaxHighlighting-Bq2Bj9Xt.js → syntaxHighlighting-Cm43as8i.js} +2 -2
- package/dist/client/chunks/{syntaxHighlighting-Bq2Bj9Xt.js.map → syntaxHighlighting-Cm43as8i.js.map} +1 -1
- package/dist/client/chunks/{useDebounce-7suCFq9v.js → useDirtyStateTracking-Dc-Si4db.js} +112 -50
- package/dist/client/chunks/useDirtyStateTracking-Dc-Si4db.js.map +1 -0
- package/dist/client/chunks/{useExplainAI-DueJjb0r.js → useExplainAI-DJbc7Lu4.js} +18 -18
- package/dist/client/chunks/{useExplainAI-DueJjb0r.js.map → useExplainAI-DJbc7Lu4.js.map} +1 -1
- package/dist/client/chunks/{utils-DjLiJKS_.js → utils-CToHkuhU.js} +2 -2
- package/dist/client/chunks/{utils-DjLiJKS_.js.map → utils-CToHkuhU.js.map} +1 -1
- package/dist/client/chunks/{vendor-ChnlgSP0.js → vendor-cTfe9Kho.js} +223 -167
- package/dist/client/chunks/vendor-cTfe9Kho.js.map +1 -0
- package/dist/client/components/AgenticNotebook/AgentChatPanel.d.ts +1 -1
- package/dist/client/components/AgenticNotebook/ChatInput.d.ts +1 -1
- package/dist/client/components/AgenticNotebook/ChatMessage.d.ts +1 -1
- package/dist/client/components/AgenticNotebook/NotebookCanvas.d.ts +2 -2
- package/dist/client/components/AgenticNotebook/NotebookMarkdownBlock.d.ts +1 -1
- package/dist/client/components/AgenticNotebook/NotebookPortletBlock.d.ts +1 -1
- package/dist/client/components/AgenticNotebook/index.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/AnalysisQueryPanel.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/AnalysisResultsPanel.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/AnalysisTypeSelector.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/BreakdownComparisonToggle.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/BreakdownItemCard.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/BreakdownRow.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/BreakdownSection.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/ExecutionPlanPanel.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/FieldSearchResults.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/FlowConfigPanel.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/FlowDepthControls.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/FlowModeContent.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/FlowVisualizationPicker.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/FunnelBindingKeySelector.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/FunnelConfigPanel.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/FunnelModeContent.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/FunnelStepCard.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/FunnelStepList.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/LegacyBooleanOptions.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/MetricItemCard.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/MetricRow.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/MetricsSection.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/RetentionConfigPanel.d.ts +2 -2
- package/dist/client/components/AnalysisBuilder/RetentionModeContent.d.ts +1 -1
- package/dist/client/components/AnalysisBuilder/SortToggleButton.d.ts +1 -1
- package/dist/client/components/DashboardPortletCard.d.ts +1 -1
- package/dist/client/components/DataBrowser/DataBrowserTable.d.ts +1 -1
- package/dist/client/components/PortletGroupCard.d.ts +18 -0
- package/dist/client/components/RowManagedLayout.d.ts +15 -3
- package/dist/client/components/analyticsPortlet/intrinsicChartHeight.d.ts +9 -0
- package/dist/client/components/charts/ActivityGridChart.d.ts +1 -1
- package/dist/client/components/charts/AngledXAxisTick.d.ts +5 -0
- package/dist/client/components/charts/AreaChart.d.ts +1 -1
- package/dist/client/components/charts/BarChart.d.ts +1 -1
- package/dist/client/components/charts/BoxPlotChart.d.ts +1 -1
- package/dist/client/components/charts/BubbleChart.d.ts +1 -1
- package/dist/client/components/charts/CandlestickChart.d.ts +1 -1
- package/dist/client/components/charts/ChartContainer.d.ts +7 -1
- package/dist/client/components/charts/ChartSummaryHeader.d.ts +31 -0
- package/dist/client/components/charts/DataTable.d.ts +1 -1
- package/dist/client/components/charts/FunnelChart.d.ts +1 -1
- package/dist/client/components/charts/GaugeChart.d.ts +1 -1
- package/dist/client/components/charts/HeatMapChart.d.ts +1 -1
- package/dist/client/components/charts/KpiCompactLayout.d.ts +31 -0
- package/dist/client/components/charts/KpiDelta.d.ts +1 -1
- package/dist/client/components/charts/KpiDelta.helpers.d.ts +2 -0
- package/dist/client/components/charts/KpiNumber.d.ts +1 -1
- package/dist/client/components/charts/KpiStates.d.ts +7 -2
- package/dist/client/components/charts/KpiText.d.ts +1 -1
- package/dist/client/components/charts/LineChart.d.ts +1 -1
- package/dist/client/components/charts/MarkdownChart.d.ts +1 -1
- package/dist/client/components/charts/MeasureProfileChart.d.ts +1 -1
- package/dist/client/components/charts/PieChart.d.ts +1 -1
- package/dist/client/components/charts/ProportionBarChart.config.d.ts +10 -0
- package/dist/client/components/charts/ProportionBarChart.d.ts +12 -0
- package/dist/client/components/charts/RadarChart.d.ts +1 -1
- package/dist/client/components/charts/RadialBarChart.d.ts +1 -1
- package/dist/client/components/charts/RetentionCombinedChart.d.ts +1 -1
- package/dist/client/components/charts/RetentionHeatmap.d.ts +1 -1
- package/dist/client/components/charts/SankeyChart.d.ts +1 -1
- package/dist/client/components/charts/ScatterChart.d.ts +1 -1
- package/dist/client/components/charts/SunburstChart.d.ts +1 -1
- package/dist/client/components/charts/TreeMapChart.d.ts +1 -1
- package/dist/client/components/charts/WaterfallChart.d.ts +1 -1
- package/dist/client/components/charts/cartesianChartHelpers.d.ts +62 -0
- package/dist/client/components/charts/chartScaffolding.d.ts +29 -0
- package/dist/client/components/dashboard/DashboardContext.d.ts +5 -1
- package/dist/client/components/dashboard/dashboardGridUtils.d.ts +2 -4
- package/dist/client/components/dashboardPortletCard/EditActionButtons.d.ts +34 -0
- package/dist/client/components/dashboardPortletCard/PortletCardHeader.d.ts +2 -12
- package/dist/client/components/dashboardPortletCard/PortletFloatingActions.d.ts +24 -0
- package/dist/client/components/dashboardPortletCard/cardStyles.d.ts +5 -0
- package/dist/client/components/dashboardPortletCard/propsEqual.d.ts +2 -0
- package/dist/client/components/mobileStackedLayout/memberDisplay.d.ts +21 -0
- package/dist/client/components.d.ts +1 -1
- package/dist/client/components.js +3 -4
- package/dist/client/hooks/dashboard/groupGeometry.d.ts +23 -0
- package/dist/client/hooks/dashboard/groupUtils.d.ts +57 -0
- package/dist/client/hooks/dashboard/layoutUtils.d.ts +34 -3
- package/dist/client/hooks/dashboard/useDashboardController.d.ts +11 -3
- package/dist/client/hooks/dashboard/useRowLayoutEngine.d.ts +12 -2
- package/dist/client/hooks/useDashboardHook.d.ts +14 -1
- package/dist/client/hooks.js +4 -5
- package/dist/client/icons/types.d.ts +1 -0
- package/dist/client/icons.js +1 -1
- package/dist/client/index.d.ts +1 -1
- package/dist/client/index.js +48 -49
- package/dist/client/index.js.map +1 -1
- package/dist/client/providers.js +1 -1
- package/dist/client/schema.js +1 -1
- package/dist/client/stores/dashboardStore.d.ts +11 -1
- package/dist/client/styles.css +1 -1
- package/dist/client/styles.d.css.ts +2 -0
- package/dist/client/types.d.ts +37 -2
- package/dist/client/utils.js +13 -9
- package/dist/client/utils.js.map +1 -1
- package/dist/client-bundle-stats.html +388 -33
- package/dist/mcp-app/mcp-app.html +152 -165
- package/dist/server/chartConfigHelpers-BZMu_1EP.cjs +1 -0
- package/dist/server/{chartConfigHelpers-CcvqrIWF.js → chartConfigHelpers-BsnbxA2c.js} +30 -1
- package/dist/server/{dist-CH3hwAUk.js → dist-ChBfLb7x.js} +7 -4
- package/dist/server/{dist-BOdf-GQO.cjs → dist-CohrBmKe.cjs} +2 -2
- package/dist/server/google-BhvizbFR.cjs +2 -0
- package/dist/server/{google-CvKM9yVM.js → google-eKAc20al.js} +3 -3
- package/dist/server/index.cjs +84 -84
- package/dist/server/index.js +2436 -2260
- package/dist/server/openai-CUf4vc3Q.js +9295 -0
- package/dist/server/openai-Cu4TXXjl.cjs +19 -0
- package/dist/server/{openai-B6hWZk_r.js → openai-Czk1BdHa.js} +18 -17
- package/dist/{adapters/openai-C3-mjSAc.cjs → server/openai-DBwI1OSu.cjs} +1 -1
- package/dist/server/rolldown-runtime-B0aSnxlc.js +20 -0
- package/dist/server/rolldown-runtime-DF3sbh8G.cjs +1 -0
- package/package.json +14 -10
- package/dist/adapters/ActivityGridChart.config-BK3hB9co.cjs +0 -1
- package/dist/adapters/ActivityGridChart.config-C-68HsAw.js +0 -2
- package/dist/adapters/AreaChart.config-5G7_E-7u.cjs +0 -1
- package/dist/adapters/AreaChart.config-C7S67Qt4.js +0 -2
- package/dist/adapters/BarChart.config-C6kG_uEt.cjs +0 -1
- package/dist/adapters/BarChart.config-DQcicZYy.js +0 -2
- package/dist/adapters/BoxPlotChart.config-B4xDTwop.js +0 -2
- package/dist/adapters/BoxPlotChart.config-DifAPvo0.cjs +0 -1
- package/dist/adapters/BubbleChart.config-BS2edxZ5.cjs +0 -1
- package/dist/adapters/BubbleChart.config-C5AYou9n.js +0 -2
- package/dist/adapters/CandlestickChart.config-Duknkqyk.js +0 -2
- package/dist/adapters/CandlestickChart.config-jk3ZXIAQ.cjs +0 -1
- package/dist/adapters/DataTable.config-BG_5hx63.cjs +0 -1
- package/dist/adapters/DataTable.config-Bkv6CmFa.js +0 -2
- package/dist/adapters/FunnelChart.config-Dvy0S17e.js +0 -2
- package/dist/adapters/FunnelChart.config-DzqGZgKz.cjs +0 -1
- package/dist/adapters/GaugeChart.config-DAWIU33N.js +0 -2
- package/dist/adapters/GaugeChart.config-DC0NW8XT.cjs +0 -1
- package/dist/adapters/HeatMapChart.config-BlQDS9nY.cjs +0 -1
- package/dist/adapters/HeatMapChart.config-DccGkzHI.js +0 -2
- package/dist/adapters/KpiDelta.config-DvpALT3Z.js +0 -2
- package/dist/adapters/KpiDelta.config-u2AlJkZ3.cjs +0 -1
- package/dist/adapters/KpiNumber.config-CF_LqRh-.cjs +0 -1
- package/dist/adapters/KpiNumber.config-lhEzZOFR.js +0 -2
- package/dist/adapters/KpiText.config-BCYGZdnx.js +0 -2
- package/dist/adapters/KpiText.config-FbnsbjdV.cjs +0 -1
- package/dist/adapters/LineChart.config-B7qWURRH.js +0 -2
- package/dist/adapters/LineChart.config-B9JKd48E.cjs +0 -1
- package/dist/adapters/MarkdownChart.config-BIS9PqHh.js +0 -2
- package/dist/adapters/MarkdownChart.config-BfM9NaQe.cjs +0 -1
- package/dist/adapters/MeasureProfileChart.config-1hh--3nI.js +0 -2
- package/dist/adapters/MeasureProfileChart.config-cmL8wp6a.cjs +0 -1
- package/dist/adapters/PieChart.config-DzzCeT7z.cjs +0 -1
- package/dist/adapters/PieChart.config-aRJJwYx4.js +0 -2
- package/dist/adapters/RadarChart.config-AcZ7kWG8.js +0 -2
- package/dist/adapters/RadarChart.config-CddBTWAo.cjs +0 -1
- package/dist/adapters/RadialBarChart.config-D4qPexJV.cjs +0 -1
- package/dist/adapters/RadialBarChart.config-y-NBkq5N.js +0 -2
- package/dist/adapters/RetentionCombinedChart.config-BkRNE7lX.cjs +0 -1
- package/dist/adapters/RetentionCombinedChart.config-WoX6n6D5.js +0 -2
- package/dist/adapters/RetentionHeatmap.config-ByjWidhh.cjs +0 -1
- package/dist/adapters/RetentionHeatmap.config-DjXLk03y.js +0 -2
- package/dist/adapters/SankeyChart.config-BWO9LszQ.cjs +0 -1
- package/dist/adapters/SankeyChart.config-SuP0jjib.js +0 -2
- package/dist/adapters/ScatterChart.config-Dk1G4Eaj.cjs +0 -1
- package/dist/adapters/ScatterChart.config-DzVXd1ZM.js +0 -2
- package/dist/adapters/SunburstChart.config-Cu4ib4Ui.cjs +0 -1
- package/dist/adapters/SunburstChart.config-_0gUzNs7.js +0 -2
- package/dist/adapters/TreeMapChart.config-DbwYrje4.js +0 -2
- package/dist/adapters/TreeMapChart.config-hM8PukgE.cjs +0 -1
- package/dist/adapters/WaterfallChart.config-CjUHeE8R.js +0 -2
- package/dist/adapters/WaterfallChart.config-Dwxt0kK-.cjs +0 -1
- package/dist/adapters/chartConfigHelpers-DHQB-_v5.cjs +0 -1
- package/dist/adapters/compiler-D0v5KJhv.cjs +0 -166
- package/dist/adapters/core-VK-KVH9q.cjs +0 -1
- package/dist/adapters/google-BOnRIN1w.cjs +0 -2
- package/dist/adapters/mcp-transport-C2v5BTDF.cjs +0 -40
- package/dist/adapters/mcp-transport-CyDBoYEe.js +0 -601
- package/dist/adapters/openai-B1pC8nVM.js +0 -6178
- package/dist/adapters/openai-DQZaHN0V.cjs +0 -18
- package/dist/adapters/utils-CBR-9AMD.cjs +0 -128
- package/dist/client/chunks/ConfirmModal-D6eLc9NO.js +0 -3283
- package/dist/client/chunks/ConfirmModal-D6eLc9NO.js.map +0 -1
- package/dist/client/chunks/DashboardEditModal-9o16JNF0.js +0 -7580
- package/dist/client/chunks/DashboardEditModal-9o16JNF0.js.map +0 -1
- package/dist/client/chunks/analysis-builder-BDWychCW.js.map +0 -1
- package/dist/client/chunks/analysis-builder-shared-DkL0e-wU.js.map +0 -1
- package/dist/client/chunks/chart-area-BHxPNsmc.js +0 -775
- package/dist/client/chunks/chart-area-BHxPNsmc.js.map +0 -1
- package/dist/client/chunks/chart-bar-DAO3PPcE.js.map +0 -1
- package/dist/client/chunks/chart-config-area-DxwIZ4Uf.js.map +0 -1
- package/dist/client/chunks/chart-config-kpi-delta-DYopvwyG.js.map +0 -1
- package/dist/client/chunks/chart-config-kpi-number-BhMdoArB.js.map +0 -1
- package/dist/client/chunks/chart-config-line-CBfM0Rds.js.map +0 -1
- package/dist/client/chunks/chart-data-table-BP6DMdom.js.map +0 -1
- package/dist/client/chunks/chart-kpi-delta-nXQnRRBr.js.map +0 -1
- package/dist/client/chunks/chart-kpi-number-m8UGJfBr.js +0 -244
- package/dist/client/chunks/chart-kpi-number-m8UGJfBr.js.map +0 -1
- package/dist/client/chunks/chart-line-sJK-cJc0.js +0 -101
- package/dist/client/chunks/chart-line-sJK-cJc0.js.map +0 -1
- package/dist/client/chunks/chart-markdown-BVrqqygz.js.map +0 -1
- package/dist/client/chunks/charts-loader-DAJbAD7a.js +0 -84
- package/dist/client/chunks/charts-loader-DAJbAD7a.js.map +0 -1
- package/dist/client/chunks/core-D7vPfUIe.js.map +0 -1
- package/dist/client/chunks/javascript-DFnKaHmQ.js.map +0 -1
- package/dist/client/chunks/json-Cu6rbgWf.js +0 -38
- package/dist/client/chunks/json-Cu6rbgWf.js.map +0 -1
- package/dist/client/chunks/schema-visualization-BGT_cNon.js.map +0 -1
- package/dist/client/chunks/useDebounce-7suCFq9v.js.map +0 -1
- package/dist/client/chunks/useDirtyStateTracking-D2OiqKoQ.js +0 -66
- package/dist/client/chunks/useDirtyStateTracking-D2OiqKoQ.js.map +0 -1
- package/dist/client/chunks/vendor-ChnlgSP0.js.map +0 -1
- package/dist/server/chartConfigHelpers-DHQB-_v5.cjs +0 -1
- package/dist/server/google-BOnRIN1w.cjs +0 -2
- package/dist/server/openai-B1pC8nVM.js +0 -6178
- package/dist/server/openai-DQZaHN0V.cjs +0 -18
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { O as e, _ as t, g as n, h as r, m as i, p as a, v as o, x as s } from "./utils-
|
|
2
|
-
import { a as c, c as l,
|
|
1
|
+
import { O as e, _ as t, g as n, h as r, m as i, p as a, v as o, x as s } from "./utils-tjiwXFnP.js";
|
|
2
|
+
import { a as c, c as l, d as u, i as d, l as f, n as p, o as m, r as h, s as g, t as _, u as v } from "./chartConfigHelpers-BsnbxA2c.js";
|
|
3
3
|
//#region src/server/agent/system-prompt.ts
|
|
4
|
-
function
|
|
4
|
+
function y(e, t) {
|
|
5
5
|
if (!(!t.measures || t.measures.length === 0)) {
|
|
6
6
|
e.push(""), e.push("**Measures:**");
|
|
7
7
|
for (let n of t.measures) {
|
|
@@ -10,7 +10,7 @@ function g(e, t) {
|
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function b(e, t) {
|
|
14
14
|
if (!(!t.dimensions || t.dimensions.length === 0)) {
|
|
15
15
|
e.push(""), e.push("**Dimensions:**");
|
|
16
16
|
for (let n of t.dimensions) {
|
|
@@ -19,25 +19,25 @@ function _(e, t) {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function x(e, t) {
|
|
23
23
|
if (!(!t.relationships || t.relationships.length === 0)) {
|
|
24
24
|
e.push(""), e.push("**Joins:**");
|
|
25
25
|
for (let n of t.relationships) e.push(`- → \`${n.targetCube}\` (${n.relationship})`);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function S(e, t) {
|
|
29
29
|
t.meta?.eventStream && (e.push(""), e.push("**Event Stream:** Yes (supports funnel, flow, retention queries)"), t.meta.eventStream.bindingKey && e.push(`- Binding key: \`${t.name}.${t.meta.eventStream.bindingKey}\``), t.meta.eventStream.timeDimension && e.push(`- Time dimension: \`${t.name}.${t.meta.eventStream.timeDimension}\``));
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function ee(e) {
|
|
32
32
|
if (e.length === 0) return "No cubes are currently available.";
|
|
33
33
|
let t = ["## Available Cubes", ""];
|
|
34
|
-
for (let n of e) t.push(`### ${n.name}`), n.description && t.push(n.description),
|
|
34
|
+
for (let n of e) t.push(`### ${n.name}`), n.description && t.push(n.description), y(t, n), b(t, n), x(t, n), S(t, n), t.push("");
|
|
35
35
|
return t.join("\n");
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function C(e) {
|
|
38
38
|
return e.messages.map((e) => e.content.text).join("\n\n");
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function te(e) {
|
|
41
41
|
return [
|
|
42
42
|
"# Drizzle Cube Analytics Agent",
|
|
43
43
|
"",
|
|
@@ -178,15 +178,15 @@ function ee(e) {
|
|
|
178
178
|
"",
|
|
179
179
|
"---",
|
|
180
180
|
"",
|
|
181
|
-
|
|
181
|
+
C(t),
|
|
182
182
|
"",
|
|
183
183
|
"---",
|
|
184
184
|
"",
|
|
185
|
-
|
|
185
|
+
C(o),
|
|
186
186
|
"",
|
|
187
187
|
"---",
|
|
188
188
|
"",
|
|
189
|
-
|
|
189
|
+
C(n),
|
|
190
190
|
"",
|
|
191
191
|
"---",
|
|
192
192
|
"",
|
|
@@ -241,12 +241,12 @@ function ee(e) {
|
|
|
241
241
|
"",
|
|
242
242
|
"---",
|
|
243
243
|
"",
|
|
244
|
-
|
|
244
|
+
ee(e)
|
|
245
245
|
].join("\n");
|
|
246
246
|
}
|
|
247
247
|
//#endregion
|
|
248
248
|
//#region src/client/components/charts/BarChart.config.ts
|
|
249
|
-
var
|
|
249
|
+
var w = {
|
|
250
250
|
clickableElements: { bar: !0 },
|
|
251
251
|
dropZones: [
|
|
252
252
|
{
|
|
@@ -284,11 +284,11 @@ var S = {
|
|
|
284
284
|
],
|
|
285
285
|
displayOptionsConfig: [
|
|
286
286
|
f("chart.configText.how_to_stack_multiple_bar_series"),
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
287
|
+
v,
|
|
288
|
+
h,
|
|
289
|
+
m
|
|
290
290
|
]
|
|
291
|
-
},
|
|
291
|
+
}, ne = {
|
|
292
292
|
clickableElements: { point: !0 },
|
|
293
293
|
dropZones: [
|
|
294
294
|
{
|
|
@@ -325,8 +325,10 @@ var S = {
|
|
|
325
325
|
"hideHeader"
|
|
326
326
|
],
|
|
327
327
|
displayOptionsConfig: [
|
|
328
|
-
|
|
329
|
-
|
|
328
|
+
l,
|
|
329
|
+
g(),
|
|
330
|
+
_,
|
|
331
|
+
v,
|
|
330
332
|
{
|
|
331
333
|
key: "priorPeriodStyle",
|
|
332
334
|
label: "chart.option.priorPeriodStyle.label",
|
|
@@ -358,10 +360,10 @@ var S = {
|
|
|
358
360
|
step: .1,
|
|
359
361
|
description: "chart.option.priorPeriodOpacity.description"
|
|
360
362
|
},
|
|
361
|
-
|
|
362
|
-
|
|
363
|
+
h,
|
|
364
|
+
m
|
|
363
365
|
]
|
|
364
|
-
},
|
|
366
|
+
}, re = {
|
|
365
367
|
dropZones: [
|
|
366
368
|
{
|
|
367
369
|
key: "xAxis",
|
|
@@ -397,13 +399,15 @@ var S = {
|
|
|
397
399
|
"hideHeader"
|
|
398
400
|
],
|
|
399
401
|
displayOptionsConfig: [
|
|
402
|
+
l,
|
|
403
|
+
g(!1),
|
|
400
404
|
f("chart.configText.how_to_stack_multiple_area_series"),
|
|
405
|
+
_,
|
|
406
|
+
v,
|
|
401
407
|
h,
|
|
402
|
-
m
|
|
403
|
-
d,
|
|
404
|
-
c
|
|
408
|
+
m
|
|
405
409
|
]
|
|
406
|
-
},
|
|
410
|
+
}, ie = {
|
|
407
411
|
clickableElements: { slice: !0 },
|
|
408
412
|
dropZones: [{
|
|
409
413
|
key: "xAxis",
|
|
@@ -455,7 +459,7 @@ var S = {
|
|
|
455
459
|
label: "chart.configText.80_percent"
|
|
456
460
|
}
|
|
457
461
|
]
|
|
458
|
-
},
|
|
462
|
+
}, u()]
|
|
459
463
|
}, T = {
|
|
460
464
|
dropZones: [
|
|
461
465
|
{
|
|
@@ -612,7 +616,7 @@ var S = {
|
|
|
612
616
|
"showTooltip",
|
|
613
617
|
"hideHeader"
|
|
614
618
|
],
|
|
615
|
-
displayOptionsConfig: [
|
|
619
|
+
displayOptionsConfig: [u()]
|
|
616
620
|
}, O = {
|
|
617
621
|
dropZones: [{
|
|
618
622
|
key: "xAxis",
|
|
@@ -635,7 +639,7 @@ var S = {
|
|
|
635
639
|
"showTooltip",
|
|
636
640
|
"hideHeader"
|
|
637
641
|
],
|
|
638
|
-
displayOptionsConfig: [
|
|
642
|
+
displayOptionsConfig: [u()]
|
|
639
643
|
}, k = {
|
|
640
644
|
dropZones: [
|
|
641
645
|
{
|
|
@@ -670,7 +674,7 @@ var S = {
|
|
|
670
674
|
"showTooltip",
|
|
671
675
|
"hideHeader"
|
|
672
676
|
],
|
|
673
|
-
displayOptionsConfig: [
|
|
677
|
+
displayOptionsConfig: [u("chart.configText.number_formatting_for_size_values")],
|
|
674
678
|
clickableElements: { cell: !0 }
|
|
675
679
|
}, A = {
|
|
676
680
|
dropZones: [{
|
|
@@ -744,6 +748,7 @@ var S = {
|
|
|
744
748
|
emptyText: "chart.kpiNumber.dropZone.yAxis.empty"
|
|
745
749
|
}],
|
|
746
750
|
displayOptionsConfig: [
|
|
751
|
+
p,
|
|
747
752
|
{
|
|
748
753
|
key: "target",
|
|
749
754
|
label: "chart.runtime.tooltip.targetValue",
|
|
@@ -817,6 +822,14 @@ var S = {
|
|
|
817
822
|
emptyText: "chart.kpiDelta.dropZone.xAxis.empty"
|
|
818
823
|
}],
|
|
819
824
|
displayOptionsConfig: [
|
|
825
|
+
p,
|
|
826
|
+
{
|
|
827
|
+
key: "showBaseline",
|
|
828
|
+
label: "chart.option.showBaseline.label",
|
|
829
|
+
type: "boolean",
|
|
830
|
+
defaultValue: !1,
|
|
831
|
+
description: "chart.option.showBaseline.description"
|
|
832
|
+
},
|
|
820
833
|
{
|
|
821
834
|
key: "prefix",
|
|
822
835
|
label: "chart.option.prefix.label",
|
|
@@ -1551,6 +1564,64 @@ var S = {
|
|
|
1551
1564
|
}
|
|
1552
1565
|
]
|
|
1553
1566
|
}, K = {
|
|
1567
|
+
dropZones: [{
|
|
1568
|
+
key: "xAxis",
|
|
1569
|
+
label: "chart.configText.category",
|
|
1570
|
+
description: "chart.configText.dimension_to_split_the_bar_into_segments",
|
|
1571
|
+
mandatory: !0,
|
|
1572
|
+
maxItems: 1,
|
|
1573
|
+
acceptTypes: ["dimension", "timeDimension"],
|
|
1574
|
+
emptyText: "chart.proportionBar.dropZone.xAxis.empty"
|
|
1575
|
+
}, {
|
|
1576
|
+
key: "yAxis",
|
|
1577
|
+
label: "chart.configText.value",
|
|
1578
|
+
description: "chart.configText.measure_that_determines_each_segments_share",
|
|
1579
|
+
mandatory: !0,
|
|
1580
|
+
maxItems: 1,
|
|
1581
|
+
acceptTypes: ["measure"],
|
|
1582
|
+
emptyText: "chart.proportionBar.dropZone.yAxis.empty"
|
|
1583
|
+
}],
|
|
1584
|
+
displayOptions: ["hideHeader"],
|
|
1585
|
+
displayOptionsConfig: [
|
|
1586
|
+
{
|
|
1587
|
+
key: "showLabels",
|
|
1588
|
+
label: "chart.option.proportionBarLabels.label",
|
|
1589
|
+
type: "boolean",
|
|
1590
|
+
defaultValue: !0,
|
|
1591
|
+
description: "chart.option.proportionBarLabels.description"
|
|
1592
|
+
},
|
|
1593
|
+
{
|
|
1594
|
+
key: "showPercentages",
|
|
1595
|
+
label: "chart.option.showPercentages.label",
|
|
1596
|
+
type: "boolean",
|
|
1597
|
+
defaultValue: !0,
|
|
1598
|
+
description: "chart.option.showPercentages.description"
|
|
1599
|
+
},
|
|
1600
|
+
{
|
|
1601
|
+
key: "sortSegments",
|
|
1602
|
+
label: "chart.option.sortSegments.label",
|
|
1603
|
+
type: "boolean",
|
|
1604
|
+
defaultValue: !1,
|
|
1605
|
+
description: "chart.option.sortSegments.description"
|
|
1606
|
+
},
|
|
1607
|
+
{
|
|
1608
|
+
key: "decimals",
|
|
1609
|
+
label: "chart.option.decimals.label",
|
|
1610
|
+
type: "number",
|
|
1611
|
+
defaultValue: 0,
|
|
1612
|
+
min: 0,
|
|
1613
|
+
max: 2,
|
|
1614
|
+
description: "chart.option.proportionBarDecimals.description"
|
|
1615
|
+
}
|
|
1616
|
+
],
|
|
1617
|
+
validate: (e) => !e?.xAxis || Array.isArray(e.xAxis) && e.xAxis.length === 0 ? {
|
|
1618
|
+
isValid: !1,
|
|
1619
|
+
message: "chart.proportionBar.validation.dimensionRequired"
|
|
1620
|
+
} : !e?.yAxis || Array.isArray(e.yAxis) && e.yAxis.length === 0 ? {
|
|
1621
|
+
isValid: !1,
|
|
1622
|
+
message: "chart.proportionBar.validation.measureRequired"
|
|
1623
|
+
} : { isValid: !0 }
|
|
1624
|
+
}, q = {
|
|
1554
1625
|
clickableElements: {},
|
|
1555
1626
|
displayOptions: ["hideHeader"],
|
|
1556
1627
|
dropZones: [{
|
|
@@ -1604,45 +1675,45 @@ var S = {
|
|
|
1604
1675
|
description: "chart.configText.number_formatting_for_the_displayed_value_and_axis_labels"
|
|
1605
1676
|
}
|
|
1606
1677
|
]
|
|
1607
|
-
},
|
|
1678
|
+
}, J = {
|
|
1608
1679
|
packageName: "recharts",
|
|
1609
1680
|
installCommand: "npm install recharts"
|
|
1610
|
-
},
|
|
1681
|
+
}, Y = {
|
|
1611
1682
|
bar: {
|
|
1612
1683
|
label: "chart.bar.label",
|
|
1613
1684
|
icon: "chartBar",
|
|
1614
1685
|
description: "chart.bar.description",
|
|
1615
1686
|
useCase: "chart.bar.useCase",
|
|
1616
|
-
isAvailable:
|
|
1617
|
-
dependencies:
|
|
1618
|
-
config: async () => (await import("./BarChart.config-
|
|
1687
|
+
isAvailable: c,
|
|
1688
|
+
dependencies: J,
|
|
1689
|
+
config: async () => (await import("./BarChart.config-CGu2Bqrx.js")).barChartConfig
|
|
1619
1690
|
},
|
|
1620
1691
|
line: {
|
|
1621
1692
|
label: "chart.line.label",
|
|
1622
1693
|
icon: "chartLine",
|
|
1623
1694
|
description: "chart.line.description",
|
|
1624
1695
|
useCase: "chart.line.useCase",
|
|
1625
|
-
isAvailable:
|
|
1626
|
-
dependencies:
|
|
1627
|
-
config: async () => (await import("./LineChart.config-
|
|
1696
|
+
isAvailable: c,
|
|
1697
|
+
dependencies: J,
|
|
1698
|
+
config: async () => (await import("./LineChart.config-32-9zA2V.js")).lineChartConfig
|
|
1628
1699
|
},
|
|
1629
1700
|
area: {
|
|
1630
1701
|
label: "chart.area.label",
|
|
1631
1702
|
icon: "chartArea",
|
|
1632
1703
|
description: "chart.area.description",
|
|
1633
1704
|
useCase: "chart.area.useCase",
|
|
1634
|
-
isAvailable:
|
|
1635
|
-
dependencies:
|
|
1636
|
-
config: async () => (await import("./AreaChart.config-
|
|
1705
|
+
isAvailable: c,
|
|
1706
|
+
dependencies: J,
|
|
1707
|
+
config: async () => (await import("./AreaChart.config-CJoxLP3Y.js")).areaChartConfig
|
|
1637
1708
|
},
|
|
1638
1709
|
pie: {
|
|
1639
1710
|
label: "chart.pie.label",
|
|
1640
1711
|
icon: "chartPie",
|
|
1641
1712
|
description: "chart.pie.description",
|
|
1642
1713
|
useCase: "chart.pie.useCase",
|
|
1643
|
-
isAvailable:
|
|
1644
|
-
dependencies:
|
|
1645
|
-
config: async () => (await import("./PieChart.config-
|
|
1714
|
+
isAvailable: c,
|
|
1715
|
+
dependencies: J,
|
|
1716
|
+
config: async () => (await import("./PieChart.config-DgAj3y-I.js")).pieChartConfig
|
|
1646
1717
|
},
|
|
1647
1718
|
scatter: {
|
|
1648
1719
|
label: "chart.scatter.label",
|
|
@@ -1656,8 +1727,8 @@ var S = {
|
|
|
1656
1727
|
available: !1,
|
|
1657
1728
|
reason: "chart.availability.scatter"
|
|
1658
1729
|
} : { available: !0 },
|
|
1659
|
-
dependencies:
|
|
1660
|
-
config: async () => (await import("./ScatterChart.config-
|
|
1730
|
+
dependencies: J,
|
|
1731
|
+
config: async () => (await import("./ScatterChart.config-CEhtoLWc.js")).scatterChartConfig
|
|
1661
1732
|
},
|
|
1662
1733
|
bubble: {
|
|
1663
1734
|
label: "chart.bubble.label",
|
|
@@ -1671,42 +1742,42 @@ var S = {
|
|
|
1671
1742
|
available: !1,
|
|
1672
1743
|
reason: "chart.availability.bubble"
|
|
1673
1744
|
} : { available: !0 },
|
|
1674
|
-
dependencies:
|
|
1675
|
-
config: async () => (await import("./BubbleChart.config-
|
|
1745
|
+
dependencies: J,
|
|
1746
|
+
config: async () => (await import("./BubbleChart.config-CWoXeLdm.js")).bubbleChartConfig
|
|
1676
1747
|
},
|
|
1677
1748
|
radar: {
|
|
1678
1749
|
label: "chart.radar.label",
|
|
1679
1750
|
icon: "chartRadar",
|
|
1680
1751
|
description: "chart.radar.description",
|
|
1681
1752
|
useCase: "chart.radar.useCase",
|
|
1682
|
-
isAvailable:
|
|
1683
|
-
dependencies:
|
|
1684
|
-
config: async () => (await import("./RadarChart.config-
|
|
1753
|
+
isAvailable: c,
|
|
1754
|
+
dependencies: J,
|
|
1755
|
+
config: async () => (await import("./RadarChart.config-D7iHY1v9.js")).radarChartConfig
|
|
1685
1756
|
},
|
|
1686
1757
|
radialBar: {
|
|
1687
1758
|
label: "chart.radialBar.label",
|
|
1688
1759
|
icon: "chartRadialBar",
|
|
1689
1760
|
description: "chart.radialBar.description",
|
|
1690
1761
|
useCase: "chart.radialBar.useCase",
|
|
1691
|
-
isAvailable:
|
|
1692
|
-
dependencies:
|
|
1693
|
-
config: async () => (await import("./RadialBarChart.config-
|
|
1762
|
+
isAvailable: c,
|
|
1763
|
+
dependencies: J,
|
|
1764
|
+
config: async () => (await import("./RadialBarChart.config-CsXIz-0v.js")).radialBarChartConfig
|
|
1694
1765
|
},
|
|
1695
1766
|
treemap: {
|
|
1696
1767
|
label: "chart.treemap.label",
|
|
1697
1768
|
icon: "chartTreemap",
|
|
1698
1769
|
description: "chart.treemap.description",
|
|
1699
1770
|
useCase: "chart.treemap.useCase",
|
|
1700
|
-
isAvailable:
|
|
1701
|
-
dependencies:
|
|
1702
|
-
config: async () => (await import("./TreeMapChart.config-
|
|
1771
|
+
isAvailable: c,
|
|
1772
|
+
dependencies: J,
|
|
1773
|
+
config: async () => (await import("./TreeMapChart.config-C8-75muA.js")).treemapChartConfig
|
|
1703
1774
|
},
|
|
1704
1775
|
table: {
|
|
1705
1776
|
label: "chart.table.label",
|
|
1706
1777
|
icon: "chartTable",
|
|
1707
1778
|
description: "chart.table.description",
|
|
1708
1779
|
useCase: "chart.table.useCase",
|
|
1709
|
-
config: async () => (await import("./DataTable.config-
|
|
1780
|
+
config: async () => (await import("./DataTable.config-D_KmPyxV.js")).dataTableConfig
|
|
1710
1781
|
},
|
|
1711
1782
|
activityGrid: {
|
|
1712
1783
|
label: "chart.activityGrid.label",
|
|
@@ -1720,62 +1791,62 @@ var S = {
|
|
|
1720
1791
|
available: !1,
|
|
1721
1792
|
reason: "chart.availability.requiresTimeDimension"
|
|
1722
1793
|
} : { available: !0 },
|
|
1723
|
-
config: async () => (await import("./ActivityGridChart.config-
|
|
1794
|
+
config: async () => (await import("./ActivityGridChart.config-_SyTBEyR.js")).activityGridChartConfig
|
|
1724
1795
|
},
|
|
1725
1796
|
kpiNumber: {
|
|
1726
1797
|
label: "chart.kpiNumber.label",
|
|
1727
1798
|
icon: "chartKpiNumber",
|
|
1728
1799
|
description: "chart.kpiNumber.description",
|
|
1729
1800
|
useCase: "chart.kpiNumber.useCase",
|
|
1730
|
-
isAvailable:
|
|
1731
|
-
config: async () => (await import("./KpiNumber.config-
|
|
1801
|
+
isAvailable: d,
|
|
1802
|
+
config: async () => (await import("./KpiNumber.config-CQ_wq2gx.js")).kpiNumberConfig
|
|
1732
1803
|
},
|
|
1733
1804
|
kpiDelta: {
|
|
1734
1805
|
label: "chart.kpiDelta.label",
|
|
1735
1806
|
icon: "chartKpiDelta",
|
|
1736
1807
|
description: "chart.kpiDelta.description",
|
|
1737
1808
|
useCase: "chart.kpiDelta.useCase",
|
|
1738
|
-
isAvailable:
|
|
1739
|
-
config: async () => (await import("./KpiDelta.config-
|
|
1809
|
+
isAvailable: c,
|
|
1810
|
+
config: async () => (await import("./KpiDelta.config-Bw5o0ocY.js")).kpiDeltaConfig
|
|
1740
1811
|
},
|
|
1741
1812
|
kpiText: {
|
|
1742
1813
|
label: "chart.kpiText.label",
|
|
1743
1814
|
icon: "chartKpiText",
|
|
1744
1815
|
description: "chart.kpiText.description",
|
|
1745
1816
|
useCase: "chart.kpiText.useCase",
|
|
1746
|
-
isAvailable:
|
|
1747
|
-
config: async () => (await import("./KpiText.config-
|
|
1817
|
+
isAvailable: d,
|
|
1818
|
+
config: async () => (await import("./KpiText.config-eODcP6Hn.js")).kpiTextConfig
|
|
1748
1819
|
},
|
|
1749
1820
|
markdown: {
|
|
1750
1821
|
label: "chart.markdown.label",
|
|
1751
1822
|
icon: "chartMarkdown",
|
|
1752
1823
|
description: "chart.markdown.description",
|
|
1753
1824
|
useCase: "chart.markdown.useCase",
|
|
1754
|
-
config: async () => (await import("./MarkdownChart.config-
|
|
1825
|
+
config: async () => (await import("./MarkdownChart.config-BVsR5LDy.js")).markdownConfig
|
|
1755
1826
|
},
|
|
1756
1827
|
funnel: {
|
|
1757
1828
|
label: "chart.funnel.label",
|
|
1758
1829
|
icon: "chartFunnel",
|
|
1759
1830
|
description: "chart.funnel.description",
|
|
1760
1831
|
useCase: "chart.funnel.useCase",
|
|
1761
|
-
dependencies:
|
|
1762
|
-
config: async () => (await import("./FunnelChart.config-
|
|
1832
|
+
dependencies: J,
|
|
1833
|
+
config: async () => (await import("./FunnelChart.config-DCRHQoFc.js")).funnelChartConfig
|
|
1763
1834
|
},
|
|
1764
1835
|
sankey: {
|
|
1765
1836
|
label: "chart.sankey.label",
|
|
1766
1837
|
icon: "chartSankey",
|
|
1767
1838
|
description: "chart.sankey.description",
|
|
1768
1839
|
useCase: "chart.sankey.useCase",
|
|
1769
|
-
dependencies:
|
|
1770
|
-
config: async () => (await import("./SankeyChart.config-
|
|
1840
|
+
dependencies: J,
|
|
1841
|
+
config: async () => (await import("./SankeyChart.config-BNBcIHaD.js")).sankeyChartConfig
|
|
1771
1842
|
},
|
|
1772
1843
|
sunburst: {
|
|
1773
1844
|
label: "chart.sunburst.label",
|
|
1774
1845
|
icon: "chartSunburst",
|
|
1775
1846
|
description: "chart.sunburst.description",
|
|
1776
1847
|
useCase: "chart.sunburst.useCase",
|
|
1777
|
-
dependencies:
|
|
1778
|
-
config: async () => (await import("./SunburstChart.config-
|
|
1848
|
+
dependencies: J,
|
|
1849
|
+
config: async () => (await import("./SunburstChart.config-nnphNoVO.js")).sunburstChartConfig
|
|
1779
1850
|
},
|
|
1780
1851
|
heatmap: {
|
|
1781
1852
|
label: "chart.heatmap.label",
|
|
@@ -1793,38 +1864,38 @@ var S = {
|
|
|
1793
1864
|
packageName: "@nivo/heatmap",
|
|
1794
1865
|
installCommand: "npm install @nivo/heatmap"
|
|
1795
1866
|
},
|
|
1796
|
-
config: async () => (await import("./HeatMapChart.config-
|
|
1867
|
+
config: async () => (await import("./HeatMapChart.config-DHpXNONW.js")).heatmapChartConfig
|
|
1797
1868
|
},
|
|
1798
1869
|
retentionHeatmap: {
|
|
1799
1870
|
label: "chart.retentionHeatmap.label",
|
|
1800
1871
|
icon: "chartRetention",
|
|
1801
1872
|
description: "chart.retentionHeatmap.description",
|
|
1802
1873
|
useCase: "chart.retentionHeatmap.useCase",
|
|
1803
|
-
config: async () => (await import("./RetentionHeatmap.config-
|
|
1874
|
+
config: async () => (await import("./RetentionHeatmap.config-DbM3ICwc.js")).retentionHeatmapConfig
|
|
1804
1875
|
},
|
|
1805
1876
|
retentionCombined: {
|
|
1806
1877
|
label: "chart.retentionCombined.label",
|
|
1807
1878
|
icon: "chartRetention",
|
|
1808
1879
|
description: "chart.retentionCombined.description",
|
|
1809
1880
|
useCase: "chart.retentionCombined.useCase",
|
|
1810
|
-
config: async () => (await import("./RetentionCombinedChart.config-
|
|
1881
|
+
config: async () => (await import("./RetentionCombinedChart.config-CdT1kXC7.js")).retentionCombinedConfig
|
|
1811
1882
|
},
|
|
1812
1883
|
boxPlot: {
|
|
1813
1884
|
label: "chart.boxPlot.label",
|
|
1814
1885
|
icon: "chartBoxPlot",
|
|
1815
1886
|
description: "chart.boxPlot.description",
|
|
1816
1887
|
useCase: "chart.boxPlot.useCase",
|
|
1817
|
-
isAvailable:
|
|
1818
|
-
config: async () => (await import("./BoxPlotChart.config-
|
|
1888
|
+
isAvailable: c,
|
|
1889
|
+
config: async () => (await import("./BoxPlotChart.config-B7M9CQaE.js")).boxPlotChartConfig
|
|
1819
1890
|
},
|
|
1820
1891
|
waterfall: {
|
|
1821
1892
|
label: "chart.waterfall.label",
|
|
1822
1893
|
icon: "chartWaterfall",
|
|
1823
1894
|
description: "chart.waterfall.description",
|
|
1824
1895
|
useCase: "chart.waterfall.useCase",
|
|
1825
|
-
isAvailable:
|
|
1826
|
-
dependencies:
|
|
1827
|
-
config: async () => (await import("./WaterfallChart.config-
|
|
1896
|
+
isAvailable: c,
|
|
1897
|
+
dependencies: J,
|
|
1898
|
+
config: async () => (await import("./WaterfallChart.config-uW5YyOji.js")).waterfallChartConfig
|
|
1828
1899
|
},
|
|
1829
1900
|
candlestick: {
|
|
1830
1901
|
label: "chart.candlestick.label",
|
|
@@ -1838,7 +1909,7 @@ var S = {
|
|
|
1838
1909
|
available: !1,
|
|
1839
1910
|
reason: "chart.availability.requiresDimension"
|
|
1840
1911
|
} : { available: !0 },
|
|
1841
|
-
config: async () => (await import("./CandlestickChart.config-
|
|
1912
|
+
config: async () => (await import("./CandlestickChart.config-CzOcfF1e.js")).candlestickChartConfig
|
|
1842
1913
|
},
|
|
1843
1914
|
measureProfile: {
|
|
1844
1915
|
label: "chart.measureProfile.label",
|
|
@@ -1849,23 +1920,31 @@ var S = {
|
|
|
1849
1920
|
available: !1,
|
|
1850
1921
|
reason: "chart.availability.requiresTwoMeasures"
|
|
1851
1922
|
} : { available: !0 },
|
|
1852
|
-
dependencies:
|
|
1853
|
-
config: async () => (await import("./MeasureProfileChart.config-
|
|
1923
|
+
dependencies: J,
|
|
1924
|
+
config: async () => (await import("./MeasureProfileChart.config-BRDYx1hw.js")).measureProfileChartConfig
|
|
1925
|
+
},
|
|
1926
|
+
proportionBar: {
|
|
1927
|
+
label: "chart.proportionBar.label",
|
|
1928
|
+
icon: "chartProportionBar",
|
|
1929
|
+
description: "chart.proportionBar.description",
|
|
1930
|
+
useCase: "chart.proportionBar.useCase",
|
|
1931
|
+
isAvailable: c,
|
|
1932
|
+
config: async () => (await import("./ProportionBarChart.config-BfFOppHY.js")).proportionBarChartConfig
|
|
1854
1933
|
},
|
|
1855
1934
|
gauge: {
|
|
1856
1935
|
label: "chart.gauge.label",
|
|
1857
1936
|
icon: "chartGauge",
|
|
1858
1937
|
description: "chart.gauge.description",
|
|
1859
1938
|
useCase: "chart.gauge.useCase",
|
|
1860
|
-
isAvailable:
|
|
1939
|
+
isAvailable: d,
|
|
1861
1940
|
dependencies: {
|
|
1862
1941
|
packageName: "d3-shape",
|
|
1863
1942
|
installCommand: "npm install d3-shape"
|
|
1864
1943
|
},
|
|
1865
|
-
config: async () => (await import("./GaugeChart.config-
|
|
1944
|
+
config: async () => (await import("./GaugeChart.config-DAybRXP3.js")).gaugeChartConfig
|
|
1866
1945
|
}
|
|
1867
1946
|
};
|
|
1868
|
-
function
|
|
1947
|
+
function ae(e, t) {
|
|
1869
1948
|
return {
|
|
1870
1949
|
...t,
|
|
1871
1950
|
label: e.label,
|
|
@@ -1876,11 +1955,11 @@ function re(e, t) {
|
|
|
1876
1955
|
}
|
|
1877
1956
|
//#endregion
|
|
1878
1957
|
//#region src/client/charts/chartConfigRegistry.ts
|
|
1879
|
-
var
|
|
1880
|
-
bar:
|
|
1881
|
-
line:
|
|
1882
|
-
area:
|
|
1883
|
-
pie:
|
|
1958
|
+
var oe = {
|
|
1959
|
+
bar: w,
|
|
1960
|
+
line: ne,
|
|
1961
|
+
area: re,
|
|
1962
|
+
pie: ie,
|
|
1884
1963
|
scatter: T,
|
|
1885
1964
|
bubble: E,
|
|
1886
1965
|
radar: D,
|
|
@@ -1902,16 +1981,17 @@ var ie = {
|
|
|
1902
1981
|
waterfall: U,
|
|
1903
1982
|
candlestick: W,
|
|
1904
1983
|
measureProfile: G,
|
|
1905
|
-
|
|
1906
|
-
|
|
1984
|
+
proportionBar: K,
|
|
1985
|
+
gauge: q
|
|
1986
|
+
}, X = Object.fromEntries(Object.keys(Y).map((e) => [e, ae(Y[e], oe[e])]));
|
|
1907
1987
|
//#endregion
|
|
1908
1988
|
//#region src/server/agent/chart-validation.ts
|
|
1909
|
-
function
|
|
1989
|
+
function Z(e) {
|
|
1910
1990
|
return Array.isArray(e) ? e.length > 0 : !!e;
|
|
1911
1991
|
}
|
|
1912
|
-
function
|
|
1992
|
+
function se(t, n, r, i) {
|
|
1913
1993
|
for (let a of t.dropZones) {
|
|
1914
|
-
if (!a.mandatory ||
|
|
1994
|
+
if (!a.mandatory || Z(r?.[a.key])) continue;
|
|
1915
1995
|
let t = a.acceptTypes?.join("/") ?? "fields";
|
|
1916
1996
|
i.push(e("server.validation.chart.dropZoneRequired", {
|
|
1917
1997
|
key: a.key,
|
|
@@ -1921,32 +2001,32 @@ function ae(t, n, r, i) {
|
|
|
1921
2001
|
}));
|
|
1922
2002
|
}
|
|
1923
2003
|
}
|
|
1924
|
-
function
|
|
1925
|
-
if (
|
|
2004
|
+
function ce(t, n, r) {
|
|
2005
|
+
if (Z(t?.xAxis)) return;
|
|
1926
2006
|
let i = n.dimensions ?? [], a = n.timeDimensions ?? [], o = i.length > 0 || a.length > 0;
|
|
1927
2007
|
r.push(e(o ? "server.validation.chart.barXAxisRequired" : "server.validation.chart.barNeedsDimension"));
|
|
1928
2008
|
}
|
|
1929
|
-
function
|
|
2009
|
+
function le(e) {
|
|
1930
2010
|
return Array.isArray(e) ? e : [e];
|
|
1931
2011
|
}
|
|
1932
|
-
function
|
|
2012
|
+
function ue(t, n) {
|
|
1933
2013
|
if (!t?.xAxis || !t?.series) return;
|
|
1934
|
-
let r = new Set(
|
|
2014
|
+
let r = new Set(le(t.xAxis)), i = le(t.series).filter((e) => r.has(e));
|
|
1935
2015
|
i.length > 0 && n.push(e("server.validation.chart.seriesDuplicatesXAxis", { duplicates: i.join(", ") }));
|
|
1936
2016
|
}
|
|
1937
|
-
function
|
|
1938
|
-
let r =
|
|
2017
|
+
function de(e, t, n) {
|
|
2018
|
+
let r = X[e];
|
|
1939
2019
|
if (!r || r.skipQuery) return {
|
|
1940
2020
|
isValid: !0,
|
|
1941
2021
|
errors: []
|
|
1942
2022
|
};
|
|
1943
2023
|
let i = [];
|
|
1944
|
-
return
|
|
2024
|
+
return se(r, e, t, i), e === "bar" && ce(t, n, i), ue(t, i), {
|
|
1945
2025
|
isValid: i.length === 0,
|
|
1946
2026
|
errors: i
|
|
1947
2027
|
};
|
|
1948
2028
|
}
|
|
1949
|
-
function
|
|
2029
|
+
function fe(e, t, n, r) {
|
|
1950
2030
|
if (!(e.acceptTypes ?? []).includes("measure")) return;
|
|
1951
2031
|
let i = /* @__PURE__ */ new Set();
|
|
1952
2032
|
for (let r of t.dropZones) {
|
|
@@ -1957,7 +2037,7 @@ function le(e, t, n, r) {
|
|
|
1957
2037
|
let a = r.filter((e) => !i.has(e));
|
|
1958
2038
|
a.length > 0 && (n[e.key] = a[0]);
|
|
1959
2039
|
}
|
|
1960
|
-
function
|
|
2040
|
+
function pe(e, t, n) {
|
|
1961
2041
|
let r = e.acceptTypes ?? [], i = [];
|
|
1962
2042
|
if (r.includes("dimension") && i.push(...n.dimensions), r.includes("timeDimension") && i.push(...n.timeDimFields), r.includes("measure") && i.push(...n.measures), i.length === 0) return;
|
|
1963
2043
|
let a = i;
|
|
@@ -1968,21 +2048,21 @@ function ue(e, t, n) {
|
|
|
1968
2048
|
let o = e.maxItems ?? Infinity, s = a.slice(0, o);
|
|
1969
2049
|
s.length > 0 && (t[e.key] = s);
|
|
1970
2050
|
}
|
|
1971
|
-
function
|
|
1972
|
-
let r =
|
|
2051
|
+
function me(e, t, n) {
|
|
2052
|
+
let r = X[e];
|
|
1973
2053
|
if (!r) return t ?? {};
|
|
1974
2054
|
let i = { ...t }, a = n.timeDimensions ?? [], o = {
|
|
1975
2055
|
measures: n.measures ?? [],
|
|
1976
2056
|
dimensions: n.dimensions ?? [],
|
|
1977
2057
|
timeDimFields: a.map((e) => e.dimension)
|
|
1978
2058
|
};
|
|
1979
|
-
for (let e of r.dropZones)
|
|
2059
|
+
for (let e of r.dropZones) Z(i[e.key]) || (e.key === "sizeField" || e.key === "colorField" ? fe(e, r, i, o.measures) : pe(e, i, o));
|
|
1980
2060
|
return i;
|
|
1981
2061
|
}
|
|
1982
|
-
function
|
|
2062
|
+
function he(e) {
|
|
1983
2063
|
let t = ["\nChart config requirements by type:"];
|
|
1984
2064
|
for (let n of e) {
|
|
1985
|
-
let e =
|
|
2065
|
+
let e = X[n];
|
|
1986
2066
|
if (!e) continue;
|
|
1987
2067
|
let r = [e.description ?? "", e.useCase ?? ""].filter(Boolean).join(". "), i = r ? ` — ${r}.` : "", a = e.dropZones.filter((e) => e.mandatory);
|
|
1988
2068
|
if (a.length === 0 && !e.skipQuery) {
|
|
@@ -2003,7 +2083,7 @@ function fe(e) {
|
|
|
2003
2083
|
}
|
|
2004
2084
|
//#endregion
|
|
2005
2085
|
//#region src/server/agent/tools.ts
|
|
2006
|
-
var
|
|
2086
|
+
var Q = [
|
|
2007
2087
|
"bar",
|
|
2008
2088
|
"line",
|
|
2009
2089
|
"area",
|
|
@@ -2023,7 +2103,7 @@ var Z = [
|
|
|
2023
2103
|
"boxPlot",
|
|
2024
2104
|
"markdown"
|
|
2025
2105
|
];
|
|
2026
|
-
function
|
|
2106
|
+
function ge() {
|
|
2027
2107
|
return [
|
|
2028
2108
|
{
|
|
2029
2109
|
name: "discover_cubes",
|
|
@@ -2068,7 +2148,7 @@ function pe() {
|
|
|
2068
2148
|
},
|
|
2069
2149
|
{
|
|
2070
2150
|
name: "add_portlet",
|
|
2071
|
-
description: "Add a chart visualization to the notebook.\n" +
|
|
2151
|
+
description: "Add a chart visualization to the notebook.\n" + he(Q) + "\nThe query is validated before adding. The portlet fetches its own data.",
|
|
2072
2152
|
parameters: {
|
|
2073
2153
|
type: "object",
|
|
2074
2154
|
properties: {
|
|
@@ -2082,7 +2162,7 @@ function pe() {
|
|
|
2082
2162
|
},
|
|
2083
2163
|
chartType: {
|
|
2084
2164
|
type: "string",
|
|
2085
|
-
enum:
|
|
2165
|
+
enum: Q,
|
|
2086
2166
|
description: "Chart type to render"
|
|
2087
2167
|
},
|
|
2088
2168
|
chartConfig: {
|
|
@@ -2178,7 +2258,7 @@ function pe() {
|
|
|
2178
2258
|
},
|
|
2179
2259
|
chartType: {
|
|
2180
2260
|
type: "string",
|
|
2181
|
-
enum:
|
|
2261
|
+
enum: Q,
|
|
2182
2262
|
description: "Chart type. Use \"markdown\" for section headers."
|
|
2183
2263
|
},
|
|
2184
2264
|
query: {
|
|
@@ -2315,7 +2395,7 @@ function pe() {
|
|
|
2315
2395
|
}
|
|
2316
2396
|
];
|
|
2317
2397
|
}
|
|
2318
|
-
function
|
|
2398
|
+
function _e(e) {
|
|
2319
2399
|
let { semanticLayer: t, securityContext: n } = e, o = /* @__PURE__ */ new Map();
|
|
2320
2400
|
o.set("discover_cubes", async (e) => {
|
|
2321
2401
|
let n = { cubes: (await a(t, {
|
|
@@ -2420,7 +2500,7 @@ function me(e) {
|
|
|
2420
2500
|
let o = !!(i.funnel || i.flow || i.retention), s;
|
|
2421
2501
|
if (o) s = e.chartConfig ?? {};
|
|
2422
2502
|
else {
|
|
2423
|
-
let t =
|
|
2503
|
+
let t = me(n, e.chartConfig, i), r = de(n, t, i);
|
|
2424
2504
|
if (!r.isValid) return {
|
|
2425
2505
|
result: `Chart config invalid — fix these errors and retry:\n${r.errors.join("\n")}`,
|
|
2426
2506
|
isError: !0
|
|
@@ -2539,18 +2619,18 @@ function me(e) {
|
|
|
2539
2619
|
}
|
|
2540
2620
|
//#endregion
|
|
2541
2621
|
//#region src/server/agent/providers/factory.ts
|
|
2542
|
-
async function
|
|
2622
|
+
async function ve(e, t, n) {
|
|
2543
2623
|
switch (e) {
|
|
2544
2624
|
case "anthropic": {
|
|
2545
2625
|
let { AnthropicProvider: e } = await import("./anthropic-CZh4hB-m.js");
|
|
2546
2626
|
return new e(t);
|
|
2547
2627
|
}
|
|
2548
2628
|
case "openai": {
|
|
2549
|
-
let { OpenAIProvider: e } = await import("./openai-
|
|
2629
|
+
let { OpenAIProvider: e } = await import("./openai-CmyXJWti.js");
|
|
2550
2630
|
return new e(t, n);
|
|
2551
2631
|
}
|
|
2552
2632
|
case "google": {
|
|
2553
|
-
let { GoogleProvider: e } = await import("./google-
|
|
2633
|
+
let { GoogleProvider: e } = await import("./google-eKAc20al.js");
|
|
2554
2634
|
return new e(t);
|
|
2555
2635
|
}
|
|
2556
2636
|
default: throw Error(`Unknown LLM provider: "${e}". Supported providers: anthropic, openai, google`);
|
|
@@ -2558,7 +2638,7 @@ async function he(e, t, n) {
|
|
|
2558
2638
|
}
|
|
2559
2639
|
//#endregion
|
|
2560
2640
|
//#region src/server/agent/handler-steps.ts
|
|
2561
|
-
function
|
|
2641
|
+
function ye(e, t) {
|
|
2562
2642
|
if (Array.isArray(t)) for (let n of t) e.push(n);
|
|
2563
2643
|
else e.push(t);
|
|
2564
2644
|
}
|
|
@@ -2567,7 +2647,7 @@ function $(e) {
|
|
|
2567
2647
|
e();
|
|
2568
2648
|
} catch {}
|
|
2569
2649
|
}
|
|
2570
|
-
function
|
|
2650
|
+
function be(e, t) {
|
|
2571
2651
|
let n = [];
|
|
2572
2652
|
if (!e || e.length === 0) return n;
|
|
2573
2653
|
for (let r of e) {
|
|
@@ -2600,7 +2680,7 @@ function ge(e, t) {
|
|
|
2600
2680
|
content: typeof e.result == "string" ? e.result : JSON.stringify(e.result ?? ""),
|
|
2601
2681
|
isError: e.status === "error"
|
|
2602
2682
|
}));
|
|
2603
|
-
|
|
2683
|
+
ye(n, t.formatToolResults(i));
|
|
2604
2684
|
} else e.length > 0 && n.push({
|
|
2605
2685
|
role: "assistant",
|
|
2606
2686
|
content: r.content
|
|
@@ -2608,21 +2688,21 @@ function ge(e, t) {
|
|
|
2608
2688
|
}
|
|
2609
2689
|
return n;
|
|
2610
2690
|
}
|
|
2611
|
-
function
|
|
2691
|
+
function xe(e, t) {
|
|
2612
2692
|
if (!(e?.type !== "tool_use" || !t)) try {
|
|
2613
2693
|
e.input = JSON.parse(t);
|
|
2614
2694
|
} catch {
|
|
2615
2695
|
e.input = {};
|
|
2616
2696
|
}
|
|
2617
2697
|
}
|
|
2618
|
-
function
|
|
2698
|
+
function Se(e, t) {
|
|
2619
2699
|
let n = e.contentBlocks[e.contentBlocks.length - 1];
|
|
2620
2700
|
n && n.type === "text" ? n.text = (n.text || "") + t : e.contentBlocks.push({
|
|
2621
2701
|
type: "text",
|
|
2622
2702
|
text: t
|
|
2623
2703
|
});
|
|
2624
2704
|
}
|
|
2625
|
-
function
|
|
2705
|
+
function Ce(e, t) {
|
|
2626
2706
|
if (e.currentBlockIsToolUse && e.currentToolInputJson) {
|
|
2627
2707
|
let t = e.contentBlocks[e.contentBlocks.length - 1];
|
|
2628
2708
|
if (t?.type === "tool_use") try {
|
|
@@ -2637,16 +2717,16 @@ function ye(e, t) {
|
|
|
2637
2717
|
...t.metadata ? { metadata: t.metadata } : {}
|
|
2638
2718
|
}), e.currentToolInputJson = "", e.currentBlockIsToolUse = !0;
|
|
2639
2719
|
}
|
|
2640
|
-
function
|
|
2720
|
+
function we(e, t) {
|
|
2641
2721
|
if (t.id && t.input) {
|
|
2642
2722
|
let n = e.contentBlocks.find((e) => e.type === "tool_use" && e.id === t.id);
|
|
2643
2723
|
n && (n.input = t.input);
|
|
2644
2724
|
} else if (e.currentBlockIsToolUse) {
|
|
2645
2725
|
let t = e.contentBlocks[e.contentBlocks.length - 1];
|
|
2646
|
-
t?.type === "tool_use" && e.currentToolInputJson && (
|
|
2726
|
+
t?.type === "tool_use" && e.currentToolInputJson && (xe(t, e.currentToolInputJson), e.currentToolInputJson = ""), e.currentBlockIsToolUse = !1;
|
|
2647
2727
|
}
|
|
2648
2728
|
}
|
|
2649
|
-
async function*
|
|
2729
|
+
async function* Te(e, t) {
|
|
2650
2730
|
let n = {
|
|
2651
2731
|
contentBlocks: [],
|
|
2652
2732
|
currentToolInputJson: "",
|
|
@@ -2657,13 +2737,13 @@ async function* xe(e, t) {
|
|
|
2657
2737
|
let e = r;
|
|
2658
2738
|
switch (e.type) {
|
|
2659
2739
|
case "text_delta":
|
|
2660
|
-
|
|
2740
|
+
Se(n, e.text), yield {
|
|
2661
2741
|
type: "text_delta",
|
|
2662
2742
|
data: e.text
|
|
2663
2743
|
};
|
|
2664
2744
|
break;
|
|
2665
2745
|
case "tool_use_start":
|
|
2666
|
-
|
|
2746
|
+
Ce(n, e), yield {
|
|
2667
2747
|
type: "tool_use_start",
|
|
2668
2748
|
data: {
|
|
2669
2749
|
id: e.id,
|
|
@@ -2676,11 +2756,9 @@ async function* xe(e, t) {
|
|
|
2676
2756
|
n.currentToolInputJson += e.json;
|
|
2677
2757
|
break;
|
|
2678
2758
|
case "tool_use_end":
|
|
2679
|
-
|
|
2680
|
-
break;
|
|
2681
|
-
case "message_meta":
|
|
2682
|
-
e.inputTokens != null && (n.inputTokens = e.inputTokens), e.outputTokens != null && (n.outputTokens = e.outputTokens), e.stopReason && (n.stopReason = e.stopReason);
|
|
2759
|
+
we(n, e);
|
|
2683
2760
|
break;
|
|
2761
|
+
case "message_meta": e.inputTokens != null && (n.inputTokens = e.inputTokens), e.outputTokens != null && (n.outputTokens = e.outputTokens), e.stopReason && (n.stopReason = e.stopReason);
|
|
2684
2762
|
}
|
|
2685
2763
|
}
|
|
2686
2764
|
return {
|
|
@@ -2690,7 +2768,7 @@ async function* xe(e, t) {
|
|
|
2690
2768
|
outputTokens: n.outputTokens
|
|
2691
2769
|
};
|
|
2692
2770
|
}
|
|
2693
|
-
async function*
|
|
2771
|
+
async function* Ee(e, t) {
|
|
2694
2772
|
let { executor: n, observability: r, traceId: i, turn: a } = t, o = e.name, s = e.input || {}, c = e.id, l = n.get(o);
|
|
2695
2773
|
if (!l) return yield {
|
|
2696
2774
|
type: "tool_use_result",
|
|
@@ -2755,26 +2833,26 @@ async function* Se(e, t) {
|
|
|
2755
2833
|
};
|
|
2756
2834
|
}
|
|
2757
2835
|
}
|
|
2758
|
-
async function*
|
|
2836
|
+
async function* De(e, t) {
|
|
2759
2837
|
let n = [];
|
|
2760
2838
|
for (let r of e) {
|
|
2761
2839
|
if (r.type !== "tool_use") continue;
|
|
2762
|
-
let e = yield*
|
|
2840
|
+
let e = yield* Ee(r, t);
|
|
2763
2841
|
n.push(e);
|
|
2764
2842
|
}
|
|
2765
2843
|
return n;
|
|
2766
2844
|
}
|
|
2767
2845
|
//#endregion
|
|
2768
2846
|
//#region src/server/agent/handler.ts
|
|
2769
|
-
var
|
|
2847
|
+
var Oe = {
|
|
2770
2848
|
anthropic: "claude-sonnet-4-6",
|
|
2771
2849
|
openai: "gpt-4.1-mini",
|
|
2772
2850
|
google: "gemini-3-flash-preview"
|
|
2773
2851
|
};
|
|
2774
|
-
async function*
|
|
2775
|
-
let { message: n, history: r, semanticLayer: i, securityContext: a, agentConfig: o, apiKey: s } = t, c = t.sessionId || crypto.randomUUID(), l = o.observability, u = crypto.randomUUID(), d = Date.now(), f = t.providerOverride || o.provider || "anthropic", p = t.modelOverride || o.model ||
|
|
2852
|
+
async function* ke(t) {
|
|
2853
|
+
let { message: n, history: r, semanticLayer: i, securityContext: a, agentConfig: o, apiKey: s } = t, c = t.sessionId || crypto.randomUUID(), l = o.observability, u = crypto.randomUUID(), d = Date.now(), f = t.providerOverride || o.provider || "anthropic", p = t.modelOverride || o.model || Oe[f] || "claude-sonnet-4-6", m = t.baseURLOverride || o.baseURL, h = o.maxTurns || 25, g = o.maxTokens || 4096, _;
|
|
2776
2854
|
try {
|
|
2777
|
-
_ = await
|
|
2855
|
+
_ = await ve(f, s, { baseURL: m });
|
|
2778
2856
|
} catch (t) {
|
|
2779
2857
|
console.error("[agent] Failed to create %s provider: %s", String(f).replace(/\n|\r/g, ""), String(t instanceof Error ? t.message : t).replace(/\n|\r/g, "")), yield {
|
|
2780
2858
|
type: "error",
|
|
@@ -2782,10 +2860,10 @@ async function* Te(t) {
|
|
|
2782
2860
|
};
|
|
2783
2861
|
return;
|
|
2784
2862
|
}
|
|
2785
|
-
let v =
|
|
2863
|
+
let v = ge(), y = _e({
|
|
2786
2864
|
semanticLayer: i,
|
|
2787
2865
|
securityContext: a
|
|
2788
|
-
}), b =
|
|
2866
|
+
}), b = te(i.getMetadata());
|
|
2789
2867
|
t.systemContext && (b += `\n\n## User Context\n\n${t.systemContext}`), $(() => l?.onChatStart?.({
|
|
2790
2868
|
traceId: u,
|
|
2791
2869
|
sessionId: c,
|
|
@@ -2793,7 +2871,7 @@ async function* Te(t) {
|
|
|
2793
2871
|
model: p,
|
|
2794
2872
|
historyLength: r?.length ?? 0
|
|
2795
2873
|
}));
|
|
2796
|
-
let x =
|
|
2874
|
+
let x = be(r, _);
|
|
2797
2875
|
x.push({
|
|
2798
2876
|
role: "user",
|
|
2799
2877
|
content: n
|
|
@@ -2808,7 +2886,7 @@ async function* Te(t) {
|
|
|
2808
2886
|
system: b,
|
|
2809
2887
|
tools: v,
|
|
2810
2888
|
messages: x
|
|
2811
|
-
}), n = Date.now(), { contentBlocks: r, stopReason: i, inputTokens: a, outputTokens: o } = yield*
|
|
2889
|
+
}), n = Date.now(), { contentBlocks: r, stopReason: i, inputTokens: a, outputTokens: o } = yield* Te(_, t);
|
|
2812
2890
|
if ($(() => l?.onGenerationEnd?.({
|
|
2813
2891
|
traceId: u,
|
|
2814
2892
|
turn: e,
|
|
@@ -2823,7 +2901,7 @@ async function* Te(t) {
|
|
|
2823
2901
|
role: "assistant",
|
|
2824
2902
|
content: r
|
|
2825
2903
|
}), !_.shouldContinue(i)) break;
|
|
2826
|
-
let s = yield*
|
|
2904
|
+
let s = yield* De(r, {
|
|
2827
2905
|
executor: y,
|
|
2828
2906
|
observability: l,
|
|
2829
2907
|
traceId: u,
|
|
@@ -2832,7 +2910,7 @@ async function* Te(t) {
|
|
|
2832
2910
|
yield {
|
|
2833
2911
|
type: "turn_complete",
|
|
2834
2912
|
data: {}
|
|
2835
|
-
},
|
|
2913
|
+
}, ye(x, _.formatToolResults(s));
|
|
2836
2914
|
}
|
|
2837
2915
|
$(() => l?.onChatEnd?.({
|
|
2838
2916
|
traceId: u,
|
|
@@ -2863,4 +2941,4 @@ async function* Te(t) {
|
|
|
2863
2941
|
}
|
|
2864
2942
|
}
|
|
2865
2943
|
//#endregion
|
|
2866
|
-
export {
|
|
2944
|
+
export { T as C, w as D, ne as E, E as S, re as T, j as _, U as a, O as b, B as c, L as d, I as f, M as g, N as h, ke as handleAgentChat, W as i, z as l, P as m, K as n, H as o, F as p, G as r, V as s, q as t, R as u, A as v, ie as w, D as x, k as y };
|