drizzle-cube 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters/ActivityGridChart.config-BQhBE_Mr.js +2 -0
- package/dist/adapters/ActivityGridChart.config-C3tSuOGV.cjs +1 -0
- package/dist/adapters/AreaChart.config-3cme8HyQ.js +2 -0
- package/dist/adapters/AreaChart.config-BSxrT52Z.cjs +1 -0
- package/dist/adapters/BarChart.config-BKS8IecE.cjs +1 -0
- package/dist/adapters/BarChart.config-lt_7PdIi.js +2 -0
- package/dist/adapters/BoxPlotChart.config-B7qvRnrF.cjs +1 -0
- package/dist/adapters/BoxPlotChart.config-Dv6ECj2j.js +2 -0
- package/dist/adapters/BubbleChart.config-BrIH7OAy.cjs +1 -0
- package/dist/adapters/BubbleChart.config-Fhotb7Pg.js +2 -0
- package/dist/adapters/CandlestickChart.config-CWH41FmF.cjs +1 -0
- package/dist/adapters/CandlestickChart.config-RPtXuxsX.js +2 -0
- package/dist/adapters/DataTable.config-71L0GzlT.js +2 -0
- package/dist/adapters/DataTable.config-BsOMQq3J.cjs +1 -0
- package/dist/adapters/FunnelChart.config-Cqte9C04.cjs +1 -0
- package/dist/adapters/FunnelChart.config-DJtwWeNz.js +2 -0
- package/dist/adapters/GaugeChart.config-WkwZ9VdS.cjs +1 -0
- package/dist/adapters/GaugeChart.config-vpVQlP5B.js +2 -0
- package/dist/adapters/HeatMapChart.config-DcmkDl07.cjs +1 -0
- package/dist/adapters/HeatMapChart.config-DsmMgGxJ.js +2 -0
- package/dist/adapters/KpiDelta.config-DVy561BH.js +2 -0
- package/dist/adapters/KpiDelta.config-dpqwLHNE.cjs +1 -0
- package/dist/adapters/KpiNumber.config-927l8nq8.js +2 -0
- package/dist/adapters/KpiNumber.config-BqFBMfPf.cjs +1 -0
- package/dist/adapters/KpiText.config-C-fZXuHq.cjs +1 -0
- package/dist/adapters/KpiText.config-CWoXuhMA.js +2 -0
- package/dist/adapters/LineChart.config-DTp7pqOY.js +2 -0
- package/dist/adapters/LineChart.config-DUGvSjcH.cjs +1 -0
- package/dist/adapters/MarkdownChart.config-23Dmv2Ty.cjs +1 -0
- package/dist/adapters/MarkdownChart.config-Cb2TnS0I.js +2 -0
- package/dist/adapters/MeasureProfileChart.config-B2qbWdhy.cjs +1 -0
- package/dist/adapters/MeasureProfileChart.config-CvBCeI5b.js +2 -0
- package/dist/adapters/PieChart.config-BzJb13QA.js +2 -0
- package/dist/adapters/PieChart.config-plCn5Ehr.cjs +1 -0
- package/dist/adapters/ProportionBarChart.config-1r-_moBH.cjs +1 -0
- package/dist/adapters/ProportionBarChart.config-CN6TtHTp.js +2 -0
- package/dist/adapters/RadarChart.config-BYhdj9M7.js +2 -0
- package/dist/adapters/RadarChart.config-CeUMP-1g.cjs +1 -0
- package/dist/adapters/RadialBarChart.config-B88yXNsq.cjs +1 -0
- package/dist/adapters/RadialBarChart.config-ZMK9HMoh.js +2 -0
- package/dist/adapters/RetentionCombinedChart.config-B5yvgUHM.cjs +1 -0
- package/dist/adapters/RetentionCombinedChart.config-Dd-YMdK8.js +2 -0
- package/dist/adapters/RetentionHeatmap.config-BYzDleoV.cjs +1 -0
- package/dist/adapters/RetentionHeatmap.config-Dvj7yTB0.js +2 -0
- package/dist/adapters/SankeyChart.config-CPFRmgFb.cjs +1 -0
- package/dist/adapters/SankeyChart.config-ClgqXM1N.js +2 -0
- package/dist/adapters/ScatterChart.config-CvJiqPa5.cjs +1 -0
- package/dist/adapters/ScatterChart.config-DLZ3rYMq.js +2 -0
- package/dist/adapters/SunburstChart.config-C_1V5hoQ.cjs +1 -0
- package/dist/adapters/SunburstChart.config-FNU75NCg.js +2 -0
- package/dist/adapters/TreeMapChart.config-CprZk_YF.js +2 -0
- package/dist/adapters/TreeMapChart.config-DNwd0ge9.cjs +1 -0
- package/dist/adapters/WaterfallChart.config-BBhcN_Fh.cjs +1 -0
- package/dist/adapters/WaterfallChart.config-H7s6SSV3.js +2 -0
- package/dist/adapters/{compiler-DAyodAnH.cjs → compiler-BaLO10VN.cjs} +7 -7
- package/dist/adapters/{compiler-Dq04wAjm.js → compiler-CQJ5GOwF.js} +286 -119
- package/dist/adapters/core/http-port.d.ts +34 -7
- package/dist/adapters/core/index.cjs +1 -1
- package/dist/adapters/core/index.d.ts +1 -0
- package/dist/adapters/core/index.js +2 -2
- package/dist/adapters/core/rest-handlers.d.ts +1 -1
- package/dist/adapters/{core-BjxfG6Uf.js → core-DXkuSUBg.js} +80 -64
- package/dist/adapters/core-DgTGXxDu.cjs +1 -0
- package/dist/adapters/express/index.cjs +2 -2
- package/dist/adapters/express/index.d.ts +11 -2
- package/dist/adapters/express/index.js +14 -14
- package/dist/adapters/fastify/index.cjs +2 -2
- package/dist/adapters/fastify/index.d.ts +11 -2
- package/dist/adapters/fastify/index.js +12 -12
- package/dist/adapters/{handler-ox6qxLw5.js → handler-CphYSZRh.js} +76 -77
- package/dist/adapters/{handler-C6Hj6_Yk.cjs → handler-DrRT6c14.cjs} +8 -8
- package/dist/adapters/hono/index.cjs +1 -1
- package/dist/adapters/hono/index.js +9 -9
- package/dist/adapters/mcp-tools-handlers.d.ts +10 -3
- package/dist/adapters/mcp-tools.cjs +1 -1
- package/dist/adapters/mcp-tools.js +18 -20
- package/dist/adapters/mcp-transport-BGkSz-ZT.cjs +40 -0
- package/dist/adapters/mcp-transport-fJud19xz.js +606 -0
- package/dist/adapters/mcp-transport.d.ts +13 -2
- package/dist/adapters/nextjs/index.cjs +1 -1
- package/dist/adapters/nextjs/index.d.ts +5 -2
- package/dist/adapters/nextjs/index.js +32 -32
- package/dist/adapters/{openai-C9LNhHfK.js → openai-CBrN4nxl.js} +2 -2
- package/dist/adapters/{openai-DlT-0VRC.cjs → openai-CI9vGKSf.cjs} +1 -1
- package/dist/adapters/{openai-BffpdO4n.cjs → openai-CSzWluuv.cjs} +1 -1
- package/dist/adapters/{openai-CmyXJWti.js → openai-D-VMcPao.js} +1 -1
- package/dist/adapters/utils-BY0-KFyI.cjs +128 -0
- package/dist/adapters/{utils-tjiwXFnP.js → utils-DkmShl5f.js} +29 -22
- package/dist/adapters/utils.cjs +1 -1
- package/dist/adapters/utils.d.ts +2 -2
- package/dist/adapters/utils.js +1 -1
- package/dist/cjs/adapters/core/http-port.d.ts +34 -7
- package/dist/cjs/adapters/core/index.d.ts +1 -0
- package/dist/cjs/adapters/core/rest-handlers.d.ts +1 -1
- package/dist/cjs/adapters/express/index.d.ts +11 -2
- package/dist/cjs/adapters/fastify/index.d.ts +11 -2
- package/dist/cjs/adapters/mcp-tools-handlers.d.ts +10 -3
- package/dist/cjs/adapters/mcp-transport.d.ts +13 -2
- package/dist/cjs/adapters/nextjs/index.d.ts +5 -2
- package/dist/cjs/adapters/utils.d.ts +2 -2
- package/dist/cjs/client/charts/chartConfigs.d.ts +1 -1
- package/dist/cjs/client/components/charts/GaugeChart.d.ts +8 -0
- package/dist/cjs/client/components/charts/gaugeChartHelpers.d.ts +117 -12
- package/dist/cjs/server/adapters/base-adapter.d.ts +46 -0
- package/dist/cjs/server/adapters/databend-adapter.d.ts +5 -0
- package/dist/cjs/server/adapters/duckdb-adapter.d.ts +5 -0
- package/dist/cjs/server/adapters/mysql-adapter.d.ts +14 -0
- package/dist/cjs/server/adapters/postgres-adapter.d.ts +15 -0
- package/dist/cjs/server/adapters/snowflake-adapter.d.ts +6 -0
- package/dist/cjs/server/adapters/sqlite-adapter.d.ts +21 -0
- package/dist/cjs/server/attribute-dimensions.d.ts +99 -0
- package/dist/cjs/server/cache-utils.d.ts +5 -1
- package/dist/cjs/server/compiler-metadata.d.ts +24 -3
- package/dist/cjs/server/compiler.d.ts +157 -10
- package/dist/cjs/server/execution/query-result-cache.d.ts +1 -1
- package/dist/cjs/server/index.d.ts +11 -3
- package/dist/cjs/server/query-handlers.d.ts +1 -1
- package/dist/cjs/server/types/core.d.ts +8 -0
- package/dist/cjs/server/types/cube.d.ts +27 -2
- package/dist/client/charts/chartConfigs.d.ts +1 -1
- package/dist/client/charts.js +12 -12
- package/dist/client/chunks/{DashboardEditModal-ByXLlXZD.js → DashboardEditModal-9An5EDAz.js} +1061 -992
- package/dist/client/chunks/{DashboardEditModal-ByXLlXZD.js.map → DashboardEditModal-9An5EDAz.js.map} +1 -1
- package/dist/client/chunks/{ProportionBarChart-lOeVz8ZC.js → ProportionBarChart-BVcbGY2C.js} +3 -3
- package/dist/client/chunks/{ProportionBarChart-lOeVz8ZC.js.map → ProportionBarChart-BVcbGY2C.js.map} +1 -1
- package/dist/client/chunks/{RetentionCombinedChart-Mcm7zHFx.js → RetentionCombinedChart-D68Rvdi-.js} +3 -3
- package/dist/client/chunks/{RetentionCombinedChart-Mcm7zHFx.js.map → RetentionCombinedChart-D68Rvdi-.js.map} +1 -1
- package/dist/client/chunks/{RetentionHeatmap-4VJx5KDM.js → RetentionHeatmap-CE7BAjrB.js} +2 -2
- package/dist/client/chunks/{RetentionHeatmap-4VJx5KDM.js.map → RetentionHeatmap-CE7BAjrB.js.map} +1 -1
- package/dist/client/chunks/{af-ZA-BTaChuqI.js → af-ZA-C0dGb_53.js} +7 -3
- package/dist/client/chunks/af-ZA-C0dGb_53.js.map +1 -0
- package/dist/client/chunks/{analysis-builder-CWTJQQtL.js → analysis-builder-D1pYvvwc.js} +9 -9
- package/dist/client/chunks/{analysis-builder-CWTJQQtL.js.map → analysis-builder-D1pYvvwc.js.map} +1 -1
- package/dist/client/chunks/{analysis-builder-shared-l-4WKVS1.js → analysis-builder-shared-BQvwUc6z.js} +9 -9
- package/dist/client/chunks/{analysis-builder-shared-l-4WKVS1.js.map → analysis-builder-shared-BQvwUc6z.js.map} +1 -1
- package/dist/client/chunks/{chart-activity-grid-DVOhLgxv.js → chart-activity-grid-DvD_4wJz.js} +12 -5
- package/dist/client/chunks/chart-activity-grid-DvD_4wJz.js.map +1 -0
- package/dist/client/chunks/{chart-area-C-5ATxvi.js → chart-area-DPp3hSOK.js} +2 -2
- package/dist/client/chunks/{chart-area-C-5ATxvi.js.map → chart-area-DPp3hSOK.js.map} +1 -1
- package/dist/client/chunks/{chart-bar-CPiLaXHP.js → chart-bar-Od3pOyZ0.js} +3 -3
- package/dist/client/chunks/{chart-bar-CPiLaXHP.js.map → chart-bar-Od3pOyZ0.js.map} +1 -1
- package/dist/client/chunks/{chart-box-plot-Bae5O9xC.js → chart-box-plot-l0iFn2n2.js} +2 -2
- package/dist/client/chunks/{chart-box-plot-Bae5O9xC.js.map → chart-box-plot-l0iFn2n2.js.map} +1 -1
- package/dist/client/chunks/{chart-bubble-BFN5WIpf.js → chart-bubble-Dl0RcP8N.js} +2 -2
- package/dist/client/chunks/{chart-bubble-BFN5WIpf.js.map → chart-bubble-Dl0RcP8N.js.map} +1 -1
- package/dist/client/chunks/{chart-candlestick-PBQKp_z7.js → chart-candlestick-DZMqbscF.js} +2 -2
- package/dist/client/chunks/{chart-candlestick-PBQKp_z7.js.map → chart-candlestick-DZMqbscF.js.map} +1 -1
- package/dist/client/chunks/{chart-config-gauge-DNafFwfS.js → chart-config-gauge-CJktdjox.js} +3 -4
- package/dist/client/chunks/chart-config-gauge-CJktdjox.js.map +1 -0
- package/dist/client/chunks/{chart-data-table-SNSqZj9B.js → chart-data-table-DgiNBOWf.js} +5 -5
- package/dist/client/chunks/chart-data-table-DgiNBOWf.js.map +1 -0
- package/dist/client/chunks/{chart-funnel-CkHSXp6h.js → chart-funnel-YLZlyN1X.js} +2 -2
- package/dist/client/chunks/{chart-funnel-CkHSXp6h.js.map → chart-funnel-YLZlyN1X.js.map} +1 -1
- package/dist/client/chunks/{chart-gauge-DHIGq3TH.js → chart-gauge-BsqE2wwF.js} +169 -116
- package/dist/client/chunks/chart-gauge-BsqE2wwF.js.map +1 -0
- package/dist/client/chunks/{chart-heat-map-Bb8L1XQr.js → chart-heat-map-BsND8RM_.js} +3 -3
- package/dist/client/chunks/{chart-heat-map-Bb8L1XQr.js.map → chart-heat-map-BsND8RM_.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-delta-BJCOXE-F.js → chart-kpi-delta-m0azuva-.js} +3 -3
- package/dist/client/chunks/{chart-kpi-delta-BJCOXE-F.js.map → chart-kpi-delta-m0azuva-.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-number-Cdqgv20g.js → chart-kpi-number-6JS15SqF.js} +5 -5
- package/dist/client/chunks/{chart-kpi-number-Cdqgv20g.js.map → chart-kpi-number-6JS15SqF.js.map} +1 -1
- package/dist/client/chunks/{chart-kpi-text-B10ZHCsI.js → chart-kpi-text-BqX8p8Jn.js} +3 -3
- package/dist/client/chunks/{chart-kpi-text-B10ZHCsI.js.map → chart-kpi-text-BqX8p8Jn.js.map} +1 -1
- package/dist/client/chunks/{chart-line-CzvVL3Be.js → chart-line-NCmpxBfE.js} +3 -3
- package/dist/client/chunks/{chart-line-CzvVL3Be.js.map → chart-line-NCmpxBfE.js.map} +1 -1
- package/dist/client/chunks/{chart-markdown-C0xxBW81.js → chart-markdown-ZOobqiiX.js} +2 -2
- package/dist/client/chunks/{chart-markdown-C0xxBW81.js.map → chart-markdown-ZOobqiiX.js.map} +1 -1
- package/dist/client/chunks/{chart-measure-profile-BSUPFZCR.js → chart-measure-profile-CBAZaicJ.js} +3 -3
- package/dist/client/chunks/{chart-measure-profile-BSUPFZCR.js.map → chart-measure-profile-CBAZaicJ.js.map} +1 -1
- package/dist/client/chunks/{chart-pie-CwRfwWWZ.js → chart-pie-ChrasEI8.js} +3 -3
- package/dist/client/chunks/{chart-pie-CwRfwWWZ.js.map → chart-pie-ChrasEI8.js.map} +1 -1
- package/dist/client/chunks/{chart-radar-Dfql2E7i.js → chart-radar-CxSVF7yL.js} +3 -3
- package/dist/client/chunks/{chart-radar-Dfql2E7i.js.map → chart-radar-CxSVF7yL.js.map} +1 -1
- package/dist/client/chunks/{chart-radial-bar-oE9OZ1IX.js → chart-radial-bar--SN0Wph0.js} +3 -3
- package/dist/client/chunks/{chart-radial-bar-oE9OZ1IX.js.map → chart-radial-bar--SN0Wph0.js.map} +1 -1
- package/dist/client/chunks/{chart-sankey-tK7Oz1bC.js → chart-sankey-CDOSGg9r.js} +2 -2
- package/dist/client/chunks/{chart-sankey-tK7Oz1bC.js.map → chart-sankey-CDOSGg9r.js.map} +1 -1
- package/dist/client/chunks/{chart-scatter-BtLfAsZb.js → chart-scatter-DgcEF-kI.js} +3 -3
- package/dist/client/chunks/{chart-scatter-BtLfAsZb.js.map → chart-scatter-DgcEF-kI.js.map} +1 -1
- package/dist/client/chunks/{chart-sunburst-B7ryWwQ1.js → chart-sunburst-MB-jlGBm.js} +3 -3
- package/dist/client/chunks/{chart-sunburst-B7ryWwQ1.js.map → chart-sunburst-MB-jlGBm.js.map} +1 -1
- package/dist/client/chunks/{chart-tree-map-DU5M3-qe.js → chart-tree-map-DeDXveVd.js} +3 -3
- package/dist/client/chunks/{chart-tree-map-DU5M3-qe.js.map → chart-tree-map-DeDXveVd.js.map} +1 -1
- package/dist/client/chunks/{chart-waterfall-CAwutpzd.js → chart-waterfall-ur4vkO1j.js} +3 -3
- package/dist/client/chunks/{chart-waterfall-CAwutpzd.js.map → chart-waterfall-ur4vkO1j.js.map} +1 -1
- package/dist/client/chunks/{charts-core-BxBB2zBE.js → charts-core-BAH5pkSB.js} +2 -2
- package/dist/client/chunks/{charts-core-BxBB2zBE.js.map → charts-core-BAH5pkSB.js.map} +1 -1
- package/dist/client/chunks/charts-loader-eToV8je7.js +85 -0
- package/dist/client/chunks/{charts-loader-0avVzeDd.js.map → charts-loader-eToV8je7.js.map} +1 -1
- package/dist/client/chunks/{exceljs.min-DWC_b8G9.js → exceljs.min-CiByP8VQ.js} +2 -3
- package/dist/client/chunks/{exceljs.min-DWC_b8G9.js.map → exceljs.min-CiByP8VQ.js.map} +1 -1
- package/dist/client/chunks/{nl-NL-BSMhprPr.js → nl-NL-CMXHDBr0.js} +10 -3
- package/dist/client/chunks/nl-NL-CMXHDBr0.js.map +1 -0
- package/dist/client/chunks/{schema-visualization-CGbnbzj_.js → schema-visualization-BEbFtUIL.js} +3 -3
- package/dist/client/chunks/{schema-visualization-CGbnbzj_.js.map → schema-visualization-BEbFtUIL.js.map} +1 -1
- package/dist/client/chunks/{useDirtyStateTracking-Dc-Si4db.js → useDirtyStateTracking-CSDg96Rw.js} +4 -4
- package/dist/client/chunks/{useDirtyStateTracking-Dc-Si4db.js.map → useDirtyStateTracking-CSDg96Rw.js.map} +1 -1
- package/dist/client/chunks/{useExplainAI-DJbc7Lu4.js → useExplainAI-BnkoZ-zS.js} +4 -4
- package/dist/client/chunks/{useExplainAI-DJbc7Lu4.js.map → useExplainAI-BnkoZ-zS.js.map} +1 -1
- package/dist/client/chunks/{vendor-cTfe9Kho.js → vendor-BmJDaduD.js} +2 -2
- package/dist/client/chunks/vendor-BmJDaduD.js.map +1 -0
- package/dist/client/components/charts/GaugeChart.d.ts +8 -0
- package/dist/client/components/charts/gaugeChartHelpers.d.ts +117 -12
- package/dist/client/components.js +1 -1
- package/dist/client/hooks.js +3 -3
- package/dist/client/icons.js +1 -1
- package/dist/client/index.js +13 -13
- package/dist/client/providers.js +1 -1
- package/dist/client/schema.js +1 -1
- package/dist/client/utils.js +4 -4
- package/dist/client-bundle-stats.html +1 -1
- package/dist/mcp-app/mcp-app.html +88 -88
- package/dist/server/adapters/base-adapter.d.ts +46 -0
- package/dist/server/adapters/databend-adapter.d.ts +5 -0
- package/dist/server/adapters/duckdb-adapter.d.ts +5 -0
- package/dist/server/adapters/mysql-adapter.d.ts +14 -0
- package/dist/server/adapters/postgres-adapter.d.ts +15 -0
- package/dist/server/adapters/snowflake-adapter.d.ts +6 -0
- package/dist/server/adapters/sqlite-adapter.d.ts +21 -0
- package/dist/server/attribute-dimensions.d.ts +99 -0
- package/dist/server/cache-utils.d.ts +5 -1
- package/dist/server/compiler-metadata.d.ts +24 -3
- package/dist/server/compiler.d.ts +157 -10
- package/dist/server/execution/query-result-cache.d.ts +1 -1
- package/dist/server/index.cjs +40 -36
- package/dist/server/index.d.ts +11 -3
- package/dist/server/index.js +681 -482
- package/dist/server/{openai-Czk1BdHa.js → openai-6uUf7h-5.js} +1 -1
- package/dist/server/{openai-DBwI1OSu.cjs → openai-BBe1XbZd.cjs} +1 -1
- package/dist/server/{openai-Cu4TXXjl.cjs → openai-BmADmD1e.cjs} +1 -1
- package/dist/server/{openai-CUf4vc3Q.js → openai-C1gLuR-0.js} +1 -1
- package/dist/server/query-handlers.d.ts +1 -1
- package/dist/server/types/core.d.ts +8 -0
- package/dist/server/types/cube.d.ts +27 -2
- package/package.json +2 -2
- package/dist/adapters/ActivityGridChart.config-DaYILvFZ.cjs +0 -1
- package/dist/adapters/ActivityGridChart.config-_SyTBEyR.js +0 -2
- package/dist/adapters/AreaChart.config-BKh6fY1_.cjs +0 -1
- package/dist/adapters/AreaChart.config-CJoxLP3Y.js +0 -2
- package/dist/adapters/BarChart.config-Bm1bfRbI.cjs +0 -1
- package/dist/adapters/BarChart.config-CGu2Bqrx.js +0 -2
- package/dist/adapters/BoxPlotChart.config-B7M9CQaE.js +0 -2
- package/dist/adapters/BoxPlotChart.config-CXQel8Hk.cjs +0 -1
- package/dist/adapters/BubbleChart.config-BJ36IuVS.cjs +0 -1
- package/dist/adapters/BubbleChart.config-CWoXeLdm.js +0 -2
- package/dist/adapters/CandlestickChart.config-CGMLZVIy.cjs +0 -1
- package/dist/adapters/CandlestickChart.config-CzOcfF1e.js +0 -2
- package/dist/adapters/DataTable.config-CdAzueTs.cjs +0 -1
- package/dist/adapters/DataTable.config-D_KmPyxV.js +0 -2
- package/dist/adapters/FunnelChart.config-D1QAUuYl.cjs +0 -1
- package/dist/adapters/FunnelChart.config-DCRHQoFc.js +0 -2
- package/dist/adapters/GaugeChart.config-DAybRXP3.js +0 -2
- package/dist/adapters/GaugeChart.config-WUPfyLP-.cjs +0 -1
- package/dist/adapters/HeatMapChart.config-CziltPnC.cjs +0 -1
- package/dist/adapters/HeatMapChart.config-DHpXNONW.js +0 -2
- package/dist/adapters/KpiDelta.config-Bw5o0ocY.js +0 -2
- package/dist/adapters/KpiDelta.config-CdAmE1pw.cjs +0 -1
- package/dist/adapters/KpiNumber.config-CQ_wq2gx.js +0 -2
- package/dist/adapters/KpiNumber.config-wxN8x4DC.cjs +0 -1
- package/dist/adapters/KpiText.config-DIRIC97F.cjs +0 -1
- package/dist/adapters/KpiText.config-eODcP6Hn.js +0 -2
- package/dist/adapters/LineChart.config-32-9zA2V.js +0 -2
- package/dist/adapters/LineChart.config-BukeFp6z.cjs +0 -1
- package/dist/adapters/MarkdownChart.config-BVsR5LDy.js +0 -2
- package/dist/adapters/MarkdownChart.config-j4veYjcZ.cjs +0 -1
- package/dist/adapters/MeasureProfileChart.config-BRDYx1hw.js +0 -2
- package/dist/adapters/MeasureProfileChart.config-CIosBxco.cjs +0 -1
- package/dist/adapters/PieChart.config-Bj8KiA0n.cjs +0 -1
- package/dist/adapters/PieChart.config-DgAj3y-I.js +0 -2
- package/dist/adapters/ProportionBarChart.config-BfFOppHY.js +0 -2
- package/dist/adapters/ProportionBarChart.config-c8GGE1aK.cjs +0 -1
- package/dist/adapters/RadarChart.config-D7iHY1v9.js +0 -2
- package/dist/adapters/RadarChart.config-ghlANG2-.cjs +0 -1
- package/dist/adapters/RadialBarChart.config-CsXIz-0v.js +0 -2
- package/dist/adapters/RadialBarChart.config-Dsvu2CPV.cjs +0 -1
- package/dist/adapters/RetentionCombinedChart.config-CdT1kXC7.js +0 -2
- package/dist/adapters/RetentionCombinedChart.config-sDjFKH9K.cjs +0 -1
- package/dist/adapters/RetentionHeatmap.config-CvKBvQmu.cjs +0 -1
- package/dist/adapters/RetentionHeatmap.config-DbM3ICwc.js +0 -2
- package/dist/adapters/SankeyChart.config-BNBcIHaD.js +0 -2
- package/dist/adapters/SankeyChart.config-DZscz3kh.cjs +0 -1
- package/dist/adapters/ScatterChart.config-BNYIddyM.cjs +0 -1
- package/dist/adapters/ScatterChart.config-CEhtoLWc.js +0 -2
- package/dist/adapters/SunburstChart.config-ClseCzji.cjs +0 -1
- package/dist/adapters/SunburstChart.config-nnphNoVO.js +0 -2
- package/dist/adapters/TreeMapChart.config-C8-75muA.js +0 -2
- package/dist/adapters/TreeMapChart.config-DoXeUg9Y.cjs +0 -1
- package/dist/adapters/WaterfallChart.config-BOF1qxY3.cjs +0 -1
- package/dist/adapters/WaterfallChart.config-uW5YyOji.js +0 -2
- package/dist/adapters/core-zV2w0hO2.cjs +0 -1
- package/dist/adapters/mcp-transport-C_t_p0wU.cjs +0 -40
- package/dist/adapters/mcp-transport-DFH9e6de.js +0 -603
- package/dist/adapters/utils-C5FLHK04.cjs +0 -128
- package/dist/client/chunks/af-ZA-BTaChuqI.js.map +0 -1
- package/dist/client/chunks/chart-activity-grid-DVOhLgxv.js.map +0 -1
- package/dist/client/chunks/chart-config-gauge-DNafFwfS.js.map +0 -1
- package/dist/client/chunks/chart-data-table-SNSqZj9B.js.map +0 -1
- package/dist/client/chunks/chart-gauge-DHIGq3TH.js.map +0 -1
- package/dist/client/chunks/charts-loader-0avVzeDd.js +0 -85
- package/dist/client/chunks/nl-NL-BSMhprPr.js.map +0 -1
- package/dist/client/chunks/vendor-cTfe9Kho.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { i as e, j as t } from "../utils-
|
|
2
|
-
import { t as n } from "../compiler-
|
|
3
|
-
import { C as r,
|
|
4
|
-
import {
|
|
1
|
+
import { i as e, j as t } from "../utils-DkmShl5f.js";
|
|
2
|
+
import { t as n } from "../compiler-CQJ5GOwF.js";
|
|
3
|
+
import { C as r, _ as i, h as a, l as o, s, x as c } from "../mcp-transport-fJud19xz.js";
|
|
4
|
+
import { o as l, r as u, t as d } from "../core-DXkuSUBg.js";
|
|
5
5
|
//#region src/adapters/fastify/index.ts
|
|
6
6
|
function f(e, t) {
|
|
7
7
|
let n = e.headers[t.toLowerCase()];
|
|
@@ -22,7 +22,7 @@ function p(e, t) {
|
|
|
22
22
|
}
|
|
23
23
|
var m = function(t, m, h) {
|
|
24
24
|
let { cubes: g, drizzle: _, schema: v, extractSecurityContext: y, engineType: b, cors: x, basePath: S = "/cubejs-api/v1", bodyLimit: C = 10485760, cache: w, mcp: T = { enabled: !0 }, agent: E } = m;
|
|
25
|
-
if (!g || g.length === 0) return h(/* @__PURE__ */ Error("At least one cube must be provided in the cubes array"));
|
|
25
|
+
if (!m.semanticLayer && (!g || g.length === 0)) return h(/* @__PURE__ */ Error("At least one cube must be provided in the cubes array, or pass a pre-configured semanticLayer"));
|
|
26
26
|
if (x) {
|
|
27
27
|
let e = {
|
|
28
28
|
...x,
|
|
@@ -33,14 +33,14 @@ var m = function(t, m, h) {
|
|
|
33
33
|
t.addHook("onRequest", async (e, t) => {
|
|
34
34
|
e.method === "POST" && (e.body = void 0);
|
|
35
35
|
});
|
|
36
|
-
let D = new n({
|
|
36
|
+
let D = m.semanticLayer ?? new n({
|
|
37
37
|
drizzle: _,
|
|
38
38
|
schema: v,
|
|
39
39
|
engineType: b,
|
|
40
40
|
cache: w,
|
|
41
41
|
rlsSetup: m.rlsSetup
|
|
42
42
|
});
|
|
43
|
-
g.forEach((e) => {
|
|
43
|
+
!m.semanticLayer && g && g.forEach((e) => {
|
|
44
44
|
D.registerCube(e);
|
|
45
45
|
});
|
|
46
46
|
let O = d({
|
|
@@ -68,7 +68,7 @@ var m = function(t, m, h) {
|
|
|
68
68
|
items: { type: "object" }
|
|
69
69
|
} }
|
|
70
70
|
} }
|
|
71
|
-
}, (e, t) => O.handleBatchPost(p(e, t), k(e))), t.get(`${S}/meta`, (e, t) => O.handleMetaGet(p(e, t))), t.post(`${S}/sql`, A, (e, t) => O.handleSqlPost(p(e, t), k(e))), t.get(`${S}/sql`, j, (e, t) => O.handleSqlGet(p(e, t), k(e))), t.post(`${S}/dry-run`, A, (e, t) => O.handleDryRunPost(p(e, t), k(e))), t.get(`${S}/dry-run`, j, (e, t) => O.handleDryRunGet(p(e, t), k(e))), t.post(`${S}/explain`, A, (e, t) => O.handleExplainPost(p(e, t), k(e))), E && t.post(`${S}/agent/chat`, {
|
|
71
|
+
}, (e, t) => O.handleBatchPost(p(e, t), k(e))), t.get(`${S}/meta`, (e, t) => O.handleMetaGet(p(e, t), k(e))), t.post(`${S}/sql`, A, (e, t) => O.handleSqlPost(p(e, t), k(e))), t.get(`${S}/sql`, j, (e, t) => O.handleSqlGet(p(e, t), k(e))), t.post(`${S}/dry-run`, A, (e, t) => O.handleDryRunPost(p(e, t), k(e))), t.get(`${S}/dry-run`, j, (e, t) => O.handleDryRunGet(p(e, t), k(e))), t.post(`${S}/explain`, A, (e, t) => O.handleExplainPost(p(e, t), k(e))), E && t.post(`${S}/agent/chat`, {
|
|
72
72
|
bodyLimit: C,
|
|
73
73
|
schema: { body: {
|
|
74
74
|
type: "object",
|
|
@@ -76,7 +76,7 @@ var m = function(t, m, h) {
|
|
|
76
76
|
} }
|
|
77
77
|
}, async (e, t) => {
|
|
78
78
|
try {
|
|
79
|
-
let { handleAgentChat: n } = await import("../handler-
|
|
79
|
+
let { handleAgentChat: n } = await import("../handler-CphYSZRh.js"), { message: r, sessionId: i, history: a } = e.body;
|
|
80
80
|
if (!r || typeof r != "string") return t.status(400).send({ error: "message is required and must be a string" });
|
|
81
81
|
let o = (E.apiKey || "").trim();
|
|
82
82
|
if (E.allowClientApiKey) {
|
|
@@ -128,8 +128,8 @@ var m = function(t, m, h) {
|
|
|
128
128
|
}, (e, t) => O.handleMcpPost(p(e, t), k(e))), t.get(`${e}`, async (e, t) => {
|
|
129
129
|
let n = r(e.headers.origin, a(T));
|
|
130
130
|
if (!n.valid) return t.status(403).send({ error: n.reason });
|
|
131
|
-
if (T.resourceMetadataUrl && !o(e.headers.authorization)) return t.header("WWW-Authenticate",
|
|
132
|
-
let l =
|
|
131
|
+
if (T.resourceMetadataUrl && !o(e.headers.authorization)) return t.header("WWW-Authenticate", s(T.resourceMetadataUrl)), t.status(401).send({ error: "Bearer token required" });
|
|
132
|
+
let l = i();
|
|
133
133
|
t.raw.writeHead(200, {
|
|
134
134
|
"Content-Type": "text/event-stream",
|
|
135
135
|
"Cache-Control": "no-cache",
|
|
@@ -147,7 +147,7 @@ var m = function(t, m, h) {
|
|
|
147
147
|
});
|
|
148
148
|
}), t.delete(`${e}`, async (e, t) => {
|
|
149
149
|
let n = r(e.headers.origin, a(T));
|
|
150
|
-
return n.valid ? T.resourceMetadataUrl && !o(e.headers.authorization) ? (t.header("WWW-Authenticate",
|
|
150
|
+
return n.valid ? T.resourceMetadataUrl && !o(e.headers.authorization) ? (t.header("WWW-Authenticate", s(T.resourceMetadataUrl)), t.status(401).send({ error: "Bearer token required" })) : t.status(405).send({ error: "Session termination not supported" }) : t.status(403).send({ error: n.reason });
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
153
|
t.setErrorHandler(async (t, n, r) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as e, _ as t, g as n, h as r, m as i, p as a, v as o, x as s } from "./utils-
|
|
1
|
+
import { O as e, _ as t, g as n, h as r, m as i, p as a, v as o, x as s } from "./utils-DkmShl5f.js";
|
|
2
2
|
import { a as c, c as l, d as u, i as d, l as f, n as p, o as m, r as h, s as g, t as _, u as v } from "./chartConfigHelpers-BsnbxA2c.js";
|
|
3
3
|
//#region src/server/agent/system-prompt.ts
|
|
4
4
|
function y(e, t) {
|
|
@@ -1650,9 +1650,8 @@ var w = {
|
|
|
1650
1650
|
{
|
|
1651
1651
|
key: "thresholds",
|
|
1652
1652
|
label: "chart.configText.threshold_bands",
|
|
1653
|
-
type: "
|
|
1654
|
-
|
|
1655
|
-
description: "chart.configText.array_of_value_0_1_fraction_color_bands_shown_as_outer_arc_markers"
|
|
1653
|
+
type: "thresholdBands",
|
|
1654
|
+
description: "chart.gauge.thresholds.description"
|
|
1656
1655
|
},
|
|
1657
1656
|
{
|
|
1658
1657
|
key: "showCenterLabel",
|
|
@@ -1686,7 +1685,7 @@ var w = {
|
|
|
1686
1685
|
useCase: "chart.bar.useCase",
|
|
1687
1686
|
isAvailable: c,
|
|
1688
1687
|
dependencies: J,
|
|
1689
|
-
config: async () => (await import("./BarChart.config-
|
|
1688
|
+
config: async () => (await import("./BarChart.config-lt_7PdIi.js")).barChartConfig
|
|
1690
1689
|
},
|
|
1691
1690
|
line: {
|
|
1692
1691
|
label: "chart.line.label",
|
|
@@ -1695,7 +1694,7 @@ var w = {
|
|
|
1695
1694
|
useCase: "chart.line.useCase",
|
|
1696
1695
|
isAvailable: c,
|
|
1697
1696
|
dependencies: J,
|
|
1698
|
-
config: async () => (await import("./LineChart.config-
|
|
1697
|
+
config: async () => (await import("./LineChart.config-DTp7pqOY.js")).lineChartConfig
|
|
1699
1698
|
},
|
|
1700
1699
|
area: {
|
|
1701
1700
|
label: "chart.area.label",
|
|
@@ -1704,7 +1703,7 @@ var w = {
|
|
|
1704
1703
|
useCase: "chart.area.useCase",
|
|
1705
1704
|
isAvailable: c,
|
|
1706
1705
|
dependencies: J,
|
|
1707
|
-
config: async () => (await import("./AreaChart.config-
|
|
1706
|
+
config: async () => (await import("./AreaChart.config-3cme8HyQ.js")).areaChartConfig
|
|
1708
1707
|
},
|
|
1709
1708
|
pie: {
|
|
1710
1709
|
label: "chart.pie.label",
|
|
@@ -1713,7 +1712,7 @@ var w = {
|
|
|
1713
1712
|
useCase: "chart.pie.useCase",
|
|
1714
1713
|
isAvailable: c,
|
|
1715
1714
|
dependencies: J,
|
|
1716
|
-
config: async () => (await import("./PieChart.config-
|
|
1715
|
+
config: async () => (await import("./PieChart.config-BzJb13QA.js")).pieChartConfig
|
|
1717
1716
|
},
|
|
1718
1717
|
scatter: {
|
|
1719
1718
|
label: "chart.scatter.label",
|
|
@@ -1728,7 +1727,7 @@ var w = {
|
|
|
1728
1727
|
reason: "chart.availability.scatter"
|
|
1729
1728
|
} : { available: !0 },
|
|
1730
1729
|
dependencies: J,
|
|
1731
|
-
config: async () => (await import("./ScatterChart.config-
|
|
1730
|
+
config: async () => (await import("./ScatterChart.config-DLZ3rYMq.js")).scatterChartConfig
|
|
1732
1731
|
},
|
|
1733
1732
|
bubble: {
|
|
1734
1733
|
label: "chart.bubble.label",
|
|
@@ -1743,7 +1742,7 @@ var w = {
|
|
|
1743
1742
|
reason: "chart.availability.bubble"
|
|
1744
1743
|
} : { available: !0 },
|
|
1745
1744
|
dependencies: J,
|
|
1746
|
-
config: async () => (await import("./BubbleChart.config-
|
|
1745
|
+
config: async () => (await import("./BubbleChart.config-Fhotb7Pg.js")).bubbleChartConfig
|
|
1747
1746
|
},
|
|
1748
1747
|
radar: {
|
|
1749
1748
|
label: "chart.radar.label",
|
|
@@ -1752,7 +1751,7 @@ var w = {
|
|
|
1752
1751
|
useCase: "chart.radar.useCase",
|
|
1753
1752
|
isAvailable: c,
|
|
1754
1753
|
dependencies: J,
|
|
1755
|
-
config: async () => (await import("./RadarChart.config-
|
|
1754
|
+
config: async () => (await import("./RadarChart.config-BYhdj9M7.js")).radarChartConfig
|
|
1756
1755
|
},
|
|
1757
1756
|
radialBar: {
|
|
1758
1757
|
label: "chart.radialBar.label",
|
|
@@ -1761,7 +1760,7 @@ var w = {
|
|
|
1761
1760
|
useCase: "chart.radialBar.useCase",
|
|
1762
1761
|
isAvailable: c,
|
|
1763
1762
|
dependencies: J,
|
|
1764
|
-
config: async () => (await import("./RadialBarChart.config-
|
|
1763
|
+
config: async () => (await import("./RadialBarChart.config-ZMK9HMoh.js")).radialBarChartConfig
|
|
1765
1764
|
},
|
|
1766
1765
|
treemap: {
|
|
1767
1766
|
label: "chart.treemap.label",
|
|
@@ -1770,14 +1769,14 @@ var w = {
|
|
|
1770
1769
|
useCase: "chart.treemap.useCase",
|
|
1771
1770
|
isAvailable: c,
|
|
1772
1771
|
dependencies: J,
|
|
1773
|
-
config: async () => (await import("./TreeMapChart.config-
|
|
1772
|
+
config: async () => (await import("./TreeMapChart.config-CprZk_YF.js")).treemapChartConfig
|
|
1774
1773
|
},
|
|
1775
1774
|
table: {
|
|
1776
1775
|
label: "chart.table.label",
|
|
1777
1776
|
icon: "chartTable",
|
|
1778
1777
|
description: "chart.table.description",
|
|
1779
1778
|
useCase: "chart.table.useCase",
|
|
1780
|
-
config: async () => (await import("./DataTable.config-
|
|
1779
|
+
config: async () => (await import("./DataTable.config-71L0GzlT.js")).dataTableConfig
|
|
1781
1780
|
},
|
|
1782
1781
|
activityGrid: {
|
|
1783
1782
|
label: "chart.activityGrid.label",
|
|
@@ -1791,7 +1790,7 @@ var w = {
|
|
|
1791
1790
|
available: !1,
|
|
1792
1791
|
reason: "chart.availability.requiresTimeDimension"
|
|
1793
1792
|
} : { available: !0 },
|
|
1794
|
-
config: async () => (await import("./ActivityGridChart.config-
|
|
1793
|
+
config: async () => (await import("./ActivityGridChart.config-BQhBE_Mr.js")).activityGridChartConfig
|
|
1795
1794
|
},
|
|
1796
1795
|
kpiNumber: {
|
|
1797
1796
|
label: "chart.kpiNumber.label",
|
|
@@ -1799,7 +1798,7 @@ var w = {
|
|
|
1799
1798
|
description: "chart.kpiNumber.description",
|
|
1800
1799
|
useCase: "chart.kpiNumber.useCase",
|
|
1801
1800
|
isAvailable: d,
|
|
1802
|
-
config: async () => (await import("./KpiNumber.config-
|
|
1801
|
+
config: async () => (await import("./KpiNumber.config-927l8nq8.js")).kpiNumberConfig
|
|
1803
1802
|
},
|
|
1804
1803
|
kpiDelta: {
|
|
1805
1804
|
label: "chart.kpiDelta.label",
|
|
@@ -1807,7 +1806,7 @@ var w = {
|
|
|
1807
1806
|
description: "chart.kpiDelta.description",
|
|
1808
1807
|
useCase: "chart.kpiDelta.useCase",
|
|
1809
1808
|
isAvailable: c,
|
|
1810
|
-
config: async () => (await import("./KpiDelta.config-
|
|
1809
|
+
config: async () => (await import("./KpiDelta.config-DVy561BH.js")).kpiDeltaConfig
|
|
1811
1810
|
},
|
|
1812
1811
|
kpiText: {
|
|
1813
1812
|
label: "chart.kpiText.label",
|
|
@@ -1815,14 +1814,14 @@ var w = {
|
|
|
1815
1814
|
description: "chart.kpiText.description",
|
|
1816
1815
|
useCase: "chart.kpiText.useCase",
|
|
1817
1816
|
isAvailable: d,
|
|
1818
|
-
config: async () => (await import("./KpiText.config-
|
|
1817
|
+
config: async () => (await import("./KpiText.config-CWoXuhMA.js")).kpiTextConfig
|
|
1819
1818
|
},
|
|
1820
1819
|
markdown: {
|
|
1821
1820
|
label: "chart.markdown.label",
|
|
1822
1821
|
icon: "chartMarkdown",
|
|
1823
1822
|
description: "chart.markdown.description",
|
|
1824
1823
|
useCase: "chart.markdown.useCase",
|
|
1825
|
-
config: async () => (await import("./MarkdownChart.config-
|
|
1824
|
+
config: async () => (await import("./MarkdownChart.config-Cb2TnS0I.js")).markdownConfig
|
|
1826
1825
|
},
|
|
1827
1826
|
funnel: {
|
|
1828
1827
|
label: "chart.funnel.label",
|
|
@@ -1830,7 +1829,7 @@ var w = {
|
|
|
1830
1829
|
description: "chart.funnel.description",
|
|
1831
1830
|
useCase: "chart.funnel.useCase",
|
|
1832
1831
|
dependencies: J,
|
|
1833
|
-
config: async () => (await import("./FunnelChart.config-
|
|
1832
|
+
config: async () => (await import("./FunnelChart.config-DJtwWeNz.js")).funnelChartConfig
|
|
1834
1833
|
},
|
|
1835
1834
|
sankey: {
|
|
1836
1835
|
label: "chart.sankey.label",
|
|
@@ -1838,7 +1837,7 @@ var w = {
|
|
|
1838
1837
|
description: "chart.sankey.description",
|
|
1839
1838
|
useCase: "chart.sankey.useCase",
|
|
1840
1839
|
dependencies: J,
|
|
1841
|
-
config: async () => (await import("./SankeyChart.config-
|
|
1840
|
+
config: async () => (await import("./SankeyChart.config-ClgqXM1N.js")).sankeyChartConfig
|
|
1842
1841
|
},
|
|
1843
1842
|
sunburst: {
|
|
1844
1843
|
label: "chart.sunburst.label",
|
|
@@ -1846,7 +1845,7 @@ var w = {
|
|
|
1846
1845
|
description: "chart.sunburst.description",
|
|
1847
1846
|
useCase: "chart.sunburst.useCase",
|
|
1848
1847
|
dependencies: J,
|
|
1849
|
-
config: async () => (await import("./SunburstChart.config-
|
|
1848
|
+
config: async () => (await import("./SunburstChart.config-FNU75NCg.js")).sunburstChartConfig
|
|
1850
1849
|
},
|
|
1851
1850
|
heatmap: {
|
|
1852
1851
|
label: "chart.heatmap.label",
|
|
@@ -1864,21 +1863,21 @@ var w = {
|
|
|
1864
1863
|
packageName: "@nivo/heatmap",
|
|
1865
1864
|
installCommand: "npm install @nivo/heatmap"
|
|
1866
1865
|
},
|
|
1867
|
-
config: async () => (await import("./HeatMapChart.config-
|
|
1866
|
+
config: async () => (await import("./HeatMapChart.config-DsmMgGxJ.js")).heatmapChartConfig
|
|
1868
1867
|
},
|
|
1869
1868
|
retentionHeatmap: {
|
|
1870
1869
|
label: "chart.retentionHeatmap.label",
|
|
1871
1870
|
icon: "chartRetention",
|
|
1872
1871
|
description: "chart.retentionHeatmap.description",
|
|
1873
1872
|
useCase: "chart.retentionHeatmap.useCase",
|
|
1874
|
-
config: async () => (await import("./RetentionHeatmap.config-
|
|
1873
|
+
config: async () => (await import("./RetentionHeatmap.config-Dvj7yTB0.js")).retentionHeatmapConfig
|
|
1875
1874
|
},
|
|
1876
1875
|
retentionCombined: {
|
|
1877
1876
|
label: "chart.retentionCombined.label",
|
|
1878
1877
|
icon: "chartRetention",
|
|
1879
1878
|
description: "chart.retentionCombined.description",
|
|
1880
1879
|
useCase: "chart.retentionCombined.useCase",
|
|
1881
|
-
config: async () => (await import("./RetentionCombinedChart.config-
|
|
1880
|
+
config: async () => (await import("./RetentionCombinedChart.config-Dd-YMdK8.js")).retentionCombinedConfig
|
|
1882
1881
|
},
|
|
1883
1882
|
boxPlot: {
|
|
1884
1883
|
label: "chart.boxPlot.label",
|
|
@@ -1886,7 +1885,7 @@ var w = {
|
|
|
1886
1885
|
description: "chart.boxPlot.description",
|
|
1887
1886
|
useCase: "chart.boxPlot.useCase",
|
|
1888
1887
|
isAvailable: c,
|
|
1889
|
-
config: async () => (await import("./BoxPlotChart.config-
|
|
1888
|
+
config: async () => (await import("./BoxPlotChart.config-Dv6ECj2j.js")).boxPlotChartConfig
|
|
1890
1889
|
},
|
|
1891
1890
|
waterfall: {
|
|
1892
1891
|
label: "chart.waterfall.label",
|
|
@@ -1895,7 +1894,7 @@ var w = {
|
|
|
1895
1894
|
useCase: "chart.waterfall.useCase",
|
|
1896
1895
|
isAvailable: c,
|
|
1897
1896
|
dependencies: J,
|
|
1898
|
-
config: async () => (await import("./WaterfallChart.config-
|
|
1897
|
+
config: async () => (await import("./WaterfallChart.config-H7s6SSV3.js")).waterfallChartConfig
|
|
1899
1898
|
},
|
|
1900
1899
|
candlestick: {
|
|
1901
1900
|
label: "chart.candlestick.label",
|
|
@@ -1909,7 +1908,7 @@ var w = {
|
|
|
1909
1908
|
available: !1,
|
|
1910
1909
|
reason: "chart.availability.requiresDimension"
|
|
1911
1910
|
} : { available: !0 },
|
|
1912
|
-
config: async () => (await import("./CandlestickChart.config-
|
|
1911
|
+
config: async () => (await import("./CandlestickChart.config-RPtXuxsX.js")).candlestickChartConfig
|
|
1913
1912
|
},
|
|
1914
1913
|
measureProfile: {
|
|
1915
1914
|
label: "chart.measureProfile.label",
|
|
@@ -1921,7 +1920,7 @@ var w = {
|
|
|
1921
1920
|
reason: "chart.availability.requiresTwoMeasures"
|
|
1922
1921
|
} : { available: !0 },
|
|
1923
1922
|
dependencies: J,
|
|
1924
|
-
config: async () => (await import("./MeasureProfileChart.config-
|
|
1923
|
+
config: async () => (await import("./MeasureProfileChart.config-CvBCeI5b.js")).measureProfileChartConfig
|
|
1925
1924
|
},
|
|
1926
1925
|
proportionBar: {
|
|
1927
1926
|
label: "chart.proportionBar.label",
|
|
@@ -1929,7 +1928,7 @@ var w = {
|
|
|
1929
1928
|
description: "chart.proportionBar.description",
|
|
1930
1929
|
useCase: "chart.proportionBar.useCase",
|
|
1931
1930
|
isAvailable: c,
|
|
1932
|
-
config: async () => (await import("./ProportionBarChart.config-
|
|
1931
|
+
config: async () => (await import("./ProportionBarChart.config-CN6TtHTp.js")).proportionBarChartConfig
|
|
1933
1932
|
},
|
|
1934
1933
|
gauge: {
|
|
1935
1934
|
label: "chart.gauge.label",
|
|
@@ -1941,7 +1940,7 @@ var w = {
|
|
|
1941
1940
|
packageName: "d3-shape",
|
|
1942
1941
|
installCommand: "npm install d3-shape"
|
|
1943
1942
|
},
|
|
1944
|
-
config: async () => (await import("./GaugeChart.config-
|
|
1943
|
+
config: async () => (await import("./GaugeChart.config-vpVQlP5B.js")).gaugeChartConfig
|
|
1945
1944
|
}
|
|
1946
1945
|
};
|
|
1947
1946
|
function ae(e, t) {
|
|
@@ -2398,7 +2397,7 @@ function ge() {
|
|
|
2398
2397
|
function _e(e) {
|
|
2399
2398
|
let { semanticLayer: t, securityContext: n } = e, o = /* @__PURE__ */ new Map();
|
|
2400
2399
|
o.set("discover_cubes", async (e) => {
|
|
2401
|
-
let
|
|
2400
|
+
let r = { cubes: (await a(t, n, {
|
|
2402
2401
|
topic: e.topic,
|
|
2403
2402
|
intent: e.intent,
|
|
2404
2403
|
limit: e.limit,
|
|
@@ -2417,13 +2416,13 @@ function _e(e) {
|
|
|
2417
2416
|
...e.analysisConfig?.candidateEventDimensions?.length ? { candidateEventDimensions: e.analysisConfig.candidateEventDimensions.map((e) => e.dimension) } : {}
|
|
2418
2417
|
} } : {}
|
|
2419
2418
|
})) };
|
|
2420
|
-
return { result: JSON.stringify(
|
|
2419
|
+
return { result: JSON.stringify(r) + "\n[IMPORTANT: Your next response MUST start with a brief text message BEFORE any tool calls.]" };
|
|
2421
2420
|
}), o.set("get_cube_metadata", async () => {
|
|
2422
|
-
let e = t.getMetadata();
|
|
2421
|
+
let e = t.getMetadata(n);
|
|
2423
2422
|
return { result: JSON.stringify(e) };
|
|
2424
2423
|
});
|
|
2425
2424
|
let s = /* @__PURE__ */ new Map();
|
|
2426
|
-
for (let e of t.getMetadata()) s.set(e.name, {
|
|
2425
|
+
for (let e of t.getMetadata(n)) s.set(e.name, {
|
|
2427
2426
|
measures: (e.measures || []).map((e) => e.name),
|
|
2428
2427
|
dimensions: (e.dimensions || []).map((e) => e.name)
|
|
2429
2428
|
});
|
|
@@ -2479,47 +2478,47 @@ function _e(e) {
|
|
|
2479
2478
|
};
|
|
2480
2479
|
}
|
|
2481
2480
|
}), o.set("add_portlet", async (e) => {
|
|
2482
|
-
let
|
|
2481
|
+
let i = {
|
|
2483
2482
|
number: "kpiNumber",
|
|
2484
2483
|
retention: "retentionHeatmap"
|
|
2485
|
-
}[e.chartType] ?? e.chartType,
|
|
2484
|
+
}[e.chartType] ?? e.chartType, a;
|
|
2486
2485
|
try {
|
|
2487
|
-
|
|
2486
|
+
a = JSON.parse(e.query);
|
|
2488
2487
|
} catch {
|
|
2489
2488
|
return {
|
|
2490
2489
|
result: "Invalid query: could not parse JSON string. Ensure `query` is a valid JSON string.",
|
|
2491
2490
|
isError: !0
|
|
2492
2491
|
};
|
|
2493
2492
|
}
|
|
2494
|
-
|
|
2495
|
-
let
|
|
2496
|
-
if (!
|
|
2497
|
-
result: `Invalid query — fix these errors and retry:\n${
|
|
2493
|
+
a = r(a);
|
|
2494
|
+
let o = t.validateQuery(a, n);
|
|
2495
|
+
if (!o.isValid) return {
|
|
2496
|
+
result: `Invalid query — fix these errors and retry:\n${o.errors.join("\n")}\n\nAttempted query:\n${JSON.stringify(a, null, 2)}`,
|
|
2498
2497
|
isError: !0
|
|
2499
2498
|
};
|
|
2500
|
-
let
|
|
2501
|
-
if (
|
|
2499
|
+
let s = !!(a.funnel || a.flow || a.retention), c;
|
|
2500
|
+
if (s) c = e.chartConfig ?? {};
|
|
2502
2501
|
else {
|
|
2503
|
-
let t = me(
|
|
2504
|
-
if (!
|
|
2505
|
-
result: `Chart config invalid — fix these errors and retry:\n${
|
|
2502
|
+
let t = me(i, e.chartConfig, a), n = de(i, t, a);
|
|
2503
|
+
if (!n.isValid) return {
|
|
2504
|
+
result: `Chart config invalid — fix these errors and retry:\n${n.errors.join("\n")}`,
|
|
2506
2505
|
isError: !0
|
|
2507
2506
|
};
|
|
2508
|
-
|
|
2507
|
+
c = t;
|
|
2509
2508
|
}
|
|
2510
|
-
let
|
|
2511
|
-
id:
|
|
2509
|
+
let l = `portlet-${Date.now()}-${Math.random().toString(36).slice(2, 7)}`, u = {
|
|
2510
|
+
id: l,
|
|
2512
2511
|
title: e.title,
|
|
2513
2512
|
query: e.query,
|
|
2514
|
-
chartType:
|
|
2515
|
-
chartConfig:
|
|
2513
|
+
chartType: i,
|
|
2514
|
+
chartConfig: c,
|
|
2516
2515
|
displayConfig: e.displayConfig
|
|
2517
2516
|
};
|
|
2518
2517
|
return {
|
|
2519
|
-
result: `Portlet "${e.title}" added to notebook (id: ${
|
|
2518
|
+
result: `Portlet "${e.title}" added to notebook (id: ${l}, chart: ${i}). [Reminder: in your next response, start with a brief sentence about what you will do next BEFORE making any tool calls.]`,
|
|
2520
2519
|
sideEffect: {
|
|
2521
2520
|
type: "add_portlet",
|
|
2522
|
-
data:
|
|
2521
|
+
data: u
|
|
2523
2522
|
}
|
|
2524
2523
|
};
|
|
2525
2524
|
}), o.set("add_markdown", async (e) => {
|
|
@@ -2537,36 +2536,36 @@ function _e(e) {
|
|
|
2537
2536
|
};
|
|
2538
2537
|
}), o.set("save_as_dashboard", async (e) => {
|
|
2539
2538
|
try {
|
|
2540
|
-
let
|
|
2541
|
-
if (!
|
|
2539
|
+
let i = e.portlets;
|
|
2540
|
+
if (!i || i.length === 0) return {
|
|
2542
2541
|
result: "Dashboard must contain at least one portlet.",
|
|
2543
2542
|
isError: !0
|
|
2544
2543
|
};
|
|
2545
|
-
let
|
|
2546
|
-
for (let e of
|
|
2544
|
+
let a = [];
|
|
2545
|
+
for (let e of i) {
|
|
2547
2546
|
if (e.chartType === "markdown") continue;
|
|
2548
|
-
let
|
|
2549
|
-
if (!
|
|
2550
|
-
|
|
2547
|
+
let i = e.query;
|
|
2548
|
+
if (!i) {
|
|
2549
|
+
a.push(`Portlet "${e.title}": missing query`);
|
|
2551
2550
|
continue;
|
|
2552
2551
|
}
|
|
2553
|
-
let
|
|
2552
|
+
let o;
|
|
2554
2553
|
try {
|
|
2555
|
-
|
|
2554
|
+
o = JSON.parse(i);
|
|
2556
2555
|
} catch {
|
|
2557
|
-
|
|
2556
|
+
a.push(`Portlet "${e.title}": invalid JSON query`);
|
|
2558
2557
|
continue;
|
|
2559
2558
|
}
|
|
2560
|
-
|
|
2561
|
-
let
|
|
2562
|
-
|
|
2559
|
+
o = r(o);
|
|
2560
|
+
let s = t.validateQuery(o, n);
|
|
2561
|
+
s.isValid || a.push(`Portlet "${e.title}": ${s.errors.join(", ")}`);
|
|
2563
2562
|
}
|
|
2564
|
-
if (
|
|
2565
|
-
result: `Dashboard has invalid portlets — fix these errors and retry:\n${
|
|
2563
|
+
if (a.length > 0) return {
|
|
2564
|
+
result: `Dashboard has invalid portlets — fix these errors and retry:\n${a.join("\n")}`,
|
|
2566
2565
|
isError: !0
|
|
2567
2566
|
};
|
|
2568
|
-
let
|
|
2569
|
-
portlets:
|
|
2567
|
+
let o = {
|
|
2568
|
+
portlets: i.map((e) => {
|
|
2570
2569
|
let t = e.chartType, n = t === "markdown", r = n ? "query" : e.analysisType || "query", i = r === "funnel" ? "funnel" : r === "flow" ? "flow" : r === "retention" ? "retention" : "query", a = e.query || "{}", o;
|
|
2571
2570
|
try {
|
|
2572
2571
|
o = JSON.parse(a);
|
|
@@ -2597,15 +2596,15 @@ function _e(e) {
|
|
|
2597
2596
|
}),
|
|
2598
2597
|
filters: e.filters,
|
|
2599
2598
|
colorPalette: e.colorPalette
|
|
2600
|
-
},
|
|
2599
|
+
}, s = e.title;
|
|
2601
2600
|
return {
|
|
2602
|
-
result: `Dashboard "${
|
|
2601
|
+
result: `Dashboard "${s}" created with ${o.portlets.length} portlets and ${o.filters?.length || 0} filters.`,
|
|
2603
2602
|
sideEffect: {
|
|
2604
2603
|
type: "dashboard_saved",
|
|
2605
2604
|
data: {
|
|
2606
|
-
title:
|
|
2605
|
+
title: s,
|
|
2607
2606
|
description: e.description,
|
|
2608
|
-
dashboardConfig:
|
|
2607
|
+
dashboardConfig: o
|
|
2609
2608
|
}
|
|
2610
2609
|
}
|
|
2611
2610
|
};
|
|
@@ -2626,7 +2625,7 @@ async function ve(e, t, n) {
|
|
|
2626
2625
|
return new e(t);
|
|
2627
2626
|
}
|
|
2628
2627
|
case "openai": {
|
|
2629
|
-
let { OpenAIProvider: e } = await import("./openai-
|
|
2628
|
+
let { OpenAIProvider: e } = await import("./openai-D-VMcPao.js");
|
|
2630
2629
|
return new e(t, n);
|
|
2631
2630
|
}
|
|
2632
2631
|
case "google": {
|
|
@@ -2863,7 +2862,7 @@ async function* ke(t) {
|
|
|
2863
2862
|
let v = ge(), y = _e({
|
|
2864
2863
|
semanticLayer: i,
|
|
2865
2864
|
securityContext: a
|
|
2866
|
-
}), b = te(i.getMetadata());
|
|
2865
|
+
}), b = te(i.getMetadata(a));
|
|
2867
2866
|
t.systemContext && (b += `\n\n## User Context\n\n${t.systemContext}`), $(() => l?.onChatStart?.({
|
|
2868
2867
|
traceId: u,
|
|
2869
2868
|
sessionId: c,
|