drizzle-cube 0.1.34 → 0.1.35
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/client/chunks/{components-CKoo4sL3.js → components-D3Bl_BuN.js} +1740 -1713
- package/dist/client/chunks/components-D3Bl_BuN.js.map +1 -0
- package/dist/client/components/AIAssistant/constants.d.ts +1 -1
- package/dist/client/components/QueryBuilder/types.d.ts +3 -0
- package/dist/client/components.js +1 -1
- package/dist/client/index.js +1 -1
- package/dist/client-bundle-stats.html +1 -1
- package/package.json +1 -1
- package/dist/client/chunks/components-CKoo4sL3.js.map +0 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare const AI_PROXY_BASE_URL = "/api/ai";
|
|
5
5
|
export declare const GEMINI_MODEL = "gemini-2.0-flash";
|
|
6
|
-
export declare const DEFAULT_SYSTEM_PROMPT_TEMPLATE = "You are a SQL query builder assistant for a semantic layer using Cube.js format.\n\nAvailable cube schema (JSON):\n{CUBE_SCHEMA}\n\nA valid Cube schema can contain things such as below (this is only an example of possible options):\n\n{\n \"measures\": [\"stories.count\"],\n \"dimensions\": [\"stories.category\"],\n \"filters\": [\n {\n \"member\": \"stories.isDraft\",\n \"operator\": \"equals\",\n \"values\": [\"No\"]\n }\n ],\n \"timeDimensions\": [\n {\n \"dimension\": \"stories.time\",\n \"dateRange\": [\"2015-01-01\", \"2015-12-31\"],\n \"granularity\": \"month\"\n }\n ],\n \"limit\": 100,\n \"offset\": 50,\n \"order\": {\n \"stories.time\": \"asc\",\n \"stories.count\": \"desc\"\n }\n}\n\nUser request: {USER_PROMPT}\n\nCRITICAL: You MUST only use field names that exist in the schema above. Do NOT create or invent field names.\n\nGenerate a JSON query object with this structure:\n{\n \"measures\": [\"CubeName.measureName\"],\n \"dimensions\": [\"CubeName.dimensionName\"], \n \"timeDimensions\": [{\n \"dimension\": \"CubeName.timeDimensionName\",\n \"granularity\": \"day|week|month|quarter|year\",\n \"dateRange\": \"last 30 days\"\n }],\n \"filters\": [{\n \"member\": \"CubeName.fieldName\",\n \"operator\": \"equals|contains|gt|gte|lt|lte|inDateRange\",\n \"values\": [\"value1\", \"value2\"]\n }]\n}\n\nRules:\n1. Only use cube names, measure names, and dimension names from the schema\n2. All field references must be in \"CubeName.fieldName\" format\n3. Verify every field exists in the provided schema before using it\n\nRespond with only the JSON query object, no explanation, no markdown formatting, no code blocks, no backtick wrapper.";
|
|
6
|
+
export declare const DEFAULT_SYSTEM_PROMPT_TEMPLATE = "You are a SQL query builder assistant for a semantic layer using Cube.js format.\n\nAvailable cube schema (JSON):\n{CUBE_SCHEMA}\n\nA valid Cube schema can contain things such as below (this is only an example of possible options):\n\n{\n \"measures\": [\"stories.count\"],\n \"dimensions\": [\"stories.category\"],\n \"filters\": [\n {\n \"member\": \"stories.isDraft\",\n \"operator\": \"equals\",\n \"values\": [\"No\"]\n }\n ],\n \"timeDimensions\": [\n {\n \"dimension\": \"stories.time\",\n \"dateRange\": [\"2015-01-01\", \"2015-12-31\"],\n \"granularity\": \"month\"\n }\n ],\n \"limit\": 100,\n \"offset\": 50,\n \"order\": {\n \"stories.time\": \"asc\",\n \"stories.count\": \"desc\"\n }\n}\n\nUser request: {USER_PROMPT}\n\nCRITICAL: You MUST only use field names that exist in the schema above. Do NOT create or invent field names.\n\nGenerate a JSON query object with this structure:\n{\n \"measures\": [\"CubeName.measureName\"],\n \"dimensions\": [\"CubeName.dimensionName\"], \n \"timeDimensions\": [{\n \"dimension\": \"CubeName.timeDimensionName\",\n \"granularity\": \"hour|day|week|month|quarter|year\",\n \"dateRange\": \"last 30 days\"\n }],\n \"filters\": [{\n \"member\": \"CubeName.fieldName\",\n \"operator\": \"equals|contains|gt|gte|lt|lte|inDateRange\",\n \"values\": [\"value1\", \"value2\"]\n }]\n}\n\nRules:\n1. Only use cube names, measure names, and dimension names from the schema\n2. All field references must be in \"CubeName.fieldName\" format\n3. Verify every field exists in the provided schema before using it\n\nRespond with only the JSON query object, no explanation, no markdown formatting, no code blocks, no backtick wrapper.";
|
|
7
7
|
export declare const AI_STORAGE_KEY = "drizzle-cube-ai-config";
|
|
8
8
|
export declare const DEFAULT_AI_CONFIG: {
|
|
9
9
|
provider: "gemini";
|
|
@@ -123,6 +123,9 @@ export interface ResultsPanelProps {
|
|
|
123
123
|
totalRowCountStatus?: 'idle' | 'loading' | 'success' | 'error';
|
|
124
124
|
}
|
|
125
125
|
export declare const TIME_GRANULARITIES: readonly [{
|
|
126
|
+
readonly value: "hour";
|
|
127
|
+
readonly label: "Hour";
|
|
128
|
+
}, {
|
|
126
129
|
readonly value: "day";
|
|
127
130
|
readonly label: "Day";
|
|
128
131
|
}, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as t, A as s, c as o, D as r, M as d, P as l, b as i, Q as n } from "./chunks/components-
|
|
1
|
+
import { a as t, A as s, c as o, D as r, M as d, P as l, b as i, Q as n } from "./chunks/components-D3Bl_BuN.js";
|
|
2
2
|
import { c as P, F as b, z as c, y as u, x as D, E as h } from "./chunks/charts-D4v7aUDh.js";
|
|
3
3
|
export {
|
|
4
4
|
t as AnalyticsDashboard,
|
package/dist/client/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as r, A as s, c as t, D as h, M as o, P as C, b as c, Q as d, T as i, d as l, e as T, g as b, i as m, r as R, f as u, s as D, w as n } from "./chunks/components-
|
|
1
|
+
import { a as r, A as s, c as t, D as h, M as o, P as C, b as c, Q as d, T as i, d as l, e as T, g as b, i as m, r as R, f as u, s as D, w as n } from "./chunks/components-D3Bl_BuN.js";
|
|
2
2
|
import { C as f, c as p, u as M } from "./chunks/providers-DwDirAYo.js";
|
|
3
3
|
import { useCubeQuery as E } from "./hooks.js";
|
|
4
4
|
import { D as A, A as g, B, L as S, P as L, R as Q, a as w, S as V, T as k, c as v, f as G } from "./chunks/charts-D4v7aUDh.js";
|