@qingflow-tech/qingflow-app-user-mcp 1.0.4 → 1.0.5

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.
Files changed (27) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
  3. package/pyproject.toml +2 -1
  4. package/skills/qingflow-app-user/SKILL.md +2 -1
  5. package/skills/qingflow-app-user/references/data-gotchas.md +5 -2
  6. package/skills/qingflow-app-user/references/public-surface-sync.md +5 -3
  7. package/skills/qingflow-app-user/references/record-patterns.md +9 -0
  8. package/skills/qingflow-record-analysis/SKILL.md +103 -166
  9. package/skills/qingflow-record-analysis/agents/openai.yaml +2 -2
  10. package/skills/qingflow-record-analysis/references/analysis-gotchas.md +56 -110
  11. package/skills/qingflow-record-analysis/references/analysis-patterns.md +106 -119
  12. package/skills/qingflow-record-analysis/references/business-context.md +74 -0
  13. package/skills/qingflow-record-analysis/references/confidence-reporting.md +49 -72
  14. package/skills/qingflow-record-analysis/references/data-access-playbook.md +106 -0
  15. package/skills/qingflow-record-analysis/references/pandas-recipes.md +172 -0
  16. package/skills/qingflow-record-analysis/references/report-format.md +76 -0
  17. package/skills/qingflow-record-insert/SKILL.md +2 -2
  18. package/skills/qingflow-record-update/SKILL.md +1 -1
  19. package/src/qingflow_mcp/backend_client.py +55 -1
  20. package/src/qingflow_mcp/cli/commands/record.py +44 -5
  21. package/src/qingflow_mcp/cli/formatters.py +101 -1
  22. package/src/qingflow_mcp/public_surface.py +2 -1
  23. package/src/qingflow_mcp/response_trim.py +173 -9
  24. package/src/qingflow_mcp/server.py +15 -9
  25. package/src/qingflow_mcp/server_app_user.py +26 -10
  26. package/src/qingflow_mcp/tools/record_tools.py +12860 -8811
  27. 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
- ```