@bonnard/cli 0.1.4 → 0.1.6
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/bin/bon.mjs +576 -91
- package/dist/bin/{models-IsV2sX74.mjs → models-CzOWi3fU.mjs} +5 -3
- package/dist/bin/{validate-C4EHvJzJ.mjs → validate-BUHevw7F.mjs} +4 -2
- package/dist/docs/_index.md +1 -0
- package/dist/docs/topics/cubes.data-source.md +0 -4
- package/dist/docs/topics/cubes.dimensions.format.md +0 -4
- package/dist/docs/topics/cubes.dimensions.md +0 -4
- package/dist/docs/topics/cubes.dimensions.primary-key.md +0 -4
- package/dist/docs/topics/cubes.dimensions.sub-query.md +0 -4
- package/dist/docs/topics/cubes.dimensions.time.md +0 -4
- package/dist/docs/topics/cubes.dimensions.types.md +0 -4
- package/dist/docs/topics/cubes.extends.md +0 -4
- package/dist/docs/topics/cubes.hierarchies.md +0 -4
- package/dist/docs/topics/cubes.joins.md +0 -4
- package/dist/docs/topics/cubes.md +2 -6
- package/dist/docs/topics/cubes.measures.calculated.md +0 -4
- package/dist/docs/topics/cubes.measures.drill-members.md +0 -4
- package/dist/docs/topics/cubes.measures.filters.md +0 -4
- package/dist/docs/topics/cubes.measures.format.md +0 -4
- package/dist/docs/topics/cubes.measures.md +0 -4
- package/dist/docs/topics/cubes.measures.rolling.md +0 -4
- package/dist/docs/topics/cubes.measures.types.md +0 -4
- package/dist/docs/topics/cubes.public.md +0 -4
- package/dist/docs/topics/cubes.refresh-key.md +0 -4
- package/dist/docs/topics/cubes.segments.md +0 -4
- package/dist/docs/topics/cubes.sql.md +0 -4
- package/dist/docs/topics/pre-aggregations.md +0 -4
- package/dist/docs/topics/pre-aggregations.rollup.md +0 -4
- package/dist/docs/topics/syntax.context-variables.md +0 -4
- package/dist/docs/topics/syntax.md +0 -4
- package/dist/docs/topics/syntax.references.md +0 -4
- package/dist/docs/topics/views.cubes.md +0 -4
- package/dist/docs/topics/views.folders.md +0 -4
- package/dist/docs/topics/views.includes.md +0 -4
- package/dist/docs/topics/views.md +2 -6
- package/dist/docs/topics/workflow.deploy.md +8 -12
- package/dist/docs/topics/workflow.mcp.md +100 -0
- package/dist/docs/topics/workflow.md +10 -13
- package/dist/docs/topics/workflow.query.md +0 -5
- package/dist/docs/topics/workflow.validate.md +4 -8
- package/dist/templates/claude/skills/bonnard-queries/SKILL.md +2 -2
- package/dist/templates/cursor/rules/bonnard-queries.mdc +2 -2
- package/dist/templates/shared/bonnard.md +8 -7
- package/package.json +3 -2
- package/dist/docs/README.md +0 -82
- package/dist/templates/claude/rules/bonnard.md +0 -15
- package/dist/templates/cursor/rules/bonnard.mdc +0 -20
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bonnard/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"bon": "./dist/bin/bon.mjs"
|
|
@@ -9,11 +9,12 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"scripts": {
|
|
12
|
-
"build": "tsdown src/bin/bon.ts --format esm --out-dir dist/bin && cp -r src/templates dist/ &&
|
|
12
|
+
"build": "tsdown src/bin/bon.ts --format esm --out-dir dist/bin && cp -r src/templates dist/ && mkdir -p dist/docs/topics dist/docs/schemas && cp ../content/index.md dist/docs/_index.md && cp ../content/modeling/*.md dist/docs/topics/",
|
|
13
13
|
"dev": "tsdown src/bin/bon.ts --format esm --out-dir dist/bin --watch",
|
|
14
14
|
"test": "vitest run"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
+
"@bonnard/content": "workspace:*",
|
|
17
18
|
"@inquirer/prompts": "^7.0.0",
|
|
18
19
|
"@toon-format/toon": "^2.1.0",
|
|
19
20
|
"commander": "^12.0.0",
|
package/dist/docs/README.md
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
# Bonnard CLI Documentation
|
|
2
|
-
|
|
3
|
-
This directory contains the documentation served by `bon docs`.
|
|
4
|
-
|
|
5
|
-
## Structure
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
docs/
|
|
9
|
-
├── _index.md # Index shown by `bon docs` (llms.txt style)
|
|
10
|
-
├── topics/ # Individual topic files
|
|
11
|
-
│ ├── cubes.md
|
|
12
|
-
│ ├── cubes.measures.md
|
|
13
|
-
│ ├── cubes.measures.types.md
|
|
14
|
-
│ └── ...
|
|
15
|
-
├── schemas/ # JSON schemas for validation
|
|
16
|
-
│ ├── cube.schema.json
|
|
17
|
-
│ └── view.schema.json
|
|
18
|
-
└── README.md # This file
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Topic Naming Convention
|
|
22
|
-
|
|
23
|
-
Topic IDs use dot notation that maps directly to filenames:
|
|
24
|
-
|
|
25
|
-
| Topic ID | File |
|
|
26
|
-
|----------|------|
|
|
27
|
-
| `cubes` | `topics/cubes.md` |
|
|
28
|
-
| `cubes.measures` | `topics/cubes.measures.md` |
|
|
29
|
-
| `cubes.measures.types` | `topics/cubes.measures.types.md` |
|
|
30
|
-
|
|
31
|
-
## Topic File Format
|
|
32
|
-
|
|
33
|
-
Each topic file should follow this structure:
|
|
34
|
-
|
|
35
|
-
```markdown
|
|
36
|
-
# topic.name
|
|
37
|
-
|
|
38
|
-
> Brief one-line description.
|
|
39
|
-
|
|
40
|
-
## Overview
|
|
41
|
-
|
|
42
|
-
Short explanation (2-3 sentences).
|
|
43
|
-
|
|
44
|
-
## Example
|
|
45
|
-
|
|
46
|
-
```yaml
|
|
47
|
-
# Minimal working example
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
## Reference
|
|
51
|
-
|
|
52
|
-
| Property | Type | Description |
|
|
53
|
-
|----------|------|-------------|
|
|
54
|
-
| name | string | ... |
|
|
55
|
-
|
|
56
|
-
## See Also
|
|
57
|
-
|
|
58
|
-
- related.topic
|
|
59
|
-
- another.topic
|
|
60
|
-
|
|
61
|
-
## More Information
|
|
62
|
-
|
|
63
|
-
https://cube.dev/docs/...
|
|
64
|
-
```
|
|
65
|
-
|
|
66
|
-
## Guidelines
|
|
67
|
-
|
|
68
|
-
- Keep topics concise (~20-40 lines)
|
|
69
|
-
- Lead with examples, not theory
|
|
70
|
-
- Use tables for property references
|
|
71
|
-
- Link to cube.dev for exhaustive details
|
|
72
|
-
- Include "See Also" for discoverability
|
|
73
|
-
|
|
74
|
-
## Commands
|
|
75
|
-
|
|
76
|
-
```bash
|
|
77
|
-
bon docs # Show index
|
|
78
|
-
bon docs <topic> # Show specific topic
|
|
79
|
-
bon docs <topic> --recursive # Show topic + children
|
|
80
|
-
bon docs --search <query> # Search topics
|
|
81
|
-
bon docs schema <type> # Show JSON schema
|
|
82
|
-
```
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Bonnard Analytics
|
|
2
|
-
|
|
3
|
-
This project uses Bonnard for semantic layer analytics.
|
|
4
|
-
|
|
5
|
-
## Quick Reference
|
|
6
|
-
|
|
7
|
-
| Command | Purpose |
|
|
8
|
-
|---------|---------|
|
|
9
|
-
| `bon validate` | Validate models and views |
|
|
10
|
-
| `bon deploy` | Deploy to Cube |
|
|
11
|
-
| `bon query <ds> <sql>` | Run SQL query |
|
|
12
|
-
| `bon datasource list` | List data sources |
|
|
13
|
-
|
|
14
|
-
For detailed CLI help: `/bonnard-cli`
|
|
15
|
-
For query patterns: `/bonnard-queries`
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: "Bonnard analytics project context"
|
|
3
|
-
alwaysApply: true
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Bonnard Analytics
|
|
7
|
-
|
|
8
|
-
This project uses Bonnard for semantic layer analytics.
|
|
9
|
-
|
|
10
|
-
## Quick Reference
|
|
11
|
-
|
|
12
|
-
| Command | Purpose |
|
|
13
|
-
|---------|---------|
|
|
14
|
-
| `bon validate` | Validate models and views |
|
|
15
|
-
| `bon deploy` | Deploy to Cube |
|
|
16
|
-
| `bon query <ds> <sql>` | Run SQL query |
|
|
17
|
-
| `bon datasource list` | List data sources |
|
|
18
|
-
|
|
19
|
-
For detailed CLI help, ask about "bonnard cli commands".
|
|
20
|
-
For query patterns, ask about "bonnard queries".
|