@qingflow-tech/qingflow-app-user-mcp 1.0.4 → 1.0.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/README.md +2 -2
- package/package.json +1 -1
- package/pyproject.toml +2 -1
- package/skills/qingflow-app-user/SKILL.md +2 -1
- package/skills/qingflow-app-user/references/data-gotchas.md +8 -4
- package/skills/qingflow-app-user/references/public-surface-sync.md +6 -4
- package/skills/qingflow-app-user/references/record-patterns.md +14 -4
- package/skills/qingflow-record-analysis/SKILL.md +103 -166
- package/skills/qingflow-record-analysis/agents/openai.yaml +2 -2
- package/skills/qingflow-record-analysis/references/analysis-gotchas.md +56 -110
- package/skills/qingflow-record-analysis/references/analysis-patterns.md +106 -119
- package/skills/qingflow-record-analysis/references/business-context.md +74 -0
- package/skills/qingflow-record-analysis/references/confidence-reporting.md +49 -72
- package/skills/qingflow-record-analysis/references/data-access-playbook.md +106 -0
- package/skills/qingflow-record-analysis/references/pandas-recipes.md +172 -0
- package/skills/qingflow-record-analysis/references/report-format.md +76 -0
- package/skills/qingflow-record-insert/SKILL.md +28 -7
- package/skills/qingflow-record-update/SKILL.md +1 -1
- package/src/qingflow_mcp/backend_client.py +55 -1
- package/src/qingflow_mcp/cli/commands/record.py +63 -6
- package/src/qingflow_mcp/cli/formatters.py +101 -1
- package/src/qingflow_mcp/public_surface.py +2 -1
- package/src/qingflow_mcp/response_trim.py +235 -10
- package/src/qingflow_mcp/server.py +19 -12
- package/src/qingflow_mcp/server_app_user.py +30 -13
- package/src/qingflow_mcp/tools/record_tools.py +13425 -8817
- package/skills/qingflow-record-analysis/references/dsl-templates.md +0 -93
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
# DSL Templates
|
|
2
|
-
|
|
3
|
-
Use these copy-paste templates after `record_browse_schema_get`.
|
|
4
|
-
|
|
5
|
-
## Whole-table summary
|
|
6
|
-
|
|
7
|
-
```json
|
|
8
|
-
{
|
|
9
|
-
"dimensions": [],
|
|
10
|
-
"metrics": [
|
|
11
|
-
{ "op": "count", "alias": "记录数" }
|
|
12
|
-
],
|
|
13
|
-
"strict_full": true
|
|
14
|
-
}
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Distribution / ranking
|
|
18
|
-
|
|
19
|
-
```json
|
|
20
|
-
{
|
|
21
|
-
"dimensions": [
|
|
22
|
-
{ "field_id": 9500572, "alias": "报价类型" }
|
|
23
|
-
],
|
|
24
|
-
"metrics": [
|
|
25
|
-
{ "op": "count", "alias": "记录数" }
|
|
26
|
-
],
|
|
27
|
-
"sort": [
|
|
28
|
-
{ "by": "记录数", "order": "desc" }
|
|
29
|
-
],
|
|
30
|
-
"limit": 50,
|
|
31
|
-
"strict_full": true
|
|
32
|
-
}
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
## Time-filtered distribution
|
|
36
|
-
|
|
37
|
-
```json
|
|
38
|
-
{
|
|
39
|
-
"app_key": "YOUR_APP_KEY",
|
|
40
|
-
"dimensions": [
|
|
41
|
-
{ "field_id": 9500572, "alias": "维度名" }
|
|
42
|
-
],
|
|
43
|
-
"metrics": [
|
|
44
|
-
{ "op": "count", "alias": "记录数" }
|
|
45
|
-
],
|
|
46
|
-
"filters": [
|
|
47
|
-
{ "field_id": 3, "op": "between", "value": ["2024-03-01", "2024-03-31"] }
|
|
48
|
-
],
|
|
49
|
-
"sort": [
|
|
50
|
-
{ "by": "记录数", "order": "desc" }
|
|
51
|
-
],
|
|
52
|
-
"limit": 50,
|
|
53
|
-
"strict_full": true
|
|
54
|
-
}
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
## Monthly trend
|
|
58
|
-
|
|
59
|
-
```json
|
|
60
|
-
{
|
|
61
|
-
"dimensions": [
|
|
62
|
-
{ "field_id": 3, "alias": "月份", "bucket": "month" }
|
|
63
|
-
],
|
|
64
|
-
"metrics": [
|
|
65
|
-
{ "op": "count", "alias": "记录数" }
|
|
66
|
-
],
|
|
67
|
-
"sort": [
|
|
68
|
-
{ "by": "月份", "order": "asc" }
|
|
69
|
-
],
|
|
70
|
-
"limit": 24,
|
|
71
|
-
"strict_full": true
|
|
72
|
-
}
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
## Cross analysis with sum
|
|
76
|
-
|
|
77
|
-
```json
|
|
78
|
-
{
|
|
79
|
-
"dimensions": [
|
|
80
|
-
{ "field_id": 2, "alias": "状态" },
|
|
81
|
-
{ "field_id": 5, "alias": "负责人" }
|
|
82
|
-
],
|
|
83
|
-
"metrics": [
|
|
84
|
-
{ "op": "count", "alias": "记录数" },
|
|
85
|
-
{ "op": "sum", "field_id": 7, "alias": "总金额" }
|
|
86
|
-
],
|
|
87
|
-
"sort": [
|
|
88
|
-
{ "by": "记录数", "order": "desc" }
|
|
89
|
-
],
|
|
90
|
-
"limit": 100,
|
|
91
|
-
"strict_full": true
|
|
92
|
-
}
|
|
93
|
-
```
|