@lightdash/cli 0.3424.1 → 0.3425.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -31,7 +31,7 @@ Available at `@/components/ui/<name>`:
|
|
|
31
31
|
|
|
32
32
|
## Semantic Layer (dbt models)
|
|
33
33
|
|
|
34
|
-
The available data models are defined in dbt YAML files at **`/tmp/dbt-repo/models/`**. Read these to discover every model, dimension, metric, join, and parameter available to you. **Never guess field names** — use only what's in the YAML. (Parameters live in a `parameters:` block under `meta:` / `config.meta:`, or in `lightdash.config.yml` — see [Parameters](#parameters).)
|
|
34
|
+
The available data models are defined in dbt YAML files at **`/tmp/dbt-repo/models/`**. Read these to discover every model, dimension, metric, join, and parameter available to you. **Never guess field names** — use only what's in the YAML. When a dimension or metric has `ai_hints`, follow that guidance when deciding which field best matches the user's intent; hints supplement names, labels, and descriptions. (Parameters live in a `parameters:` block under `meta:` / `config.meta:`, or in `lightdash.config.yml` — see [Parameters](#parameters).)
|
|
35
35
|
|
|
36
36
|
### Reading dbt YAML
|
|
37
37
|
|
|
@@ -45,8 +45,12 @@ models:
|
|
|
45
45
|
metrics: # model-level metrics
|
|
46
46
|
order_count:
|
|
47
47
|
type: count
|
|
48
|
+
ai_hints:
|
|
49
|
+
- Use for questions about the number of orders
|
|
48
50
|
columns:
|
|
49
51
|
- name: status
|
|
52
|
+
ai_hints:
|
|
53
|
+
- Prefer this over legacy_status
|
|
50
54
|
meta:
|
|
51
55
|
dimension: # column = dimension
|
|
52
56
|
type: string
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightdash/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3425.0",
|
|
4
4
|
"description": "Lightdash CLI tool",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"unique-names-generator": "4.7.1",
|
|
42
42
|
"uuid": "11.1.1",
|
|
43
43
|
"yaml": "2.8.3",
|
|
44
|
-
"@lightdash/common": "0.
|
|
45
|
-
"@lightdash/warehouses": "0.
|
|
44
|
+
"@lightdash/common": "0.3425.0",
|
|
45
|
+
"@lightdash/warehouses": "0.3425.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/inquirer": "8.2.4",
|