drizzle-cube 0.15.4 → 0.15.5

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.
Files changed (393) hide show
  1. package/dist/adapters/ActivityGridChart.config-CRStoJN7.js +1 -0
  2. package/dist/adapters/ActivityGridChart.config-UVIbGrZs.cjs +1 -0
  3. package/dist/adapters/AreaChart.config-C-64XzvV.cjs +1 -0
  4. package/dist/adapters/AreaChart.config-OSenKEDa.js +1 -0
  5. package/dist/adapters/BarChart.config-B3l-2o-5.cjs +1 -0
  6. package/dist/adapters/BarChart.config-BL-JqfNl.js +1 -0
  7. package/dist/adapters/BoxPlotChart.config-En2W9sCn.js +1 -0
  8. package/dist/adapters/BoxPlotChart.config-HT7Vqh3S.cjs +1 -0
  9. package/dist/adapters/BubbleChart.config-CdrtTNRu.cjs +1 -0
  10. package/dist/adapters/BubbleChart.config-DCyaRccE.js +1 -0
  11. package/dist/adapters/CandlestickChart.config-BI2Wti1n.cjs +1 -0
  12. package/dist/adapters/CandlestickChart.config-DkJ3DZBF.js +1 -0
  13. package/dist/adapters/DataTable.config-BWGLaGBR.js +1 -0
  14. package/dist/adapters/DataTable.config-D98yguXz.cjs +1 -0
  15. package/dist/adapters/DotStripChart.config-BZ4QHLwz.cjs +1 -0
  16. package/dist/adapters/DotStripChart.config-JPHZAfHq.js +1 -0
  17. package/dist/adapters/FunnelChart.config-D3WQSq3V.cjs +1 -0
  18. package/dist/adapters/FunnelChart.config-F0r0WayB.js +1 -0
  19. package/dist/adapters/GaugeChart.config-CEHrHMfs.cjs +1 -0
  20. package/dist/adapters/GaugeChart.config-DXdvqUYH.js +1 -0
  21. package/dist/adapters/HeatMapChart.config-BxKS-o0A.cjs +1 -0
  22. package/dist/adapters/HeatMapChart.config-D4Q45Omu.js +1 -0
  23. package/dist/adapters/KpiDelta.config-BBGRf802.js +1 -0
  24. package/dist/adapters/KpiDelta.config-CpILJrIk.cjs +1 -0
  25. package/dist/adapters/KpiNumber.config-CbirqFHq.cjs +1 -0
  26. package/dist/adapters/KpiNumber.config-DctOJjE-.js +1 -0
  27. package/dist/adapters/KpiText.config-BE67uez4.js +1 -0
  28. package/dist/adapters/KpiText.config-ChDZbNLQ.cjs +1 -0
  29. package/dist/adapters/LineChart.config-77h_gmww.js +1 -0
  30. package/dist/adapters/LineChart.config-V03h_sF5.cjs +1 -0
  31. package/dist/adapters/MarkdownChart.config-uiOrmHo7.cjs +1 -0
  32. package/dist/adapters/MarkdownChart.config-zHL8n3e_.js +1 -0
  33. package/dist/adapters/MeasureProfileChart.config-D-uRVi5J.cjs +1 -0
  34. package/dist/adapters/MeasureProfileChart.config-YFdPWnN0.js +1 -0
  35. package/dist/adapters/PieChart.config-DKJVsbZm.cjs +1 -0
  36. package/dist/adapters/PieChart.config-tDcrCy6I.js +1 -0
  37. package/dist/adapters/ProportionBarChart.config-Bd780fV1.cjs +1 -0
  38. package/dist/adapters/ProportionBarChart.config-BpUzsBL5.js +1 -0
  39. package/dist/adapters/RadarChart.config-DgscyxZj.js +1 -0
  40. package/dist/adapters/RadarChart.config-Dhz9TUf1.cjs +1 -0
  41. package/dist/adapters/RadialBarChart.config-CstfMNyO.js +1 -0
  42. package/dist/adapters/RadialBarChart.config-DU0g9Sqd.cjs +1 -0
  43. package/dist/adapters/RecordsTable.config-xWF_FwIf.js +1 -0
  44. package/dist/adapters/RecordsTable.config-yk1-fb7H.cjs +1 -0
  45. package/dist/adapters/RetentionCombinedChart.config-BPFKAI0l.js +1 -0
  46. package/dist/adapters/RetentionCombinedChart.config-BQEu6B6q.cjs +1 -0
  47. package/dist/adapters/RetentionHeatmap.config-B7wz6qj4.cjs +1 -0
  48. package/dist/adapters/RetentionHeatmap.config-BTX_CrZJ.js +1 -0
  49. package/dist/adapters/SankeyChart.config-CicdaFta.js +1 -0
  50. package/dist/adapters/SankeyChart.config-n21KdYxz.cjs +1 -0
  51. package/dist/adapters/ScatterChart.config-CToAMrS3.cjs +1 -0
  52. package/dist/adapters/ScatterChart.config-DE9FdKgm.js +1 -0
  53. package/dist/adapters/SunburstChart.config-BH1UDwp2.js +1 -0
  54. package/dist/adapters/SunburstChart.config-BNgHwK_7.cjs +1 -0
  55. package/dist/adapters/TreeMapChart.config-C6aMNMTc.cjs +1 -0
  56. package/dist/adapters/TreeMapChart.config-CxTQF8zN.js +1 -0
  57. package/dist/adapters/WaterfallChart.config-B9AeS0MH.cjs +1 -0
  58. package/dist/adapters/WaterfallChart.config-CtiVue_6.js +1 -0
  59. package/dist/adapters/core/index.cjs +1 -1
  60. package/dist/adapters/core/index.js +1 -1
  61. package/dist/adapters/{core-D6Ghepzl.cjs → core-BcdrjdP_.cjs} +1 -1
  62. package/dist/adapters/{core-BAwQ6u3F.js → core-p2tpIc-e.js} +2 -2
  63. package/dist/adapters/{cors-headers-BqdVnwOm.js → cors-headers-BtxruIvb.js} +1 -1
  64. package/dist/adapters/{cors-headers-B9wxgUI3.cjs → cors-headers-C-cQjvVu.cjs} +1 -1
  65. package/dist/adapters/express/index.cjs +1 -1
  66. package/dist/adapters/express/index.js +5 -5
  67. package/dist/adapters/fastify/index.cjs +1 -1
  68. package/dist/adapters/fastify/index.js +5 -5
  69. package/dist/adapters/{handler-TM2VACi3.js → handler-Bt51aMjp.js} +147 -123
  70. package/dist/adapters/handler-CUvj92A3.cjs +32 -0
  71. package/dist/adapters/hono/index.cjs +1 -1
  72. package/dist/adapters/hono/index.js +4 -4
  73. package/dist/adapters/mcp-app-html.cjs +1 -1
  74. package/dist/adapters/mcp-app-html.js +1 -1
  75. package/dist/adapters/mcp-tools.cjs +1 -1
  76. package/dist/adapters/mcp-tools.js +2 -2
  77. package/dist/adapters/{mcp-transport-BRcw-fQh.cjs → mcp-transport-BQdvIzJZ.cjs} +1 -1
  78. package/dist/adapters/{mcp-transport-Dd8CiQTk.js → mcp-transport-D_PRLMFH.js} +1 -1
  79. package/dist/adapters/nextjs/index.cjs +1 -1
  80. package/dist/adapters/nextjs/index.js +5 -5
  81. package/dist/adapters/{openai-GmnIW6fg.cjs → openai-B8PNzl8m.cjs} +1 -1
  82. package/dist/adapters/{openai-1xYjNPzU.cjs → openai-BO26SYis.cjs} +1 -1
  83. package/dist/adapters/{openai-CvzXzyAV.js → openai-D8lG5oYl.js} +1 -1
  84. package/dist/adapters/{openai-DedOllZH.js → openai-f29v_-Jd.js} +1 -1
  85. package/dist/adapters/{utils-2FhyAM0C.js → utils-BVIM2U0f.js} +6 -0
  86. package/dist/adapters/{utils-BQz41FNg.cjs → utils-CPSvgG1y.cjs} +1 -1
  87. package/dist/adapters/utils.cjs +1 -1
  88. package/dist/adapters/utils.js +1 -1
  89. package/dist/cjs/client/charts/chartConfigHelpers.d.ts +5 -0
  90. package/dist/cjs/client/components/AnalyticsDashboard.d.ts +1 -1
  91. package/dist/cjs/client/components/DashboardFilters/CompactFilterBar.d.ts +2 -0
  92. package/dist/cjs/client/components/DashboardFilters/EditModeFilterList.d.ts +2 -0
  93. package/dist/cjs/client/components/DashboardGrid.d.ts +3 -1
  94. package/dist/cjs/client/components/DashboardPortletCard.d.ts +1 -1
  95. package/dist/cjs/client/components/analyticsPortlet/parsePortletQuery.d.ts +5 -1
  96. package/dist/cjs/client/components/charts/WaterfallChart.d.ts +1 -1
  97. package/dist/cjs/client/components/charts/cartesianChartHelpers.d.ts +14 -1
  98. package/dist/cjs/client/components/charts/chartScaffolding.d.ts +61 -1
  99. package/dist/cjs/client/components/dashboard/DashboardContext.d.ts +7 -1
  100. package/dist/cjs/client/components/dashboard/DashboardCoordinator.d.ts +1 -1
  101. package/dist/cjs/client/components/dashboardPortletCard/PortletCardHeader.d.ts +2 -0
  102. package/dist/cjs/client/components/dashboardPortletCard/propsEqual.d.ts +3 -1
  103. package/dist/cjs/client/hooks/useResponsiveDashboard.d.ts +10 -1
  104. package/dist/cjs/client/hooks.d.ts +1 -1
  105. package/dist/cjs/client/index.d.ts +1 -1
  106. package/dist/cjs/client/types.d.ts +30 -0
  107. package/dist/cjs/client/utils/autoGranularity.d.ts +18 -0
  108. package/dist/cjs/client/utils/index.d.ts +1 -0
  109. package/dist/cjs/client/utils/timeAxisFormatting.d.ts +81 -0
  110. package/dist/client/charts/chartConfigHelpers.d.ts +5 -0
  111. package/dist/client/charts.js +12 -12
  112. package/dist/client/chunks/{ActivityGridChart-DYJkZzwx.js → ActivityGridChart-9jQtN8-K.js} +4 -4
  113. package/dist/client/chunks/{ActivityGridChart-DYJkZzwx.js.map → ActivityGridChart-9jQtN8-K.js.map} +1 -1
  114. package/dist/client/chunks/{BarSeries-RYOuAiaW.js → BarSeries-DK-vuiwN.js} +2 -2
  115. package/dist/client/chunks/{BarSeries-RYOuAiaW.js.map → BarSeries-DK-vuiwN.js.map} +1 -1
  116. package/dist/client/chunks/{BubbleChart-DYLLZ_cl.js → BubbleChart-C68fNRF0.js} +4 -4
  117. package/dist/client/chunks/{BubbleChart-DYLLZ_cl.js.map → BubbleChart-C68fNRF0.js.map} +1 -1
  118. package/dist/client/chunks/{BubbleChart.helpers-CjbCvUeT.js → BubbleChart.helpers-uNNiXCp3.js} +2 -2
  119. package/dist/client/chunks/{BubbleChart.helpers-CjbCvUeT.js.map → BubbleChart.helpers-uNNiXCp3.js.map} +1 -1
  120. package/dist/client/chunks/{ChartStates-CmQaadEo.js → ChartStates-q3isKswo.js} +2 -2
  121. package/dist/client/chunks/{ChartStates-CmQaadEo.js.map → ChartStates-q3isKswo.js.map} +1 -1
  122. package/dist/client/chunks/{ChartSummaryHeader-CD9xvGd8.js → ChartSummaryHeader-CArf-Zae.js} +3 -3
  123. package/dist/client/chunks/{ChartSummaryHeader-CD9xvGd8.js.map → ChartSummaryHeader-CArf-Zae.js.map} +1 -1
  124. package/dist/client/chunks/{DashboardEditModal-B7OSUOiv.js → DashboardEditModal-DE4tRYdM.js} +1954 -1932
  125. package/dist/client/chunks/DashboardEditModal-DE4tRYdM.js.map +1 -0
  126. package/dist/client/chunks/{DataHistogram-06lCYT_Q.js → DataHistogram-ByPAXQ7l.js} +2 -2
  127. package/dist/client/chunks/{DataHistogram-06lCYT_Q.js.map → DataHistogram-ByPAXQ7l.js.map} +1 -1
  128. package/dist/client/chunks/{DotStripChart-BmKYH2yE.js → DotStripChart-C6pnWcnJ.js} +5 -5
  129. package/dist/client/chunks/{DotStripChart-BmKYH2yE.js.map → DotStripChart-C6pnWcnJ.js.map} +1 -1
  130. package/dist/client/chunks/{FunnelViews-Ck885XTd.js → FunnelViews-CjbkdKgA.js} +2 -2
  131. package/dist/client/chunks/{FunnelViews-Ck885XTd.js.map → FunnelViews-CjbkdKgA.js.map} +1 -1
  132. package/dist/client/chunks/{HeatMapChart-CZeYGRLC.js → HeatMapChart-CNxD7vQ7.js} +4 -4
  133. package/dist/client/chunks/{HeatMapChart-CZeYGRLC.js.map → HeatMapChart-CNxD7vQ7.js.map} +1 -1
  134. package/dist/client/chunks/{KpiDelta-ls34EAAv.js → KpiDelta-_ZYYbF62.js} +2 -2
  135. package/dist/client/chunks/{KpiDelta-ls34EAAv.js.map → KpiDelta-_ZYYbF62.js.map} +1 -1
  136. package/dist/client/chunks/{KpiText-BByhn9KP.js → KpiText-DbqKXrt_.js} +2 -2
  137. package/dist/client/chunks/{KpiText-BByhn9KP.js.map → KpiText-DbqKXrt_.js.map} +1 -1
  138. package/dist/client/chunks/{MarkdownChart.helpers-BZuq25Uq.js → MarkdownChart.helpers-BXTbF88z.js} +2 -2
  139. package/dist/client/chunks/{MarkdownChart.helpers-BZuq25Uq.js.map → MarkdownChart.helpers-BXTbF88z.js.map} +1 -1
  140. package/dist/client/chunks/{PortletAnalysisModal-BUK4uJRQ.js → PortletAnalysisModal-DyAH0Fr6.js} +6 -6
  141. package/dist/client/chunks/{PortletAnalysisModal-BUK4uJRQ.js.map → PortletAnalysisModal-DyAH0Fr6.js.map} +1 -1
  142. package/dist/client/chunks/{ProportionBarChart-BCnhz3Xe.js → ProportionBarChart-C-leF5gI.js} +6 -6
  143. package/dist/client/chunks/{ProportionBarChart-BCnhz3Xe.js.map → ProportionBarChart-C-leF5gI.js.map} +1 -1
  144. package/dist/client/chunks/{RecordsTable-DpFttrbE.js → RecordsTable-DYZF1s9w.js} +6 -6
  145. package/dist/client/chunks/{RecordsTable-DpFttrbE.js.map → RecordsTable-DYZF1s9w.js.map} +1 -1
  146. package/dist/client/chunks/{RetentionCombinedChart-D6HL0Ewc.js → RetentionCombinedChart-CQXtz2yS.js} +3 -3
  147. package/dist/client/chunks/{RetentionCombinedChart-D6HL0Ewc.js.map → RetentionCombinedChart-CQXtz2yS.js.map} +1 -1
  148. package/dist/client/chunks/{RetentionHeatmap-4-FOghfG.js → RetentionHeatmap-1Thi6ecj.js} +2 -2
  149. package/dist/client/chunks/{RetentionHeatmap-4-FOghfG.js.map → RetentionHeatmap-1Thi6ecj.js.map} +1 -1
  150. package/dist/client/chunks/{ScatterSeries-C69e7fWt.js → ScatterSeries-B4nwj1RE.js} +2 -2
  151. package/dist/client/chunks/{ScatterSeries-C69e7fWt.js.map → ScatterSeries-B4nwj1RE.js.map} +1 -1
  152. package/dist/client/chunks/{SchemaVisualization-BLNTnD5S.js → SchemaVisualization--StKeQKD.js} +1 -1
  153. package/dist/client/chunks/{TextPortletModal-DH5HkRuy.js → TextPortletModal-BLokJrUd.js} +4 -4
  154. package/dist/client/chunks/{TextPortletModal-DH5HkRuy.js.map → TextPortletModal-BLokJrUd.js.map} +1 -1
  155. package/dist/client/chunks/{TreeMapLegend-CccnfTYy.js → TreeMapLegend-D_vqfx_X.js} +2 -2
  156. package/dist/client/chunks/{TreeMapLegend-CccnfTYy.js.map → TreeMapLegend-D_vqfx_X.js.map} +1 -1
  157. package/dist/client/chunks/{analysis-builder-Bau8adTK.js → analysis-builder-ChpumcKg.js} +10 -10
  158. package/dist/client/chunks/{analysis-builder-Bau8adTK.js.map → analysis-builder-ChpumcKg.js.map} +1 -1
  159. package/dist/client/chunks/{analysis-builder-shared-DFMkGsT_.js → analysis-builder-shared-0wLNwq5q.js} +64 -64
  160. package/dist/client/chunks/{analysis-builder-shared-DFMkGsT_.js.map → analysis-builder-shared-0wLNwq5q.js.map} +1 -1
  161. package/dist/client/chunks/cartesianChartHelpers-Do-TAOih.js +421 -0
  162. package/dist/client/chunks/cartesianChartHelpers-Do-TAOih.js.map +1 -0
  163. package/dist/client/chunks/{chart-activity-grid-DgXF88W6.js → chart-activity-grid-B9dC1A5R.js} +5 -5
  164. package/dist/client/chunks/{chart-activity-grid-DgXF88W6.js.map → chart-activity-grid-B9dC1A5R.js.map} +1 -1
  165. package/dist/client/chunks/chart-area-BEXKNAXv.js +138 -0
  166. package/dist/client/chunks/chart-area-BEXKNAXv.js.map +1 -0
  167. package/dist/client/chunks/chart-bar-SMb2q1G9.js +143 -0
  168. package/dist/client/chunks/chart-bar-SMb2q1G9.js.map +1 -0
  169. package/dist/client/chunks/{chart-box-plot-DzY4pP09.js → chart-box-plot-C5COpr1_.js} +3 -3
  170. package/dist/client/chunks/{chart-box-plot-DzY4pP09.js.map → chart-box-plot-C5COpr1_.js.map} +1 -1
  171. package/dist/client/chunks/{chart-bubble-Dmcv09zb.js → chart-bubble-Df2C1LQW.js} +5 -5
  172. package/dist/client/chunks/{chart-bubble-Dmcv09zb.js.map → chart-bubble-Df2C1LQW.js.map} +1 -1
  173. package/dist/client/chunks/{chart-candlestick-BQbqfz7P.js → chart-candlestick-DuDaGj4R.js} +3 -3
  174. package/dist/client/chunks/{chart-candlestick-BQbqfz7P.js.map → chart-candlestick-DuDaGj4R.js.map} +1 -1
  175. package/dist/client/chunks/{chart-config-area-Bvft9O_T.js → chart-config-area-DVA0oKNp.js} +11 -10
  176. package/dist/client/chunks/chart-config-area-DVA0oKNp.js.map +1 -0
  177. package/dist/client/chunks/{chart-config-bar-OyxCyA3e.js → chart-config-bar-DhqbYfpf.js} +9 -8
  178. package/dist/client/chunks/chart-config-bar-DhqbYfpf.js.map +1 -0
  179. package/dist/client/chunks/{chart-config-kpi-delta-ZMObFeZr.js → chart-config-kpi-delta-BPMq7hzP.js} +2 -2
  180. package/dist/client/chunks/{chart-config-kpi-delta-ZMObFeZr.js.map → chart-config-kpi-delta-BPMq7hzP.js.map} +1 -1
  181. package/dist/client/chunks/{chart-config-kpi-number-C6rnZbNk.js → chart-config-kpi-number-B83Z2jLe.js} +2 -2
  182. package/dist/client/chunks/{chart-config-kpi-number-C6rnZbNk.js.map → chart-config-kpi-number-B83Z2jLe.js.map} +1 -1
  183. package/dist/client/chunks/{chart-config-line-FKcg6zYi.js → chart-config-line-CYwh72pj.js} +11 -10
  184. package/dist/client/chunks/chart-config-line-CYwh72pj.js.map +1 -0
  185. package/dist/client/chunks/{chart-config-measure-profile-Bw7okF4K.js → chart-config-measure-profile-Chi9pZNK.js} +5 -3
  186. package/dist/client/chunks/chart-config-measure-profile-Chi9pZNK.js.map +1 -0
  187. package/dist/client/chunks/{chart-config-pie-tNg_02bP.js → chart-config-pie-CenIR70H.js} +2 -2
  188. package/dist/client/chunks/{chart-config-pie-tNg_02bP.js.map → chart-config-pie-CenIR70H.js.map} +1 -1
  189. package/dist/client/chunks/{chart-config-radar-BbK_cePI.js → chart-config-radar-iBtE5R3S.js} +2 -2
  190. package/dist/client/chunks/{chart-config-radar-BbK_cePI.js.map → chart-config-radar-iBtE5R3S.js.map} +1 -1
  191. package/dist/client/chunks/{chart-config-radial-bar-B-ysOwq_.js → chart-config-radial-bar-U0gm1O8q.js} +2 -2
  192. package/dist/client/chunks/{chart-config-radial-bar-B-ysOwq_.js.map → chart-config-radial-bar-U0gm1O8q.js.map} +1 -1
  193. package/dist/client/chunks/{chart-config-tree-map-CES9mAql.js → chart-config-tree-map-DxSNKyGd.js} +2 -2
  194. package/dist/client/chunks/{chart-config-tree-map-CES9mAql.js.map → chart-config-tree-map-DxSNKyGd.js.map} +1 -1
  195. package/dist/client/chunks/{chart-config-waterfall-D3xkuYph.js → chart-config-waterfall-DtDzu_14.js} +5 -3
  196. package/dist/client/chunks/chart-config-waterfall-DtDzu_14.js.map +1 -0
  197. package/dist/client/chunks/{chart-data-table-CPjBzcme.js → chart-data-table-CytJbYDW.js} +5 -5
  198. package/dist/client/chunks/{chart-data-table-CPjBzcme.js.map → chart-data-table-CytJbYDW.js.map} +1 -1
  199. package/dist/client/chunks/{chart-funnel-DO66-IUH.js → chart-funnel-CXV90Ndw.js} +3 -3
  200. package/dist/client/chunks/{chart-funnel-DO66-IUH.js.map → chart-funnel-CXV90Ndw.js.map} +1 -1
  201. package/dist/client/chunks/{chart-gauge-BqWifMPW.js → chart-gauge-C4nY8NQj.js} +5 -5
  202. package/dist/client/chunks/{chart-gauge-BqWifMPW.js.map → chart-gauge-C4nY8NQj.js.map} +1 -1
  203. package/dist/client/chunks/{chart-heat-map-Cqsz9upg.js → chart-heat-map-BebyQ9Vf.js} +5 -5
  204. package/dist/client/chunks/{chart-heat-map-Cqsz9upg.js.map → chart-heat-map-BebyQ9Vf.js.map} +1 -1
  205. package/dist/client/chunks/{chart-kpi-delta-Bn_Anifd.js → chart-kpi-delta-CeEhPFso.js} +4 -4
  206. package/dist/client/chunks/{chart-kpi-delta-Bn_Anifd.js.map → chart-kpi-delta-CeEhPFso.js.map} +1 -1
  207. package/dist/client/chunks/{chart-kpi-number-6Hp4nqp9.js → chart-kpi-number-BU6XRX3h.js} +4 -4
  208. package/dist/client/chunks/{chart-kpi-number-6Hp4nqp9.js.map → chart-kpi-number-BU6XRX3h.js.map} +1 -1
  209. package/dist/client/chunks/{chart-kpi-text-Dbe-anJN.js → chart-kpi-text-skyF2iq6.js} +5 -5
  210. package/dist/client/chunks/{chart-kpi-text-Dbe-anJN.js.map → chart-kpi-text-skyF2iq6.js.map} +1 -1
  211. package/dist/client/chunks/chart-line-JtvhnFif.js +135 -0
  212. package/dist/client/chunks/chart-line-JtvhnFif.js.map +1 -0
  213. package/dist/client/chunks/{chart-markdown-BN0nnp-T.js → chart-markdown-CdrimJrm.js} +3 -3
  214. package/dist/client/chunks/{chart-markdown-BN0nnp-T.js.map → chart-markdown-CdrimJrm.js.map} +1 -1
  215. package/dist/client/chunks/{chart-measure-profile-B3bL3mfE.js → chart-measure-profile-DOl_xbBI.js} +19 -11
  216. package/dist/client/chunks/chart-measure-profile-DOl_xbBI.js.map +1 -0
  217. package/dist/client/chunks/{chart-pie-BD2UKMmW.js → chart-pie-DY_3XcSj.js} +6 -6
  218. package/dist/client/chunks/{chart-pie-BD2UKMmW.js.map → chart-pie-DY_3XcSj.js.map} +1 -1
  219. package/dist/client/chunks/{chart-radar-NyciE337.js → chart-radar-qus6NAYq.js} +6 -6
  220. package/dist/client/chunks/{chart-radar-NyciE337.js.map → chart-radar-qus6NAYq.js.map} +1 -1
  221. package/dist/client/chunks/{chart-radial-bar-BrmjHNAL.js → chart-radial-bar-CmvRUW7j.js} +6 -6
  222. package/dist/client/chunks/{chart-radial-bar-BrmjHNAL.js.map → chart-radial-bar-CmvRUW7j.js.map} +1 -1
  223. package/dist/client/chunks/{chart-sankey-DWPKdkOS.js → chart-sankey-Blp-T8_v.js} +2 -2
  224. package/dist/client/chunks/{chart-sankey-DWPKdkOS.js.map → chart-sankey-Blp-T8_v.js.map} +1 -1
  225. package/dist/client/chunks/{chart-scatter-CTvzOt2P.js → chart-scatter-BvHmImdY.js} +7 -7
  226. package/dist/client/chunks/{chart-scatter-CTvzOt2P.js.map → chart-scatter-BvHmImdY.js.map} +1 -1
  227. package/dist/client/chunks/{chart-sunburst-B3DzSatC.js → chart-sunburst-CYCSZ6pL.js} +2 -2
  228. package/dist/client/chunks/{chart-sunburst-B3DzSatC.js.map → chart-sunburst-CYCSZ6pL.js.map} +1 -1
  229. package/dist/client/chunks/{chart-tree-map-DyTG0Alb.js → chart-tree-map-DXl7KCM8.js} +7 -7
  230. package/dist/client/chunks/{chart-tree-map-DyTG0Alb.js.map → chart-tree-map-DXl7KCM8.js.map} +1 -1
  231. package/dist/client/chunks/{chart-waterfall-bJ_W_eiJ.js → chart-waterfall-E8bbmkm7.js} +99 -81
  232. package/dist/client/chunks/chart-waterfall-E8bbmkm7.js.map +1 -0
  233. package/dist/client/chunks/{chartComponentRegistry-xa0hV8aQ.js → chartComponentRegistry-LNS2NwAv.js} +4 -4
  234. package/dist/client/chunks/{chartComponentRegistry-xa0hV8aQ.js.map → chartComponentRegistry-LNS2NwAv.js.map} +1 -1
  235. package/dist/client/chunks/{chartPlugin-uXUb0QRv.js → chartPlugin-yM7JPt-B.js} +14 -14
  236. package/dist/client/chunks/{chartPlugin-uXUb0QRv.js.map → chartPlugin-yM7JPt-B.js.map} +1 -1
  237. package/dist/client/chunks/{chartRegistry-CVOMsXOK.js → chartRegistry-CI9eqtt9.js} +57 -38
  238. package/dist/client/chunks/chartRegistry-CI9eqtt9.js.map +1 -0
  239. package/dist/client/chunks/chartScaffolding-DcJLGHlm.js +188 -0
  240. package/dist/client/chunks/chartScaffolding-DcJLGHlm.js.map +1 -0
  241. package/dist/client/chunks/{chartUtils-CcCLgSOB.js → chartUtils-C49Kr8Nt.js} +2 -2
  242. package/dist/client/chunks/{chartUtils-CcCLgSOB.js.map → chartUtils-C49Kr8Nt.js.map} +1 -1
  243. package/dist/client/chunks/{charts-core-BHhJICdb.js → charts-core-Cur4p6Mn.js} +3 -3
  244. package/dist/client/chunks/{charts-core-BHhJICdb.js.map → charts-core-Cur4p6Mn.js.map} +1 -1
  245. package/dist/client/chunks/{charts-loader-fPRsqaiJ.js → charts-loader-dfaiJVGE.js} +32 -32
  246. package/dist/client/chunks/{charts-loader-fPRsqaiJ.js.map → charts-loader-dfaiJVGE.js.map} +1 -1
  247. package/dist/client/chunks/{dashboardExport-Cz_5rWlF.js → dashboardExport-Cuas_Jm2.js} +203 -144
  248. package/dist/client/chunks/dashboardExport-Cuas_Jm2.js.map +1 -0
  249. package/dist/client/chunks/{gaugeChartHelpers-D1QsCg21.js → gaugeChartHelpers-B0uUgsQ4.js} +2 -2
  250. package/dist/client/chunks/{gaugeChartHelpers-D1QsCg21.js.map → gaugeChartHelpers-B0uUgsQ4.js.map} +1 -1
  251. package/dist/client/chunks/{nl-NL-DtiGzigu.js → nl-NL-Dl2q6V08.js} +7 -1
  252. package/dist/client/chunks/nl-NL-Dl2q6V08.js.map +1 -0
  253. package/dist/client/chunks/{pivotUtils-Cc-PAP1w.js → pivotUtils-CD_kVHWS.js} +2 -2
  254. package/dist/client/chunks/{pivotUtils-Cc-PAP1w.js.map → pivotUtils-CD_kVHWS.js.map} +1 -1
  255. package/dist/client/chunks/{providers-DJq_2QU4.js → providers-BanUxi9o.js} +4 -4
  256. package/dist/client/chunks/{providers-DJq_2QU4.js.map → providers-BanUxi9o.js.map} +1 -1
  257. package/dist/client/chunks/{radarChartHelpers-B6Tcvmjg.js → radarChartHelpers-MSCZGEBc.js} +2 -2
  258. package/dist/client/chunks/{radarChartHelpers-B6Tcvmjg.js.map → radarChartHelpers-MSCZGEBc.js.map} +1 -1
  259. package/dist/client/chunks/{radialBarChartHelpers-2KuJKH_9.js → radialBarChartHelpers-CJ0tVPGJ.js} +2 -2
  260. package/dist/client/chunks/{radialBarChartHelpers-2KuJKH_9.js.map → radialBarChartHelpers-CJ0tVPGJ.js.map} +1 -1
  261. package/dist/client/chunks/{schema-visualization-B04dKs1c.js → schema-visualization-BBuxndAv.js} +5 -5
  262. package/dist/client/chunks/{schema-visualization-B04dKs1c.js.map → schema-visualization-BBuxndAv.js.map} +1 -1
  263. package/dist/client/chunks/{useCubeFieldLabel-DwTL-1fd.js → useCubeFieldLabel-DORlYhRk.js} +2 -2
  264. package/dist/client/chunks/{useCubeFieldLabel-DwTL-1fd.js.map → useCubeFieldLabel-DORlYhRk.js.map} +1 -1
  265. package/dist/client/chunks/{useCubeMetaQuery-CKkxam6t.js → useCubeMetaQuery-ClNaCRP-.js} +2 -2
  266. package/dist/client/chunks/{useCubeMetaQuery-CKkxam6t.js.map → useCubeMetaQuery-ClNaCRP-.js.map} +1 -1
  267. package/dist/client/chunks/{useDirtyStateTracking-CesO_Xr8.js → useDirtyStateTracking-BA8JTfGP.js} +111 -108
  268. package/dist/client/chunks/useDirtyStateTracking-BA8JTfGP.js.map +1 -0
  269. package/dist/client/chunks/{useExplainAI-B9CqKiqE.js → useExplainAI-DhkrNycx.js} +3 -3
  270. package/dist/client/chunks/{useExplainAI-B9CqKiqE.js.map → useExplainAI-DhkrNycx.js.map} +1 -1
  271. package/dist/client/chunks/{useTranslation-DgVTqWyJ.js → useTranslation-DQ_tbKyn.js} +9 -3
  272. package/dist/client/chunks/{useTranslation-DgVTqWyJ.js.map → useTranslation-DQ_tbKyn.js.map} +1 -1
  273. package/dist/client/chunks/utils-4nU07wK8.js.map +1 -1
  274. package/dist/client/components/AnalyticsDashboard.d.ts +1 -1
  275. package/dist/client/components/DashboardFilters/CompactFilterBar.d.ts +2 -0
  276. package/dist/client/components/DashboardFilters/EditModeFilterList.d.ts +2 -0
  277. package/dist/client/components/DashboardGrid.d.ts +3 -1
  278. package/dist/client/components/DashboardPortletCard.d.ts +1 -1
  279. package/dist/client/components/analyticsPortlet/parsePortletQuery.d.ts +5 -1
  280. package/dist/client/components/charts/WaterfallChart.d.ts +1 -1
  281. package/dist/client/components/charts/cartesianChartHelpers.d.ts +14 -1
  282. package/dist/client/components/charts/chartScaffolding.d.ts +61 -1
  283. package/dist/client/components/dashboard/DashboardContext.d.ts +7 -1
  284. package/dist/client/components/dashboard/DashboardCoordinator.d.ts +1 -1
  285. package/dist/client/components/dashboardPortletCard/PortletCardHeader.d.ts +2 -0
  286. package/dist/client/components/dashboardPortletCard/propsEqual.d.ts +3 -1
  287. package/dist/client/components.js +17 -17
  288. package/dist/client/components.js.map +1 -1
  289. package/dist/client/hooks/useResponsiveDashboard.d.ts +10 -1
  290. package/dist/client/hooks.d.ts +1 -1
  291. package/dist/client/hooks.js +3 -3
  292. package/dist/client/icons.js +1 -1
  293. package/dist/client/index.d.ts +1 -1
  294. package/dist/client/index.js +14 -14
  295. package/dist/client/index.js.map +1 -1
  296. package/dist/client/providers.js +1 -1
  297. package/dist/client/schema.js +1 -1
  298. package/dist/client/types.d.ts +30 -0
  299. package/dist/client/utils/autoGranularity.d.ts +18 -0
  300. package/dist/client/utils/index.d.ts +1 -0
  301. package/dist/client/utils/timeAxisFormatting.d.ts +81 -0
  302. package/dist/client/utils.js +12 -12
  303. package/dist/client/utils.js.map +1 -1
  304. package/dist/client-bundle-stats.html +1 -1
  305. package/dist/mcp-app/mcp-app.html +111 -111
  306. package/dist/server/{chartConfigHelpers-CLCi4RHs.js → chartConfigHelpers-BZ93eyEi.js} +22 -1
  307. package/dist/server/{chartConfigHelpers-BhME7ow_.cjs → chartConfigHelpers-DqYCkMe-.cjs} +1 -1
  308. package/dist/server/index.cjs +3 -3
  309. package/dist/server/index.js +1732 -1721
  310. package/package.json +2 -2
  311. package/dist/adapters/ActivityGridChart.config-BiO_BwqY.cjs +0 -1
  312. package/dist/adapters/ActivityGridChart.config-CEwmvCjC.js +0 -1
  313. package/dist/adapters/AreaChart.config-BXAsVmwo.cjs +0 -1
  314. package/dist/adapters/AreaChart.config-CiXadO2d.js +0 -1
  315. package/dist/adapters/BarChart.config-By2FZ2kF.js +0 -1
  316. package/dist/adapters/BarChart.config-CW27elpr.cjs +0 -1
  317. package/dist/adapters/BoxPlotChart.config-CepOeLm6.js +0 -1
  318. package/dist/adapters/BoxPlotChart.config-tiimrKXX.cjs +0 -1
  319. package/dist/adapters/BubbleChart.config-36YTcVrQ.cjs +0 -1
  320. package/dist/adapters/BubbleChart.config-CsgN3Ttr.js +0 -1
  321. package/dist/adapters/CandlestickChart.config-B1_CPFAW.cjs +0 -1
  322. package/dist/adapters/CandlestickChart.config-DCeUTeiy.js +0 -1
  323. package/dist/adapters/DataTable.config-DxYwamnu.js +0 -1
  324. package/dist/adapters/DataTable.config-IN3GABQx.cjs +0 -1
  325. package/dist/adapters/DotStripChart.config-4nqXGR4i.cjs +0 -1
  326. package/dist/adapters/DotStripChart.config-DTO7E6Ya.js +0 -1
  327. package/dist/adapters/FunnelChart.config-DDzcKtc-.cjs +0 -1
  328. package/dist/adapters/FunnelChart.config-DywH337V.js +0 -1
  329. package/dist/adapters/GaugeChart.config-B15umptj.cjs +0 -1
  330. package/dist/adapters/GaugeChart.config-B649tVKp.js +0 -1
  331. package/dist/adapters/HeatMapChart.config-BdCTMqLA.js +0 -1
  332. package/dist/adapters/HeatMapChart.config-IMBhg4W9.cjs +0 -1
  333. package/dist/adapters/KpiDelta.config-BHgaI9Gx.cjs +0 -1
  334. package/dist/adapters/KpiDelta.config-OsBjIc_V.js +0 -1
  335. package/dist/adapters/KpiNumber.config-Bv9riES9.js +0 -1
  336. package/dist/adapters/KpiNumber.config-CYDzBYFA.cjs +0 -1
  337. package/dist/adapters/KpiText.config-RnsCqsm9.js +0 -1
  338. package/dist/adapters/KpiText.config-Y8Rnb2Nj.cjs +0 -1
  339. package/dist/adapters/LineChart.config-C3g8_jPt.js +0 -1
  340. package/dist/adapters/LineChart.config-CUfL4ZkJ.cjs +0 -1
  341. package/dist/adapters/MarkdownChart.config-CpijhI2w.cjs +0 -1
  342. package/dist/adapters/MarkdownChart.config-Jn4Zb-NH.js +0 -1
  343. package/dist/adapters/MeasureProfileChart.config-BfKPTnqR.js +0 -1
  344. package/dist/adapters/MeasureProfileChart.config-DCDH31a3.cjs +0 -1
  345. package/dist/adapters/PieChart.config-Bg3Mao5o.cjs +0 -1
  346. package/dist/adapters/PieChart.config-CIF81MzA.js +0 -1
  347. package/dist/adapters/ProportionBarChart.config-BlPsMMEk.cjs +0 -1
  348. package/dist/adapters/ProportionBarChart.config-BmTVGcQW.js +0 -1
  349. package/dist/adapters/RadarChart.config-BycPR9z8.js +0 -1
  350. package/dist/adapters/RadarChart.config-Dog6QtI2.cjs +0 -1
  351. package/dist/adapters/RadialBarChart.config-Di3ovQ4K.js +0 -1
  352. package/dist/adapters/RadialBarChart.config-Zj0zioze.cjs +0 -1
  353. package/dist/adapters/RecordsTable.config-BadLMdUV.js +0 -1
  354. package/dist/adapters/RecordsTable.config-inxw1DXR.cjs +0 -1
  355. package/dist/adapters/RetentionCombinedChart.config-Dr2dpeDV.cjs +0 -1
  356. package/dist/adapters/RetentionCombinedChart.config-OJsvPybR.js +0 -1
  357. package/dist/adapters/RetentionHeatmap.config-C51uRSfX.cjs +0 -1
  358. package/dist/adapters/RetentionHeatmap.config-DVnwGs5p.js +0 -1
  359. package/dist/adapters/SankeyChart.config-CAXBtVXD.js +0 -1
  360. package/dist/adapters/SankeyChart.config-DxhC9P0u.cjs +0 -1
  361. package/dist/adapters/ScatterChart.config-ClCGa8Lt.js +0 -1
  362. package/dist/adapters/ScatterChart.config-CoPZgwLx.cjs +0 -1
  363. package/dist/adapters/SunburstChart.config-DrZfdP6B.cjs +0 -1
  364. package/dist/adapters/SunburstChart.config-bKBKmu4e.js +0 -1
  365. package/dist/adapters/TreeMapChart.config-C-S7VqVg.cjs +0 -1
  366. package/dist/adapters/TreeMapChart.config-C12JqraB.js +0 -1
  367. package/dist/adapters/WaterfallChart.config-C5kwn5iF.js +0 -1
  368. package/dist/adapters/WaterfallChart.config-UcJtN8HT.cjs +0 -1
  369. package/dist/adapters/handler-8sQlwdFt.cjs +0 -32
  370. package/dist/client/chunks/AngledXAxisTick-DTvPXpZV.js +0 -21
  371. package/dist/client/chunks/AngledXAxisTick-DTvPXpZV.js.map +0 -1
  372. package/dist/client/chunks/DashboardEditModal-B7OSUOiv.js.map +0 -1
  373. package/dist/client/chunks/cartesianChartHelpers-XuqUcTM1.js +0 -256
  374. package/dist/client/chunks/cartesianChartHelpers-XuqUcTM1.js.map +0 -1
  375. package/dist/client/chunks/chart-area-D6InVJ_Y.js +0 -125
  376. package/dist/client/chunks/chart-area-D6InVJ_Y.js.map +0 -1
  377. package/dist/client/chunks/chart-bar-BkiQa3FZ.js +0 -129
  378. package/dist/client/chunks/chart-bar-BkiQa3FZ.js.map +0 -1
  379. package/dist/client/chunks/chart-config-area-Bvft9O_T.js.map +0 -1
  380. package/dist/client/chunks/chart-config-bar-OyxCyA3e.js.map +0 -1
  381. package/dist/client/chunks/chart-config-line-FKcg6zYi.js.map +0 -1
  382. package/dist/client/chunks/chart-config-measure-profile-Bw7okF4K.js.map +0 -1
  383. package/dist/client/chunks/chart-config-waterfall-D3xkuYph.js.map +0 -1
  384. package/dist/client/chunks/chart-line-CIsG5AVG.js +0 -122
  385. package/dist/client/chunks/chart-line-CIsG5AVG.js.map +0 -1
  386. package/dist/client/chunks/chart-measure-profile-B3bL3mfE.js.map +0 -1
  387. package/dist/client/chunks/chart-waterfall-bJ_W_eiJ.js.map +0 -1
  388. package/dist/client/chunks/chartRegistry-CVOMsXOK.js.map +0 -1
  389. package/dist/client/chunks/chartScaffolding-CBw7fDuD.js +0 -131
  390. package/dist/client/chunks/chartScaffolding-CBw7fDuD.js.map +0 -1
  391. package/dist/client/chunks/dashboardExport-Cz_5rWlF.js.map +0 -1
  392. package/dist/client/chunks/nl-NL-DtiGzigu.js.map +0 -1
  393. package/dist/client/chunks/useDirtyStateTracking-CesO_Xr8.js.map +0 -1
@@ -1,5 +1,5 @@
1
- import { X as e, Y as t, _ as n, b as r, g as i, h as a, m as o, p as s } from "./utils-2FhyAM0C.js";
2
- import { D as c, E as l, O as u, T as d } from "./mcp-transport-Dd8CiQTk.js";
1
+ import { X as e, Y as t, _ as n, b as r, g as i, h as a, m as o, p as s } from "./utils-BVIM2U0f.js";
2
+ import { D as c, E as l, O as u, T as d } from "./mcp-transport-D_PRLMFH.js";
3
3
  // src/server/agent/agent-prompts.ts
4
4
  var f = "You are an analyst agent working in a notebook backed by a drizzle-cube semantic layer.\n\nYour tools, in the order you normally use them:\n1) `discover_cubes` {topic|intent} — find cubes and understand the schema. Call this first.\n2) `get_cube_metadata` — full measure/dimension detail for every cube, when discover is not enough.\n3) `execute_query` — run a query and get results back, along with a `dataShape` summary.\n4) `add_markdown` — write the finding into the notebook.\n5) `add_portlet` — add the chart that shows it.\n6) `update_portlet` — amend a chart you already added, instead of adding a second one.\n7) `save_as_dashboard` — only when the user explicitly asks for a dashboard.\n\nCROSS-CUBE JOINS:\nThe \"joins\" property in discover results shows relationships between cubes.\nYou can include dimensions from ANY related cube in your query — the system auto-joins.\nExample: If Productivity joins to Employees, query:\n{ \"measures\": [\"Productivity.totalPullRequests\"], \"dimensions\": [\"Employees.name\"] }\n\nDo NOT hallucinate cube/field names — always use discover_cubes first.";
5
5
  // src/server/agent/system-prompt.ts
@@ -383,7 +383,7 @@ var ie = {
383
383
  defaultValue: !1,
384
384
  description: "chart.option.showSummary.description"
385
385
  };
386
- function T(e = !0) {
386
+ function oe(e = !0) {
387
387
  return {
388
388
  key: "showPoints",
389
389
  label: "chart.option.showPoints.label",
@@ -392,8 +392,27 @@ function T(e = !0) {
392
392
  description: "chart.option.showPoints.description"
393
393
  };
394
394
  }
395
- // src/client/components/charts/BarChart.config.ts
396
- var E = {
395
+ var T = {
396
+ key: "xAxisLabels",
397
+ label: "chart.option.xAxisLabels.label",
398
+ type: "buttonGroup",
399
+ defaultValue: "auto",
400
+ options: [
401
+ {
402
+ value: "auto",
403
+ label: "chart.option.xAxisLabels.auto"
404
+ },
405
+ {
406
+ value: "horizontal",
407
+ label: "chart.option.xAxisLabels.horizontal"
408
+ },
409
+ {
410
+ value: "angled",
411
+ label: "chart.option.xAxisLabels.angled"
412
+ }
413
+ ],
414
+ description: "chart.option.xAxisLabels.description"
415
+ }, E = {
397
416
  clickableElements: { bar: !0 },
398
417
  dropZones: [
399
418
  {
@@ -430,6 +449,7 @@ var E = {
430
449
  "hideHeader"
431
450
  ],
432
451
  displayOptionsConfig: [
452
+ T,
433
453
  re("chart.configText.how_to_stack_multiple_bar_series"),
434
454
  y,
435
455
  x,
@@ -473,8 +493,9 @@ var E = {
473
493
  "hideHeader"
474
494
  ],
475
495
  displayOptionsConfig: [
496
+ T,
476
497
  ae,
477
- T(),
498
+ oe(),
478
499
  b,
479
500
  x,
480
501
  y,
@@ -548,8 +569,9 @@ var E = {
548
569
  "hideHeader"
549
570
  ],
550
571
  displayOptionsConfig: [
572
+ T,
551
573
  ae,
552
- T(!1),
574
+ oe(!1),
553
575
  re("chart.configText.how_to_stack_multiple_area_series"),
554
576
  b,
555
577
  x,
@@ -557,7 +579,7 @@ var E = {
557
579
  S,
558
580
  C
559
581
  ]
560
- }, oe = {
582
+ }, se = {
561
583
  clickableElements: { slice: !0 },
562
584
  dropZones: [{
563
585
  key: "xAxis",
@@ -1599,7 +1621,7 @@ var E = {
1599
1621
  type: "axisFormat",
1600
1622
  description: "chart.configText.number_formatting_for_the_value_axis"
1601
1623
  }]
1602
- }, se = {
1624
+ }, J = {
1603
1625
  displayOptions: [
1604
1626
  "showGrid",
1605
1627
  "showTooltip",
@@ -1710,7 +1732,7 @@ var E = {
1710
1732
  description: "chart.option.xAxisFormat.description"
1711
1733
  }
1712
1734
  ]
1713
- }, J = {
1735
+ }, ce = {
1714
1736
  clickableElements: { bar: !0 },
1715
1737
  displayOptions: ["showTooltip", "hideHeader"],
1716
1738
  dropZones: [{
@@ -1731,6 +1753,7 @@ var E = {
1731
1753
  emptyText: "chart.waterfall.dropZone.yAxis.empty"
1732
1754
  }],
1733
1755
  displayOptionsConfig: [
1756
+ T,
1734
1757
  {
1735
1758
  key: "showTotal",
1736
1759
  label: "chart.option.showTotal.label",
@@ -1759,7 +1782,7 @@ var E = {
1759
1782
  description: "chart.configText.number_formatting_for_the_y_axis"
1760
1783
  }
1761
1784
  ]
1762
- }, ce = {
1785
+ }, le = {
1763
1786
  clickableElements: { bar: !0 },
1764
1787
  displayOptions: ["hideHeader"],
1765
1788
  dropZones: [{
@@ -1821,7 +1844,7 @@ var E = {
1821
1844
  description: "chart.configText.number_formatting_for_the_price_axis"
1822
1845
  }
1823
1846
  ]
1824
- }, le = {
1847
+ }, ue = {
1825
1848
  displayOptions: [
1826
1849
  "showLegend",
1827
1850
  "showTooltip",
@@ -1844,6 +1867,7 @@ var E = {
1844
1867
  emptyText: "chart.measureProfile.dropZone.series.empty"
1845
1868
  }],
1846
1869
  displayOptionsConfig: [
1870
+ T,
1847
1871
  {
1848
1872
  key: "showReferenceLineAtZero",
1849
1873
  label: "chart.option.showReferenceLineAtZero.label",
@@ -1893,7 +1917,7 @@ var E = {
1893
1917
  description: "chart.configText.number_formatting_for_the_y_axis"
1894
1918
  }
1895
1919
  ]
1896
- }, ue = {
1920
+ }, de = {
1897
1921
  dropZones: [{
1898
1922
  key: "xAxis",
1899
1923
  label: "chart.configText.category",
@@ -1951,7 +1975,7 @@ var E = {
1951
1975
  isValid: !1,
1952
1976
  message: "chart.proportionBar.validation.measureRequired"
1953
1977
  } : { isValid: !0 }
1954
- }, de = {
1978
+ }, fe = {
1955
1979
  clickableElements: {},
1956
1980
  displayOptions: ["hideHeader"],
1957
1981
  dropZones: [{
@@ -2007,7 +2031,7 @@ var E = {
2007
2031
  }, Y = {
2008
2032
  packageName: "recharts",
2009
2033
  installCommand: "npm install recharts"
2010
- }, fe = {
2034
+ }, pe = {
2011
2035
  bar: {
2012
2036
  label: "chart.bar.label",
2013
2037
  icon: "chartBar",
@@ -2015,7 +2039,7 @@ var E = {
2015
2039
  useCase: "chart.bar.useCase",
2016
2040
  isAvailable: _,
2017
2041
  dependencies: Y,
2018
- config: async () => (await import("./BarChart.config-By2FZ2kF.js")).barChartConfig
2042
+ config: async () => (await import("./BarChart.config-BL-JqfNl.js")).barChartConfig
2019
2043
  },
2020
2044
  line: {
2021
2045
  label: "chart.line.label",
@@ -2024,7 +2048,7 @@ var E = {
2024
2048
  useCase: "chart.line.useCase",
2025
2049
  isAvailable: _,
2026
2050
  dependencies: Y,
2027
- config: async () => (await import("./LineChart.config-C3g8_jPt.js")).lineChartConfig
2051
+ config: async () => (await import("./LineChart.config-77h_gmww.js")).lineChartConfig
2028
2052
  },
2029
2053
  area: {
2030
2054
  label: "chart.area.label",
@@ -2033,7 +2057,7 @@ var E = {
2033
2057
  useCase: "chart.area.useCase",
2034
2058
  isAvailable: _,
2035
2059
  dependencies: Y,
2036
- config: async () => (await import("./AreaChart.config-CiXadO2d.js")).areaChartConfig
2060
+ config: async () => (await import("./AreaChart.config-OSenKEDa.js")).areaChartConfig
2037
2061
  },
2038
2062
  pie: {
2039
2063
  label: "chart.pie.label",
@@ -2042,7 +2066,7 @@ var E = {
2042
2066
  useCase: "chart.pie.useCase",
2043
2067
  isAvailable: _,
2044
2068
  dependencies: Y,
2045
- config: async () => (await import("./PieChart.config-CIF81MzA.js")).pieChartConfig
2069
+ config: async () => (await import("./PieChart.config-tDcrCy6I.js")).pieChartConfig
2046
2070
  },
2047
2071
  scatter: {
2048
2072
  label: "chart.scatter.label",
@@ -2057,7 +2081,7 @@ var E = {
2057
2081
  reason: "chart.availability.scatter"
2058
2082
  } : { available: !0 },
2059
2083
  dependencies: Y,
2060
- config: async () => (await import("./ScatterChart.config-ClCGa8Lt.js")).scatterChartConfig
2084
+ config: async () => (await import("./ScatterChart.config-DE9FdKgm.js")).scatterChartConfig
2061
2085
  },
2062
2086
  bubble: {
2063
2087
  label: "chart.bubble.label",
@@ -2071,7 +2095,7 @@ var E = {
2071
2095
  available: !1,
2072
2096
  reason: "chart.availability.bubble"
2073
2097
  } : { available: !0 },
2074
- config: async () => (await import("./BubbleChart.config-CsgN3Ttr.js")).bubbleChartConfig
2098
+ config: async () => (await import("./BubbleChart.config-DCyaRccE.js")).bubbleChartConfig
2075
2099
  },
2076
2100
  radar: {
2077
2101
  label: "chart.radar.label",
@@ -2080,7 +2104,7 @@ var E = {
2080
2104
  useCase: "chart.radar.useCase",
2081
2105
  isAvailable: _,
2082
2106
  dependencies: Y,
2083
- config: async () => (await import("./RadarChart.config-BycPR9z8.js")).radarChartConfig
2107
+ config: async () => (await import("./RadarChart.config-DgscyxZj.js")).radarChartConfig
2084
2108
  },
2085
2109
  radialBar: {
2086
2110
  label: "chart.radialBar.label",
@@ -2089,7 +2113,7 @@ var E = {
2089
2113
  useCase: "chart.radialBar.useCase",
2090
2114
  isAvailable: _,
2091
2115
  dependencies: Y,
2092
- config: async () => (await import("./RadialBarChart.config-Di3ovQ4K.js")).radialBarChartConfig
2116
+ config: async () => (await import("./RadialBarChart.config-CstfMNyO.js")).radialBarChartConfig
2093
2117
  },
2094
2118
  treemap: {
2095
2119
  label: "chart.treemap.label",
@@ -2098,21 +2122,21 @@ var E = {
2098
2122
  useCase: "chart.treemap.useCase",
2099
2123
  isAvailable: _,
2100
2124
  dependencies: Y,
2101
- config: async () => (await import("./TreeMapChart.config-C12JqraB.js")).treemapChartConfig
2125
+ config: async () => (await import("./TreeMapChart.config-CxTQF8zN.js")).treemapChartConfig
2102
2126
  },
2103
2127
  table: {
2104
2128
  label: "chart.table.label",
2105
2129
  icon: "chartTable",
2106
2130
  description: "chart.table.description",
2107
2131
  useCase: "chart.table.useCase",
2108
- config: async () => (await import("./DataTable.config-DxYwamnu.js")).dataTableConfig
2132
+ config: async () => (await import("./DataTable.config-BWGLaGBR.js")).dataTableConfig
2109
2133
  },
2110
2134
  recordsTable: {
2111
2135
  label: "chart.recordsTable.label",
2112
2136
  icon: "chartRecordsTable",
2113
2137
  description: "chart.recordsTable.description",
2114
2138
  useCase: "chart.recordsTable.useCase",
2115
- config: async () => (await import("./RecordsTable.config-BadLMdUV.js")).recordsTableConfig
2139
+ config: async () => (await import("./RecordsTable.config-xWF_FwIf.js")).recordsTableConfig
2116
2140
  },
2117
2141
  activityGrid: {
2118
2142
  label: "chart.activityGrid.label",
@@ -2126,7 +2150,7 @@ var E = {
2126
2150
  available: !1,
2127
2151
  reason: "chart.availability.requiresTimeDimension"
2128
2152
  } : { available: !0 },
2129
- config: async () => (await import("./ActivityGridChart.config-CEwmvCjC.js")).activityGridChartConfig
2153
+ config: async () => (await import("./ActivityGridChart.config-CRStoJN7.js")).activityGridChartConfig
2130
2154
  },
2131
2155
  kpiNumber: {
2132
2156
  label: "chart.kpiNumber.label",
@@ -2134,7 +2158,7 @@ var E = {
2134
2158
  description: "chart.kpiNumber.description",
2135
2159
  useCase: "chart.kpiNumber.useCase",
2136
2160
  isAvailable: v,
2137
- config: async () => (await import("./KpiNumber.config-Bv9riES9.js")).kpiNumberConfig
2161
+ config: async () => (await import("./KpiNumber.config-DctOJjE-.js")).kpiNumberConfig
2138
2162
  },
2139
2163
  kpiDelta: {
2140
2164
  label: "chart.kpiDelta.label",
@@ -2142,7 +2166,7 @@ var E = {
2142
2166
  description: "chart.kpiDelta.description",
2143
2167
  useCase: "chart.kpiDelta.useCase",
2144
2168
  isAvailable: _,
2145
- config: async () => (await import("./KpiDelta.config-OsBjIc_V.js")).kpiDeltaConfig
2169
+ config: async () => (await import("./KpiDelta.config-BBGRf802.js")).kpiDeltaConfig
2146
2170
  },
2147
2171
  kpiText: {
2148
2172
  label: "chart.kpiText.label",
@@ -2150,14 +2174,14 @@ var E = {
2150
2174
  description: "chart.kpiText.description",
2151
2175
  useCase: "chart.kpiText.useCase",
2152
2176
  isAvailable: v,
2153
- config: async () => (await import("./KpiText.config-RnsCqsm9.js")).kpiTextConfig
2177
+ config: async () => (await import("./KpiText.config-BE67uez4.js")).kpiTextConfig
2154
2178
  },
2155
2179
  markdown: {
2156
2180
  label: "chart.markdown.label",
2157
2181
  icon: "chartMarkdown",
2158
2182
  description: "chart.markdown.description",
2159
2183
  useCase: "chart.markdown.useCase",
2160
- config: async () => (await import("./MarkdownChart.config-Jn4Zb-NH.js")).markdownConfig
2184
+ config: async () => (await import("./MarkdownChart.config-zHL8n3e_.js")).markdownConfig
2161
2185
  },
2162
2186
  funnel: {
2163
2187
  label: "chart.funnel.label",
@@ -2165,7 +2189,7 @@ var E = {
2165
2189
  description: "chart.funnel.description",
2166
2190
  useCase: "chart.funnel.useCase",
2167
2191
  dependencies: Y,
2168
- config: async () => (await import("./FunnelChart.config-DywH337V.js")).funnelChartConfig
2192
+ config: async () => (await import("./FunnelChart.config-F0r0WayB.js")).funnelChartConfig
2169
2193
  },
2170
2194
  sankey: {
2171
2195
  label: "chart.sankey.label",
@@ -2173,7 +2197,7 @@ var E = {
2173
2197
  description: "chart.sankey.description",
2174
2198
  useCase: "chart.sankey.useCase",
2175
2199
  dependencies: Y,
2176
- config: async () => (await import("./SankeyChart.config-CAXBtVXD.js")).sankeyChartConfig
2200
+ config: async () => (await import("./SankeyChart.config-CicdaFta.js")).sankeyChartConfig
2177
2201
  },
2178
2202
  sunburst: {
2179
2203
  label: "chart.sunburst.label",
@@ -2181,7 +2205,7 @@ var E = {
2181
2205
  description: "chart.sunburst.description",
2182
2206
  useCase: "chart.sunburst.useCase",
2183
2207
  dependencies: Y,
2184
- config: async () => (await import("./SunburstChart.config-bKBKmu4e.js")).sunburstChartConfig
2208
+ config: async () => (await import("./SunburstChart.config-BH1UDwp2.js")).sunburstChartConfig
2185
2209
  },
2186
2210
  heatmap: {
2187
2211
  label: "chart.heatmap.label",
@@ -2199,21 +2223,21 @@ var E = {
2199
2223
  packageName: "@nivo/heatmap",
2200
2224
  installCommand: "npm install @nivo/heatmap"
2201
2225
  },
2202
- config: async () => (await import("./HeatMapChart.config-BdCTMqLA.js")).heatmapChartConfig
2226
+ config: async () => (await import("./HeatMapChart.config-D4Q45Omu.js")).heatmapChartConfig
2203
2227
  },
2204
2228
  retentionHeatmap: {
2205
2229
  label: "chart.retentionHeatmap.label",
2206
2230
  icon: "chartRetention",
2207
2231
  description: "chart.retentionHeatmap.description",
2208
2232
  useCase: "chart.retentionHeatmap.useCase",
2209
- config: async () => (await import("./RetentionHeatmap.config-DVnwGs5p.js")).retentionHeatmapConfig
2233
+ config: async () => (await import("./RetentionHeatmap.config-BTX_CrZJ.js")).retentionHeatmapConfig
2210
2234
  },
2211
2235
  retentionCombined: {
2212
2236
  label: "chart.retentionCombined.label",
2213
2237
  icon: "chartRetention",
2214
2238
  description: "chart.retentionCombined.description",
2215
2239
  useCase: "chart.retentionCombined.useCase",
2216
- config: async () => (await import("./RetentionCombinedChart.config-OJsvPybR.js")).retentionCombinedConfig
2240
+ config: async () => (await import("./RetentionCombinedChart.config-BPFKAI0l.js")).retentionCombinedConfig
2217
2241
  },
2218
2242
  boxPlot: {
2219
2243
  label: "chart.boxPlot.label",
@@ -2221,7 +2245,7 @@ var E = {
2221
2245
  description: "chart.boxPlot.description",
2222
2246
  useCase: "chart.boxPlot.useCase",
2223
2247
  isAvailable: _,
2224
- config: async () => (await import("./BoxPlotChart.config-CepOeLm6.js")).boxPlotChartConfig
2248
+ config: async () => (await import("./BoxPlotChart.config-En2W9sCn.js")).boxPlotChartConfig
2225
2249
  },
2226
2250
  dotStrip: {
2227
2251
  label: "chart.dotStrip.label",
@@ -2229,7 +2253,7 @@ var E = {
2229
2253
  description: "chart.dotStrip.description",
2230
2254
  useCase: "chart.dotStrip.useCase",
2231
2255
  isAvailable: _,
2232
- config: async () => (await import("./DotStripChart.config-DTO7E6Ya.js")).dotStripChartConfig
2256
+ config: async () => (await import("./DotStripChart.config-JPHZAfHq.js")).dotStripChartConfig
2233
2257
  },
2234
2258
  waterfall: {
2235
2259
  label: "chart.waterfall.label",
@@ -2238,7 +2262,7 @@ var E = {
2238
2262
  useCase: "chart.waterfall.useCase",
2239
2263
  isAvailable: _,
2240
2264
  dependencies: Y,
2241
- config: async () => (await import("./WaterfallChart.config-C5kwn5iF.js")).waterfallChartConfig
2265
+ config: async () => (await import("./WaterfallChart.config-CtiVue_6.js")).waterfallChartConfig
2242
2266
  },
2243
2267
  candlestick: {
2244
2268
  label: "chart.candlestick.label",
@@ -2252,7 +2276,7 @@ var E = {
2252
2276
  available: !1,
2253
2277
  reason: "chart.availability.requiresDimension"
2254
2278
  } : { available: !0 },
2255
- config: async () => (await import("./CandlestickChart.config-DCeUTeiy.js")).candlestickChartConfig
2279
+ config: async () => (await import("./CandlestickChart.config-DkJ3DZBF.js")).candlestickChartConfig
2256
2280
  },
2257
2281
  measureProfile: {
2258
2282
  label: "chart.measureProfile.label",
@@ -2264,7 +2288,7 @@ var E = {
2264
2288
  reason: "chart.availability.requiresTwoMeasures"
2265
2289
  } : { available: !0 },
2266
2290
  dependencies: Y,
2267
- config: async () => (await import("./MeasureProfileChart.config-BfKPTnqR.js")).measureProfileChartConfig
2291
+ config: async () => (await import("./MeasureProfileChart.config-YFdPWnN0.js")).measureProfileChartConfig
2268
2292
  },
2269
2293
  proportionBar: {
2270
2294
  label: "chart.proportionBar.label",
@@ -2272,7 +2296,7 @@ var E = {
2272
2296
  description: "chart.proportionBar.description",
2273
2297
  useCase: "chart.proportionBar.useCase",
2274
2298
  isAvailable: _,
2275
- config: async () => (await import("./ProportionBarChart.config-BmTVGcQW.js")).proportionBarChartConfig
2299
+ config: async () => (await import("./ProportionBarChart.config-BpUzsBL5.js")).proportionBarChartConfig
2276
2300
  },
2277
2301
  gauge: {
2278
2302
  label: "chart.gauge.label",
@@ -2280,10 +2304,10 @@ var E = {
2280
2304
  description: "chart.gauge.description",
2281
2305
  useCase: "chart.gauge.useCase",
2282
2306
  isAvailable: v,
2283
- config: async () => (await import("./GaugeChart.config-B649tVKp.js")).gaugeChartConfig
2307
+ config: async () => (await import("./GaugeChart.config-DXdvqUYH.js")).gaugeChartConfig
2284
2308
  }
2285
2309
  };
2286
- function pe(e, t) {
2310
+ function me(e, t) {
2287
2311
  return {
2288
2312
  ...t,
2289
2313
  label: e.label,
@@ -2293,11 +2317,11 @@ function pe(e, t) {
2293
2317
  };
2294
2318
  }
2295
2319
  // src/client/charts/chartConfigRegistry.ts
2296
- var me = {
2320
+ var he = {
2297
2321
  bar: E,
2298
2322
  line: D,
2299
2323
  area: O,
2300
- pie: oe,
2324
+ pie: se,
2301
2325
  scatter: k,
2302
2326
  bubble: A,
2303
2327
  radar: j,
@@ -2317,16 +2341,16 @@ var me = {
2317
2341
  retentionHeatmap: G,
2318
2342
  retentionCombined: K,
2319
2343
  boxPlot: q,
2320
- dotStrip: se,
2321
- waterfall: J,
2322
- candlestick: ce,
2323
- measureProfile: le,
2324
- proportionBar: ue,
2325
- gauge: de
2326
- }, he = Object.fromEntries(Object.keys(fe).map((e) => [e, pe(fe[e], me[e])]));
2344
+ dotStrip: J,
2345
+ waterfall: ce,
2346
+ candlestick: le,
2347
+ measureProfile: ue,
2348
+ proportionBar: de,
2349
+ gauge: fe
2350
+ }, ge = Object.fromEntries(Object.keys(pe).map((e) => [e, me(pe[e], he[e])]));
2327
2351
  // src/server/agent/chart-validation.ts
2328
2352
  function X(e, t) {
2329
- return t?.[e] ?? he[e];
2353
+ return t?.[e] ?? ge[e];
2330
2354
  }
2331
2355
  function Z(e) {
2332
2356
  return Array.isArray(e) ? e.length > 0 : !!e;
@@ -2335,7 +2359,7 @@ function Q(e) {
2335
2359
  let t = e.timeDimensions ?? [];
2336
2360
  return e.ungrouped ? t : t.filter((e) => !!e.granularity);
2337
2361
  }
2338
- function ge(t, n, r, i) {
2362
+ function _e(t, n, r, i) {
2339
2363
  for (let a of t.dropZones) {
2340
2364
  if (!a.mandatory || Z(r?.[a.key])) continue;
2341
2365
  let t = a.acceptTypes?.join("/") ?? "fields";
@@ -2347,35 +2371,35 @@ function ge(t, n, r, i) {
2347
2371
  }));
2348
2372
  }
2349
2373
  }
2350
- function _e(t, n, r) {
2374
+ function ve(t, n, r) {
2351
2375
  if (Z(t?.xAxis)) return;
2352
2376
  let i = n.dimensions ?? [], a = Q(n), o = i.length > 0 || a.length > 0;
2353
2377
  r.push(e(o ? "server.validation.chart.barXAxisRequired" : "server.validation.chart.barNeedsDimension"));
2354
2378
  }
2355
- function ve(e) {
2379
+ function ye(e) {
2356
2380
  return Array.isArray(e) ? e : [e];
2357
2381
  }
2358
- function ye(t, n) {
2382
+ function be(t, n) {
2359
2383
  if (!t?.xAxis || !t?.series) return;
2360
- let r = new Set(ve(t.xAxis)), i = ve(t.series).filter((e) => r.has(e));
2384
+ let r = new Set(ye(t.xAxis)), i = ye(t.series).filter((e) => r.has(e));
2361
2385
  i.length > 0 && n.push(e("server.validation.chart.seriesDuplicatesXAxis", { duplicates: i.join(", ") }));
2362
2386
  }
2363
- function be(t, n, r, i) {
2387
+ function xe(t, n, r, i) {
2364
2388
  t.recordGrain === !0 && r.ungrouped !== !0 && i.push(e("server.validation.chart.recordGrainNeedsUngrouped", { chartType: n }));
2365
2389
  }
2366
- function xe(e, t, n, r) {
2390
+ function Se(e, t, n, r) {
2367
2391
  let i = X(e, r);
2368
2392
  if (!i || i.skipQuery) return {
2369
2393
  isValid: !0,
2370
2394
  errors: []
2371
2395
  };
2372
2396
  let a = [];
2373
- return ge(i, e, t, a), be(i, e, n, a), e === "bar" && _e(t, n, a), ye(t, a), {
2397
+ return _e(i, e, t, a), xe(i, e, n, a), e === "bar" && ve(t, n, a), be(t, a), {
2374
2398
  isValid: a.length === 0,
2375
2399
  errors: a
2376
2400
  };
2377
2401
  }
2378
- function Se(e, t, n) {
2402
+ function Ce(e, t, n) {
2379
2403
  if (e !== "bar" || Z(t?.xAxis)) return { chartType: e };
2380
2404
  let r = n.dimensions ?? [], i = Q(n);
2381
2405
  if (r.length > 0 || i.length > 0) return { chartType: e };
@@ -2385,7 +2409,7 @@ function Se(e, t, n) {
2385
2409
  note: `Note: chartType was changed from "bar" to "${a}" because the query has no dimension, so a bar chart would have no category axis to label its bars. For a real bar chart, put the category in the query's dimensions and use a single measure. To plot several measures as an ordered profile instead, use "measureProfile".`
2386
2410
  };
2387
2411
  }
2388
- function Ce(e, t, n, r) {
2412
+ function we(e, t, n, r) {
2389
2413
  if (!(e.acceptTypes ?? []).includes("measure")) return;
2390
2414
  let i = /* @__PURE__ */ new Set();
2391
2415
  for (let r of t.dropZones) {
@@ -2396,7 +2420,7 @@ function Ce(e, t, n, r) {
2396
2420
  let a = r.filter((e) => !i.has(e));
2397
2421
  a.length > 0 && (n[e.key] = a[0]);
2398
2422
  }
2399
- function we(e, t) {
2423
+ function Te(e, t) {
2400
2424
  let n = /* @__PURE__ */ new Set();
2401
2425
  for (let [r, i] of Object.entries(e)) if (r !== t) {
2402
2426
  if (Array.isArray(i)) for (let e of i) typeof e == "string" && n.add(e);
@@ -2404,15 +2428,15 @@ function we(e, t) {
2404
2428
  }
2405
2429
  return n;
2406
2430
  }
2407
- function Te(e, t, n) {
2431
+ function Ee(e, t, n) {
2408
2432
  let r = e.acceptTypes ?? [], i = [];
2409
2433
  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;
2410
- let a = we(t, e.key), o = i.filter((e) => !a.has(e));
2434
+ let a = Te(t, e.key), o = i.filter((e) => !a.has(e));
2411
2435
  if (o.length === 0) return;
2412
2436
  let s = e.maxItems ?? 1e400, c = o.slice(0, s);
2413
2437
  c.length > 0 && (t[e.key] = c);
2414
2438
  }
2415
- function Ee(e, t, n, r) {
2439
+ function De(e, t, n, r) {
2416
2440
  let i = X(e, r);
2417
2441
  if (!i) return t ?? {};
2418
2442
  let a = { ...t }, o = Q(n), s = {
@@ -2420,18 +2444,18 @@ function Ee(e, t, n, r) {
2420
2444
  dimensions: n.dimensions ?? [],
2421
2445
  timeDimFields: o.map((e) => e.dimension)
2422
2446
  };
2423
- for (let e of i.dropZones) e.excludeFromInference || Z(a[e.key]) || (e.key === "sizeField" || e.key === "colorField" ? Ce(e, i, a, s.measures) : Te(e, a, s));
2447
+ for (let e of i.dropZones) e.excludeFromInference || Z(a[e.key]) || (e.key === "sizeField" || e.key === "colorField" ? we(e, i, a, s.measures) : Ee(e, a, s));
2424
2448
  return a;
2425
2449
  }
2426
- function De(n) {
2450
+ function Oe(n) {
2427
2451
  return n ? t(n) ? e(n) : n : "";
2428
2452
  }
2429
- function Oe(e, t) {
2453
+ function ke(e, t) {
2430
2454
  let n = ["\nChart config requirements by type:"];
2431
2455
  for (let r of e) {
2432
2456
  let e = X(r, t);
2433
2457
  if (!e) continue;
2434
- let i = [De(e.description), De(e.useCase)].filter(Boolean).join(". "), a = i ? ` — ${i}.` : "", o = e.recordGrain === !0 ? " Query MUST set \"ungrouped\": true, which also means one cube plus its to-one joins — an ungrouped query cannot span a hasMany relationship." : "", s = e.dropZones.filter((e) => e.mandatory);
2458
+ let i = [Oe(e.description), Oe(e.useCase)].filter(Boolean).join(". "), a = i ? ` — ${i}.` : "", o = e.recordGrain === !0 ? " Query MUST set \"ungrouped\": true, which also means one cube plus its to-one joins — an ungrouped query cannot span a hasMany relationship." : "", s = e.dropZones.filter((e) => e.mandatory);
2435
2459
  if (s.length === 0 && !e.skipQuery) {
2436
2460
  n.push(` ${r}${a}${o} chartConfig auto-inferred from query.`);
2437
2461
  continue;
@@ -2449,7 +2473,7 @@ function Oe(e, t) {
2449
2473
  return n.join("\n");
2450
2474
  }
2451
2475
  // src/server/agent/data-shape.ts
2452
- function ke(e, t, n, r) {
2476
+ function Ae(e, t, n, r) {
2453
2477
  let i = /* @__PURE__ */ new Set(), a = 0, o, s, c = !0;
2454
2478
  for (let n of e) {
2455
2479
  let e = n[t];
@@ -2473,33 +2497,33 @@ function ke(e, t, n, r) {
2473
2497
  } : {}
2474
2498
  };
2475
2499
  }
2476
- function Ae(e, t) {
2500
+ function je(e, t) {
2477
2501
  if (e.length === 0) return [];
2478
2502
  let n = [], r = /* @__PURE__ */ new Set(), i = [
2479
2503
  ["dimension", t?.dimensions],
2480
2504
  ["timeDimension", t?.timeDimensions],
2481
2505
  ["measure", t?.measures]
2482
2506
  ];
2483
- for (let [t, a] of i) for (let [i, o] of Object.entries(a ?? {})) r.add(i), n.push(ke(e, i, t, o?.type));
2484
- for (let t of Object.keys(e[0])) r.has(t) || n.push(ke(e, t, "dimension", void 0));
2507
+ for (let [t, a] of i) for (let [i, o] of Object.entries(a ?? {})) r.add(i), n.push(Ae(e, i, t, o?.type));
2508
+ for (let t of Object.keys(e[0])) r.has(t) || n.push(Ae(e, t, "dimension", void 0));
2485
2509
  return n;
2486
2510
  }
2487
2511
  // src/shared/query-shape.ts
2488
- function je(e) {
2512
+ function Me(e) {
2489
2513
  if (!e || typeof e != "object") return !1;
2490
2514
  let t = (e) => Array.isArray(e) ? e.length : 0;
2491
2515
  return t(e.measures) > 0 || t(e.dimensions) > 0 || t(e.timeDimensions) > 0;
2492
2516
  }
2493
2517
  // src/server/agent/tools.ts
2494
- var Me = "With a query attached, `content` is rendered as a Knap template over the result rows. Variables: `rows` (rows keyed by snake_case alias, so Employees.avgSalary becomes employees_avg_salary), `labelled` (same rows keyed by field label — use this for `{{ labelled | table }}` so column headers read well), `data` (raw rows, addressed as `{{ data[0][\"Employees.count\"] }}`), `rowCount`, `first` and `last`. Filters include sum, map, join, length, sort, reverse, slice, round, number_format, date and table. Example: `We employ {{ rows | map:\"employees_count\" | sum }} people across {{ rowCount }} teams.` A template cannot sort and then index, so rely on the query's own order via `first` and `last`.", Ne = /* @__PURE__ */ "bar.line.area.pie.scatter.radar.bubble.table.kpiNumber.kpiDelta.kpiText.funnel.heatmap.sankey.sunburst.retentionHeatmap.retentionCombined.boxPlot.markdown.recordsTable.treemap.radialBar.proportionBar.dotStrip.waterfall.measureProfile.activityGrid.gauge.candlestick".split(".");
2495
- function Pe(e = []) {
2496
- return [.../* @__PURE__ */ new Set([...Ne, ...e.map((e) => e.type)])];
2497
- }
2518
+ var Ne = "With a query attached, `content` is rendered as a Knap template over the result rows. Variables: `rows` (rows keyed by snake_case alias, so Employees.avgSalary becomes employees_avg_salary), `labelled` (same rows keyed by field label — use this for `{{ labelled | table }}` so column headers read well), `data` (raw rows, addressed as `{{ data[0][\"Employees.count\"] }}`), `rowCount`, `first` and `last`. Filters include sum, map, join, length, sort, reverse, slice, round, number_format, date and table. Example: `We employ {{ rows | map:\"employees_count\" | sum }} people across {{ rowCount }} teams.` A template cannot sort and then index, so rely on the query's own order via `first` and `last`.", Pe = /* @__PURE__ */ "bar.line.area.pie.scatter.radar.bubble.table.kpiNumber.kpiDelta.kpiText.funnel.heatmap.sankey.sunburst.retentionHeatmap.retentionCombined.boxPlot.markdown.recordsTable.treemap.radialBar.proportionBar.dotStrip.waterfall.measureProfile.activityGrid.gauge.candlestick".split(".");
2498
2519
  function Fe(e = []) {
2520
+ return [.../* @__PURE__ */ new Set([...Pe, ...e.map((e) => e.type)])];
2521
+ }
2522
+ function Ie(e = []) {
2499
2523
  return Object.fromEntries(e.map((e) => [e.type, e.config]));
2500
2524
  }
2501
- function Ie(e = {}) {
2502
- let t = Pe(e.chartTypes), n = Fe(e.chartTypes);
2525
+ function Le(e = {}) {
2526
+ let t = Fe(e.chartTypes), n = Ie(e.chartTypes);
2503
2527
  return [
2504
2528
  {
2505
2529
  name: "discover_cubes",
@@ -2544,7 +2568,7 @@ function Ie(e = {}) {
2544
2568
  },
2545
2569
  {
2546
2570
  name: "add_portlet",
2547
- description: "Add a chart visualization to the notebook.\n" + Oe(t, n) + "\nThe query is validated before adding. The portlet fetches its own data.",
2571
+ description: "Add a chart visualization to the notebook.\n" + ke(t, n) + "\nThe query is validated before adding. The portlet fetches its own data.",
2548
2572
  parameters: {
2549
2573
  type: "object",
2550
2574
  properties: {
@@ -2600,7 +2624,7 @@ function Ie(e = {}) {
2600
2624
  },
2601
2625
  content: {
2602
2626
  type: "string",
2603
- description: "Markdown body, for the \"markdown\" chart type. " + Me
2627
+ description: "Markdown body, for the \"markdown\" chart type. " + Ne
2604
2628
  },
2605
2629
  ...c,
2606
2630
  ...u
@@ -2728,7 +2752,7 @@ function Ie(e = {}) {
2728
2752
  },
2729
2753
  displayConfig: {
2730
2754
  type: "object",
2731
- description: "Chart display configuration (for markdown: { content, hideHeader, transparentBackground, autoHeight }). " + Me,
2755
+ description: "Chart display configuration (for markdown: { content, hideHeader, transparentBackground, autoHeight }). " + Ne,
2732
2756
  properties: {
2733
2757
  ...c,
2734
2758
  ...u
@@ -2840,8 +2864,8 @@ function Ie(e = {}) {
2840
2864
  }
2841
2865
  ];
2842
2866
  }
2843
- function Le(e) {
2844
- let { semanticLayer: t, securityContext: n } = e, r = Fe(e.chartTypes), i = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map();
2867
+ function Re(e) {
2868
+ let { semanticLayer: t, securityContext: n } = e, r = Ie(e.chartTypes), i = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map();
2845
2869
  i.set("discover_cubes", async (e) => {
2846
2870
  let r = { cubes: (await s(t, n, {
2847
2871
  topic: e.topic,
@@ -2906,7 +2930,7 @@ function Le(e) {
2906
2930
  rowCount: a.data.length,
2907
2931
  data: s,
2908
2932
  truncated: a.data.length > s.length,
2909
- dataShape: Ae(s, a.annotation),
2933
+ dataShape: je(s, a.annotation),
2910
2934
  annotation: a.annotation
2911
2935
  }) + "\n[IMPORTANT: Your next response MUST start with a brief text message BEFORE any tool calls. Now call add_markdown and add_portlet to visualize these results.]" };
2912
2936
  } catch (t) {
@@ -2943,9 +2967,9 @@ function Le(e) {
2943
2967
  let c = !!(o.funnel || o.flow || o.retention), l, u = i, d;
2944
2968
  if (c) l = e.chartConfig ?? {};
2945
2969
  else {
2946
- let t = Se(i, e.chartConfig, o);
2970
+ let t = Ce(i, e.chartConfig, o);
2947
2971
  u = t.chartType, d = t.note;
2948
- let n = Ee(u, e.chartConfig, o, r), a = xe(u, n, o, r);
2972
+ let n = De(u, e.chartConfig, o, r), a = Se(u, n, o, r);
2949
2973
  if (!a.isValid) return { error: `Chart config invalid — fix these errors and retry:\n${a.errors.join("\n")}\n\nchartType: ${u}\nAttempted chartConfig:\n${JSON.stringify(n, null, 2)}\n\nQuery:\n${JSON.stringify(o, null, 2)}` };
2950
2974
  l = n;
2951
2975
  }
@@ -3050,7 +3074,7 @@ function Le(e) {
3050
3074
  o.push(`Portlet "${e.title}": invalid JSON query`);
3051
3075
  continue;
3052
3076
  }
3053
- if (d = a(d), l && !je(d)) continue;
3077
+ if (d = a(d), l && !Me(d)) continue;
3054
3078
  let f = t.validateQuery(d, n);
3055
3079
  if (!f.isValid) {
3056
3080
  o.push(`Portlet "${e.title}": ${f.errors.join(", ")}`);
@@ -3060,7 +3084,7 @@ function Le(e) {
3060
3084
  c.set(e, i);
3061
3085
  continue;
3062
3086
  }
3063
- let p = Se(i, e.chartConfig, d).chartType, m = Ee(p, e.chartConfig, d, r), h = xe(p, m, d, r);
3087
+ let p = Ce(i, e.chartConfig, d).chartType, m = De(p, e.chartConfig, d, r), h = Se(p, m, d, r);
3064
3088
  h.isValid ? (s.set(e, m), c.set(e, p)) : o.push(`Portlet "${e.title}": ${h.errors.join(", ")}`);
3065
3089
  }
3066
3090
  if (o.length > 0) return {
@@ -3084,7 +3108,7 @@ function Le(e) {
3084
3108
  chartConfig: s.get(e) ?? e.chartConfig ?? {},
3085
3109
  displayConfig: e.displayConfig || {}
3086
3110
  } },
3087
- query: n && !je(o) ? {} : o
3111
+ query: n && !Me(o) ? {} : o
3088
3112
  };
3089
3113
  return {
3090
3114
  id: e.id,
@@ -3120,14 +3144,14 @@ function Le(e) {
3120
3144
  }), i;
3121
3145
  }
3122
3146
  // src/server/agent/providers/factory.ts
3123
- async function Re(e, t, n) {
3147
+ async function ze(e, t, n) {
3124
3148
  switch (e) {
3125
3149
  case "anthropic": {
3126
3150
  let { AnthropicProvider: e } = await import("./anthropic-DwvYGfxl.js");
3127
3151
  return new e(t);
3128
3152
  }
3129
3153
  case "openai": {
3130
- let { OpenAIProvider: e } = await import("./openai-DedOllZH.js");
3154
+ let { OpenAIProvider: e } = await import("./openai-f29v_-Jd.js");
3131
3155
  return new e(t, n);
3132
3156
  }
3133
3157
  case "google": {
@@ -3138,7 +3162,7 @@ async function Re(e, t, n) {
3138
3162
  }
3139
3163
  }
3140
3164
  // src/server/agent/handler-steps.ts
3141
- function ze(e, t) {
3165
+ function Be(e, t) {
3142
3166
  if (Array.isArray(t)) for (let n of t) e.push(n);
3143
3167
  else e.push(t);
3144
3168
  }
@@ -3147,7 +3171,7 @@ function $(e) {
3147
3171
  e();
3148
3172
  } catch {}
3149
3173
  }
3150
- function Be(e, t) {
3174
+ function Ve(e, t) {
3151
3175
  let n = [];
3152
3176
  if (!e || e.length === 0) return n;
3153
3177
  for (let r of e) {
@@ -3180,7 +3204,7 @@ function Be(e, t) {
3180
3204
  content: typeof e.result == "string" ? e.result : JSON.stringify(e.result ?? ""),
3181
3205
  isError: e.status === "error"
3182
3206
  }));
3183
- ze(n, t.formatToolResults(i));
3207
+ Be(n, t.formatToolResults(i));
3184
3208
  } else e.length > 0 && n.push({
3185
3209
  role: "assistant",
3186
3210
  content: r.content
@@ -3188,22 +3212,22 @@ function Be(e, t) {
3188
3212
  }
3189
3213
  return n;
3190
3214
  }
3191
- function Ve(e, t) {
3215
+ function He(e, t) {
3192
3216
  if (e?.type === "tool_use" && t) try {
3193
3217
  e.input = JSON.parse(t);
3194
3218
  } catch {
3195
3219
  e.input = {}, e.inputParseError = !0;
3196
3220
  }
3197
3221
  }
3198
- function He(e, t) {
3222
+ function Ue(e, t) {
3199
3223
  let n = e.contentBlocks[e.contentBlocks.length - 1];
3200
3224
  n && n.type === "text" ? n.text = (n.text || "") + t : e.contentBlocks.push({
3201
3225
  type: "text",
3202
3226
  text: t
3203
3227
  });
3204
3228
  }
3205
- function Ue(e, t) {
3206
- e.currentBlockIsToolUse && e.currentToolInputJson && Ve(e.contentBlocks[e.contentBlocks.length - 1], e.currentToolInputJson), e.contentBlocks.push({
3229
+ function We(e, t) {
3230
+ e.currentBlockIsToolUse && e.currentToolInputJson && He(e.contentBlocks[e.contentBlocks.length - 1], e.currentToolInputJson), e.contentBlocks.push({
3207
3231
  type: "tool_use",
3208
3232
  id: t.id,
3209
3233
  name: t.name,
@@ -3211,16 +3235,16 @@ function Ue(e, t) {
3211
3235
  ...t.metadata ? { metadata: t.metadata } : {}
3212
3236
  }), e.currentToolInputJson = "", e.currentBlockIsToolUse = !0;
3213
3237
  }
3214
- function We(e, t) {
3238
+ function Ge(e, t) {
3215
3239
  if (t.id && t.input) {
3216
3240
  let n = e.contentBlocks.find((e) => e.type === "tool_use" && e.id === t.id);
3217
3241
  n && (n.input = t.input, t.parseError && (n.inputParseError = !0));
3218
3242
  } else if (e.currentBlockIsToolUse) {
3219
3243
  let t = e.contentBlocks[e.contentBlocks.length - 1];
3220
- t?.type === "tool_use" && e.currentToolInputJson && (Ve(t, e.currentToolInputJson), e.currentToolInputJson = ""), e.currentBlockIsToolUse = !1;
3244
+ t?.type === "tool_use" && e.currentToolInputJson && (He(t, e.currentToolInputJson), e.currentToolInputJson = ""), e.currentBlockIsToolUse = !1;
3221
3245
  }
3222
3246
  }
3223
- async function* Ge(e, t) {
3247
+ async function* Ke(e, t) {
3224
3248
  let n = {
3225
3249
  contentBlocks: [],
3226
3250
  currentToolInputJson: "",
@@ -3231,13 +3255,13 @@ async function* Ge(e, t) {
3231
3255
  let e = r;
3232
3256
  switch (e.type) {
3233
3257
  case "text_delta":
3234
- He(n, e.text), yield {
3258
+ Ue(n, e.text), yield {
3235
3259
  type: "text_delta",
3236
3260
  data: e.text
3237
3261
  };
3238
3262
  break;
3239
3263
  case "tool_use_start":
3240
- Ue(n, e), yield {
3264
+ We(n, e), yield {
3241
3265
  type: "tool_use_start",
3242
3266
  data: {
3243
3267
  id: e.id,
@@ -3250,7 +3274,7 @@ async function* Ge(e, t) {
3250
3274
  n.currentToolInputJson += e.json;
3251
3275
  break;
3252
3276
  case "tool_use_end":
3253
- We(n, e);
3277
+ Ge(n, e);
3254
3278
  break;
3255
3279
  case "message_meta": e.inputTokens != null && (n.inputTokens = e.inputTokens), e.outputTokens != null && (n.outputTokens = e.outputTokens), e.stopReason && (n.stopReason = e.stopReason);
3256
3280
  }
@@ -3262,7 +3286,7 @@ async function* Ge(e, t) {
3262
3286
  outputTokens: n.outputTokens
3263
3287
  };
3264
3288
  }
3265
- async function* Ke(e, t) {
3289
+ async function* qe(e, t) {
3266
3290
  let { executor: n, observability: r, traceId: i, turn: a } = t, o = e.name, s = e.input || {}, c = e.id;
3267
3291
  if (e.inputParseError) {
3268
3292
  let e = `Could not parse the arguments you sent for ${o} — they were not valid JSON, so the tool was not run. Call it again with well-formed JSON arguments.`;
@@ -3353,25 +3377,25 @@ async function* Ke(e, t) {
3353
3377
  };
3354
3378
  }
3355
3379
  }
3356
- async function* qe(e, t) {
3380
+ async function* Je(e, t) {
3357
3381
  let n = [];
3358
3382
  for (let r of e) {
3359
3383
  if (r.type !== "tool_use") continue;
3360
- let e = yield* Ke(r, t);
3384
+ let e = yield* qe(r, t);
3361
3385
  n.push(e);
3362
3386
  }
3363
3387
  return n;
3364
3388
  }
3365
3389
  // src/server/agent/handler.ts
3366
- var Je = {
3390
+ var Ye = {
3367
3391
  anthropic: "claude-sonnet-4-6",
3368
3392
  openai: "gpt-4.1-mini",
3369
3393
  google: "gemini-3-flash-preview"
3370
3394
  };
3371
- async function* Ye(t) {
3372
- 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 = o.llmProvider, p = t.providerOverride || o.provider || "anthropic", m = f ? "custom" : p, h = f ? o.model || "" : t.modelOverride || o.model || Je[p] || "claude-sonnet-4-6", ee = t.baseURLOverride || o.baseURL, te = o.maxTurns || 25, g = o.maxTokens || 8192, _;
3395
+ async function* Xe(t) {
3396
+ 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 = o.llmProvider, p = t.providerOverride || o.provider || "anthropic", m = f ? "custom" : p, h = f ? o.model || "" : t.modelOverride || o.model || Ye[p] || "claude-sonnet-4-6", ee = t.baseURLOverride || o.baseURL, te = o.maxTurns || 25, g = o.maxTokens || 8192, _;
3373
3397
  try {
3374
- _ = f ?? await Re(p, s, { baseURL: ee });
3398
+ _ = f ?? await ze(p, s, { baseURL: ee });
3375
3399
  } catch (t) {
3376
3400
  console.error("[agent] Failed to create %s provider: %s", String(m).replace(/\n|\r/g, ""), String(t instanceof Error ? t.message : t).replace(/\n|\r/g, "")), yield {
3377
3401
  type: "error",
@@ -3379,7 +3403,7 @@ async function* Ye(t) {
3379
3403
  };
3380
3404
  return;
3381
3405
  }
3382
- let v = Ie({ chartTypes: o.chartTypes }), y = Le({
3406
+ let v = Le({ chartTypes: o.chartTypes }), y = Re({
3383
3407
  semanticLayer: i,
3384
3408
  securityContext: a,
3385
3409
  chartTypes: o.chartTypes
@@ -3391,7 +3415,7 @@ async function* Ye(t) {
3391
3415
  model: h,
3392
3416
  historyLength: r?.length ?? 0
3393
3417
  }));
3394
- let x = Be(r, _);
3418
+ let x = Ve(r, _);
3395
3419
  x.push({
3396
3420
  role: "user",
3397
3421
  content: n
@@ -3406,7 +3430,7 @@ async function* Ye(t) {
3406
3430
  system: b,
3407
3431
  tools: v,
3408
3432
  messages: x
3409
- }), r = Date.now(), { contentBlocks: i, stopReason: a, inputTokens: o, outputTokens: s } = yield* Ge(_, n);
3433
+ }), r = Date.now(), { contentBlocks: i, stopReason: a, inputTokens: o, outputTokens: s } = yield* Ke(_, n);
3410
3434
  if ($(() => l?.onGenerationEnd?.({
3411
3435
  traceId: u,
3412
3436
  turn: t,
@@ -3428,7 +3452,7 @@ async function* Ye(t) {
3428
3452
  break;
3429
3453
  }
3430
3454
  if (!_.shouldContinue(a)) break;
3431
- let c = yield* qe(i, {
3455
+ let c = yield* Je(i, {
3432
3456
  executor: y,
3433
3457
  observability: l,
3434
3458
  traceId: u,
@@ -3437,7 +3461,7 @@ async function* Ye(t) {
3437
3461
  yield {
3438
3462
  type: "turn_complete",
3439
3463
  data: {}
3440
- }, ze(x, _.formatToolResults(c));
3464
+ }, Be(x, _.formatToolResults(c));
3441
3465
  }
3442
3466
  $(() => l?.onChatEnd?.({
3443
3467
  traceId: u,
@@ -3467,4 +3491,4 @@ async function* Ye(t) {
3467
3491
  };
3468
3492
  }
3469
3493
  }
3470
- export { j as C, O as D, oe as E, D as O, M as S, k as T, L as _, J as a, P as b, K as c, U as d, H as f, R as g, z as h, Ye as handleAgentChat, ce as i, E as k, G as l, B as m, ue as n, se as o, V as p, le as r, q as s, de as t, W as u, I as v, A as w, N as x, F as y };
3494
+ export { j as C, O as D, se as E, D as O, M as S, k as T, L as _, ce as a, P as b, K as c, U as d, H as f, R as g, z as h, Xe as handleAgentChat, le as i, E as k, G as l, B as m, de as n, J as o, V as p, ue as r, q as s, fe as t, W as u, I as v, A as w, N as x, F as y };