drizzle-cube 0.15.3 → 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 (407) 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-wxp9kYXx.js → cors-headers-BtxruIvb.js} +12 -3
  64. package/dist/adapters/{cors-headers-BpUSnY3k.cjs → cors-headers-C-cQjvVu.cjs} +2 -2
  65. package/dist/adapters/express/index.cjs +1 -1
  66. package/dist/adapters/express/index.js +6 -6
  67. package/dist/adapters/fastify/index.cjs +1 -1
  68. package/dist/adapters/fastify/index.js +6 -6
  69. package/dist/adapters/{handler-g08Gglrb.js → handler-Bt51aMjp.js} +224 -200
  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 +5 -5
  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 +6 -6
  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/cjs/server/agent/handler.d.ts +1 -0
  111. package/dist/cjs/server/agent/index.d.ts +1 -1
  112. package/dist/cjs/server/agent/providers/index.d.ts +1 -1
  113. package/dist/cjs/server/agent/providers/types.d.ts +20 -7
  114. package/dist/cjs/server/agent/types.d.ts +9 -0
  115. package/dist/cjs/server/compiler.d.ts +11 -0
  116. package/dist/cjs/server/index.d.ts +2 -1
  117. package/dist/client/charts/chartConfigHelpers.d.ts +5 -0
  118. package/dist/client/charts.js +12 -12
  119. package/dist/client/chunks/{ActivityGridChart-DYJkZzwx.js → ActivityGridChart-9jQtN8-K.js} +4 -4
  120. package/dist/client/chunks/{ActivityGridChart-DYJkZzwx.js.map → ActivityGridChart-9jQtN8-K.js.map} +1 -1
  121. package/dist/client/chunks/{BarSeries-RYOuAiaW.js → BarSeries-DK-vuiwN.js} +2 -2
  122. package/dist/client/chunks/{BarSeries-RYOuAiaW.js.map → BarSeries-DK-vuiwN.js.map} +1 -1
  123. package/dist/client/chunks/{BubbleChart-DYLLZ_cl.js → BubbleChart-C68fNRF0.js} +4 -4
  124. package/dist/client/chunks/{BubbleChart-DYLLZ_cl.js.map → BubbleChart-C68fNRF0.js.map} +1 -1
  125. package/dist/client/chunks/{BubbleChart.helpers-CjbCvUeT.js → BubbleChart.helpers-uNNiXCp3.js} +2 -2
  126. package/dist/client/chunks/{BubbleChart.helpers-CjbCvUeT.js.map → BubbleChart.helpers-uNNiXCp3.js.map} +1 -1
  127. package/dist/client/chunks/{ChartStates-CmQaadEo.js → ChartStates-q3isKswo.js} +2 -2
  128. package/dist/client/chunks/{ChartStates-CmQaadEo.js.map → ChartStates-q3isKswo.js.map} +1 -1
  129. package/dist/client/chunks/{ChartSummaryHeader-CD9xvGd8.js → ChartSummaryHeader-CArf-Zae.js} +3 -3
  130. package/dist/client/chunks/{ChartSummaryHeader-CD9xvGd8.js.map → ChartSummaryHeader-CArf-Zae.js.map} +1 -1
  131. package/dist/client/chunks/{DashboardEditModal-B7OSUOiv.js → DashboardEditModal-DE4tRYdM.js} +1954 -1932
  132. package/dist/client/chunks/DashboardEditModal-DE4tRYdM.js.map +1 -0
  133. package/dist/client/chunks/{DataHistogram-06lCYT_Q.js → DataHistogram-ByPAXQ7l.js} +2 -2
  134. package/dist/client/chunks/{DataHistogram-06lCYT_Q.js.map → DataHistogram-ByPAXQ7l.js.map} +1 -1
  135. package/dist/client/chunks/{DotStripChart-BmKYH2yE.js → DotStripChart-C6pnWcnJ.js} +5 -5
  136. package/dist/client/chunks/{DotStripChart-BmKYH2yE.js.map → DotStripChart-C6pnWcnJ.js.map} +1 -1
  137. package/dist/client/chunks/{FunnelViews-Ck885XTd.js → FunnelViews-CjbkdKgA.js} +2 -2
  138. package/dist/client/chunks/{FunnelViews-Ck885XTd.js.map → FunnelViews-CjbkdKgA.js.map} +1 -1
  139. package/dist/client/chunks/{HeatMapChart-CZeYGRLC.js → HeatMapChart-CNxD7vQ7.js} +4 -4
  140. package/dist/client/chunks/{HeatMapChart-CZeYGRLC.js.map → HeatMapChart-CNxD7vQ7.js.map} +1 -1
  141. package/dist/client/chunks/{KpiDelta-ls34EAAv.js → KpiDelta-_ZYYbF62.js} +2 -2
  142. package/dist/client/chunks/{KpiDelta-ls34EAAv.js.map → KpiDelta-_ZYYbF62.js.map} +1 -1
  143. package/dist/client/chunks/{KpiText-BByhn9KP.js → KpiText-DbqKXrt_.js} +2 -2
  144. package/dist/client/chunks/{KpiText-BByhn9KP.js.map → KpiText-DbqKXrt_.js.map} +1 -1
  145. package/dist/client/chunks/{MarkdownChart.helpers-BZuq25Uq.js → MarkdownChart.helpers-BXTbF88z.js} +2 -2
  146. package/dist/client/chunks/{MarkdownChart.helpers-BZuq25Uq.js.map → MarkdownChart.helpers-BXTbF88z.js.map} +1 -1
  147. package/dist/client/chunks/{PortletAnalysisModal-BUK4uJRQ.js → PortletAnalysisModal-DyAH0Fr6.js} +6 -6
  148. package/dist/client/chunks/{PortletAnalysisModal-BUK4uJRQ.js.map → PortletAnalysisModal-DyAH0Fr6.js.map} +1 -1
  149. package/dist/client/chunks/{ProportionBarChart-BCnhz3Xe.js → ProportionBarChart-C-leF5gI.js} +6 -6
  150. package/dist/client/chunks/{ProportionBarChart-BCnhz3Xe.js.map → ProportionBarChart-C-leF5gI.js.map} +1 -1
  151. package/dist/client/chunks/{RecordsTable-DpFttrbE.js → RecordsTable-DYZF1s9w.js} +6 -6
  152. package/dist/client/chunks/{RecordsTable-DpFttrbE.js.map → RecordsTable-DYZF1s9w.js.map} +1 -1
  153. package/dist/client/chunks/{RetentionCombinedChart-D6HL0Ewc.js → RetentionCombinedChart-CQXtz2yS.js} +3 -3
  154. package/dist/client/chunks/{RetentionCombinedChart-D6HL0Ewc.js.map → RetentionCombinedChart-CQXtz2yS.js.map} +1 -1
  155. package/dist/client/chunks/{RetentionHeatmap-4-FOghfG.js → RetentionHeatmap-1Thi6ecj.js} +2 -2
  156. package/dist/client/chunks/{RetentionHeatmap-4-FOghfG.js.map → RetentionHeatmap-1Thi6ecj.js.map} +1 -1
  157. package/dist/client/chunks/{ScatterSeries-C69e7fWt.js → ScatterSeries-B4nwj1RE.js} +2 -2
  158. package/dist/client/chunks/{ScatterSeries-C69e7fWt.js.map → ScatterSeries-B4nwj1RE.js.map} +1 -1
  159. package/dist/client/chunks/{SchemaVisualization-BLNTnD5S.js → SchemaVisualization--StKeQKD.js} +1 -1
  160. package/dist/client/chunks/{TextPortletModal-DH5HkRuy.js → TextPortletModal-BLokJrUd.js} +4 -4
  161. package/dist/client/chunks/{TextPortletModal-DH5HkRuy.js.map → TextPortletModal-BLokJrUd.js.map} +1 -1
  162. package/dist/client/chunks/{TreeMapLegend-CccnfTYy.js → TreeMapLegend-D_vqfx_X.js} +2 -2
  163. package/dist/client/chunks/{TreeMapLegend-CccnfTYy.js.map → TreeMapLegend-D_vqfx_X.js.map} +1 -1
  164. package/dist/client/chunks/{analysis-builder-Bau8adTK.js → analysis-builder-ChpumcKg.js} +10 -10
  165. package/dist/client/chunks/{analysis-builder-Bau8adTK.js.map → analysis-builder-ChpumcKg.js.map} +1 -1
  166. package/dist/client/chunks/{analysis-builder-shared-DFMkGsT_.js → analysis-builder-shared-0wLNwq5q.js} +64 -64
  167. package/dist/client/chunks/{analysis-builder-shared-DFMkGsT_.js.map → analysis-builder-shared-0wLNwq5q.js.map} +1 -1
  168. package/dist/client/chunks/cartesianChartHelpers-Do-TAOih.js +421 -0
  169. package/dist/client/chunks/cartesianChartHelpers-Do-TAOih.js.map +1 -0
  170. package/dist/client/chunks/{chart-activity-grid-DgXF88W6.js → chart-activity-grid-B9dC1A5R.js} +5 -5
  171. package/dist/client/chunks/{chart-activity-grid-DgXF88W6.js.map → chart-activity-grid-B9dC1A5R.js.map} +1 -1
  172. package/dist/client/chunks/chart-area-BEXKNAXv.js +138 -0
  173. package/dist/client/chunks/chart-area-BEXKNAXv.js.map +1 -0
  174. package/dist/client/chunks/chart-bar-SMb2q1G9.js +143 -0
  175. package/dist/client/chunks/chart-bar-SMb2q1G9.js.map +1 -0
  176. package/dist/client/chunks/{chart-box-plot-DzY4pP09.js → chart-box-plot-C5COpr1_.js} +3 -3
  177. package/dist/client/chunks/{chart-box-plot-DzY4pP09.js.map → chart-box-plot-C5COpr1_.js.map} +1 -1
  178. package/dist/client/chunks/{chart-bubble-Dmcv09zb.js → chart-bubble-Df2C1LQW.js} +5 -5
  179. package/dist/client/chunks/{chart-bubble-Dmcv09zb.js.map → chart-bubble-Df2C1LQW.js.map} +1 -1
  180. package/dist/client/chunks/{chart-candlestick-BQbqfz7P.js → chart-candlestick-DuDaGj4R.js} +3 -3
  181. package/dist/client/chunks/{chart-candlestick-BQbqfz7P.js.map → chart-candlestick-DuDaGj4R.js.map} +1 -1
  182. package/dist/client/chunks/{chart-config-area-Bvft9O_T.js → chart-config-area-DVA0oKNp.js} +11 -10
  183. package/dist/client/chunks/chart-config-area-DVA0oKNp.js.map +1 -0
  184. package/dist/client/chunks/{chart-config-bar-OyxCyA3e.js → chart-config-bar-DhqbYfpf.js} +9 -8
  185. package/dist/client/chunks/chart-config-bar-DhqbYfpf.js.map +1 -0
  186. package/dist/client/chunks/{chart-config-kpi-delta-ZMObFeZr.js → chart-config-kpi-delta-BPMq7hzP.js} +2 -2
  187. package/dist/client/chunks/{chart-config-kpi-delta-ZMObFeZr.js.map → chart-config-kpi-delta-BPMq7hzP.js.map} +1 -1
  188. package/dist/client/chunks/{chart-config-kpi-number-C6rnZbNk.js → chart-config-kpi-number-B83Z2jLe.js} +2 -2
  189. package/dist/client/chunks/{chart-config-kpi-number-C6rnZbNk.js.map → chart-config-kpi-number-B83Z2jLe.js.map} +1 -1
  190. package/dist/client/chunks/{chart-config-line-FKcg6zYi.js → chart-config-line-CYwh72pj.js} +11 -10
  191. package/dist/client/chunks/chart-config-line-CYwh72pj.js.map +1 -0
  192. package/dist/client/chunks/{chart-config-measure-profile-Bw7okF4K.js → chart-config-measure-profile-Chi9pZNK.js} +5 -3
  193. package/dist/client/chunks/chart-config-measure-profile-Chi9pZNK.js.map +1 -0
  194. package/dist/client/chunks/{chart-config-pie-tNg_02bP.js → chart-config-pie-CenIR70H.js} +2 -2
  195. package/dist/client/chunks/{chart-config-pie-tNg_02bP.js.map → chart-config-pie-CenIR70H.js.map} +1 -1
  196. package/dist/client/chunks/{chart-config-radar-BbK_cePI.js → chart-config-radar-iBtE5R3S.js} +2 -2
  197. package/dist/client/chunks/{chart-config-radar-BbK_cePI.js.map → chart-config-radar-iBtE5R3S.js.map} +1 -1
  198. package/dist/client/chunks/{chart-config-radial-bar-B-ysOwq_.js → chart-config-radial-bar-U0gm1O8q.js} +2 -2
  199. package/dist/client/chunks/{chart-config-radial-bar-B-ysOwq_.js.map → chart-config-radial-bar-U0gm1O8q.js.map} +1 -1
  200. package/dist/client/chunks/{chart-config-tree-map-CES9mAql.js → chart-config-tree-map-DxSNKyGd.js} +2 -2
  201. package/dist/client/chunks/{chart-config-tree-map-CES9mAql.js.map → chart-config-tree-map-DxSNKyGd.js.map} +1 -1
  202. package/dist/client/chunks/{chart-config-waterfall-D3xkuYph.js → chart-config-waterfall-DtDzu_14.js} +5 -3
  203. package/dist/client/chunks/chart-config-waterfall-DtDzu_14.js.map +1 -0
  204. package/dist/client/chunks/{chart-data-table-CPjBzcme.js → chart-data-table-CytJbYDW.js} +5 -5
  205. package/dist/client/chunks/{chart-data-table-CPjBzcme.js.map → chart-data-table-CytJbYDW.js.map} +1 -1
  206. package/dist/client/chunks/{chart-funnel-DO66-IUH.js → chart-funnel-CXV90Ndw.js} +3 -3
  207. package/dist/client/chunks/{chart-funnel-DO66-IUH.js.map → chart-funnel-CXV90Ndw.js.map} +1 -1
  208. package/dist/client/chunks/{chart-gauge-BqWifMPW.js → chart-gauge-C4nY8NQj.js} +5 -5
  209. package/dist/client/chunks/{chart-gauge-BqWifMPW.js.map → chart-gauge-C4nY8NQj.js.map} +1 -1
  210. package/dist/client/chunks/{chart-heat-map-Cqsz9upg.js → chart-heat-map-BebyQ9Vf.js} +5 -5
  211. package/dist/client/chunks/{chart-heat-map-Cqsz9upg.js.map → chart-heat-map-BebyQ9Vf.js.map} +1 -1
  212. package/dist/client/chunks/{chart-kpi-delta-Bn_Anifd.js → chart-kpi-delta-CeEhPFso.js} +4 -4
  213. package/dist/client/chunks/{chart-kpi-delta-Bn_Anifd.js.map → chart-kpi-delta-CeEhPFso.js.map} +1 -1
  214. package/dist/client/chunks/{chart-kpi-number-6Hp4nqp9.js → chart-kpi-number-BU6XRX3h.js} +4 -4
  215. package/dist/client/chunks/{chart-kpi-number-6Hp4nqp9.js.map → chart-kpi-number-BU6XRX3h.js.map} +1 -1
  216. package/dist/client/chunks/{chart-kpi-text-Dbe-anJN.js → chart-kpi-text-skyF2iq6.js} +5 -5
  217. package/dist/client/chunks/{chart-kpi-text-Dbe-anJN.js.map → chart-kpi-text-skyF2iq6.js.map} +1 -1
  218. package/dist/client/chunks/chart-line-JtvhnFif.js +135 -0
  219. package/dist/client/chunks/chart-line-JtvhnFif.js.map +1 -0
  220. package/dist/client/chunks/{chart-markdown-BN0nnp-T.js → chart-markdown-CdrimJrm.js} +3 -3
  221. package/dist/client/chunks/{chart-markdown-BN0nnp-T.js.map → chart-markdown-CdrimJrm.js.map} +1 -1
  222. package/dist/client/chunks/{chart-measure-profile-B3bL3mfE.js → chart-measure-profile-DOl_xbBI.js} +19 -11
  223. package/dist/client/chunks/chart-measure-profile-DOl_xbBI.js.map +1 -0
  224. package/dist/client/chunks/{chart-pie-BD2UKMmW.js → chart-pie-DY_3XcSj.js} +6 -6
  225. package/dist/client/chunks/{chart-pie-BD2UKMmW.js.map → chart-pie-DY_3XcSj.js.map} +1 -1
  226. package/dist/client/chunks/{chart-radar-NyciE337.js → chart-radar-qus6NAYq.js} +6 -6
  227. package/dist/client/chunks/{chart-radar-NyciE337.js.map → chart-radar-qus6NAYq.js.map} +1 -1
  228. package/dist/client/chunks/{chart-radial-bar-BrmjHNAL.js → chart-radial-bar-CmvRUW7j.js} +6 -6
  229. package/dist/client/chunks/{chart-radial-bar-BrmjHNAL.js.map → chart-radial-bar-CmvRUW7j.js.map} +1 -1
  230. package/dist/client/chunks/{chart-sankey-DWPKdkOS.js → chart-sankey-Blp-T8_v.js} +2 -2
  231. package/dist/client/chunks/{chart-sankey-DWPKdkOS.js.map → chart-sankey-Blp-T8_v.js.map} +1 -1
  232. package/dist/client/chunks/{chart-scatter-CTvzOt2P.js → chart-scatter-BvHmImdY.js} +7 -7
  233. package/dist/client/chunks/{chart-scatter-CTvzOt2P.js.map → chart-scatter-BvHmImdY.js.map} +1 -1
  234. package/dist/client/chunks/{chart-sunburst-B3DzSatC.js → chart-sunburst-CYCSZ6pL.js} +2 -2
  235. package/dist/client/chunks/{chart-sunburst-B3DzSatC.js.map → chart-sunburst-CYCSZ6pL.js.map} +1 -1
  236. package/dist/client/chunks/{chart-tree-map-DyTG0Alb.js → chart-tree-map-DXl7KCM8.js} +7 -7
  237. package/dist/client/chunks/{chart-tree-map-DyTG0Alb.js.map → chart-tree-map-DXl7KCM8.js.map} +1 -1
  238. package/dist/client/chunks/{chart-waterfall-bJ_W_eiJ.js → chart-waterfall-E8bbmkm7.js} +99 -81
  239. package/dist/client/chunks/chart-waterfall-E8bbmkm7.js.map +1 -0
  240. package/dist/client/chunks/{chartComponentRegistry-xa0hV8aQ.js → chartComponentRegistry-LNS2NwAv.js} +4 -4
  241. package/dist/client/chunks/{chartComponentRegistry-xa0hV8aQ.js.map → chartComponentRegistry-LNS2NwAv.js.map} +1 -1
  242. package/dist/client/chunks/{chartPlugin-uXUb0QRv.js → chartPlugin-yM7JPt-B.js} +14 -14
  243. package/dist/client/chunks/{chartPlugin-uXUb0QRv.js.map → chartPlugin-yM7JPt-B.js.map} +1 -1
  244. package/dist/client/chunks/{chartRegistry-CVOMsXOK.js → chartRegistry-CI9eqtt9.js} +57 -38
  245. package/dist/client/chunks/chartRegistry-CI9eqtt9.js.map +1 -0
  246. package/dist/client/chunks/chartScaffolding-DcJLGHlm.js +188 -0
  247. package/dist/client/chunks/chartScaffolding-DcJLGHlm.js.map +1 -0
  248. package/dist/client/chunks/{chartUtils-CcCLgSOB.js → chartUtils-C49Kr8Nt.js} +2 -2
  249. package/dist/client/chunks/{chartUtils-CcCLgSOB.js.map → chartUtils-C49Kr8Nt.js.map} +1 -1
  250. package/dist/client/chunks/{charts-core-BHhJICdb.js → charts-core-Cur4p6Mn.js} +3 -3
  251. package/dist/client/chunks/{charts-core-BHhJICdb.js.map → charts-core-Cur4p6Mn.js.map} +1 -1
  252. package/dist/client/chunks/{charts-loader-fPRsqaiJ.js → charts-loader-dfaiJVGE.js} +32 -32
  253. package/dist/client/chunks/{charts-loader-fPRsqaiJ.js.map → charts-loader-dfaiJVGE.js.map} +1 -1
  254. package/dist/client/chunks/{dashboardExport-Cz_5rWlF.js → dashboardExport-Cuas_Jm2.js} +203 -144
  255. package/dist/client/chunks/dashboardExport-Cuas_Jm2.js.map +1 -0
  256. package/dist/client/chunks/{gaugeChartHelpers-D1QsCg21.js → gaugeChartHelpers-B0uUgsQ4.js} +2 -2
  257. package/dist/client/chunks/{gaugeChartHelpers-D1QsCg21.js.map → gaugeChartHelpers-B0uUgsQ4.js.map} +1 -1
  258. package/dist/client/chunks/{nl-NL-DtiGzigu.js → nl-NL-Dl2q6V08.js} +7 -1
  259. package/dist/client/chunks/nl-NL-Dl2q6V08.js.map +1 -0
  260. package/dist/client/chunks/{pivotUtils-Cc-PAP1w.js → pivotUtils-CD_kVHWS.js} +2 -2
  261. package/dist/client/chunks/{pivotUtils-Cc-PAP1w.js.map → pivotUtils-CD_kVHWS.js.map} +1 -1
  262. package/dist/client/chunks/{providers-DJq_2QU4.js → providers-BanUxi9o.js} +4 -4
  263. package/dist/client/chunks/{providers-DJq_2QU4.js.map → providers-BanUxi9o.js.map} +1 -1
  264. package/dist/client/chunks/{radarChartHelpers-B6Tcvmjg.js → radarChartHelpers-MSCZGEBc.js} +2 -2
  265. package/dist/client/chunks/{radarChartHelpers-B6Tcvmjg.js.map → radarChartHelpers-MSCZGEBc.js.map} +1 -1
  266. package/dist/client/chunks/{radialBarChartHelpers-2KuJKH_9.js → radialBarChartHelpers-CJ0tVPGJ.js} +2 -2
  267. package/dist/client/chunks/{radialBarChartHelpers-2KuJKH_9.js.map → radialBarChartHelpers-CJ0tVPGJ.js.map} +1 -1
  268. package/dist/client/chunks/{schema-visualization-B04dKs1c.js → schema-visualization-BBuxndAv.js} +5 -5
  269. package/dist/client/chunks/{schema-visualization-B04dKs1c.js.map → schema-visualization-BBuxndAv.js.map} +1 -1
  270. package/dist/client/chunks/{useCubeFieldLabel-DwTL-1fd.js → useCubeFieldLabel-DORlYhRk.js} +2 -2
  271. package/dist/client/chunks/{useCubeFieldLabel-DwTL-1fd.js.map → useCubeFieldLabel-DORlYhRk.js.map} +1 -1
  272. package/dist/client/chunks/{useCubeMetaQuery-CKkxam6t.js → useCubeMetaQuery-ClNaCRP-.js} +2 -2
  273. package/dist/client/chunks/{useCubeMetaQuery-CKkxam6t.js.map → useCubeMetaQuery-ClNaCRP-.js.map} +1 -1
  274. package/dist/client/chunks/{useDirtyStateTracking-CesO_Xr8.js → useDirtyStateTracking-BA8JTfGP.js} +111 -108
  275. package/dist/client/chunks/useDirtyStateTracking-BA8JTfGP.js.map +1 -0
  276. package/dist/client/chunks/{useExplainAI-B9CqKiqE.js → useExplainAI-DhkrNycx.js} +3 -3
  277. package/dist/client/chunks/{useExplainAI-B9CqKiqE.js.map → useExplainAI-DhkrNycx.js.map} +1 -1
  278. package/dist/client/chunks/{useTranslation-DgVTqWyJ.js → useTranslation-DQ_tbKyn.js} +9 -3
  279. package/dist/client/chunks/{useTranslation-DgVTqWyJ.js.map → useTranslation-DQ_tbKyn.js.map} +1 -1
  280. package/dist/client/chunks/utils-4nU07wK8.js.map +1 -1
  281. package/dist/client/components/AnalyticsDashboard.d.ts +1 -1
  282. package/dist/client/components/DashboardFilters/CompactFilterBar.d.ts +2 -0
  283. package/dist/client/components/DashboardFilters/EditModeFilterList.d.ts +2 -0
  284. package/dist/client/components/DashboardGrid.d.ts +3 -1
  285. package/dist/client/components/DashboardPortletCard.d.ts +1 -1
  286. package/dist/client/components/analyticsPortlet/parsePortletQuery.d.ts +5 -1
  287. package/dist/client/components/charts/WaterfallChart.d.ts +1 -1
  288. package/dist/client/components/charts/cartesianChartHelpers.d.ts +14 -1
  289. package/dist/client/components/charts/chartScaffolding.d.ts +61 -1
  290. package/dist/client/components/dashboard/DashboardContext.d.ts +7 -1
  291. package/dist/client/components/dashboard/DashboardCoordinator.d.ts +1 -1
  292. package/dist/client/components/dashboardPortletCard/PortletCardHeader.d.ts +2 -0
  293. package/dist/client/components/dashboardPortletCard/propsEqual.d.ts +3 -1
  294. package/dist/client/components.js +17 -17
  295. package/dist/client/components.js.map +1 -1
  296. package/dist/client/hooks/useResponsiveDashboard.d.ts +10 -1
  297. package/dist/client/hooks.d.ts +1 -1
  298. package/dist/client/hooks.js +3 -3
  299. package/dist/client/icons.js +1 -1
  300. package/dist/client/index.d.ts +1 -1
  301. package/dist/client/index.js +14 -14
  302. package/dist/client/index.js.map +1 -1
  303. package/dist/client/providers.js +1 -1
  304. package/dist/client/schema.js +1 -1
  305. package/dist/client/types.d.ts +30 -0
  306. package/dist/client/utils/autoGranularity.d.ts +18 -0
  307. package/dist/client/utils/index.d.ts +1 -0
  308. package/dist/client/utils/timeAxisFormatting.d.ts +81 -0
  309. package/dist/client/utils.js +12 -12
  310. package/dist/client/utils.js.map +1 -1
  311. package/dist/client-bundle-stats.html +1 -1
  312. package/dist/mcp-app/mcp-app.html +111 -111
  313. package/dist/server/agent/handler.d.ts +1 -0
  314. package/dist/server/agent/index.d.ts +1 -1
  315. package/dist/server/agent/providers/index.d.ts +1 -1
  316. package/dist/server/agent/providers/types.d.ts +20 -7
  317. package/dist/server/agent/types.d.ts +9 -0
  318. package/dist/server/{chartConfigHelpers-CLCi4RHs.js → chartConfigHelpers-BZ93eyEi.js} +22 -1
  319. package/dist/server/{chartConfigHelpers-BhME7ow_.cjs → chartConfigHelpers-DqYCkMe-.cjs} +1 -1
  320. package/dist/server/compiler.d.ts +11 -0
  321. package/dist/server/index.cjs +23 -23
  322. package/dist/server/index.d.ts +2 -1
  323. package/dist/server/index.js +2882 -2862
  324. package/package.json +2 -2
  325. package/dist/adapters/ActivityGridChart.config-BqI_t68H.js +0 -1
  326. package/dist/adapters/ActivityGridChart.config-CmAr4V_A.cjs +0 -1
  327. package/dist/adapters/AreaChart.config-B5WMfLHi.js +0 -1
  328. package/dist/adapters/AreaChart.config-Dg9Z1gaQ.cjs +0 -1
  329. package/dist/adapters/BarChart.config-DAlsBrko.cjs +0 -1
  330. package/dist/adapters/BarChart.config-DIJL0ZEg.js +0 -1
  331. package/dist/adapters/BoxPlotChart.config-D1ZAll4z.cjs +0 -1
  332. package/dist/adapters/BoxPlotChart.config-H_2xeFBO.js +0 -1
  333. package/dist/adapters/BubbleChart.config-CpwTB_6Y.js +0 -1
  334. package/dist/adapters/BubbleChart.config-I8p43Mu4.cjs +0 -1
  335. package/dist/adapters/CandlestickChart.config-BgZPDvpc.js +0 -1
  336. package/dist/adapters/CandlestickChart.config-Dc1G12oj.cjs +0 -1
  337. package/dist/adapters/DataTable.config-CT_g2xN3.js +0 -1
  338. package/dist/adapters/DataTable.config-VpDNu0z9.cjs +0 -1
  339. package/dist/adapters/DotStripChart.config-DkAjLcBE.js +0 -1
  340. package/dist/adapters/DotStripChart.config-DqsXUqL3.cjs +0 -1
  341. package/dist/adapters/FunnelChart.config-BRAjrWt2.cjs +0 -1
  342. package/dist/adapters/FunnelChart.config-D3Rkazem.js +0 -1
  343. package/dist/adapters/GaugeChart.config-BHVr46iw.js +0 -1
  344. package/dist/adapters/GaugeChart.config-Bt5UcsLR.cjs +0 -1
  345. package/dist/adapters/HeatMapChart.config-B47rGCFj.js +0 -1
  346. package/dist/adapters/HeatMapChart.config-LbXKCXim.cjs +0 -1
  347. package/dist/adapters/KpiDelta.config-m9py5KFw.js +0 -1
  348. package/dist/adapters/KpiDelta.config-tr6ymPrZ.cjs +0 -1
  349. package/dist/adapters/KpiNumber.config-BQQB-8Na.js +0 -1
  350. package/dist/adapters/KpiNumber.config-D9E_mv3n.cjs +0 -1
  351. package/dist/adapters/KpiText.config-D30AoAWs.cjs +0 -1
  352. package/dist/adapters/KpiText.config-DZFu4dhW.js +0 -1
  353. package/dist/adapters/LineChart.config-BaOctQ_X.cjs +0 -1
  354. package/dist/adapters/LineChart.config-Bkk0RVFU.js +0 -1
  355. package/dist/adapters/MarkdownChart.config-CnCMKY0K.js +0 -1
  356. package/dist/adapters/MarkdownChart.config-DQ53iGlB.cjs +0 -1
  357. package/dist/adapters/MeasureProfileChart.config-Xuz1KNvH.cjs +0 -1
  358. package/dist/adapters/MeasureProfileChart.config-aDmJrxUY.js +0 -1
  359. package/dist/adapters/PieChart.config-Bj4BGx_z.cjs +0 -1
  360. package/dist/adapters/PieChart.config-JlDLHryS.js +0 -1
  361. package/dist/adapters/ProportionBarChart.config-D59yrS9x.js +0 -1
  362. package/dist/adapters/ProportionBarChart.config-op9gegw6.cjs +0 -1
  363. package/dist/adapters/RadarChart.config-Bk543-Z_.js +0 -1
  364. package/dist/adapters/RadarChart.config-DLMQ054c.cjs +0 -1
  365. package/dist/adapters/RadialBarChart.config-iDruLAmN.cjs +0 -1
  366. package/dist/adapters/RadialBarChart.config-s0tWy-qL.js +0 -1
  367. package/dist/adapters/RecordsTable.config-B6brtiDj.js +0 -1
  368. package/dist/adapters/RecordsTable.config-CpCct86q.cjs +0 -1
  369. package/dist/adapters/RetentionCombinedChart.config-7mk-qG29.js +0 -1
  370. package/dist/adapters/RetentionCombinedChart.config-CztsLuXe.cjs +0 -1
  371. package/dist/adapters/RetentionHeatmap.config-CqcCHzFk.cjs +0 -1
  372. package/dist/adapters/RetentionHeatmap.config-DbBEEBhN.js +0 -1
  373. package/dist/adapters/SankeyChart.config-BhXvLsqS.js +0 -1
  374. package/dist/adapters/SankeyChart.config-DiTLU8SO.cjs +0 -1
  375. package/dist/adapters/ScatterChart.config-BpWzbAsu.cjs +0 -1
  376. package/dist/adapters/ScatterChart.config-DnSJK4Su.js +0 -1
  377. package/dist/adapters/SunburstChart.config-CqoJRimn.js +0 -1
  378. package/dist/adapters/SunburstChart.config-yLl99W7m.cjs +0 -1
  379. package/dist/adapters/TreeMapChart.config-CqFjEDR4.cjs +0 -1
  380. package/dist/adapters/TreeMapChart.config-YLYtyaRA.js +0 -1
  381. package/dist/adapters/WaterfallChart.config-C2nJz83o.cjs +0 -1
  382. package/dist/adapters/WaterfallChart.config-CBUPgHuG.js +0 -1
  383. package/dist/adapters/handler-CRHY6iC-.cjs +0 -32
  384. package/dist/client/chunks/AngledXAxisTick-DTvPXpZV.js +0 -21
  385. package/dist/client/chunks/AngledXAxisTick-DTvPXpZV.js.map +0 -1
  386. package/dist/client/chunks/DashboardEditModal-B7OSUOiv.js.map +0 -1
  387. package/dist/client/chunks/cartesianChartHelpers-XuqUcTM1.js +0 -256
  388. package/dist/client/chunks/cartesianChartHelpers-XuqUcTM1.js.map +0 -1
  389. package/dist/client/chunks/chart-area-D6InVJ_Y.js +0 -125
  390. package/dist/client/chunks/chart-area-D6InVJ_Y.js.map +0 -1
  391. package/dist/client/chunks/chart-bar-BkiQa3FZ.js +0 -129
  392. package/dist/client/chunks/chart-bar-BkiQa3FZ.js.map +0 -1
  393. package/dist/client/chunks/chart-config-area-Bvft9O_T.js.map +0 -1
  394. package/dist/client/chunks/chart-config-bar-OyxCyA3e.js.map +0 -1
  395. package/dist/client/chunks/chart-config-line-FKcg6zYi.js.map +0 -1
  396. package/dist/client/chunks/chart-config-measure-profile-Bw7okF4K.js.map +0 -1
  397. package/dist/client/chunks/chart-config-waterfall-D3xkuYph.js.map +0 -1
  398. package/dist/client/chunks/chart-line-CIsG5AVG.js +0 -122
  399. package/dist/client/chunks/chart-line-CIsG5AVG.js.map +0 -1
  400. package/dist/client/chunks/chart-measure-profile-B3bL3mfE.js.map +0 -1
  401. package/dist/client/chunks/chart-waterfall-bJ_W_eiJ.js.map +0 -1
  402. package/dist/client/chunks/chartRegistry-CVOMsXOK.js.map +0 -1
  403. package/dist/client/chunks/chartScaffolding-CBw7fDuD.js +0 -131
  404. package/dist/client/chunks/chartScaffolding-CBw7fDuD.js.map +0 -1
  405. package/dist/client/chunks/dashboardExport-Cz_5rWlF.js.map +0 -1
  406. package/dist/client/chunks/nl-NL-DtiGzigu.js.map +0 -1
  407. 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
@@ -30,16 +30,16 @@ function h(e, t) {
30
30
  function ee(e, t) {
31
31
  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}\``));
32
32
  }
33
- function g(e) {
33
+ function te(e) {
34
34
  if (e.length === 0) return "No cubes are currently available.";
35
35
  let t = ["## Available Cubes", ""];
36
36
  for (let n of e) t.push(`### ${n.name}`), n.description && t.push(n.description), p(t, n), m(t, n), h(t, n), ee(t, n), t.push("");
37
37
  return t.join("\n");
38
38
  }
39
- function _(e) {
39
+ function g(e) {
40
40
  return e.messages.map((e) => e.content.text).join("\n\n");
41
41
  }
42
- function te(e) {
42
+ function ne(e) {
43
43
  return [
44
44
  "# Drizzle Cube Analytics Agent",
45
45
  "",
@@ -210,11 +210,11 @@ function te(e) {
210
210
  "",
211
211
  "---",
212
212
  "",
213
- _(n),
213
+ g(n),
214
214
  "",
215
215
  "---",
216
216
  "",
217
- _(i),
217
+ g(i),
218
218
  "",
219
219
  "---",
220
220
  "",
@@ -270,11 +270,11 @@ function te(e) {
270
270
  "",
271
271
  "---",
272
272
  "",
273
- g(e)
273
+ te(e)
274
274
  ].join("\n");
275
275
  }
276
276
  // src/client/charts/chartConfigHelpers.ts
277
- function v({ measureCount: e, dimensionCount: t }) {
277
+ function _({ measureCount: e, dimensionCount: t }) {
278
278
  return e < 1 ? {
279
279
  available: !1,
280
280
  reason: "chart.availability.requiresMeasure"
@@ -283,25 +283,25 @@ function v({ measureCount: e, dimensionCount: t }) {
283
283
  reason: "chart.availability.requiresDimension"
284
284
  } : { available: !0 };
285
285
  }
286
- function y({ measureCount: e }) {
286
+ function v({ measureCount: e }) {
287
287
  return e < 1 ? {
288
288
  available: !1,
289
289
  reason: "chart.availability.requiresMeasure"
290
290
  } : { available: !0 };
291
291
  }
292
- var b = {
292
+ var y = {
293
293
  key: "target",
294
294
  label: "chart.option.target.label",
295
295
  type: "string",
296
296
  placeholder: "e.g., 100 or 50,75 for spread",
297
297
  description: "chart.option.target.description"
298
- }, x = {
298
+ }, b = {
299
299
  key: "connectNulls",
300
300
  label: "chart.option.connectNulls.label",
301
301
  type: "boolean",
302
302
  defaultValue: !1,
303
303
  description: "chart.option.connectNulls.description"
304
- }, S = {
304
+ }, x = {
305
305
  key: "fillMissingDates",
306
306
  label: "chart.option.fillMissingDates.label",
307
307
  type: "buttonGroup",
@@ -321,18 +321,18 @@ var b = {
321
321
  }
322
322
  ],
323
323
  description: "chart.option.fillMissingDates.description"
324
- }, C = {
324
+ }, S = {
325
325
  key: "leftYAxisFormat",
326
326
  label: "chart.option.leftYAxisFormat.label",
327
327
  type: "axisFormat",
328
328
  description: "chart.option.leftYAxisFormat.description"
329
- }, w = {
329
+ }, C = {
330
330
  key: "rightYAxisFormat",
331
331
  label: "chart.option.rightYAxisFormat.label",
332
332
  type: "axisFormat",
333
333
  description: "chart.option.rightYAxisFormat.description"
334
334
  };
335
- function T(e = "chart.option.valueFormat.description") {
335
+ function w(e = "chart.option.valueFormat.description") {
336
336
  return {
337
337
  key: "leftYAxisFormat",
338
338
  label: "chart.option.valueFormat.label",
@@ -340,7 +340,7 @@ function T(e = "chart.option.valueFormat.description") {
340
340
  description: e
341
341
  };
342
342
  }
343
- function ne(e) {
343
+ function re(e) {
344
344
  return {
345
345
  key: "stackType",
346
346
  label: "chart.option.stacking.label",
@@ -363,7 +363,7 @@ function ne(e) {
363
363
  description: e
364
364
  };
365
365
  }
366
- var re = {
366
+ var ie = {
367
367
  key: "layout",
368
368
  label: "chart.option.kpiLayout.label",
369
369
  type: "buttonGroup",
@@ -376,14 +376,14 @@ var re = {
376
376
  label: "chart.option.kpiLayout.compact"
377
377
  }],
378
378
  description: "chart.option.kpiLayout.description"
379
- }, ie = {
379
+ }, ae = {
380
380
  key: "showSummary",
381
381
  label: "chart.option.showSummary.label",
382
382
  type: "boolean",
383
383
  defaultValue: !1,
384
384
  description: "chart.option.showSummary.description"
385
385
  };
386
- function ae(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 ae(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,11 +449,12 @@ var E = {
430
449
  "hideHeader"
431
450
  ],
432
451
  displayOptionsConfig: [
433
- ne("chart.configText.how_to_stack_multiple_bar_series"),
434
- b,
452
+ T,
453
+ re("chart.configText.how_to_stack_multiple_bar_series"),
454
+ y,
455
+ x,
435
456
  S,
436
- C,
437
- w
457
+ C
438
458
  ]
439
459
  }, D = {
440
460
  clickableElements: { point: !0 },
@@ -473,11 +493,12 @@ var E = {
473
493
  "hideHeader"
474
494
  ],
475
495
  displayOptionsConfig: [
476
- ie,
477
- ae(),
478
- x,
479
- S,
496
+ T,
497
+ ae,
498
+ oe(),
480
499
  b,
500
+ x,
501
+ y,
481
502
  {
482
503
  key: "priorPeriodStyle",
483
504
  label: "chart.option.priorPeriodStyle.label",
@@ -509,8 +530,8 @@ var E = {
509
530
  step: .1,
510
531
  description: "chart.option.priorPeriodOpacity.description"
511
532
  },
512
- C,
513
- w
533
+ S,
534
+ C
514
535
  ]
515
536
  }, O = {
516
537
  dropZones: [
@@ -548,16 +569,17 @@ var E = {
548
569
  "hideHeader"
549
570
  ],
550
571
  displayOptionsConfig: [
551
- ie,
552
- ae(!1),
553
- ne("chart.configText.how_to_stack_multiple_area_series"),
572
+ T,
573
+ ae,
574
+ oe(!1),
575
+ re("chart.configText.how_to_stack_multiple_area_series"),
576
+ b,
554
577
  x,
578
+ y,
555
579
  S,
556
- b,
557
- C,
558
- w
580
+ C
559
581
  ]
560
- }, k = {
582
+ }, se = {
561
583
  clickableElements: { slice: !0 },
562
584
  dropZones: [{
563
585
  key: "xAxis",
@@ -609,8 +631,8 @@ var E = {
609
631
  label: "chart.configText.80_percent"
610
632
  }
611
633
  ]
612
- }, T()]
613
- }, oe = {
634
+ }, w()]
635
+ }, k = {
614
636
  dropZones: [
615
637
  {
616
638
  key: "xAxis",
@@ -766,7 +788,7 @@ var E = {
766
788
  "showTooltip",
767
789
  "hideHeader"
768
790
  ],
769
- displayOptionsConfig: [T()]
791
+ displayOptionsConfig: [w()]
770
792
  }, M = {
771
793
  dropZones: [{
772
794
  key: "xAxis",
@@ -789,7 +811,7 @@ var E = {
789
811
  "showTooltip",
790
812
  "hideHeader"
791
813
  ],
792
- displayOptionsConfig: [T()]
814
+ displayOptionsConfig: [w()]
793
815
  }, N = {
794
816
  dropZones: [
795
817
  {
@@ -824,7 +846,7 @@ var E = {
824
846
  "showTooltip",
825
847
  "hideHeader"
826
848
  ],
827
- displayOptionsConfig: [T("chart.configText.number_formatting_for_size_values")],
849
+ displayOptionsConfig: [w("chart.configText.number_formatting_for_size_values")],
828
850
  clickableElements: { cell: !0 }
829
851
  }, P = {
830
852
  dropZones: [{
@@ -962,7 +984,7 @@ var E = {
962
984
  emptyText: "chart.kpiNumber.dropZone.yAxis.empty"
963
985
  }],
964
986
  displayOptionsConfig: [
965
- re,
987
+ ie,
966
988
  {
967
989
  key: "target",
968
990
  label: "chart.runtime.tooltip.targetValue",
@@ -1036,7 +1058,7 @@ var E = {
1036
1058
  emptyText: "chart.kpiDelta.dropZone.xAxis.empty"
1037
1059
  }],
1038
1060
  displayOptionsConfig: [
1039
- re,
1061
+ ie,
1040
1062
  {
1041
1063
  key: "showBaseline",
1042
1064
  label: "chart.option.showBaseline.label",
@@ -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,42 +2031,42 @@ 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",
2014
2038
  description: "chart.bar.description",
2015
2039
  useCase: "chart.bar.useCase",
2016
- isAvailable: v,
2040
+ isAvailable: _,
2017
2041
  dependencies: Y,
2018
- config: async () => (await import("./BarChart.config-DIJL0ZEg.js")).barChartConfig
2042
+ config: async () => (await import("./BarChart.config-BL-JqfNl.js")).barChartConfig
2019
2043
  },
2020
2044
  line: {
2021
2045
  label: "chart.line.label",
2022
2046
  icon: "chartLine",
2023
2047
  description: "chart.line.description",
2024
2048
  useCase: "chart.line.useCase",
2025
- isAvailable: v,
2049
+ isAvailable: _,
2026
2050
  dependencies: Y,
2027
- config: async () => (await import("./LineChart.config-Bkk0RVFU.js")).lineChartConfig
2051
+ config: async () => (await import("./LineChart.config-77h_gmww.js")).lineChartConfig
2028
2052
  },
2029
2053
  area: {
2030
2054
  label: "chart.area.label",
2031
2055
  icon: "chartArea",
2032
2056
  description: "chart.area.description",
2033
2057
  useCase: "chart.area.useCase",
2034
- isAvailable: v,
2058
+ isAvailable: _,
2035
2059
  dependencies: Y,
2036
- config: async () => (await import("./AreaChart.config-B5WMfLHi.js")).areaChartConfig
2060
+ config: async () => (await import("./AreaChart.config-OSenKEDa.js")).areaChartConfig
2037
2061
  },
2038
2062
  pie: {
2039
2063
  label: "chart.pie.label",
2040
2064
  icon: "chartPie",
2041
2065
  description: "chart.pie.description",
2042
2066
  useCase: "chart.pie.useCase",
2043
- isAvailable: v,
2067
+ isAvailable: _,
2044
2068
  dependencies: Y,
2045
- config: async () => (await import("./PieChart.config-JlDLHryS.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-DnSJK4Su.js")).scatterChartConfig
2084
+ config: async () => (await import("./ScatterChart.config-DE9FdKgm.js")).scatterChartConfig
2061
2085
  },
2062
2086
  bubble: {
2063
2087
  label: "chart.bubble.label",
@@ -2071,48 +2095,48 @@ var E = {
2071
2095
  available: !1,
2072
2096
  reason: "chart.availability.bubble"
2073
2097
  } : { available: !0 },
2074
- config: async () => (await import("./BubbleChart.config-CpwTB_6Y.js")).bubbleChartConfig
2098
+ config: async () => (await import("./BubbleChart.config-DCyaRccE.js")).bubbleChartConfig
2075
2099
  },
2076
2100
  radar: {
2077
2101
  label: "chart.radar.label",
2078
2102
  icon: "chartRadar",
2079
2103
  description: "chart.radar.description",
2080
2104
  useCase: "chart.radar.useCase",
2081
- isAvailable: v,
2105
+ isAvailable: _,
2082
2106
  dependencies: Y,
2083
- config: async () => (await import("./RadarChart.config-Bk543-Z_.js")).radarChartConfig
2107
+ config: async () => (await import("./RadarChart.config-DgscyxZj.js")).radarChartConfig
2084
2108
  },
2085
2109
  radialBar: {
2086
2110
  label: "chart.radialBar.label",
2087
2111
  icon: "chartRadialBar",
2088
2112
  description: "chart.radialBar.description",
2089
2113
  useCase: "chart.radialBar.useCase",
2090
- isAvailable: v,
2114
+ isAvailable: _,
2091
2115
  dependencies: Y,
2092
- config: async () => (await import("./RadialBarChart.config-s0tWy-qL.js")).radialBarChartConfig
2116
+ config: async () => (await import("./RadialBarChart.config-CstfMNyO.js")).radialBarChartConfig
2093
2117
  },
2094
2118
  treemap: {
2095
2119
  label: "chart.treemap.label",
2096
2120
  icon: "chartTreemap",
2097
2121
  description: "chart.treemap.description",
2098
2122
  useCase: "chart.treemap.useCase",
2099
- isAvailable: v,
2123
+ isAvailable: _,
2100
2124
  dependencies: Y,
2101
- config: async () => (await import("./TreeMapChart.config-YLYtyaRA.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-CT_g2xN3.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-B6brtiDj.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,38 +2150,38 @@ var E = {
2126
2150
  available: !1,
2127
2151
  reason: "chart.availability.requiresTimeDimension"
2128
2152
  } : { available: !0 },
2129
- config: async () => (await import("./ActivityGridChart.config-BqI_t68H.js")).activityGridChartConfig
2153
+ config: async () => (await import("./ActivityGridChart.config-CRStoJN7.js")).activityGridChartConfig
2130
2154
  },
2131
2155
  kpiNumber: {
2132
2156
  label: "chart.kpiNumber.label",
2133
2157
  icon: "chartKpiNumber",
2134
2158
  description: "chart.kpiNumber.description",
2135
2159
  useCase: "chart.kpiNumber.useCase",
2136
- isAvailable: y,
2137
- config: async () => (await import("./KpiNumber.config-BQQB-8Na.js")).kpiNumberConfig
2160
+ isAvailable: v,
2161
+ config: async () => (await import("./KpiNumber.config-DctOJjE-.js")).kpiNumberConfig
2138
2162
  },
2139
2163
  kpiDelta: {
2140
2164
  label: "chart.kpiDelta.label",
2141
2165
  icon: "chartKpiDelta",
2142
2166
  description: "chart.kpiDelta.description",
2143
2167
  useCase: "chart.kpiDelta.useCase",
2144
- isAvailable: v,
2145
- config: async () => (await import("./KpiDelta.config-m9py5KFw.js")).kpiDeltaConfig
2168
+ isAvailable: _,
2169
+ config: async () => (await import("./KpiDelta.config-BBGRf802.js")).kpiDeltaConfig
2146
2170
  },
2147
2171
  kpiText: {
2148
2172
  label: "chart.kpiText.label",
2149
2173
  icon: "chartKpiText",
2150
2174
  description: "chart.kpiText.description",
2151
2175
  useCase: "chart.kpiText.useCase",
2152
- isAvailable: y,
2153
- config: async () => (await import("./KpiText.config-DZFu4dhW.js")).kpiTextConfig
2176
+ isAvailable: v,
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-CnCMKY0K.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-D3Rkazem.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-BhXvLsqS.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-CqoJRimn.js")).sunburstChartConfig
2208
+ config: async () => (await import("./SunburstChart.config-BH1UDwp2.js")).sunburstChartConfig
2185
2209
  },
2186
2210
  heatmap: {
2187
2211
  label: "chart.heatmap.label",
@@ -2199,46 +2223,46 @@ var E = {
2199
2223
  packageName: "@nivo/heatmap",
2200
2224
  installCommand: "npm install @nivo/heatmap"
2201
2225
  },
2202
- config: async () => (await import("./HeatMapChart.config-B47rGCFj.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-DbBEEBhN.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-7mk-qG29.js")).retentionCombinedConfig
2240
+ config: async () => (await import("./RetentionCombinedChart.config-BPFKAI0l.js")).retentionCombinedConfig
2217
2241
  },
2218
2242
  boxPlot: {
2219
2243
  label: "chart.boxPlot.label",
2220
2244
  icon: "chartBoxPlot",
2221
2245
  description: "chart.boxPlot.description",
2222
2246
  useCase: "chart.boxPlot.useCase",
2223
- isAvailable: v,
2224
- config: async () => (await import("./BoxPlotChart.config-H_2xeFBO.js")).boxPlotChartConfig
2247
+ isAvailable: _,
2248
+ config: async () => (await import("./BoxPlotChart.config-En2W9sCn.js")).boxPlotChartConfig
2225
2249
  },
2226
2250
  dotStrip: {
2227
2251
  label: "chart.dotStrip.label",
2228
2252
  icon: "chartDotStrip",
2229
2253
  description: "chart.dotStrip.description",
2230
2254
  useCase: "chart.dotStrip.useCase",
2231
- isAvailable: v,
2232
- config: async () => (await import("./DotStripChart.config-DkAjLcBE.js")).dotStripChartConfig
2255
+ isAvailable: _,
2256
+ config: async () => (await import("./DotStripChart.config-JPHZAfHq.js")).dotStripChartConfig
2233
2257
  },
2234
2258
  waterfall: {
2235
2259
  label: "chart.waterfall.label",
2236
2260
  icon: "chartWaterfall",
2237
2261
  description: "chart.waterfall.description",
2238
2262
  useCase: "chart.waterfall.useCase",
2239
- isAvailable: v,
2263
+ isAvailable: _,
2240
2264
  dependencies: Y,
2241
- config: async () => (await import("./WaterfallChart.config-CBUPgHuG.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-BgZPDvpc.js")).candlestickChartConfig
2279
+ config: async () => (await import("./CandlestickChart.config-DkJ3DZBF.js")).candlestickChartConfig
2256
2280
  },
2257
2281
  measureProfile: {
2258
2282
  label: "chart.measureProfile.label",
@@ -2264,26 +2288,26 @@ var E = {
2264
2288
  reason: "chart.availability.requiresTwoMeasures"
2265
2289
  } : { available: !0 },
2266
2290
  dependencies: Y,
2267
- config: async () => (await import("./MeasureProfileChart.config-aDmJrxUY.js")).measureProfileChartConfig
2291
+ config: async () => (await import("./MeasureProfileChart.config-YFdPWnN0.js")).measureProfileChartConfig
2268
2292
  },
2269
2293
  proportionBar: {
2270
2294
  label: "chart.proportionBar.label",
2271
2295
  icon: "chartProportionBar",
2272
2296
  description: "chart.proportionBar.description",
2273
2297
  useCase: "chart.proportionBar.useCase",
2274
- isAvailable: v,
2275
- config: async () => (await import("./ProportionBarChart.config-D59yrS9x.js")).proportionBarChartConfig
2298
+ isAvailable: _,
2299
+ config: async () => (await import("./ProportionBarChart.config-BpUzsBL5.js")).proportionBarChartConfig
2276
2300
  },
2277
2301
  gauge: {
2278
2302
  label: "chart.gauge.label",
2279
2303
  icon: "chartGauge",
2280
2304
  description: "chart.gauge.description",
2281
2305
  useCase: "chart.gauge.useCase",
2282
- isAvailable: y,
2283
- config: async () => (await import("./GaugeChart.config-BHVr46iw.js")).gaugeChartConfig
2306
+ isAvailable: v,
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,12 +2317,12 @@ 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: k,
2301
- scatter: oe,
2324
+ pie: se,
2325
+ scatter: k,
2302
2326
  bubble: A,
2303
2327
  radar: j,
2304
2328
  radialBar: M,
@@ -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,83 +3377,83 @@ 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 = t.providerOverride || o.provider || "anthropic", p = t.modelOverride || o.model || Je[f] || "claude-sonnet-4-6", m = t.baseURLOverride || o.baseURL, h = o.maxTurns || 25, ee = o.maxTokens || 8192, g;
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
- g = await Re(f, s, { baseURL: m });
3398
+ _ = f ?? await ze(p, s, { baseURL: ee });
3375
3399
  } catch (t) {
3376
- 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 {
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",
3378
3402
  data: { message: t instanceof Error ? t.message : e("server.errors.llmInitFailed") }
3379
3403
  };
3380
3404
  return;
3381
3405
  }
3382
- let _ = Ie({ chartTypes: o.chartTypes }), v = Le({
3406
+ let v = Le({ chartTypes: o.chartTypes }), y = Re({
3383
3407
  semanticLayer: i,
3384
3408
  securityContext: a,
3385
3409
  chartTypes: o.chartTypes
3386
- }), y = te(i.getMetadata(a));
3387
- t.systemContext && (y += `\n\n## User Context\n\n${t.systemContext}`), $(() => l?.onChatStart?.({
3410
+ }), b = ne(i.getMetadata(a));
3411
+ t.systemContext && (b += `\n\n## User Context\n\n${t.systemContext}`), $(() => l?.onChatStart?.({
3388
3412
  traceId: u,
3389
3413
  sessionId: c,
3390
3414
  message: n,
3391
- model: p,
3415
+ model: h,
3392
3416
  historyLength: r?.length ?? 0
3393
3417
  }));
3394
- let b = Be(r, g);
3395
- b.push({
3418
+ let x = Ve(r, _);
3419
+ x.push({
3396
3420
  role: "user",
3397
3421
  content: n
3398
3422
  });
3399
- let x = 0;
3423
+ let S = 0;
3400
3424
  try {
3401
- for (let t = 0; t < h; t++) {
3402
- x = t + 1;
3403
- let n = await g.createStream({
3404
- model: p,
3405
- maxTokens: ee,
3406
- system: y,
3407
- tools: _,
3408
- messages: b
3409
- }), r = Date.now(), { contentBlocks: i, stopReason: a, inputTokens: o, outputTokens: s } = yield* Ge(g, n);
3425
+ for (let t = 0; t < te; t++) {
3426
+ S = t + 1;
3427
+ let n = await _.createStream({
3428
+ model: h,
3429
+ maxTokens: g,
3430
+ system: b,
3431
+ tools: v,
3432
+ messages: x
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,
3413
- model: p,
3437
+ model: h,
3414
3438
  stopReason: a,
3415
3439
  inputTokens: o,
3416
3440
  outputTokens: s,
3417
3441
  durationMs: Date.now() - r,
3418
- input: b,
3442
+ input: x,
3419
3443
  output: i
3420
- })), b.push({
3444
+ })), x.push({
3421
3445
  role: "assistant",
3422
3446
  content: i
3423
- }), g.isTruncated(a)) {
3447
+ }), _.isTruncated(a)) {
3424
3448
  yield {
3425
3449
  type: "error",
3426
3450
  data: { message: e("server.errors.agentResponseTruncated") }
3427
3451
  };
3428
3452
  break;
3429
3453
  }
3430
- if (!g.shouldContinue(a)) break;
3431
- let c = yield* qe(i, {
3432
- executor: v,
3454
+ if (!_.shouldContinue(a)) break;
3455
+ let c = yield* Je(i, {
3456
+ executor: y,
3433
3457
  observability: l,
3434
3458
  traceId: u,
3435
3459
  turn: t
@@ -3437,12 +3461,12 @@ async function* Ye(t) {
3437
3461
  yield {
3438
3462
  type: "turn_complete",
3439
3463
  data: {}
3440
- }, ze(b, g.formatToolResults(c));
3464
+ }, Be(x, _.formatToolResults(c));
3441
3465
  }
3442
3466
  $(() => l?.onChatEnd?.({
3443
3467
  traceId: u,
3444
3468
  sessionId: c,
3445
- totalTurns: x,
3469
+ totalTurns: S,
3446
3470
  durationMs: Date.now() - d
3447
3471
  })), yield {
3448
3472
  type: "done",
@@ -3461,10 +3485,10 @@ async function* Ye(t) {
3461
3485
  error: e instanceof Error ? e.message : "Unknown error"
3462
3486
  });
3463
3487
  } catch {}
3464
- console.error("[agent] Chat error (provider=%s, model=%s): %s", String(f).replace(/\n|\r/g, ""), String(p).replace(/\n|\r/g, ""), String(e instanceof Error ? e.message : e).replace(/\n|\r/g, "")), yield {
3488
+ console.error("[agent] Chat error (provider=%s, model=%s): %s", String(m).replace(/\n|\r/g, ""), String(h).replace(/\n|\r/g, ""), String(e instanceof Error ? e.message : e).replace(/\n|\r/g, "")), yield {
3465
3489
  type: "error",
3466
- data: { message: g.formatError(e) }
3490
+ data: { message: _.formatError(e) }
3467
3491
  };
3468
3492
  }
3469
3493
  }
3470
- export { j as C, O as D, k as E, D as O, M as S, oe 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 };