drizzle-cube 0.8.2 → 0.8.3
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-Bu5lf3M0.js +2 -0
- package/dist/adapters/ActivityGridChart.config-NSLCFzvM.cjs +1 -0
- package/dist/adapters/AreaChart.config-Bv7qJYd0.cjs +1 -0
- package/dist/adapters/AreaChart.config-DexPQDQp.js +2 -0
- package/dist/adapters/BarChart.config-Br0vyPO0.js +2 -0
- package/dist/adapters/BarChart.config-Dc1FHoux.cjs +1 -0
- package/dist/adapters/BoxPlotChart.config-C_j-wp0l.cjs +1 -0
- package/dist/adapters/BoxPlotChart.config-Dz9P8ck_.js +2 -0
- package/dist/adapters/BubbleChart.config-e6hABmpk.js +2 -0
- package/dist/adapters/BubbleChart.config-ro80CWd_.cjs +1 -0
- package/dist/adapters/CandlestickChart.config-Btzcen-6.cjs +1 -0
- package/dist/adapters/CandlestickChart.config-BzAPnbp4.js +2 -0
- package/dist/adapters/DataTable.config-RNGMSueS.cjs +1 -0
- package/dist/adapters/DataTable.config-enzxzWhP.js +2 -0
- package/dist/adapters/DotStripChart.config-C3FEV6Ys.js +2 -0
- package/dist/adapters/DotStripChart.config-DhODtwbu.cjs +1 -0
- package/dist/adapters/FunnelChart.config-CX1DFABr.cjs +1 -0
- package/dist/adapters/FunnelChart.config-DXg1N0FP.js +2 -0
- package/dist/adapters/GaugeChart.config-Dl2DrFSl.cjs +1 -0
- package/dist/adapters/GaugeChart.config-oiPzrfGx.js +2 -0
- package/dist/adapters/HeatMapChart.config-B9SrePWx.js +2 -0
- package/dist/adapters/HeatMapChart.config-CTwcA2aU.cjs +1 -0
- package/dist/adapters/KpiDelta.config-CgZQueiY.js +2 -0
- package/dist/adapters/KpiDelta.config-eybdn0eH.cjs +1 -0
- package/dist/adapters/KpiNumber.config-Ce2piJuC.js +2 -0
- package/dist/adapters/KpiNumber.config-h_KXh89X.cjs +1 -0
- package/dist/adapters/KpiText.config-CLk6a0TW.cjs +1 -0
- package/dist/adapters/KpiText.config-_g2gpg2d.js +2 -0
- package/dist/adapters/LineChart.config-C3MQKW5U.cjs +1 -0
- package/dist/adapters/LineChart.config-CA4b1Xt-.js +2 -0
- package/dist/adapters/MarkdownChart.config-B4lCc0_v.js +2 -0
- package/dist/adapters/MarkdownChart.config-waq3gxEs.cjs +1 -0
- package/dist/adapters/MeasureProfileChart.config-B1LrfeP-.js +2 -0
- package/dist/adapters/MeasureProfileChart.config-Djka_dSU.cjs +1 -0
- package/dist/adapters/PieChart.config-BfSLFe9d.js +2 -0
- package/dist/adapters/PieChart.config-D5ixLlYJ.cjs +1 -0
- package/dist/adapters/ProportionBarChart.config-CRWy5aME.cjs +1 -0
- package/dist/adapters/ProportionBarChart.config-nyP6m6i0.js +2 -0
- package/dist/adapters/RadarChart.config-B7C-0wYa.cjs +1 -0
- package/dist/adapters/RadarChart.config-COzBFXrA.js +2 -0
- package/dist/adapters/RadialBarChart.config-C50IqzNQ.js +2 -0
- package/dist/adapters/RadialBarChart.config-LTSl-xoA.cjs +1 -0
- package/dist/adapters/RecordsTable.config-BHWD9CBE.js +2 -0
- package/dist/adapters/RecordsTable.config-DnY_PByk.cjs +1 -0
- package/dist/adapters/RetentionCombinedChart.config-CObWpIId.cjs +1 -0
- package/dist/adapters/RetentionCombinedChart.config-DxPk1BaI.js +2 -0
- package/dist/adapters/RetentionHeatmap.config-CHZiVXVo.cjs +1 -0
- package/dist/adapters/RetentionHeatmap.config-Ckoiq5Jo.js +2 -0
- package/dist/adapters/SankeyChart.config-CVoAarnp.cjs +1 -0
- package/dist/adapters/SankeyChart.config-D2R8E5Ss.js +2 -0
- package/dist/adapters/ScatterChart.config-BE_J_t4r.js +2 -0
- package/dist/adapters/ScatterChart.config-DsVSbcSc.cjs +1 -0
- package/dist/adapters/SunburstChart.config-BLtPPPli.cjs +1 -0
- package/dist/adapters/SunburstChart.config-DrnmHxNQ.js +2 -0
- package/dist/adapters/TreeMapChart.config-4p3cVWIy.js +2 -0
- package/dist/adapters/TreeMapChart.config-DkRO8LYG.cjs +1 -0
- package/dist/adapters/WaterfallChart.config-CKi4zg3x.cjs +1 -0
- package/dist/adapters/WaterfallChart.config-DuUXmAyw.js +2 -0
- package/dist/adapters/core/index.cjs +1 -1
- package/dist/adapters/core/index.js +1 -1
- package/dist/adapters/{core-l3KMTu9u.js → core-BBtbwMwR.js} +1 -1
- package/dist/adapters/{core-CrJu6vJY.cjs → core-DnUv8WiY.cjs} +1 -1
- package/dist/adapters/express/index.cjs +1 -1
- package/dist/adapters/express/index.js +3 -3
- package/dist/adapters/fastify/index.cjs +1 -1
- package/dist/adapters/fastify/index.js +3 -3
- package/dist/adapters/{handler-DESp4wPg.js → handler-_xh4X1OO.js} +30 -30
- package/dist/adapters/{handler-CRGZ8gd2.cjs → handler-l75Hbzv3.cjs} +2 -2
- package/dist/adapters/hono/index.cjs +1 -1
- package/dist/adapters/hono/index.js +3 -3
- package/dist/adapters/mcp-tools.cjs +1 -1
- package/dist/adapters/mcp-tools.js +1 -1
- package/dist/adapters/{mcp-transport-BqdBHmXL.js → mcp-transport-BOfhj01O.js} +1 -1
- package/dist/adapters/{mcp-transport-D8xZJLPD.cjs → mcp-transport-Dl5bn6h4.cjs} +1 -1
- package/dist/adapters/nextjs/index.cjs +1 -1
- package/dist/adapters/nextjs/index.js +3 -3
- package/dist/cjs/client/components/PortletGroupCard.d.ts +3 -1
- package/dist/cjs/client/components/RowManagedLayout.d.ts +5 -2
- package/dist/cjs/client/components/dashboardPortletCard/cardStyles.d.ts +7 -3
- package/dist/cjs/client/components/rowManagedLayout/sections.d.ts +46 -0
- package/dist/client/charts.js +1 -1
- package/dist/client/chunks/{DashboardEditModal-BliiIHcI.js → DashboardEditModal-B-0eV6vd.js} +870 -777
- package/dist/client/chunks/DashboardEditModal-B-0eV6vd.js.map +1 -0
- package/dist/client/chunks/{analysis-builder-C0gJ3kDD.js → analysis-builder-DnDw164v.js} +4 -4
- package/dist/client/chunks/{analysis-builder-C0gJ3kDD.js.map → analysis-builder-DnDw164v.js.map} +1 -1
- package/dist/client/chunks/{analysis-builder-shared-dqcpl_WL.js → analysis-builder-shared-D7eA0iW7.js} +2 -2
- package/dist/client/chunks/{analysis-builder-shared-dqcpl_WL.js.map → analysis-builder-shared-D7eA0iW7.js.map} +1 -1
- package/dist/client/chunks/{chart-markdown-yxN_xBP9.js → chart-markdown-BhLRzK_W.js} +2 -2
- package/dist/client/chunks/chart-markdown-BhLRzK_W.js.map +1 -0
- package/dist/client/chunks/{charts-loader-tCSbqT7H.js → charts-loader-D_yEsIpH.js} +2 -2
- package/dist/client/chunks/{charts-loader-tCSbqT7H.js.map → charts-loader-D_yEsIpH.js.map} +1 -1
- package/dist/client/components/PortletGroupCard.d.ts +3 -1
- package/dist/client/components/RowManagedLayout.d.ts +5 -2
- package/dist/client/components/dashboardPortletCard/cardStyles.d.ts +7 -3
- package/dist/client/components/rowManagedLayout/sections.d.ts +46 -0
- package/dist/client/components.js +1 -1
- package/dist/client/index.js +4 -4
- package/dist/client/styles.css +1 -1
- package/dist/client-bundle-stats.html +1 -1
- package/dist/mcp-app/mcp-app.html +1 -1
- package/package.json +1 -1
- package/dist/adapters/ActivityGridChart.config-Bc7mPqcf.cjs +0 -1
- package/dist/adapters/ActivityGridChart.config-Dd2YDeaM.js +0 -2
- package/dist/adapters/AreaChart.config-BqNusnpg.js +0 -2
- package/dist/adapters/AreaChart.config-dI84V34B.cjs +0 -1
- package/dist/adapters/BarChart.config-B9MQjgLJ.cjs +0 -1
- package/dist/adapters/BarChart.config-Cq_qcxBA.js +0 -2
- package/dist/adapters/BoxPlotChart.config-XmtRN2xq.cjs +0 -1
- package/dist/adapters/BoxPlotChart.config-Zc-JGV-W.js +0 -2
- package/dist/adapters/BubbleChart.config-CU_18uxb.js +0 -2
- package/dist/adapters/BubbleChart.config-CbhOzA6-.cjs +0 -1
- package/dist/adapters/CandlestickChart.config-Bwo3uaa-.js +0 -2
- package/dist/adapters/CandlestickChart.config-CmRBlWFv.cjs +0 -1
- package/dist/adapters/DataTable.config-7JNSj6qQ.js +0 -2
- package/dist/adapters/DataTable.config-DNxm1sYk.cjs +0 -1
- package/dist/adapters/DotStripChart.config-B7Dl-T1h.js +0 -2
- package/dist/adapters/DotStripChart.config-Co4g1fpZ.cjs +0 -1
- package/dist/adapters/FunnelChart.config-D1TpuGtL.cjs +0 -1
- package/dist/adapters/FunnelChart.config-vuZScOHQ.js +0 -2
- package/dist/adapters/GaugeChart.config-BMgUHKhC.cjs +0 -1
- package/dist/adapters/GaugeChart.config-zdpFydo6.js +0 -2
- package/dist/adapters/HeatMapChart.config-4XMab1zq.js +0 -2
- package/dist/adapters/HeatMapChart.config-C-Ns6QBq.cjs +0 -1
- package/dist/adapters/KpiDelta.config-BGdqsHcc.js +0 -2
- package/dist/adapters/KpiDelta.config-DuNxrGIi.cjs +0 -1
- package/dist/adapters/KpiNumber.config-CkPWpcSz.js +0 -2
- package/dist/adapters/KpiNumber.config-DMGmuA3i.cjs +0 -1
- package/dist/adapters/KpiText.config-Bvtuv8vE.js +0 -2
- package/dist/adapters/KpiText.config-DOMLO16U.cjs +0 -1
- package/dist/adapters/LineChart.config-CJmTSmZ1.js +0 -2
- package/dist/adapters/LineChart.config-CrkGu0aa.cjs +0 -1
- package/dist/adapters/MarkdownChart.config-BgY5Xc97.cjs +0 -1
- package/dist/adapters/MarkdownChart.config-Cm6G4Yuh.js +0 -2
- package/dist/adapters/MeasureProfileChart.config-BYwDo_ox.cjs +0 -1
- package/dist/adapters/MeasureProfileChart.config-Dt7npubZ.js +0 -2
- package/dist/adapters/PieChart.config-BRbPctBN.cjs +0 -1
- package/dist/adapters/PieChart.config-HZofeody.js +0 -2
- package/dist/adapters/ProportionBarChart.config-B_rTtGZr.cjs +0 -1
- package/dist/adapters/ProportionBarChart.config-ChCSoM0L.js +0 -2
- package/dist/adapters/RadarChart.config-B9OdMEib.js +0 -2
- package/dist/adapters/RadarChart.config-BOgPD2Kz.cjs +0 -1
- package/dist/adapters/RadialBarChart.config-CeP7jEbq.js +0 -2
- package/dist/adapters/RadialBarChart.config-sivA1Jmo.cjs +0 -1
- package/dist/adapters/RecordsTable.config-BInSgo-G.js +0 -2
- package/dist/adapters/RecordsTable.config-CVmxLdjz.cjs +0 -1
- package/dist/adapters/RetentionCombinedChart.config-8ry7gh6X.cjs +0 -1
- package/dist/adapters/RetentionCombinedChart.config-Bxtxnlcf.js +0 -2
- package/dist/adapters/RetentionHeatmap.config-DCtOD8dO.js +0 -2
- package/dist/adapters/RetentionHeatmap.config-i-LgmmIT.cjs +0 -1
- package/dist/adapters/SankeyChart.config-DfpeHfNT.cjs +0 -1
- package/dist/adapters/SankeyChart.config-hfM0ACm1.js +0 -2
- package/dist/adapters/ScatterChart.config-BD2vfOZ6.js +0 -2
- package/dist/adapters/ScatterChart.config-CdpvRueF.cjs +0 -1
- package/dist/adapters/SunburstChart.config-Boyt88L_.cjs +0 -1
- package/dist/adapters/SunburstChart.config-BvrofzMv.js +0 -2
- package/dist/adapters/TreeMapChart.config-DBrqwtqT.js +0 -2
- package/dist/adapters/TreeMapChart.config-KcRLlZAG.cjs +0 -1
- package/dist/adapters/WaterfallChart.config-CuCGaIl5.cjs +0 -1
- package/dist/adapters/WaterfallChart.config-DZ8H0V2L.js +0 -2
- package/dist/client/chunks/DashboardEditModal-BliiIHcI.js.map +0 -1
- package/dist/client/chunks/chart-markdown-yxN_xBP9.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as e, _ as t, g as n, h as r, k as i, m as a, p as o, v as s, x as c } from "./utils-BhlkVCzZ.js";
|
|
2
|
-
import { E as l, T as u } from "./mcp-transport-
|
|
2
|
+
import { E as l, T as u } from "./mcp-transport-BOfhj01O.js";
|
|
3
3
|
import { a as d, c as f, d as p, i as m, l as h, n as g, o as _, r as v, s as y, t as b, u as x } from "./chartConfigHelpers-BsnbxA2c.js";
|
|
4
4
|
//#region src/server/agent/system-prompt.ts
|
|
5
5
|
function S(e, t) {
|
|
@@ -1860,7 +1860,7 @@ var ae = {
|
|
|
1860
1860
|
useCase: "chart.bar.useCase",
|
|
1861
1861
|
isAvailable: d,
|
|
1862
1862
|
dependencies: Y,
|
|
1863
|
-
config: async () => (await import("./BarChart.config-
|
|
1863
|
+
config: async () => (await import("./BarChart.config-Br0vyPO0.js")).barChartConfig
|
|
1864
1864
|
},
|
|
1865
1865
|
line: {
|
|
1866
1866
|
label: "chart.line.label",
|
|
@@ -1869,7 +1869,7 @@ var ae = {
|
|
|
1869
1869
|
useCase: "chart.line.useCase",
|
|
1870
1870
|
isAvailable: d,
|
|
1871
1871
|
dependencies: Y,
|
|
1872
|
-
config: async () => (await import("./LineChart.config-
|
|
1872
|
+
config: async () => (await import("./LineChart.config-CA4b1Xt-.js")).lineChartConfig
|
|
1873
1873
|
},
|
|
1874
1874
|
area: {
|
|
1875
1875
|
label: "chart.area.label",
|
|
@@ -1878,7 +1878,7 @@ var ae = {
|
|
|
1878
1878
|
useCase: "chart.area.useCase",
|
|
1879
1879
|
isAvailable: d,
|
|
1880
1880
|
dependencies: Y,
|
|
1881
|
-
config: async () => (await import("./AreaChart.config-
|
|
1881
|
+
config: async () => (await import("./AreaChart.config-DexPQDQp.js")).areaChartConfig
|
|
1882
1882
|
},
|
|
1883
1883
|
pie: {
|
|
1884
1884
|
label: "chart.pie.label",
|
|
@@ -1887,7 +1887,7 @@ var ae = {
|
|
|
1887
1887
|
useCase: "chart.pie.useCase",
|
|
1888
1888
|
isAvailable: d,
|
|
1889
1889
|
dependencies: Y,
|
|
1890
|
-
config: async () => (await import("./PieChart.config-
|
|
1890
|
+
config: async () => (await import("./PieChart.config-BfSLFe9d.js")).pieChartConfig
|
|
1891
1891
|
},
|
|
1892
1892
|
scatter: {
|
|
1893
1893
|
label: "chart.scatter.label",
|
|
@@ -1902,7 +1902,7 @@ var ae = {
|
|
|
1902
1902
|
reason: "chart.availability.scatter"
|
|
1903
1903
|
} : { available: !0 },
|
|
1904
1904
|
dependencies: Y,
|
|
1905
|
-
config: async () => (await import("./ScatterChart.config-
|
|
1905
|
+
config: async () => (await import("./ScatterChart.config-BE_J_t4r.js")).scatterChartConfig
|
|
1906
1906
|
},
|
|
1907
1907
|
bubble: {
|
|
1908
1908
|
label: "chart.bubble.label",
|
|
@@ -1917,7 +1917,7 @@ var ae = {
|
|
|
1917
1917
|
reason: "chart.availability.bubble"
|
|
1918
1918
|
} : { available: !0 },
|
|
1919
1919
|
dependencies: Y,
|
|
1920
|
-
config: async () => (await import("./BubbleChart.config-
|
|
1920
|
+
config: async () => (await import("./BubbleChart.config-e6hABmpk.js")).bubbleChartConfig
|
|
1921
1921
|
},
|
|
1922
1922
|
radar: {
|
|
1923
1923
|
label: "chart.radar.label",
|
|
@@ -1926,7 +1926,7 @@ var ae = {
|
|
|
1926
1926
|
useCase: "chart.radar.useCase",
|
|
1927
1927
|
isAvailable: d,
|
|
1928
1928
|
dependencies: Y,
|
|
1929
|
-
config: async () => (await import("./RadarChart.config-
|
|
1929
|
+
config: async () => (await import("./RadarChart.config-COzBFXrA.js")).radarChartConfig
|
|
1930
1930
|
},
|
|
1931
1931
|
radialBar: {
|
|
1932
1932
|
label: "chart.radialBar.label",
|
|
@@ -1935,7 +1935,7 @@ var ae = {
|
|
|
1935
1935
|
useCase: "chart.radialBar.useCase",
|
|
1936
1936
|
isAvailable: d,
|
|
1937
1937
|
dependencies: Y,
|
|
1938
|
-
config: async () => (await import("./RadialBarChart.config-
|
|
1938
|
+
config: async () => (await import("./RadialBarChart.config-C50IqzNQ.js")).radialBarChartConfig
|
|
1939
1939
|
},
|
|
1940
1940
|
treemap: {
|
|
1941
1941
|
label: "chart.treemap.label",
|
|
@@ -1944,21 +1944,21 @@ var ae = {
|
|
|
1944
1944
|
useCase: "chart.treemap.useCase",
|
|
1945
1945
|
isAvailable: d,
|
|
1946
1946
|
dependencies: Y,
|
|
1947
|
-
config: async () => (await import("./TreeMapChart.config-
|
|
1947
|
+
config: async () => (await import("./TreeMapChart.config-4p3cVWIy.js")).treemapChartConfig
|
|
1948
1948
|
},
|
|
1949
1949
|
table: {
|
|
1950
1950
|
label: "chart.table.label",
|
|
1951
1951
|
icon: "chartTable",
|
|
1952
1952
|
description: "chart.table.description",
|
|
1953
1953
|
useCase: "chart.table.useCase",
|
|
1954
|
-
config: async () => (await import("./DataTable.config-
|
|
1954
|
+
config: async () => (await import("./DataTable.config-enzxzWhP.js")).dataTableConfig
|
|
1955
1955
|
},
|
|
1956
1956
|
recordsTable: {
|
|
1957
1957
|
label: "chart.recordsTable.label",
|
|
1958
1958
|
icon: "chartRecordsTable",
|
|
1959
1959
|
description: "chart.recordsTable.description",
|
|
1960
1960
|
useCase: "chart.recordsTable.useCase",
|
|
1961
|
-
config: async () => (await import("./RecordsTable.config-
|
|
1961
|
+
config: async () => (await import("./RecordsTable.config-BHWD9CBE.js")).recordsTableConfig
|
|
1962
1962
|
},
|
|
1963
1963
|
activityGrid: {
|
|
1964
1964
|
label: "chart.activityGrid.label",
|
|
@@ -1972,7 +1972,7 @@ var ae = {
|
|
|
1972
1972
|
available: !1,
|
|
1973
1973
|
reason: "chart.availability.requiresTimeDimension"
|
|
1974
1974
|
} : { available: !0 },
|
|
1975
|
-
config: async () => (await import("./ActivityGridChart.config-
|
|
1975
|
+
config: async () => (await import("./ActivityGridChart.config-Bu5lf3M0.js")).activityGridChartConfig
|
|
1976
1976
|
},
|
|
1977
1977
|
kpiNumber: {
|
|
1978
1978
|
label: "chart.kpiNumber.label",
|
|
@@ -1980,7 +1980,7 @@ var ae = {
|
|
|
1980
1980
|
description: "chart.kpiNumber.description",
|
|
1981
1981
|
useCase: "chart.kpiNumber.useCase",
|
|
1982
1982
|
isAvailable: m,
|
|
1983
|
-
config: async () => (await import("./KpiNumber.config-
|
|
1983
|
+
config: async () => (await import("./KpiNumber.config-Ce2piJuC.js")).kpiNumberConfig
|
|
1984
1984
|
},
|
|
1985
1985
|
kpiDelta: {
|
|
1986
1986
|
label: "chart.kpiDelta.label",
|
|
@@ -1988,7 +1988,7 @@ var ae = {
|
|
|
1988
1988
|
description: "chart.kpiDelta.description",
|
|
1989
1989
|
useCase: "chart.kpiDelta.useCase",
|
|
1990
1990
|
isAvailable: d,
|
|
1991
|
-
config: async () => (await import("./KpiDelta.config-
|
|
1991
|
+
config: async () => (await import("./KpiDelta.config-CgZQueiY.js")).kpiDeltaConfig
|
|
1992
1992
|
},
|
|
1993
1993
|
kpiText: {
|
|
1994
1994
|
label: "chart.kpiText.label",
|
|
@@ -1996,14 +1996,14 @@ var ae = {
|
|
|
1996
1996
|
description: "chart.kpiText.description",
|
|
1997
1997
|
useCase: "chart.kpiText.useCase",
|
|
1998
1998
|
isAvailable: m,
|
|
1999
|
-
config: async () => (await import("./KpiText.config-
|
|
1999
|
+
config: async () => (await import("./KpiText.config-_g2gpg2d.js")).kpiTextConfig
|
|
2000
2000
|
},
|
|
2001
2001
|
markdown: {
|
|
2002
2002
|
label: "chart.markdown.label",
|
|
2003
2003
|
icon: "chartMarkdown",
|
|
2004
2004
|
description: "chart.markdown.description",
|
|
2005
2005
|
useCase: "chart.markdown.useCase",
|
|
2006
|
-
config: async () => (await import("./MarkdownChart.config-
|
|
2006
|
+
config: async () => (await import("./MarkdownChart.config-B4lCc0_v.js")).markdownConfig
|
|
2007
2007
|
},
|
|
2008
2008
|
funnel: {
|
|
2009
2009
|
label: "chart.funnel.label",
|
|
@@ -2011,7 +2011,7 @@ var ae = {
|
|
|
2011
2011
|
description: "chart.funnel.description",
|
|
2012
2012
|
useCase: "chart.funnel.useCase",
|
|
2013
2013
|
dependencies: Y,
|
|
2014
|
-
config: async () => (await import("./FunnelChart.config-
|
|
2014
|
+
config: async () => (await import("./FunnelChart.config-DXg1N0FP.js")).funnelChartConfig
|
|
2015
2015
|
},
|
|
2016
2016
|
sankey: {
|
|
2017
2017
|
label: "chart.sankey.label",
|
|
@@ -2019,7 +2019,7 @@ var ae = {
|
|
|
2019
2019
|
description: "chart.sankey.description",
|
|
2020
2020
|
useCase: "chart.sankey.useCase",
|
|
2021
2021
|
dependencies: Y,
|
|
2022
|
-
config: async () => (await import("./SankeyChart.config-
|
|
2022
|
+
config: async () => (await import("./SankeyChart.config-D2R8E5Ss.js")).sankeyChartConfig
|
|
2023
2023
|
},
|
|
2024
2024
|
sunburst: {
|
|
2025
2025
|
label: "chart.sunburst.label",
|
|
@@ -2027,7 +2027,7 @@ var ae = {
|
|
|
2027
2027
|
description: "chart.sunburst.description",
|
|
2028
2028
|
useCase: "chart.sunburst.useCase",
|
|
2029
2029
|
dependencies: Y,
|
|
2030
|
-
config: async () => (await import("./SunburstChart.config-
|
|
2030
|
+
config: async () => (await import("./SunburstChart.config-DrnmHxNQ.js")).sunburstChartConfig
|
|
2031
2031
|
},
|
|
2032
2032
|
heatmap: {
|
|
2033
2033
|
label: "chart.heatmap.label",
|
|
@@ -2045,21 +2045,21 @@ var ae = {
|
|
|
2045
2045
|
packageName: "@nivo/heatmap",
|
|
2046
2046
|
installCommand: "npm install @nivo/heatmap"
|
|
2047
2047
|
},
|
|
2048
|
-
config: async () => (await import("./HeatMapChart.config-
|
|
2048
|
+
config: async () => (await import("./HeatMapChart.config-B9SrePWx.js")).heatmapChartConfig
|
|
2049
2049
|
},
|
|
2050
2050
|
retentionHeatmap: {
|
|
2051
2051
|
label: "chart.retentionHeatmap.label",
|
|
2052
2052
|
icon: "chartRetention",
|
|
2053
2053
|
description: "chart.retentionHeatmap.description",
|
|
2054
2054
|
useCase: "chart.retentionHeatmap.useCase",
|
|
2055
|
-
config: async () => (await import("./RetentionHeatmap.config-
|
|
2055
|
+
config: async () => (await import("./RetentionHeatmap.config-Ckoiq5Jo.js")).retentionHeatmapConfig
|
|
2056
2056
|
},
|
|
2057
2057
|
retentionCombined: {
|
|
2058
2058
|
label: "chart.retentionCombined.label",
|
|
2059
2059
|
icon: "chartRetention",
|
|
2060
2060
|
description: "chart.retentionCombined.description",
|
|
2061
2061
|
useCase: "chart.retentionCombined.useCase",
|
|
2062
|
-
config: async () => (await import("./RetentionCombinedChart.config-
|
|
2062
|
+
config: async () => (await import("./RetentionCombinedChart.config-DxPk1BaI.js")).retentionCombinedConfig
|
|
2063
2063
|
},
|
|
2064
2064
|
boxPlot: {
|
|
2065
2065
|
label: "chart.boxPlot.label",
|
|
@@ -2067,7 +2067,7 @@ var ae = {
|
|
|
2067
2067
|
description: "chart.boxPlot.description",
|
|
2068
2068
|
useCase: "chart.boxPlot.useCase",
|
|
2069
2069
|
isAvailable: d,
|
|
2070
|
-
config: async () => (await import("./BoxPlotChart.config-
|
|
2070
|
+
config: async () => (await import("./BoxPlotChart.config-Dz9P8ck_.js")).boxPlotChartConfig
|
|
2071
2071
|
},
|
|
2072
2072
|
dotStrip: {
|
|
2073
2073
|
label: "chart.dotStrip.label",
|
|
@@ -2075,7 +2075,7 @@ var ae = {
|
|
|
2075
2075
|
description: "chart.dotStrip.description",
|
|
2076
2076
|
useCase: "chart.dotStrip.useCase",
|
|
2077
2077
|
isAvailable: d,
|
|
2078
|
-
config: async () => (await import("./DotStripChart.config-
|
|
2078
|
+
config: async () => (await import("./DotStripChart.config-C3FEV6Ys.js")).dotStripChartConfig
|
|
2079
2079
|
},
|
|
2080
2080
|
waterfall: {
|
|
2081
2081
|
label: "chart.waterfall.label",
|
|
@@ -2084,7 +2084,7 @@ var ae = {
|
|
|
2084
2084
|
useCase: "chart.waterfall.useCase",
|
|
2085
2085
|
isAvailable: d,
|
|
2086
2086
|
dependencies: Y,
|
|
2087
|
-
config: async () => (await import("./WaterfallChart.config-
|
|
2087
|
+
config: async () => (await import("./WaterfallChart.config-DuUXmAyw.js")).waterfallChartConfig
|
|
2088
2088
|
},
|
|
2089
2089
|
candlestick: {
|
|
2090
2090
|
label: "chart.candlestick.label",
|
|
@@ -2098,7 +2098,7 @@ var ae = {
|
|
|
2098
2098
|
available: !1,
|
|
2099
2099
|
reason: "chart.availability.requiresDimension"
|
|
2100
2100
|
} : { available: !0 },
|
|
2101
|
-
config: async () => (await import("./CandlestickChart.config-
|
|
2101
|
+
config: async () => (await import("./CandlestickChart.config-BzAPnbp4.js")).candlestickChartConfig
|
|
2102
2102
|
},
|
|
2103
2103
|
measureProfile: {
|
|
2104
2104
|
label: "chart.measureProfile.label",
|
|
@@ -2110,7 +2110,7 @@ var ae = {
|
|
|
2110
2110
|
reason: "chart.availability.requiresTwoMeasures"
|
|
2111
2111
|
} : { available: !0 },
|
|
2112
2112
|
dependencies: Y,
|
|
2113
|
-
config: async () => (await import("./MeasureProfileChart.config-
|
|
2113
|
+
config: async () => (await import("./MeasureProfileChart.config-B1LrfeP-.js")).measureProfileChartConfig
|
|
2114
2114
|
},
|
|
2115
2115
|
proportionBar: {
|
|
2116
2116
|
label: "chart.proportionBar.label",
|
|
@@ -2118,7 +2118,7 @@ var ae = {
|
|
|
2118
2118
|
description: "chart.proportionBar.description",
|
|
2119
2119
|
useCase: "chart.proportionBar.useCase",
|
|
2120
2120
|
isAvailable: d,
|
|
2121
|
-
config: async () => (await import("./ProportionBarChart.config-
|
|
2121
|
+
config: async () => (await import("./ProportionBarChart.config-nyP6m6i0.js")).proportionBarChartConfig
|
|
2122
2122
|
},
|
|
2123
2123
|
gauge: {
|
|
2124
2124
|
label: "chart.gauge.label",
|
|
@@ -2130,7 +2130,7 @@ var ae = {
|
|
|
2130
2130
|
packageName: "d3-shape",
|
|
2131
2131
|
installCommand: "npm install d3-shape"
|
|
2132
2132
|
},
|
|
2133
|
-
config: async () => (await import("./GaugeChart.config-
|
|
2133
|
+
config: async () => (await import("./GaugeChart.config-oiPzrfGx.js")).gaugeChartConfig
|
|
2134
2134
|
}
|
|
2135
2135
|
};
|
|
2136
2136
|
function ue(e, t) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e=require("./utils-C1JpSDOX.cjs"),t=require("./mcp-transport-
|
|
1
|
+
const e=require("./utils-C1JpSDOX.cjs"),t=require("./mcp-transport-Dl5bn6h4.cjs"),n=require("./chartConfigHelpers-BZMu_1EP.cjs");function r(e,t){if(!(!t.measures||t.measures.length===0)){e.push(``),e.push(`**Measures:**`);for(let n of t.measures){let r=n.description?` - ${n.description}`:``;e.push(`- \`${t.name}.${n.name}\` (${n.type})${r}`)}}}function i(e,t){if(!(!t.dimensions||t.dimensions.length===0)){e.push(``),e.push(`**Dimensions:**`);for(let n of t.dimensions){let r=n.description?` - ${n.description}`:``;e.push(`- \`${t.name}.${n.name}\` (${n.type})${r}`)}}}function a(e,t){if(!(!t.relationships||t.relationships.length===0)){e.push(``),e.push(`**Joins:**`);for(let n of t.relationships)e.push(`- → \`${n.targetCube}\` (${n.relationship})`)}}function o(e,t){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}\``))}function s(e){if(e.length===0)return`No cubes are currently available.`;let t=[`## Available Cubes`,``];for(let n of e)t.push(`### ${n.name}`),n.description&&t.push(n.description),r(t,n),i(t,n),a(t,n),o(t,n),t.push(``);return t.join(`
|
|
2
2
|
`)}function c(e){return e.messages.map(e=>e.content.text).join(`
|
|
3
3
|
|
|
4
4
|
`)}function l(t){return[`# Drizzle Cube Analytics Agent`,``,`You are an analytics agent that helps users explore and visualize data.`,`You have access to a semantic layer with cubes (data models) that you can query.`,``,`## Your Workflow`,``,`For EACH insight, follow this cycle — do NOT batch all queries first:`,``,"1. **Discover** available cubes using `discover_cubes` (once at the start)",`2. **For each analysis point**, repeat this cycle:`," a. `execute_query` — get the data"," b. `add_markdown` — explain the results and insight"," c. `add_portlet` — visualize the results",``,`Call all three (query → markdown → portlet) in a single turn before moving on to the next analysis.`,`Do NOT run multiple queries first and add charts later — the user sees results in real-time.`,``,`## Important Guidelines`,``,`- ALWAYS discover cubes first before attempting queries`,"- Field names MUST be EXACTLY `CubeName.fieldName` — two parts separated by a single dot. Examples: `PullRequests.count`, `Teams.name`, `Employees.department`."," WRONG patterns that WILL FAIL: `Teams.Teams.name` (double-prefixed), `PullRequests.PullRequests.count` (double-prefixed), `PullRequests` (bare cube), `Teams_count` (underscore). Use the EXACT field names from discover results — copy them verbatim, do not prefix them again.",`- Order keys MUST be one of the measures or dimensions already listed in that query. You CANNOT order by a field that is not in measures or dimensions — add it to measures first, or remove it from order.`,"- After EVERY `execute_query`, IMMEDIATELY call `add_markdown` and `add_portlet` in the SAME turn — never defer visualizations to a later turn",`- Choose appropriate chart types: bar for categories, line for trends, table for detailed data`,`- If a query fails, explain the error and try an alternative approach`,``,`## Output Format Rules`,``,`### CRITICAL: Always think before acting`,`- EVERY single turn MUST begin with a text message (1-2 sentences) BEFORE any tool calls. This is your #1 rule — never violate it.`,`- This applies to EVERY turn, including turns where you are adding visualizations or explanations to the notebook.`,`- Even when adding multiple charts in sequence, each turn must start with a brief status like "Now I'll chart the productivity breakdown." or "Next, let me show the department comparison."`,`- Example good turn: "Let me see what data is available." → discover_cubes`,`- Example good turn: "I'll add a chart showing the top employees." → add_markdown → add_portlet`,`- Example bad turn: (no text) → add_portlet ← NEVER do this`,``,`### Text vs Notebook`,"- ALL analysis, findings, methodology, and insights MUST go through `add_markdown` tool calls — never in your text responses",`- Your text responses must be 1-2 short sentences (under 50 words) summarizing what you are about to do next — status updates only`,`- Never use markdown formatting (headers, bullets, bold, code blocks) in text responses — plain sentences only`,`- Write text responses as a friendly analyst would — use plain business language the user understands`,`- NEVER mention internal terms like "cube", "query syntax", "field names", "measures", "dimensions", "portlet", "prefix format", or tool names in text responses`,`- Instead of "Let me correct the query syntax and retry" → "Let me fix that and try again"`,`- Instead of "I'll query the PullRequests cube" → "I'll look at the pull request data"`,`- Instead of "Adding a portlet with the results" → "Here's a chart of the results"`,``,`### Notebook content rules`,"- Before each `add_portlet`, ALWAYS call `add_markdown` first to explain WHY you are adding this visualization and what it shows","- Before calling `add_portlet`, verify the query is valid: all fields in `order` must also appear in `measures` or `dimensions`",'- Never put data tables in markdown blocks — use `add_portlet` with chartType "table" instead',"- Think out loud in the notebook: use `add_markdown` to share your reasoning at each step so users can follow along",`- NEVER use emojis in text responses or markdown content — no 📊, 📈, ✅, 🔍, etc. Write in plain, professional language.`,``,`## Chart Selection Guide`,``,`Choose the chart type that best communicates the answer to the user's question. Think about what the data represents and what insight the user needs — do NOT default to the first option in this table. Consider the number of data points, whether values are categorical or temporal, and whether the user is comparing, trending, or summarizing.`,``,`| Intent / Data Shape | Chart Type |`,`|---|---|`,"| Compare discrete categories or rankings | `bar` |","| Trend over time (one or few series) | `line` |","| Trend over time showing volume/magnitude | `area` |","| Part-of-whole breakdown | `pie` (≤7 slices) |","| Correlation between two measures | `scatter` |","| Correlation with size/color third dimension | `bubble` |","| Intensity across two categorical dimensions | `heatmap` |","| Multi-variable comparison across categories | `radar` |","| Distribution/spread of values | `boxPlot` |","| Detailed row-level data or many columns | `table` |","| Single headline number — ONLY when user explicitly asks for a KPI card or single number | `kpiNumber` |","| Headline metric with period-over-period change — ONLY when user asks about change in a single metric | `kpiDelta` |",``,`Analysis-mode-specific chart types (require the corresponding analysis mode):`,``,`| Analysis Mode | Chart Type | Description |`,`|---|---|---|`,"| Funnel | `funnel` | Sequential step conversion bars with conversion rates |","| Flow | `sankey` | Flow diagram showing paths between states/steps |","| Flow | `sunburst` | Radial rings showing forward paths from a starting event |","| Retention | `retentionHeatmap` | Cohort × period retention matrix |","| Retention | `retentionCombined` | Retention with line chart, heatmap, or combined modes |",``,'**Chart selection priorities:** Default to `bar` for categories, `line` for time series, `table` for exploratory data. Use `kpiNumber`/`kpiDelta` only as a last resort — they are appropriate only when the user explicitly asks for a single headline number or KPI card. If the query returns multiple rows or the user asks a general question like "show me revenue", prefer `bar` or `table` over `kpiNumber`.',``,`## Chart Axis Configuration Rules`,``,"**Bar charts MUST have an xAxis.** Put a dimension in `chartConfig.xAxis` so bars have category labels. If your query has no dimensions, add one or use `table` instead.",``,"**Never duplicate xAxis in series.** Putting the same dimension in both `xAxis` and `series` creates a sparse, broken-looking chart. The `series` field is ONLY for splitting bars into grouped/stacked sub-series by a SECOND dimension.",``,`Correct bar chart examples:`,'- Categories only: `xAxis: ["Cube.category"], yAxis: ["Cube.count"]` — no series needed','- Grouped bars: `xAxis: ["Cube.category"], yAxis: ["Cube.count"], series: ["Cube.status"]` — series is a DIFFERENT dimension','- Multiple measures: `xAxis: ["Cube.category"], yAxis: ["Cube.count", "Cube.total"]` — each measure becomes a bar group',``,`Wrong:`,'- `xAxis: [], yAxis: ["Cube.avg1", "Cube.avg2"]` — missing xAxis, bars have no labels','- `xAxis: ["Cube.size"], series: ["Cube.size"]` — same field in both, creates sparse chart',``,"**Dual Y-axis for multi-measure charts.** When a `bar`, `line`, or `area` chart has 2+ measures with different scales (e.g. revenue in thousands vs conversion rate as a percentage), use `chartConfig.yAxisAssignment` to put them on separate axes:","```json",`{`,` "xAxis": ["Sales.month"],`,` "yAxis": ["Sales.revenue", "Sales.conversionRate"],`,` "yAxisAssignment": { "Sales.revenue": "left", "Sales.conversionRate": "right" }`,`}`,"```",`Only use dual axis when measures have genuinely different scales. If both measures share the same unit/scale, keep them on the same (left) axis — omit yAxisAssignment entirely.`,``,`## Analysis Mode Decision Tree`,``,`The default mode is **query** (standard measures/dimensions). Switch to a special mode only when the user's question matches:`,``,`- **Funnel mode** — "What is the conversion rate from step A → B → C?"`," - Requires: an event-stream cube with `capabilities.funnel = true` from `discover_cubes`"," - Execute: `execute_query` with `funnel` param:",' `{ bindingKey: "Events.userId", timeDimension: "Events.timestamp", steps: [{ name: "Signup", filter: { member: "Events.eventName", operator: "equals", values: ["signup"] }}, { name: "Purchase", filter: { member: "Events.eventName", operator: "equals", values: ["purchase"] }}] }`',' - Visualize: `add_portlet` with `chartType: "funnel"` and `query` as JSON string containing `{ "funnel": { ... } }`',``,`- **Flow mode** — "What paths do users take after signup?"`," - Requires: `capabilities.flow = true` from `discover_cubes`"," - Execute: `execute_query` with `flow` param:",' `{ bindingKey: "Events.userId", timeDimension: "Events.timestamp", eventDimension: "Events.eventName", startingStep: { name: "Signup", filter: { member: "Events.eventName", operator: "equals", values: ["signup"] }}, stepsBefore: 0, stepsAfter: 3 }`',' - Visualize: `add_portlet` with `chartType: "sankey"` (or `"sunburst"`) and `query` as JSON string containing `{ "flow": { ... } }`',``,`- **Retention mode** — "What % of users come back after 7 days?"`," - Requires: `capabilities.retention = true` from `discover_cubes`"," - Execute: `execute_query` with `retention` param:",' `{ timeDimension: "Events.timestamp", bindingKey: "Events.userId", dateRange: { start: "2024-01-01", end: "2024-03-31" }, granularity: "week", periods: 8, retentionType: "classic" }`',' - Visualize: `add_portlet` with `chartType: "retentionCombined"` (or `"retentionHeatmap"`) and `query` as JSON string containing `{ "retention": { ... } }`',``,"Before using funnel/flow/retention, check the `capabilities` object returned by `discover_cubes`. If the required capability is `false`, explain to the user that the data model does not support that analysis mode.",``,`Event-stream cubes are marked in the Available Cubes section below with **Event Stream: Yes** and list their binding key and time dimension.`,``,`---`,``,c(e._),``,`---`,``,c(e.v),``,`---`,``,c(e.g),``,`---`,``,`## Save as Dashboard`,``,"ONLY call `save_as_dashboard` when the user EXPLICITLY asks to save, export, or convert the notebook into a dashboard. NEVER save a dashboard on your own initiative — wait for the user to request it.",``,`### Layout Rules`,`- Dashboard grid is 12 columns wide`,`- KPI cards: w=3, h=3 — place at the top in a row of 4`,`- Overview charts (bar, line, area): w=6, h=4`,`- Wide charts (heatmap, table, recordsTable): w=12, h=5`,`- Section headers (markdown): w=12, h=1`,``,`### Section Headers`,'Use `chartType: "markdown"` portlets as section headers to organize the dashboard:',"```json",`{`,` "id": "header-overview",`,` "title": "Overview",`,` "chartType": "markdown",`,` "displayConfig": {`,` "content": "## Overview",`,` "hideHeader": true,`,` "transparentBackground": true,`,` "autoHeight": true`,` },`,` "w": 12, "h": 1, "x": 0, "y": 0`,`}`,"```",``,`### Dashboard Filters`,"- ALWAYS include a universal date filter with `isUniversalTime: true`",`- Add dimension filters for key fields used across portlets (e.g., department, status, region)`,`- Use human-readable labels (e.g., "Department" not "Employees.departmentName")`,"- Map filters to portlets using `dashboardFilterMapping` — list the filter IDs that apply","- To apply a filter to a different field for one portlet, use `{ filterId, member }` instead of a plain ID (e.g. remap a Customer filter to `Invoices.customerId`); the target field must be join-reachable from the portlet query",`- When promoting a hardcoded filter to a dashboard filter, REMOVE that filter from the portlet query`,``,`### Analysis Types`,'- Standard query portlets: `analysisType: "query"` (default)','- Funnel portlets: `analysisType: "funnel"`, query contains `{ "funnel": {...} }`, chartType `"funnel"`','- Flow portlets: `analysisType: "flow"`, query contains `{ "flow": {...} }`, chartType `"sankey"` or `"sunburst"`','- Retention portlets: `analysisType: "retention"`, query contains `{ "retention": {...} }`, chartType `"retentionHeatmap"` or `"retentionCombined"`',``,`### CRITICAL: Only use portlets from the notebook`,"- ONLY include portlets that you already added to the notebook via `add_portlet` during this conversation",`- Do NOT invent new queries or charts that were not part of the analysis — the dashboard is a direct conversion of the notebook`,`- Reuse the exact same queries, chart types, and chart configs from the notebook portlets`,`- Arrange the existing portlets in a sensible layout (KPIs at top, charts in middle, tables at bottom)`,`- You may add section header markdown portlets to organize the layout, but do not add new data portlets`,``,`---`,``,s(t)].join(`
|
|
@@ -12,7 +12,7 @@ Add your **markdown** content here:
|
|
|
12
12
|
|
|
13
13
|
---
|
|
14
14
|
|
|
15
|
-
Use --- for horizontal rules.`,description:`chart.configText.enter_markdown_text_supports_headers_bold_text_italic_text_links_text_ur`},{key:`accentColorIndex`,label:`chart.configText.accent_color`,type:`paletteColor`,defaultValue:0,description:`chart.configText.color_from_the_dashboard_palette_for_headers_bullets_and_links`},{key:`fontSize`,label:`chart.option.fontSize.label`,type:`select`,defaultValue:`medium`,options:[{value:`small`,label:`chart.option.fontSize.small`},{value:`medium`,label:`chart.option.fontSize.medium`},{value:`large`,label:`chart.option.fontSize.large`}],description:`chart.configText.overall_text_size_for_the_markdown_content`},{key:`alignment`,label:`chart.option.alignment.label`,type:`select`,defaultValue:`left`,options:[{value:`left`,label:`chart.option.accentBorder.left`},{value:`center`,label:`chart.option.alignment.center`},{value:`right`,label:`chart.option.alignment.right`}],description:`chart.configText.horizontal_alignment_of_the_markdown_content`},{key:`hideHeader`,label:`chart.option.hideHeader.label`,type:`boolean`,defaultValue:!0,description:`chart.option.hideHeader.description`},{key:`transparentBackground`,label:`chart.option.transparentBackground.label`,type:`boolean`,defaultValue:!1,description:`chart.option.transparentBackground.description`},{key:`autoHeight`,label:`chart.option.autoHeight.label`,type:`boolean`,defaultValue:!0,description:`chart.option.autoHeight.description`},{key:`accentBorder`,label:`chart.option.accentBorder.label`,type:`select`,defaultValue:`none`,options:[{value:`none`,label:`chart.option.accentBorder.none`},{value:`left`,label:`chart.option.accentBorder.left`},{value:`top`,label:`chart.option.accentBorder.top`},{value:`bottom`,label:`chart.option.accentBorder.bottom`}],description:`chart.configText.add_an_accent_colored_border_on_one_side_of_the_content`}]},E={dropZones:[{key:`xAxis`,label:`chart.configText.step_name`,description:`chart.configText.step_names_auto_populated_from_funnel_steps`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.funnel.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.step_count`,description:`chart.configText.count_at_each_step_auto_calculated`,mandatory:!1,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.funnel.dropZone.yAxis.empty`}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`funnelStyle`,label:`chart.option.funnelStyle.label`,type:`buttonGroup`,defaultValue:`bars`,options:[{value:`bars`,label:`chart.option.funnelStyle.bars`},{value:`funnel`,label:`chart.option.funnelStyle.funnel`}],description:`chart.configText.visualization_style`},{key:`funnelOrientation`,label:`chart.option.funnelOrientation.label`,type:`buttonGroup`,defaultValue:`horizontal`,options:[{value:`horizontal`,label:`chart.option.funnelOrientation.horizontal`},{value:`vertical`,label:`chart.option.funnelOrientation.vertical`}]},{key:`hideSummaryFooter`,label:`chart.option.hideSummaryFooter.label`,type:`boolean`,defaultValue:!1,description:`chart.option.hideSummaryFooter.description`},{key:`showFunnelConversion`,label:`chart.option.showConversion.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showConversion.description`},{key:`showFunnelAvgTime`,label:`chart.option.showAvgTime.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showAvgTime.description`},{key:`showFunnelMedianTime`,label:`chart.option.showMedianTime.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showMedianTime.description`},{key:`showFunnelP90Time`,label:`chart.option.showP90Time.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showP90Time.description`}]},D={dropZones:[{key:`xAxis`,label:`chart.configText.event_type`,description:`chart.configText.event_dimension_that_categorizes_flow_nodes`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.sankey.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.flow_count`,description:`chart.configText.count_of_entities_following_each_path`,mandatory:!1,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.sankey.dropZone.yAxis.empty`}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`linkOpacity`,label:`chart.option.linkOpacity.label`,type:`buttonGroup`,defaultValue:`0.5`,options:[{value:`0.3`,label:`chart.option.linkOpacity.light`},{value:`0.5`,label:`chart.option.fontSize.medium`},{value:`0.7`,label:`chart.option.linkOpacity.dark`}],description:`chart.configText.opacity_of_flow_links`},{key:`showNodeLabels`,label:`chart.option.showNodeLabels.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showNodeLabels.description`},{key:`hideSummaryFooter`,label:`chart.option.hideSummaryFooter.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.hide_the_statistics_footer_below_the_chart`}]},O={dropZones:[{key:`xAxis`,label:`chart.configText.event_type`,description:`chart.configText.event_dimension_that_categorizes_flow_nodes`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.sunburst.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.flow_count`,description:`chart.configText.count_of_entities_following_each_path`,mandatory:!1,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.sunburst.dropZone.yAxis.empty`}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`innerRadius`,label:`chart.option.innerRadius.label`,type:`number`,defaultValue:40,min:0,max:100,step:10,description:`chart.configText.size_of_the_center_hole_0_for_full_circle`},{key:`hideSummaryFooter`,label:`chart.option.hideSummaryFooter.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.hide_the_statistics_footer_below_the_chart`}]},k={dropZones:[{key:`xAxis`,label:`chart.configText.columns_x_axis`,description:`chart.configText.dimension_for_column_categories`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.heatmap.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.rows_y_axis`,description:`chart.configText.dimension_for_row_categories`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.heatmap.dropZone.yAxis.empty`},{key:`valueField`,label:`chart.configText.value_color_intensity`,description:`chart.configText.measure_that_determines_cell_color`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.heatmap.dropZone.valueField.empty`}],displayOptions:[`showLegend`,`showTooltip`],displayOptionsConfig:[{key:`showLabels`,label:`chart.option.showLabels.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showLabels.description`},{key:`cellShape`,label:`chart.option.cellShape.label`,type:`select`,defaultValue:`rect`,options:[{value:`rect`,label:`chart.option.cellShape.rectangle`},{value:`circle`,label:`chart.option.cellShape.circle`}]},{key:`xAxisFormat`,label:`chart.option.xAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_x_axis_labels`},{key:`yAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_y_axis_labels`},{key:`valueFormat`,label:`chart.option.valueFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_cell_values_and_legend`}],validate:e=>e.xAxis?.length?e.yAxis?.length?e.valueField?.length?{isValid:!0}:{isValid:!1,message:`chart.heatmap.validation.valueRequired`}:{isValid:!1,message:`chart.heatmap.validation.yAxisRequired`}:{isValid:!1,message:`chart.heatmap.validation.xAxisRequired`}},A={dropZones:[],displayOptionsConfig:[{key:`showLegend`,label:`chart.option.showLegend.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.show_the_color_intensity_legend`},{key:`showTooltip`,label:`chart.option.showTooltip.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showTooltip.description`}]},j={dropZones:[],displayOptionsConfig:[{key:`retentionDisplayMode`,label:`chart.option.retentionDisplayMode.label`,type:`select`,defaultValue:`line`,options:[{value:`line`,label:`chart.option.retentionDisplayMode.lineChart`},{value:`heatmap`,label:`chart.option.retentionDisplayMode.heatmapTable`},{value:`combined`,label:`chart.option.retentionDisplayMode.combined`}],description:`chart.configText.choose_how_to_visualize_retention_data`},{key:`showLegend`,label:`chart.option.showLegend.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.show_the_legend_for_breakdown_segments`},{key:`showGrid`,label:`chart.option.showGrid.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showGrid.description`},{key:`showTooltip`,label:`chart.option.showTooltip.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showTooltip.description`}]},M={displayOptions:[`hideHeader`],dropZones:[{key:`xAxis`,label:`chart.configText.x_axis_groups`,description:`chart.configText.dimension_to_group_boxes_by_e_g_symbol_platform`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.boxPlot.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.y_axis_measures`,description:`chart.configText.drop_1_measure_for_auto_mode_3_for_avg_stddev_median_mode_or_5_for_min_q`,mandatory:!0,maxItems:5,acceptTypes:[`measure`],emptyText:`chart.boxPlot.dropZone.yAxis.empty`}],displayOptionsConfig:[{key:`leftYAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_the_value_axis`}]},N={displayOptions:[`showGrid`,`showTooltip`,`hideHeader`],dropZones:[{key:`xAxis`,label:`chart.dotStrip.dropZone.xAxis.label`,description:`chart.dotStrip.dropZone.xAxis.description`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.dotStrip.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.dotStrip.dropZone.yAxis.label`,description:`chart.dotStrip.dropZone.yAxis.description`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.dotStrip.dropZone.yAxis.empty`},{key:`series`,label:`chart.dotStrip.dropZone.series.label`,description:`chart.dotStrip.dropZone.series.description`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.dotStrip.dropZone.series.empty`}],clickableElements:{point:!0},displayOptionsConfig:[{key:`showMedianMarker`,label:`chart.option.showMedianMarker.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showMedianMarker.description`},{key:`showBandStats`,label:`chart.option.showBandStats.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showBandStats.description`},{key:`showExtremeLabels`,label:`chart.option.showExtremeLabels.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showExtremeLabels.description`},{key:`dotSize`,label:`chart.option.dotSize.label`,type:`select`,defaultValue:`medium`,options:[{value:`small`,label:`chart.option.dotSize.small`},{value:`medium`,label:`chart.option.dotSize.medium`},{value:`large`,label:`chart.option.dotSize.large`}],description:`chart.option.dotSize.description`},{key:`bandSort`,label:`chart.option.bandSort.label`,type:`select`,defaultValue:`none`,options:[{value:`none`,label:`chart.option.bandSort.none`},{value:`valueDesc`,label:`chart.option.bandSort.valueDesc`},{value:`valueAsc`,label:`chart.option.bandSort.valueAsc`},{value:`count`,label:`chart.option.bandSort.count`}],description:`chart.option.bandSort.description`},{key:`xAxisFormat`,label:`chart.option.xAxisFormat.label`,type:`axisFormat`,description:`chart.option.xAxisFormat.description`}]},P={clickableElements:{bar:!0},displayOptions:[`showTooltip`,`hideHeader`],dropZones:[{key:`xAxis`,label:`chart.dropZone.xAxis.label`,description:`chart.configText.dimension_labels_for_each_bar_segment_e_g_symbol_transaction_type`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.waterfall.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.y_axis_value`,description:`chart.configText.single_measure_whose_values_are_summed_cumulatively`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.waterfall.dropZone.yAxis.empty`}],displayOptionsConfig:[{key:`showTotal`,label:`chart.option.showTotal.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showTotal.description`},{key:`showConnectorLine`,label:`chart.option.showConnectorLine.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showConnectorLine.description`},{key:`showDataLabels`,label:`chart.option.showDataLabels.label`,type:`boolean`,defaultValue:!1,description:`chart.configText.display_the_value_above_each_bar_segment`},{key:`leftYAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_the_y_axis`}]},F={clickableElements:{bar:!0},displayOptions:[`hideHeader`],dropZones:[{key:`xAxis`,label:`chart.configText.x_axis_time_category`,description:`chart.configText.time_dimension_or_category_for_each_candle_e_g_date_symbol`,mandatory:!0,maxItems:1,acceptTypes:[`timeDimension`,`dimension`],emptyText:`chart.candlestick.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.ohlc_measures_open_close_high_low`,description:`chart.configText.drop_2_4_measures_in_order_open_close_high_low_ohlc_mode_for_range_mode_`,mandatory:!0,acceptTypes:[`measure`],emptyText:`chart.candlestick.dropZone.yAxis.empty`}],displayOptionsConfig:[{key:`rangeMode`,label:`chart.option.rangeMode.label`,type:`select`,defaultValue:`ohlc`,options:[{value:`ohlc`,label:`chart.option.rangeMode.ohlc`},{value:`range`,label:`chart.option.rangeMode.range`}],description:`chart.option.rangeMode.description`},{key:`bullColor`,label:`chart.option.bullColor.label`,type:`color`,defaultValue:`#22c55e`,description:`chart.option.bullColor.description`},{key:`bearColor`,label:`chart.option.bearColor.label`,type:`color`,defaultValue:`#ef4444`,description:`chart.option.bearColor.description`},{key:`showWicks`,label:`chart.option.showWicks.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showWicks.description`},{key:`leftYAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_the_price_axis`}]},I={displayOptions:[`showLegend`,`showTooltip`,`hideHeader`],dropZones:[{key:`yAxis`,label:`chart.configText.measures_x_axis_order`,description:`chart.configText.add_2_or_more_measures_they_become_the_x_axis_categories_in_the_order_li`,mandatory:!0,acceptTypes:[`measure`],emptyText:`chart.measureProfile.dropZone.yAxis.empty`},{key:`series`,label:`chart.configText.series_split_into_multiple_lines`,description:`chart.configText.dimension_to_split_data_into_separate_profile_lines_e_g_symbol_platform`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.measureProfile.dropZone.series.empty`}],displayOptionsConfig:[{key:`showReferenceLineAtZero`,label:`chart.option.showReferenceLineAtZero.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showReferenceLineAtZero.description`},{key:`showDataLabels`,label:`chart.option.showDataLabels.label`,type:`boolean`,defaultValue:!1,description:`chart.configText.display_value_at_each_data_point`},{key:`showLegend`,label:`chart.option.showLegend.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.show_series_legend_only_visible_with_a_series_dimension`},{key:`lineType`,label:`chart.option.lineType.label`,type:`select`,defaultValue:`monotone`,options:[{value:`monotone`,label:`chart.option.lineType.smooth`},{value:`linear`,label:`chart.option.lineType.linear`},{value:`step`,label:`chart.option.lineType.step`}],description:`chart.option.lineType.description`},{key:`leftYAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_the_y_axis`}]},L={dropZones:[{key:`xAxis`,label:`chart.configText.category`,description:`chart.configText.dimension_to_split_the_bar_into_segments`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.proportionBar.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.value`,description:`chart.configText.measure_that_determines_each_segments_share`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.proportionBar.dropZone.yAxis.empty`}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`showLabels`,label:`chart.option.proportionBarLabels.label`,type:`boolean`,defaultValue:!0,description:`chart.option.proportionBarLabels.description`},{key:`showPercentages`,label:`chart.option.showPercentages.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showPercentages.description`},{key:`sortSegments`,label:`chart.option.sortSegments.label`,type:`boolean`,defaultValue:!1,description:`chart.option.sortSegments.description`},{key:`decimals`,label:`chart.option.decimals.label`,type:`number`,defaultValue:0,min:0,max:2,description:`chart.option.proportionBarDecimals.description`}],validate:e=>!e?.xAxis||Array.isArray(e.xAxis)&&e.xAxis.length===0?{isValid:!1,message:`chart.proportionBar.validation.dimensionRequired`}:!e?.yAxis||Array.isArray(e.yAxis)&&e.yAxis.length===0?{isValid:!1,message:`chart.proportionBar.validation.measureRequired`}:{isValid:!0}},R={clickableElements:{},displayOptions:[`hideHeader`],dropZones:[{key:`yAxis`,label:`chart.configText.value_measure`,description:`chart.configText.current_value_to_display_on_the_gauge_e_g_current_equity_margin_used`,mandatory:!0,maxItems:2,acceptTypes:[`measure`],emptyText:`chart.gauge.dropZone.yAxis.empty`}],displayOptionsConfig:[{key:`minValue`,label:`chart.option.minValue.label`,type:`number`,defaultValue:0,description:`chart.option.minValue.description`},{key:`maxValue`,label:`chart.option.maxValue.label`,type:`number`,description:`chart.option.maxValue.description`},{key:`thresholds`,label:`chart.configText.threshold_bands`,type:`thresholdBands`,description:`chart.gauge.thresholds.description`},{key:`showCenterLabel`,label:`chart.option.showCentreLabel.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showCentreLabel.description`},{key:`showPercentage`,label:`chart.option.showPercentage.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showPercentage.description`},{key:`leftYAxisFormat`,label:`chart.option.valueFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_the_displayed_value_and_axis_labels`}]},z={packageName:`recharts`,installCommand:`npm install recharts`},B={bar:{label:`chart.bar.label`,icon:`chartBar`,description:`chart.bar.description`,useCase:`chart.bar.useCase`,isAvailable:n.a,dependencies:z,config:async()=>(await Promise.resolve().then(()=>require("./BarChart.config-B9MQjgLJ.cjs"))).barChartConfig},line:{label:`chart.line.label`,icon:`chartLine`,description:`chart.line.description`,useCase:`chart.line.useCase`,isAvailable:n.a,dependencies:z,config:async()=>(await Promise.resolve().then(()=>require("./LineChart.config-CrkGu0aa.cjs"))).lineChartConfig},area:{label:`chart.area.label`,icon:`chartArea`,description:`chart.area.description`,useCase:`chart.area.useCase`,isAvailable:n.a,dependencies:z,config:async()=>(await Promise.resolve().then(()=>require("./AreaChart.config-dI84V34B.cjs"))).areaChartConfig},pie:{label:`chart.pie.label`,icon:`chartPie`,description:`chart.pie.description`,useCase:`chart.pie.useCase`,isAvailable:n.a,dependencies:z,config:async()=>(await Promise.resolve().then(()=>require("./PieChart.config-BRbPctBN.cjs"))).pieChartConfig},scatter:{label:`chart.scatter.label`,icon:`chartScatter`,description:`chart.scatter.description`,useCase:`chart.scatter.useCase`,isAvailable:({measureCount:e,dimensionCount:t})=>e<1?{available:!1,reason:`chart.availability.requiresMeasure`}:e<2&&t<1?{available:!1,reason:`chart.availability.scatter`}:{available:!0},dependencies:z,config:async()=>(await Promise.resolve().then(()=>require("./ScatterChart.config-CdpvRueF.cjs"))).scatterChartConfig},bubble:{label:`chart.bubble.label`,icon:`chartBubble`,description:`chart.bubble.description`,useCase:`chart.bubble.useCase`,isAvailable:({measureCount:e,dimensionCount:t})=>e<2?{available:!1,reason:`chart.availability.requiresTwoMeasures`}:t<1?{available:!1,reason:`chart.availability.bubble`}:{available:!0},dependencies:z,config:async()=>(await Promise.resolve().then(()=>require("./BubbleChart.config-CbhOzA6-.cjs"))).bubbleChartConfig},radar:{label:`chart.radar.label`,icon:`chartRadar`,description:`chart.radar.description`,useCase:`chart.radar.useCase`,isAvailable:n.a,dependencies:z,config:async()=>(await Promise.resolve().then(()=>require("./RadarChart.config-BOgPD2Kz.cjs"))).radarChartConfig},radialBar:{label:`chart.radialBar.label`,icon:`chartRadialBar`,description:`chart.radialBar.description`,useCase:`chart.radialBar.useCase`,isAvailable:n.a,dependencies:z,config:async()=>(await Promise.resolve().then(()=>require("./RadialBarChart.config-sivA1Jmo.cjs"))).radialBarChartConfig},treemap:{label:`chart.treemap.label`,icon:`chartTreemap`,description:`chart.treemap.description`,useCase:`chart.treemap.useCase`,isAvailable:n.a,dependencies:z,config:async()=>(await Promise.resolve().then(()=>require("./TreeMapChart.config-KcRLlZAG.cjs"))).treemapChartConfig},table:{label:`chart.table.label`,icon:`chartTable`,description:`chart.table.description`,useCase:`chart.table.useCase`,config:async()=>(await Promise.resolve().then(()=>require("./DataTable.config-DNxm1sYk.cjs"))).dataTableConfig},recordsTable:{label:`chart.recordsTable.label`,icon:`chartRecordsTable`,description:`chart.recordsTable.description`,useCase:`chart.recordsTable.useCase`,config:async()=>(await Promise.resolve().then(()=>require("./RecordsTable.config-CVmxLdjz.cjs"))).recordsTableConfig},activityGrid:{label:`chart.activityGrid.label`,icon:`chartActivityGrid`,description:`chart.activityGrid.description`,useCase:`chart.activityGrid.useCase`,isAvailable:({measureCount:e,timeDimensionCount:t})=>e<1?{available:!1,reason:`chart.availability.requiresMeasure`}:t<1?{available:!1,reason:`chart.availability.requiresTimeDimension`}:{available:!0},config:async()=>(await Promise.resolve().then(()=>require("./ActivityGridChart.config-Bc7mPqcf.cjs"))).activityGridChartConfig},kpiNumber:{label:`chart.kpiNumber.label`,icon:`chartKpiNumber`,description:`chart.kpiNumber.description`,useCase:`chart.kpiNumber.useCase`,isAvailable:n.i,config:async()=>(await Promise.resolve().then(()=>require("./KpiNumber.config-DMGmuA3i.cjs"))).kpiNumberConfig},kpiDelta:{label:`chart.kpiDelta.label`,icon:`chartKpiDelta`,description:`chart.kpiDelta.description`,useCase:`chart.kpiDelta.useCase`,isAvailable:n.a,config:async()=>(await Promise.resolve().then(()=>require("./KpiDelta.config-DuNxrGIi.cjs"))).kpiDeltaConfig},kpiText:{label:`chart.kpiText.label`,icon:`chartKpiText`,description:`chart.kpiText.description`,useCase:`chart.kpiText.useCase`,isAvailable:n.i,config:async()=>(await Promise.resolve().then(()=>require("./KpiText.config-DOMLO16U.cjs"))).kpiTextConfig},markdown:{label:`chart.markdown.label`,icon:`chartMarkdown`,description:`chart.markdown.description`,useCase:`chart.markdown.useCase`,config:async()=>(await Promise.resolve().then(()=>require("./MarkdownChart.config-BgY5Xc97.cjs"))).markdownConfig},funnel:{label:`chart.funnel.label`,icon:`chartFunnel`,description:`chart.funnel.description`,useCase:`chart.funnel.useCase`,dependencies:z,config:async()=>(await Promise.resolve().then(()=>require("./FunnelChart.config-D1TpuGtL.cjs"))).funnelChartConfig},sankey:{label:`chart.sankey.label`,icon:`chartSankey`,description:`chart.sankey.description`,useCase:`chart.sankey.useCase`,dependencies:z,config:async()=>(await Promise.resolve().then(()=>require("./SankeyChart.config-DfpeHfNT.cjs"))).sankeyChartConfig},sunburst:{label:`chart.sunburst.label`,icon:`chartSunburst`,description:`chart.sunburst.description`,useCase:`chart.sunburst.useCase`,dependencies:z,config:async()=>(await Promise.resolve().then(()=>require("./SunburstChart.config-Boyt88L_.cjs"))).sunburstChartConfig},heatmap:{label:`chart.heatmap.label`,icon:`chartHeatmap`,description:`chart.heatmap.description`,useCase:`chart.heatmap.useCase`,isAvailable:({measureCount:e,dimensionCount:t})=>e<1?{available:!1,reason:`chart.availability.requiresMeasure`}:t<2?{available:!1,reason:`chart.availability.requiresTwoDimensions`}:{available:!0},dependencies:{packageName:`@nivo/heatmap`,installCommand:`npm install @nivo/heatmap`},config:async()=>(await Promise.resolve().then(()=>require("./HeatMapChart.config-C-Ns6QBq.cjs"))).heatmapChartConfig},retentionHeatmap:{label:`chart.retentionHeatmap.label`,icon:`chartRetention`,description:`chart.retentionHeatmap.description`,useCase:`chart.retentionHeatmap.useCase`,config:async()=>(await Promise.resolve().then(()=>require("./RetentionHeatmap.config-i-LgmmIT.cjs"))).retentionHeatmapConfig},retentionCombined:{label:`chart.retentionCombined.label`,icon:`chartRetention`,description:`chart.retentionCombined.description`,useCase:`chart.retentionCombined.useCase`,config:async()=>(await Promise.resolve().then(()=>require("./RetentionCombinedChart.config-8ry7gh6X.cjs"))).retentionCombinedConfig},boxPlot:{label:`chart.boxPlot.label`,icon:`chartBoxPlot`,description:`chart.boxPlot.description`,useCase:`chart.boxPlot.useCase`,isAvailable:n.a,config:async()=>(await Promise.resolve().then(()=>require("./BoxPlotChart.config-XmtRN2xq.cjs"))).boxPlotChartConfig},dotStrip:{label:`chart.dotStrip.label`,icon:`chartDotStrip`,description:`chart.dotStrip.description`,useCase:`chart.dotStrip.useCase`,isAvailable:n.a,config:async()=>(await Promise.resolve().then(()=>require("./DotStripChart.config-Co4g1fpZ.cjs"))).dotStripChartConfig},waterfall:{label:`chart.waterfall.label`,icon:`chartWaterfall`,description:`chart.waterfall.description`,useCase:`chart.waterfall.useCase`,isAvailable:n.a,dependencies:z,config:async()=>(await Promise.resolve().then(()=>require("./WaterfallChart.config-CuCGaIl5.cjs"))).waterfallChartConfig},candlestick:{label:`chart.candlestick.label`,icon:`chartCandlestick`,description:`chart.candlestick.description`,useCase:`chart.candlestick.useCase`,isAvailable:({measureCount:e,dimensionCount:t})=>e<2?{available:!1,reason:`chart.availability.requiresTwoMeasures`}:t<1?{available:!1,reason:`chart.availability.requiresDimension`}:{available:!0},config:async()=>(await Promise.resolve().then(()=>require("./CandlestickChart.config-CmRBlWFv.cjs"))).candlestickChartConfig},measureProfile:{label:`chart.measureProfile.label`,icon:`chartMeasureProfile`,description:`chart.measureProfile.description`,useCase:`chart.measureProfile.useCase`,isAvailable:({measureCount:e})=>e<2?{available:!1,reason:`chart.availability.requiresTwoMeasures`}:{available:!0},dependencies:z,config:async()=>(await Promise.resolve().then(()=>require("./MeasureProfileChart.config-BYwDo_ox.cjs"))).measureProfileChartConfig},proportionBar:{label:`chart.proportionBar.label`,icon:`chartProportionBar`,description:`chart.proportionBar.description`,useCase:`chart.proportionBar.useCase`,isAvailable:n.a,config:async()=>(await Promise.resolve().then(()=>require("./ProportionBarChart.config-B_rTtGZr.cjs"))).proportionBarChartConfig},gauge:{label:`chart.gauge.label`,icon:`chartGauge`,description:`chart.gauge.description`,useCase:`chart.gauge.useCase`,isAvailable:n.i,dependencies:{packageName:`d3-shape`,installCommand:`npm install d3-shape`},config:async()=>(await Promise.resolve().then(()=>require("./GaugeChart.config-BMgUHKhC.cjs"))).gaugeChartConfig}};function ee(e,t){return{...t,label:e.label,description:e.description,useCase:e.useCase,isAvailable:e.isAvailable}}var te={bar:u,line:d,area:f,pie:p,scatter:m,bubble:h,radar:g,radialBar:_,treemap:v,table:y,recordsTable:b,activityGrid:x,kpiNumber:S,kpiDelta:C,kpiText:w,markdown:T,funnel:E,sankey:D,sunburst:O,heatmap:k,retentionHeatmap:A,retentionCombined:j,boxPlot:M,dotStrip:N,waterfall:P,candlestick:F,measureProfile:I,proportionBar:L,gauge:R},V=Object.fromEntries(Object.keys(B).map(e=>[e,ee(B[e],te[e])]));function H(e){return V[e]?.recordGrain===!0}function U(e){return Array.isArray(e)?e.length>0:!!e}function ne(t,n,r,i){for(let a of t.dropZones){if(!a.mandatory||U(r?.[a.key]))continue;let t=a.acceptTypes?.join(`/`)??`fields`;i.push(e.A(`server.validation.chart.dropZoneRequired`,{key:a.key,chartType:n,label:a.label,acceptDesc:t}))}}function re(t,n,r){if(U(t?.xAxis))return;let i=n.dimensions??[],a=n.timeDimensions??[],o=i.length>0||a.length>0;r.push(e.A(o?`server.validation.chart.barXAxisRequired`:`server.validation.chart.barNeedsDimension`))}function W(e){return Array.isArray(e)?e:[e]}function ie(t,n){if(!t?.xAxis||!t?.series)return;let r=new Set(W(t.xAxis)),i=W(t.series).filter(e=>r.has(e));i.length>0&&n.push(e.A(`server.validation.chart.seriesDuplicatesXAxis`,{duplicates:i.join(`, `)}))}function ae(t,n,r){H(t)&&n.ungrouped!==!0&&r.push(e.A(`server.validation.chart.recordGrainNeedsUngrouped`,{chartType:t}))}function G(e,t,n){let r=V[e];if(!r||r.skipQuery)return{isValid:!0,errors:[]};let i=[];return ne(r,e,t,i),ae(e,n,i),e===`bar`&&re(t,n,i),ie(t,i),{isValid:i.length===0,errors:i}}function K(e,t,n,r){if(!(e.acceptTypes??[]).includes(`measure`))return;let i=new Set;for(let r of t.dropZones){if(r.key===e.key)continue;let t=n[r.key];Array.isArray(t)?t.forEach(e=>i.add(e)):typeof t==`string`&&i.add(t)}let a=r.filter(e=>!i.has(e));a.length>0&&(n[e.key]=a[0])}function q(e,t,n){let r=e.acceptTypes??[],i=[];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;let a=i;if(e.key===`series`){let e=new Set(Array.isArray(t.xAxis)?t.xAxis:t.xAxis?[t.xAxis]:[]);if(a=i.filter(t=>!e.has(t)),a.length===0)return}let o=e.maxItems??1/0,s=a.slice(0,o);s.length>0&&(t[e.key]=s)}function J(e,t,n){let r=V[e];if(!r)return t??{};let i={...t},a=n.timeDimensions??[],o={measures:n.measures??[],dimensions:n.dimensions??[],timeDimFields:a.map(e=>e.dimension)};for(let e of r.dropZones)e.excludeFromInference||U(i[e.key])||(e.key===`sizeField`||e.key===`colorField`?K(e,r,i,o.measures):q(e,i,o));return i}function Y(t){return t?e.k(t)?e.A(t):t:``}function oe(e){let t=[`
|
|
15
|
+
Use --- for horizontal rules.`,description:`chart.configText.enter_markdown_text_supports_headers_bold_text_italic_text_links_text_ur`},{key:`accentColorIndex`,label:`chart.configText.accent_color`,type:`paletteColor`,defaultValue:0,description:`chart.configText.color_from_the_dashboard_palette_for_headers_bullets_and_links`},{key:`fontSize`,label:`chart.option.fontSize.label`,type:`select`,defaultValue:`medium`,options:[{value:`small`,label:`chart.option.fontSize.small`},{value:`medium`,label:`chart.option.fontSize.medium`},{value:`large`,label:`chart.option.fontSize.large`}],description:`chart.configText.overall_text_size_for_the_markdown_content`},{key:`alignment`,label:`chart.option.alignment.label`,type:`select`,defaultValue:`left`,options:[{value:`left`,label:`chart.option.accentBorder.left`},{value:`center`,label:`chart.option.alignment.center`},{value:`right`,label:`chart.option.alignment.right`}],description:`chart.configText.horizontal_alignment_of_the_markdown_content`},{key:`hideHeader`,label:`chart.option.hideHeader.label`,type:`boolean`,defaultValue:!0,description:`chart.option.hideHeader.description`},{key:`transparentBackground`,label:`chart.option.transparentBackground.label`,type:`boolean`,defaultValue:!1,description:`chart.option.transparentBackground.description`},{key:`autoHeight`,label:`chart.option.autoHeight.label`,type:`boolean`,defaultValue:!0,description:`chart.option.autoHeight.description`},{key:`accentBorder`,label:`chart.option.accentBorder.label`,type:`select`,defaultValue:`none`,options:[{value:`none`,label:`chart.option.accentBorder.none`},{value:`left`,label:`chart.option.accentBorder.left`},{value:`top`,label:`chart.option.accentBorder.top`},{value:`bottom`,label:`chart.option.accentBorder.bottom`}],description:`chart.configText.add_an_accent_colored_border_on_one_side_of_the_content`}]},E={dropZones:[{key:`xAxis`,label:`chart.configText.step_name`,description:`chart.configText.step_names_auto_populated_from_funnel_steps`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.funnel.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.step_count`,description:`chart.configText.count_at_each_step_auto_calculated`,mandatory:!1,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.funnel.dropZone.yAxis.empty`}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`funnelStyle`,label:`chart.option.funnelStyle.label`,type:`buttonGroup`,defaultValue:`bars`,options:[{value:`bars`,label:`chart.option.funnelStyle.bars`},{value:`funnel`,label:`chart.option.funnelStyle.funnel`}],description:`chart.configText.visualization_style`},{key:`funnelOrientation`,label:`chart.option.funnelOrientation.label`,type:`buttonGroup`,defaultValue:`horizontal`,options:[{value:`horizontal`,label:`chart.option.funnelOrientation.horizontal`},{value:`vertical`,label:`chart.option.funnelOrientation.vertical`}]},{key:`hideSummaryFooter`,label:`chart.option.hideSummaryFooter.label`,type:`boolean`,defaultValue:!1,description:`chart.option.hideSummaryFooter.description`},{key:`showFunnelConversion`,label:`chart.option.showConversion.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showConversion.description`},{key:`showFunnelAvgTime`,label:`chart.option.showAvgTime.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showAvgTime.description`},{key:`showFunnelMedianTime`,label:`chart.option.showMedianTime.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showMedianTime.description`},{key:`showFunnelP90Time`,label:`chart.option.showP90Time.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showP90Time.description`}]},D={dropZones:[{key:`xAxis`,label:`chart.configText.event_type`,description:`chart.configText.event_dimension_that_categorizes_flow_nodes`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.sankey.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.flow_count`,description:`chart.configText.count_of_entities_following_each_path`,mandatory:!1,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.sankey.dropZone.yAxis.empty`}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`linkOpacity`,label:`chart.option.linkOpacity.label`,type:`buttonGroup`,defaultValue:`0.5`,options:[{value:`0.3`,label:`chart.option.linkOpacity.light`},{value:`0.5`,label:`chart.option.fontSize.medium`},{value:`0.7`,label:`chart.option.linkOpacity.dark`}],description:`chart.configText.opacity_of_flow_links`},{key:`showNodeLabels`,label:`chart.option.showNodeLabels.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showNodeLabels.description`},{key:`hideSummaryFooter`,label:`chart.option.hideSummaryFooter.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.hide_the_statistics_footer_below_the_chart`}]},O={dropZones:[{key:`xAxis`,label:`chart.configText.event_type`,description:`chart.configText.event_dimension_that_categorizes_flow_nodes`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.sunburst.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.flow_count`,description:`chart.configText.count_of_entities_following_each_path`,mandatory:!1,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.sunburst.dropZone.yAxis.empty`}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`innerRadius`,label:`chart.option.innerRadius.label`,type:`number`,defaultValue:40,min:0,max:100,step:10,description:`chart.configText.size_of_the_center_hole_0_for_full_circle`},{key:`hideSummaryFooter`,label:`chart.option.hideSummaryFooter.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.hide_the_statistics_footer_below_the_chart`}]},k={dropZones:[{key:`xAxis`,label:`chart.configText.columns_x_axis`,description:`chart.configText.dimension_for_column_categories`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.heatmap.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.rows_y_axis`,description:`chart.configText.dimension_for_row_categories`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.heatmap.dropZone.yAxis.empty`},{key:`valueField`,label:`chart.configText.value_color_intensity`,description:`chart.configText.measure_that_determines_cell_color`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.heatmap.dropZone.valueField.empty`}],displayOptions:[`showLegend`,`showTooltip`],displayOptionsConfig:[{key:`showLabels`,label:`chart.option.showLabels.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showLabels.description`},{key:`cellShape`,label:`chart.option.cellShape.label`,type:`select`,defaultValue:`rect`,options:[{value:`rect`,label:`chart.option.cellShape.rectangle`},{value:`circle`,label:`chart.option.cellShape.circle`}]},{key:`xAxisFormat`,label:`chart.option.xAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_x_axis_labels`},{key:`yAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_y_axis_labels`},{key:`valueFormat`,label:`chart.option.valueFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_cell_values_and_legend`}],validate:e=>e.xAxis?.length?e.yAxis?.length?e.valueField?.length?{isValid:!0}:{isValid:!1,message:`chart.heatmap.validation.valueRequired`}:{isValid:!1,message:`chart.heatmap.validation.yAxisRequired`}:{isValid:!1,message:`chart.heatmap.validation.xAxisRequired`}},A={dropZones:[],displayOptionsConfig:[{key:`showLegend`,label:`chart.option.showLegend.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.show_the_color_intensity_legend`},{key:`showTooltip`,label:`chart.option.showTooltip.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showTooltip.description`}]},j={dropZones:[],displayOptionsConfig:[{key:`retentionDisplayMode`,label:`chart.option.retentionDisplayMode.label`,type:`select`,defaultValue:`line`,options:[{value:`line`,label:`chart.option.retentionDisplayMode.lineChart`},{value:`heatmap`,label:`chart.option.retentionDisplayMode.heatmapTable`},{value:`combined`,label:`chart.option.retentionDisplayMode.combined`}],description:`chart.configText.choose_how_to_visualize_retention_data`},{key:`showLegend`,label:`chart.option.showLegend.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.show_the_legend_for_breakdown_segments`},{key:`showGrid`,label:`chart.option.showGrid.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showGrid.description`},{key:`showTooltip`,label:`chart.option.showTooltip.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showTooltip.description`}]},M={displayOptions:[`hideHeader`],dropZones:[{key:`xAxis`,label:`chart.configText.x_axis_groups`,description:`chart.configText.dimension_to_group_boxes_by_e_g_symbol_platform`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.boxPlot.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.y_axis_measures`,description:`chart.configText.drop_1_measure_for_auto_mode_3_for_avg_stddev_median_mode_or_5_for_min_q`,mandatory:!0,maxItems:5,acceptTypes:[`measure`],emptyText:`chart.boxPlot.dropZone.yAxis.empty`}],displayOptionsConfig:[{key:`leftYAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_the_value_axis`}]},N={displayOptions:[`showGrid`,`showTooltip`,`hideHeader`],dropZones:[{key:`xAxis`,label:`chart.dotStrip.dropZone.xAxis.label`,description:`chart.dotStrip.dropZone.xAxis.description`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.dotStrip.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.dotStrip.dropZone.yAxis.label`,description:`chart.dotStrip.dropZone.yAxis.description`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.dotStrip.dropZone.yAxis.empty`},{key:`series`,label:`chart.dotStrip.dropZone.series.label`,description:`chart.dotStrip.dropZone.series.description`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.dotStrip.dropZone.series.empty`}],clickableElements:{point:!0},displayOptionsConfig:[{key:`showMedianMarker`,label:`chart.option.showMedianMarker.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showMedianMarker.description`},{key:`showBandStats`,label:`chart.option.showBandStats.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showBandStats.description`},{key:`showExtremeLabels`,label:`chart.option.showExtremeLabels.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showExtremeLabels.description`},{key:`dotSize`,label:`chart.option.dotSize.label`,type:`select`,defaultValue:`medium`,options:[{value:`small`,label:`chart.option.dotSize.small`},{value:`medium`,label:`chart.option.dotSize.medium`},{value:`large`,label:`chart.option.dotSize.large`}],description:`chart.option.dotSize.description`},{key:`bandSort`,label:`chart.option.bandSort.label`,type:`select`,defaultValue:`none`,options:[{value:`none`,label:`chart.option.bandSort.none`},{value:`valueDesc`,label:`chart.option.bandSort.valueDesc`},{value:`valueAsc`,label:`chart.option.bandSort.valueAsc`},{value:`count`,label:`chart.option.bandSort.count`}],description:`chart.option.bandSort.description`},{key:`xAxisFormat`,label:`chart.option.xAxisFormat.label`,type:`axisFormat`,description:`chart.option.xAxisFormat.description`}]},P={clickableElements:{bar:!0},displayOptions:[`showTooltip`,`hideHeader`],dropZones:[{key:`xAxis`,label:`chart.dropZone.xAxis.label`,description:`chart.configText.dimension_labels_for_each_bar_segment_e_g_symbol_transaction_type`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.waterfall.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.y_axis_value`,description:`chart.configText.single_measure_whose_values_are_summed_cumulatively`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.waterfall.dropZone.yAxis.empty`}],displayOptionsConfig:[{key:`showTotal`,label:`chart.option.showTotal.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showTotal.description`},{key:`showConnectorLine`,label:`chart.option.showConnectorLine.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showConnectorLine.description`},{key:`showDataLabels`,label:`chart.option.showDataLabels.label`,type:`boolean`,defaultValue:!1,description:`chart.configText.display_the_value_above_each_bar_segment`},{key:`leftYAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_the_y_axis`}]},F={clickableElements:{bar:!0},displayOptions:[`hideHeader`],dropZones:[{key:`xAxis`,label:`chart.configText.x_axis_time_category`,description:`chart.configText.time_dimension_or_category_for_each_candle_e_g_date_symbol`,mandatory:!0,maxItems:1,acceptTypes:[`timeDimension`,`dimension`],emptyText:`chart.candlestick.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.ohlc_measures_open_close_high_low`,description:`chart.configText.drop_2_4_measures_in_order_open_close_high_low_ohlc_mode_for_range_mode_`,mandatory:!0,acceptTypes:[`measure`],emptyText:`chart.candlestick.dropZone.yAxis.empty`}],displayOptionsConfig:[{key:`rangeMode`,label:`chart.option.rangeMode.label`,type:`select`,defaultValue:`ohlc`,options:[{value:`ohlc`,label:`chart.option.rangeMode.ohlc`},{value:`range`,label:`chart.option.rangeMode.range`}],description:`chart.option.rangeMode.description`},{key:`bullColor`,label:`chart.option.bullColor.label`,type:`color`,defaultValue:`#22c55e`,description:`chart.option.bullColor.description`},{key:`bearColor`,label:`chart.option.bearColor.label`,type:`color`,defaultValue:`#ef4444`,description:`chart.option.bearColor.description`},{key:`showWicks`,label:`chart.option.showWicks.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showWicks.description`},{key:`leftYAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_the_price_axis`}]},I={displayOptions:[`showLegend`,`showTooltip`,`hideHeader`],dropZones:[{key:`yAxis`,label:`chart.configText.measures_x_axis_order`,description:`chart.configText.add_2_or_more_measures_they_become_the_x_axis_categories_in_the_order_li`,mandatory:!0,acceptTypes:[`measure`],emptyText:`chart.measureProfile.dropZone.yAxis.empty`},{key:`series`,label:`chart.configText.series_split_into_multiple_lines`,description:`chart.configText.dimension_to_split_data_into_separate_profile_lines_e_g_symbol_platform`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`chart.measureProfile.dropZone.series.empty`}],displayOptionsConfig:[{key:`showReferenceLineAtZero`,label:`chart.option.showReferenceLineAtZero.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showReferenceLineAtZero.description`},{key:`showDataLabels`,label:`chart.option.showDataLabels.label`,type:`boolean`,defaultValue:!1,description:`chart.configText.display_value_at_each_data_point`},{key:`showLegend`,label:`chart.option.showLegend.label`,type:`boolean`,defaultValue:!0,description:`chart.configText.show_series_legend_only_visible_with_a_series_dimension`},{key:`lineType`,label:`chart.option.lineType.label`,type:`select`,defaultValue:`monotone`,options:[{value:`monotone`,label:`chart.option.lineType.smooth`},{value:`linear`,label:`chart.option.lineType.linear`},{value:`step`,label:`chart.option.lineType.step`}],description:`chart.option.lineType.description`},{key:`leftYAxisFormat`,label:`chart.option.yAxisFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_the_y_axis`}]},L={dropZones:[{key:`xAxis`,label:`chart.configText.category`,description:`chart.configText.dimension_to_split_the_bar_into_segments`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`chart.proportionBar.dropZone.xAxis.empty`},{key:`yAxis`,label:`chart.configText.value`,description:`chart.configText.measure_that_determines_each_segments_share`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`chart.proportionBar.dropZone.yAxis.empty`}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`showLabels`,label:`chart.option.proportionBarLabels.label`,type:`boolean`,defaultValue:!0,description:`chart.option.proportionBarLabels.description`},{key:`showPercentages`,label:`chart.option.showPercentages.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showPercentages.description`},{key:`sortSegments`,label:`chart.option.sortSegments.label`,type:`boolean`,defaultValue:!1,description:`chart.option.sortSegments.description`},{key:`decimals`,label:`chart.option.decimals.label`,type:`number`,defaultValue:0,min:0,max:2,description:`chart.option.proportionBarDecimals.description`}],validate:e=>!e?.xAxis||Array.isArray(e.xAxis)&&e.xAxis.length===0?{isValid:!1,message:`chart.proportionBar.validation.dimensionRequired`}:!e?.yAxis||Array.isArray(e.yAxis)&&e.yAxis.length===0?{isValid:!1,message:`chart.proportionBar.validation.measureRequired`}:{isValid:!0}},R={clickableElements:{},displayOptions:[`hideHeader`],dropZones:[{key:`yAxis`,label:`chart.configText.value_measure`,description:`chart.configText.current_value_to_display_on_the_gauge_e_g_current_equity_margin_used`,mandatory:!0,maxItems:2,acceptTypes:[`measure`],emptyText:`chart.gauge.dropZone.yAxis.empty`}],displayOptionsConfig:[{key:`minValue`,label:`chart.option.minValue.label`,type:`number`,defaultValue:0,description:`chart.option.minValue.description`},{key:`maxValue`,label:`chart.option.maxValue.label`,type:`number`,description:`chart.option.maxValue.description`},{key:`thresholds`,label:`chart.configText.threshold_bands`,type:`thresholdBands`,description:`chart.gauge.thresholds.description`},{key:`showCenterLabel`,label:`chart.option.showCentreLabel.label`,type:`boolean`,defaultValue:!0,description:`chart.option.showCentreLabel.description`},{key:`showPercentage`,label:`chart.option.showPercentage.label`,type:`boolean`,defaultValue:!1,description:`chart.option.showPercentage.description`},{key:`leftYAxisFormat`,label:`chart.option.valueFormat.label`,type:`axisFormat`,description:`chart.configText.number_formatting_for_the_displayed_value_and_axis_labels`}]},z={packageName:`recharts`,installCommand:`npm install recharts`},B={bar:{label:`chart.bar.label`,icon:`chartBar`,description:`chart.bar.description`,useCase:`chart.bar.useCase`,isAvailable:n.a,dependencies:z,config:async()=>(await Promise.resolve().then(()=>require("./BarChart.config-Dc1FHoux.cjs"))).barChartConfig},line:{label:`chart.line.label`,icon:`chartLine`,description:`chart.line.description`,useCase:`chart.line.useCase`,isAvailable:n.a,dependencies:z,config:async()=>(await Promise.resolve().then(()=>require("./LineChart.config-C3MQKW5U.cjs"))).lineChartConfig},area:{label:`chart.area.label`,icon:`chartArea`,description:`chart.area.description`,useCase:`chart.area.useCase`,isAvailable:n.a,dependencies:z,config:async()=>(await Promise.resolve().then(()=>require("./AreaChart.config-Bv7qJYd0.cjs"))).areaChartConfig},pie:{label:`chart.pie.label`,icon:`chartPie`,description:`chart.pie.description`,useCase:`chart.pie.useCase`,isAvailable:n.a,dependencies:z,config:async()=>(await Promise.resolve().then(()=>require("./PieChart.config-D5ixLlYJ.cjs"))).pieChartConfig},scatter:{label:`chart.scatter.label`,icon:`chartScatter`,description:`chart.scatter.description`,useCase:`chart.scatter.useCase`,isAvailable:({measureCount:e,dimensionCount:t})=>e<1?{available:!1,reason:`chart.availability.requiresMeasure`}:e<2&&t<1?{available:!1,reason:`chart.availability.scatter`}:{available:!0},dependencies:z,config:async()=>(await Promise.resolve().then(()=>require("./ScatterChart.config-DsVSbcSc.cjs"))).scatterChartConfig},bubble:{label:`chart.bubble.label`,icon:`chartBubble`,description:`chart.bubble.description`,useCase:`chart.bubble.useCase`,isAvailable:({measureCount:e,dimensionCount:t})=>e<2?{available:!1,reason:`chart.availability.requiresTwoMeasures`}:t<1?{available:!1,reason:`chart.availability.bubble`}:{available:!0},dependencies:z,config:async()=>(await Promise.resolve().then(()=>require("./BubbleChart.config-ro80CWd_.cjs"))).bubbleChartConfig},radar:{label:`chart.radar.label`,icon:`chartRadar`,description:`chart.radar.description`,useCase:`chart.radar.useCase`,isAvailable:n.a,dependencies:z,config:async()=>(await Promise.resolve().then(()=>require("./RadarChart.config-B7C-0wYa.cjs"))).radarChartConfig},radialBar:{label:`chart.radialBar.label`,icon:`chartRadialBar`,description:`chart.radialBar.description`,useCase:`chart.radialBar.useCase`,isAvailable:n.a,dependencies:z,config:async()=>(await Promise.resolve().then(()=>require("./RadialBarChart.config-LTSl-xoA.cjs"))).radialBarChartConfig},treemap:{label:`chart.treemap.label`,icon:`chartTreemap`,description:`chart.treemap.description`,useCase:`chart.treemap.useCase`,isAvailable:n.a,dependencies:z,config:async()=>(await Promise.resolve().then(()=>require("./TreeMapChart.config-DkRO8LYG.cjs"))).treemapChartConfig},table:{label:`chart.table.label`,icon:`chartTable`,description:`chart.table.description`,useCase:`chart.table.useCase`,config:async()=>(await Promise.resolve().then(()=>require("./DataTable.config-RNGMSueS.cjs"))).dataTableConfig},recordsTable:{label:`chart.recordsTable.label`,icon:`chartRecordsTable`,description:`chart.recordsTable.description`,useCase:`chart.recordsTable.useCase`,config:async()=>(await Promise.resolve().then(()=>require("./RecordsTable.config-DnY_PByk.cjs"))).recordsTableConfig},activityGrid:{label:`chart.activityGrid.label`,icon:`chartActivityGrid`,description:`chart.activityGrid.description`,useCase:`chart.activityGrid.useCase`,isAvailable:({measureCount:e,timeDimensionCount:t})=>e<1?{available:!1,reason:`chart.availability.requiresMeasure`}:t<1?{available:!1,reason:`chart.availability.requiresTimeDimension`}:{available:!0},config:async()=>(await Promise.resolve().then(()=>require("./ActivityGridChart.config-NSLCFzvM.cjs"))).activityGridChartConfig},kpiNumber:{label:`chart.kpiNumber.label`,icon:`chartKpiNumber`,description:`chart.kpiNumber.description`,useCase:`chart.kpiNumber.useCase`,isAvailable:n.i,config:async()=>(await Promise.resolve().then(()=>require("./KpiNumber.config-h_KXh89X.cjs"))).kpiNumberConfig},kpiDelta:{label:`chart.kpiDelta.label`,icon:`chartKpiDelta`,description:`chart.kpiDelta.description`,useCase:`chart.kpiDelta.useCase`,isAvailable:n.a,config:async()=>(await Promise.resolve().then(()=>require("./KpiDelta.config-eybdn0eH.cjs"))).kpiDeltaConfig},kpiText:{label:`chart.kpiText.label`,icon:`chartKpiText`,description:`chart.kpiText.description`,useCase:`chart.kpiText.useCase`,isAvailable:n.i,config:async()=>(await Promise.resolve().then(()=>require("./KpiText.config-CLk6a0TW.cjs"))).kpiTextConfig},markdown:{label:`chart.markdown.label`,icon:`chartMarkdown`,description:`chart.markdown.description`,useCase:`chart.markdown.useCase`,config:async()=>(await Promise.resolve().then(()=>require("./MarkdownChart.config-waq3gxEs.cjs"))).markdownConfig},funnel:{label:`chart.funnel.label`,icon:`chartFunnel`,description:`chart.funnel.description`,useCase:`chart.funnel.useCase`,dependencies:z,config:async()=>(await Promise.resolve().then(()=>require("./FunnelChart.config-CX1DFABr.cjs"))).funnelChartConfig},sankey:{label:`chart.sankey.label`,icon:`chartSankey`,description:`chart.sankey.description`,useCase:`chart.sankey.useCase`,dependencies:z,config:async()=>(await Promise.resolve().then(()=>require("./SankeyChart.config-CVoAarnp.cjs"))).sankeyChartConfig},sunburst:{label:`chart.sunburst.label`,icon:`chartSunburst`,description:`chart.sunburst.description`,useCase:`chart.sunburst.useCase`,dependencies:z,config:async()=>(await Promise.resolve().then(()=>require("./SunburstChart.config-BLtPPPli.cjs"))).sunburstChartConfig},heatmap:{label:`chart.heatmap.label`,icon:`chartHeatmap`,description:`chart.heatmap.description`,useCase:`chart.heatmap.useCase`,isAvailable:({measureCount:e,dimensionCount:t})=>e<1?{available:!1,reason:`chart.availability.requiresMeasure`}:t<2?{available:!1,reason:`chart.availability.requiresTwoDimensions`}:{available:!0},dependencies:{packageName:`@nivo/heatmap`,installCommand:`npm install @nivo/heatmap`},config:async()=>(await Promise.resolve().then(()=>require("./HeatMapChart.config-CTwcA2aU.cjs"))).heatmapChartConfig},retentionHeatmap:{label:`chart.retentionHeatmap.label`,icon:`chartRetention`,description:`chart.retentionHeatmap.description`,useCase:`chart.retentionHeatmap.useCase`,config:async()=>(await Promise.resolve().then(()=>require("./RetentionHeatmap.config-CHZiVXVo.cjs"))).retentionHeatmapConfig},retentionCombined:{label:`chart.retentionCombined.label`,icon:`chartRetention`,description:`chart.retentionCombined.description`,useCase:`chart.retentionCombined.useCase`,config:async()=>(await Promise.resolve().then(()=>require("./RetentionCombinedChart.config-CObWpIId.cjs"))).retentionCombinedConfig},boxPlot:{label:`chart.boxPlot.label`,icon:`chartBoxPlot`,description:`chart.boxPlot.description`,useCase:`chart.boxPlot.useCase`,isAvailable:n.a,config:async()=>(await Promise.resolve().then(()=>require("./BoxPlotChart.config-C_j-wp0l.cjs"))).boxPlotChartConfig},dotStrip:{label:`chart.dotStrip.label`,icon:`chartDotStrip`,description:`chart.dotStrip.description`,useCase:`chart.dotStrip.useCase`,isAvailable:n.a,config:async()=>(await Promise.resolve().then(()=>require("./DotStripChart.config-DhODtwbu.cjs"))).dotStripChartConfig},waterfall:{label:`chart.waterfall.label`,icon:`chartWaterfall`,description:`chart.waterfall.description`,useCase:`chart.waterfall.useCase`,isAvailable:n.a,dependencies:z,config:async()=>(await Promise.resolve().then(()=>require("./WaterfallChart.config-CKi4zg3x.cjs"))).waterfallChartConfig},candlestick:{label:`chart.candlestick.label`,icon:`chartCandlestick`,description:`chart.candlestick.description`,useCase:`chart.candlestick.useCase`,isAvailable:({measureCount:e,dimensionCount:t})=>e<2?{available:!1,reason:`chart.availability.requiresTwoMeasures`}:t<1?{available:!1,reason:`chart.availability.requiresDimension`}:{available:!0},config:async()=>(await Promise.resolve().then(()=>require("./CandlestickChart.config-Btzcen-6.cjs"))).candlestickChartConfig},measureProfile:{label:`chart.measureProfile.label`,icon:`chartMeasureProfile`,description:`chart.measureProfile.description`,useCase:`chart.measureProfile.useCase`,isAvailable:({measureCount:e})=>e<2?{available:!1,reason:`chart.availability.requiresTwoMeasures`}:{available:!0},dependencies:z,config:async()=>(await Promise.resolve().then(()=>require("./MeasureProfileChart.config-Djka_dSU.cjs"))).measureProfileChartConfig},proportionBar:{label:`chart.proportionBar.label`,icon:`chartProportionBar`,description:`chart.proportionBar.description`,useCase:`chart.proportionBar.useCase`,isAvailable:n.a,config:async()=>(await Promise.resolve().then(()=>require("./ProportionBarChart.config-CRWy5aME.cjs"))).proportionBarChartConfig},gauge:{label:`chart.gauge.label`,icon:`chartGauge`,description:`chart.gauge.description`,useCase:`chart.gauge.useCase`,isAvailable:n.i,dependencies:{packageName:`d3-shape`,installCommand:`npm install d3-shape`},config:async()=>(await Promise.resolve().then(()=>require("./GaugeChart.config-Dl2DrFSl.cjs"))).gaugeChartConfig}};function ee(e,t){return{...t,label:e.label,description:e.description,useCase:e.useCase,isAvailable:e.isAvailable}}var te={bar:u,line:d,area:f,pie:p,scatter:m,bubble:h,radar:g,radialBar:_,treemap:v,table:y,recordsTable:b,activityGrid:x,kpiNumber:S,kpiDelta:C,kpiText:w,markdown:T,funnel:E,sankey:D,sunburst:O,heatmap:k,retentionHeatmap:A,retentionCombined:j,boxPlot:M,dotStrip:N,waterfall:P,candlestick:F,measureProfile:I,proportionBar:L,gauge:R},V=Object.fromEntries(Object.keys(B).map(e=>[e,ee(B[e],te[e])]));function H(e){return V[e]?.recordGrain===!0}function U(e){return Array.isArray(e)?e.length>0:!!e}function ne(t,n,r,i){for(let a of t.dropZones){if(!a.mandatory||U(r?.[a.key]))continue;let t=a.acceptTypes?.join(`/`)??`fields`;i.push(e.A(`server.validation.chart.dropZoneRequired`,{key:a.key,chartType:n,label:a.label,acceptDesc:t}))}}function re(t,n,r){if(U(t?.xAxis))return;let i=n.dimensions??[],a=n.timeDimensions??[],o=i.length>0||a.length>0;r.push(e.A(o?`server.validation.chart.barXAxisRequired`:`server.validation.chart.barNeedsDimension`))}function W(e){return Array.isArray(e)?e:[e]}function ie(t,n){if(!t?.xAxis||!t?.series)return;let r=new Set(W(t.xAxis)),i=W(t.series).filter(e=>r.has(e));i.length>0&&n.push(e.A(`server.validation.chart.seriesDuplicatesXAxis`,{duplicates:i.join(`, `)}))}function ae(t,n,r){H(t)&&n.ungrouped!==!0&&r.push(e.A(`server.validation.chart.recordGrainNeedsUngrouped`,{chartType:t}))}function G(e,t,n){let r=V[e];if(!r||r.skipQuery)return{isValid:!0,errors:[]};let i=[];return ne(r,e,t,i),ae(e,n,i),e===`bar`&&re(t,n,i),ie(t,i),{isValid:i.length===0,errors:i}}function K(e,t,n,r){if(!(e.acceptTypes??[]).includes(`measure`))return;let i=new Set;for(let r of t.dropZones){if(r.key===e.key)continue;let t=n[r.key];Array.isArray(t)?t.forEach(e=>i.add(e)):typeof t==`string`&&i.add(t)}let a=r.filter(e=>!i.has(e));a.length>0&&(n[e.key]=a[0])}function q(e,t,n){let r=e.acceptTypes??[],i=[];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;let a=i;if(e.key===`series`){let e=new Set(Array.isArray(t.xAxis)?t.xAxis:t.xAxis?[t.xAxis]:[]);if(a=i.filter(t=>!e.has(t)),a.length===0)return}let o=e.maxItems??1/0,s=a.slice(0,o);s.length>0&&(t[e.key]=s)}function J(e,t,n){let r=V[e];if(!r)return t??{};let i={...t},a=n.timeDimensions??[],o={measures:n.measures??[],dimensions:n.dimensions??[],timeDimFields:a.map(e=>e.dimension)};for(let e of r.dropZones)e.excludeFromInference||U(i[e.key])||(e.key===`sizeField`||e.key===`colorField`?K(e,r,i,o.measures):q(e,i,o));return i}function Y(t){return t?e.k(t)?e.A(t):t:``}function oe(e){let t=[`
|
|
16
16
|
Chart config requirements by type:`];for(let n of e){let e=V[n];if(!e)continue;let r=[Y(e.description),Y(e.useCase)].filter(Boolean).join(`. `),i=r?` — ${r}.`:``,a=H(n)?` Query MUST set "ungrouped": true, which also means one cube plus its to-one joins — an ungrouped query cannot span a hasMany relationship.`:``,o=e.dropZones.filter(e=>e.mandatory);if(o.length===0&&!e.skipQuery){t.push(` ${n}${i}${a} chartConfig auto-inferred from query.`);continue}if(e.skipQuery){t.push(` ${n}${i} No query needed.`);continue}let s=o.map(e=>{let t=e.acceptTypes?.join(`/`)??`any`,n=e.maxItems?` (max ${e.maxItems})`:``;return`${e.key}=[${t}]${n}`});t.push(` ${n}${i}${a} Requires ${s.join(`, `)}.`)}return t.join(`
|
|
17
17
|
`)}var X=[`bar`,`line`,`area`,`pie`,`scatter`,`radar`,`bubble`,`table`,`kpiNumber`,`kpiDelta`,`funnel`,`heatmap`,`sankey`,`sunburst`,`retentionHeatmap`,`retentionCombined`,`boxPlot`,`markdown`,`recordsTable`];function se(){return[{name:`discover_cubes`,description:`Search for available data cubes by topic or intent. Call this FIRST to understand what data is available. Returns cube names, measures, dimensions, and relationships.`,parameters:{type:`object`,properties:{topic:{type:`string`,description:`Keyword to search (e.g., "sales", "employees")`},intent:{type:`string`,description:`Natural language goal (e.g., "analyze productivity trends")`},limit:{type:`number`,description:`Max results (default: 10)`},minScore:{type:`number`,description:`Min relevance 0-1 (default: 0.1)`}}}},{name:`get_cube_metadata`,description:`Get full metadata for all registered cubes including all measures, dimensions, types, and relationships. Use this for detailed schema information.`,parameters:{type:`object`,properties:{}}},{name:`execute_query`,description:`Execute a semantic query and return data results. Supports standard queries (measures/dimensions) and analysis modes (funnel/flow/retention). Only provide ONE mode per call.`,parameters:{type:`object`,properties:e.x}},{name:`add_portlet`,description:`Add a chart visualization to the notebook.
|
|
18
18
|
`+oe(X)+`
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../compiler-DG6dLFQU.cjs"),t=require("../mcp-transport-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../compiler-DG6dLFQU.cjs"),t=require("../mcp-transport-Dl5bn6h4.cjs"),n=require("../core-DnUv8WiY.cjs");let r=require("hono");var i=e=>{let t={origin:`*`,allowMethods:[`GET`,`HEAD`,`PUT`,`POST`,`DELETE`,`PATCH`,`QUERY`],allowHeaders:[],exposeHeaders:[],...e},n=t.exposeHeaders?.length?t.exposeHeaders.join(`,`):void 0,r=t.allowHeaders?.length?t.allowHeaders.join(`,`):void 0,i=(e=>typeof e==`string`?e===`*`?()=>e:t=>e===t?t:null:typeof e==`function`?e:t=>e.includes(t)?t:null)(t.origin),a=(e=>{if(typeof e==`function`)return async(t,n)=>(await e(t,n)).join(`,`);if(Array.isArray(e)){let t=e.join(`,`);return()=>t}return()=>``})(t.allowMethods);return async function(e,o){function s(t,n){e.res.headers.set(t,n)}let c=await i(e.req.header(`origin`)||``,e);if(c&&s(`Access-Control-Allow-Origin`,c),t.credentials&&s(`Access-Control-Allow-Credentials`,`true`),n&&s(`Access-Control-Expose-Headers`,n),e.req.method===`OPTIONS`){t.origin!==`*`&&e.res.headers.append(`Vary`,`Origin`),t.maxAge!=null&&s(`Access-Control-Max-Age`,t.maxAge.toString());let n=await a(e.req.header(`origin`)||``,e);n&&s(`Access-Control-Allow-Methods`,n);let i=r;if(!i){let t=e.req.header(`Access-Control-Request-Headers`);t&&(i=t.split(`,`).map(e=>e.trim()).join(`,`))}return i&&(s(`Access-Control-Allow-Headers`,i),e.res.headers.append(`Vary`,`Access-Control-Request-Headers`)),e.res.headers.delete(`Content-Length`),e.res.headers.delete(`Content-Type`),new Response(null,{headers:e.res.headers,status:204,statusText:`No Content`})}await o(),t.origin!==`*`&&e.header(`Vary`,`Origin`,{append:!0})}};function a(e,t){let n=(t.apiKey||``).trim();if(t.allowClientApiKey){let t=e.req.header(`x-agent-api-key`);t&&(n=t.trim())}return n}function o(e,t){return t.allowClientApiKey?{providerOverride:e.req.header(`x-agent-provider`),modelOverride:e.req.header(`x-agent-model`),baseURLOverride:e.req.header(`x-agent-provider-endpoint`)}:{}}function s(e){let t=new TextEncoder,n=new ReadableStream({async start(n){try{for await(let r of e)n.enqueue(t.encode(`data: ${JSON.stringify(r)}\n\n`))}catch(e){let r={type:`error`,data:{message:e instanceof Error?e.message:`Stream failed`}};n.enqueue(t.encode(`data: ${JSON.stringify(r)}\n\n`))}finally{n.close()}}});return new Response(n,{status:200,headers:{"Content-Type":`text/event-stream`,"Cache-Control":`no-cache`,Connection:`keep-alive`}})}async function c(e,t,n,r){try{let{handleAgentChat:i}=await Promise.resolve().then(()=>require("../handler-l75Hbzv3.cjs")),{message:c,sessionId:l,history:u}=await e.req.json();if(!c||typeof c!=`string`)return e.json({error:`message is required and must be a string`},400);let d=a(e,t);if(!d)return e.json({error:`No API key configured. Set agent.apiKey in server config or send X-Agent-Api-Key header.`},401);let{providerOverride:f,modelOverride:p,baseURLOverride:m}=o(e,t),h=await r(e),g=t.buildSystemContext?.(h);return s(i({message:c,sessionId:l,history:u,semanticLayer:n,securityContext:h,agentConfig:t,apiKey:d,systemContext:g,providerOverride:f,modelOverride:p,baseURLOverride:m}))}catch(t){return console.error(`Agent chat error:`,t),e.json({error:t instanceof Error?t.message:`Agent chat failed`},500)}}function l(e){return{getHeader:t=>e.req.header(t),getBody:async()=>{try{return await e.req.json()}catch{return null}},getQueryParam:t=>e.req.query(t),send:(t,n)=>e.json(n,t),setHeader:(t,n)=>{e.header(t,n)},sendEmpty:t=>e.body(null,t),sendSse:(t,n)=>(e.header(`Content-Type`,`text/event-stream`),e.header(`Cache-Control`,`no-cache`),e.header(`Connection`,`keep-alive`),e.body(n,t))}}function u(a){let{cubes:o,drizzle:s,schema:u,extractSecurityContext:d,engineType:f,cors:p,basePath:m=`/cubejs-api/v1`,cache:h,mcp:g={enabled:!0},agent:_}=a;if(!a.semanticLayer&&(!o||o.length===0))throw Error(`Either semanticLayer or a non-empty cubes array must be provided`);let v=new r.Hono;if(p){let e={...p,allowHeaders:n.o(p.allowHeaders)};v.use(`/*`,i(e))}let y=a.semanticLayer??new e.t({drizzle:s,schema:u,engineType:f,cache:h,rlsSetup:a.rlsSetup});!a.semanticLayer&&o&&o.forEach(e=>{y.registerCube(e)});let b=n.t({semanticLayer:y,onError:e=>console.error(`Query execution error:`,e),mcp:g}),x=e=>()=>d(e);if(v.post(`${m}/load`,e=>b.handleLoadPost(l(e),x(e))),v.get(`${m}/load`,e=>b.handleLoadGet(l(e),x(e))),v.post(`${m}/batch`,e=>b.handleBatchPost(l(e),x(e))),v.get(`${m}/meta`,e=>b.handleMetaGet(l(e),x(e))),v.post(`${m}/sql`,e=>b.handleSqlPost(l(e),x(e))),v.get(`${m}/sql`,e=>b.handleSqlGet(l(e),x(e))),v.post(`${m}/dry-run`,e=>b.handleDryRunPost(l(e),x(e))),v.get(`${m}/dry-run`,e=>b.handleDryRunGet(l(e),x(e))),v.post(`${m}/explain`,e=>b.handleExplainPost(l(e),x(e))),_&&v.post(`${m}/agent/chat`,e=>c(e,_,y,e=>Promise.resolve(d(e)).then(t=>n.r(t,t=>e.req.header(t))))),g.enabled!==!1){let e=g.basePath??`/mcp`;v.post(`${e}`,e=>b.handleMcpPost(l(e),x(e))),v.delete(`${e}`,e=>{let n=t.C(e.req.header(`origin`),t.h(g));return n.valid?g.resourceMetadataUrl&&!t.l(e.req.header(`authorization`))?(e.header(`WWW-Authenticate`,t.s(g.resourceMetadataUrl)),e.json({error:`Bearer token required`},401)):e.json({error:`Session termination not supported`},405):e.json({error:n.reason},403)}),v.get(`${e}`,e=>{let n=t.C(e.req.header(`origin`),t.h(g));if(!n.valid)return e.json({error:n.reason},403);if(g.resourceMetadataUrl&&!t.l(e.req.header(`authorization`)))return e.header(`WWW-Authenticate`,t.s(g.resourceMetadataUrl)),e.json({error:`Bearer token required`},401);let r=new TextEncoder,i=t._(),a,o=new ReadableStream({start(e){e.enqueue(r.encode(t.x({jsonrpc:`2.0`,method:`mcp/ready`,params:{protocol:`streamable-http`}},i,15e3))),a=setInterval(()=>{e.enqueue(r.encode(`: keep-alive
|
|
2
2
|
|
|
3
3
|
`))},15e3)},cancel(){clearInterval(a)}});return new Response(o,{status:200,headers:{"Content-Type":`text/event-stream`,"Cache-Control":`no-cache`,Connection:`keep-alive`}})})}return v}function d(e,t){let n=u(t);return e.route(`/`,n),e}function f(e){return d(new r.Hono,e)}exports.createCubeApp=f,exports.createCubeRoutes=u,exports.mountCubeRoutes=d;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "../compiler-BFLAXV7W.js";
|
|
2
|
-
import { C as t, _ as n, h as r, l as i, s as a, x as o } from "../mcp-transport-
|
|
3
|
-
import { o as s, r as c, t as l } from "../core-
|
|
2
|
+
import { C as t, _ as n, h as r, l as i, s as a, x as o } from "../mcp-transport-BOfhj01O.js";
|
|
3
|
+
import { o as s, r as c, t as l } from "../core-BBtbwMwR.js";
|
|
4
4
|
import { Hono as u } from "hono";
|
|
5
5
|
//#region node_modules/hono/dist/middleware/cors/index.js
|
|
6
6
|
var d = (e) => {
|
|
@@ -91,7 +91,7 @@ function m(e) {
|
|
|
91
91
|
}
|
|
92
92
|
async function h(e, t, n, r) {
|
|
93
93
|
try {
|
|
94
|
-
let { handleAgentChat: i } = await import("../handler-
|
|
94
|
+
let { handleAgentChat: i } = await import("../handler-_xh4X1OO.js"), { message: a, sessionId: o, history: s } = await e.req.json();
|
|
95
95
|
if (!a || typeof a != "string") return e.json({ error: "message is required and must be a string" }, 400);
|
|
96
96
|
let c = f(e, t);
|
|
97
97
|
if (!c) return e.json({ error: "No API key configured. Set agent.apiKey in server config or send X-Agent-Api-Key header." }, 401);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./utils-C1JpSDOX.cjs"),t=require("./mcp-transport-
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./utils-C1JpSDOX.cjs"),t=require("./mcp-transport-Dl5bn6h4.cjs");async function n(t,n,r){let i=await t.getSecurityContext(r);return t.wrapContent(await e.p(t.semanticLayer,i,n||{}))}async function r(t,n,r){let i=n||{};if(!i.query)return t.wrapError(`query is required`);let a=await t.getSecurityContext(r);return t.wrapContent(await e.f(t.semanticLayer,a,i))}async function i(t,n,r){let i=n||{};if(!i.query)return t.wrapError(`query is required`);let a=await t.getSecurityContext(r);return t.wrapContent(await e.m(t.semanticLayer,a,i))}function a(e){return{content:[{type:`text`,text:typeof e==`string`?e:JSON.stringify(e)}],isError:!1}}function o(e){return{content:[{type:`text`,text:e instanceof Error?e.message:String(e)}],isError:!0}}function s(e){let{semanticLayer:s,getSecurityContext:l,toolPrefix:u=`drizzle_cube_`,tools:d=[`discover`,`validate`,`load`,`chart`],prompts:f=t.u(),resources:p,app:m=!1}=e,h=!!m,g=typeof m==`object`?m:void 0,_=p??t.d(),v=h?[..._,...c(g)]:_,y=t.o({appEnabled:h}),b=new Map(y.map(e=>[e.name,e])),x=d.filter(e=>b.has(e)).map(e=>{let t=b.get(e),n={name:`${u}${e}`,description:t.description,inputSchema:t.inputSchema},r=t._meta;return r&&(n._meta=r),n}),S=x.map(e=>e.name),C=new Set;for(let e of d)C.add(e),C.add(`${u}${e}`);function w(e){return C.has(e)}let T={semanticLayer:s,getSecurityContext:l,wrapContent:a,wrapError:o},E={discover:(e,t)=>n(T,e,t),validate:(e,t)=>r(T,e,t),load:(e,t)=>i(T,e,t),chart:(e,t)=>i(T,e,t)};async function D(e,t,n){let r=e.startsWith(u)?e.slice(u.length):e,i=d.includes(r)?E[r]:void 0;if(!i)return o(`Unknown tool: ${e}`);try{return await i(t,n)}catch(e){return o(e)}}return{definitions:x,handle:D,handles:w,prompts:f,resources:v,toolNames:S}}function c(e){let n=t.f(e);return n?[{uri:t.n,name:`Drizzle Cube Visualization`,description:`Interactive chart visualization for query results`,mimeType:t.t,text:n}]:[]}exports.getCubeTools=s;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as e, m as t, p as n } from "./utils-BhlkVCzZ.js";
|
|
2
|
-
import { d as r, f as i, n as a, o, t as s, u as c } from "./mcp-transport-
|
|
2
|
+
import { d as r, f as i, n as a, o, t as s, u as c } from "./mcp-transport-BOfhj01O.js";
|
|
3
3
|
//#region src/adapters/mcp-tools-handlers.ts
|
|
4
4
|
async function l(e, t, r) {
|
|
5
5
|
let i = await e.getSecurityContext(r);
|