@qingflow-tech/qingflow-app-builder-mcp 1.0.22 → 1.0.23
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 +1 -1
- package/src/qingflow_mcp/cli/formatters.py +67 -9
package/README.md
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
Install:
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
|
-
npm install @qingflow-tech/qingflow-app-builder-mcp@1.0.
|
|
6
|
+
npm install @qingflow-tech/qingflow-app-builder-mcp@1.0.23
|
|
7
7
|
```
|
|
8
8
|
|
|
9
9
|
Run:
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
|
-
npx -y -p @qingflow-tech/qingflow-app-builder-mcp@1.0.
|
|
12
|
+
npx -y -p @qingflow-tech/qingflow-app-builder-mcp@1.0.23 qingflow-app-builder-mcp
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
Environment:
|
package/package.json
CHANGED
package/pyproject.toml
CHANGED
|
@@ -1078,18 +1078,76 @@ def _format_export_direct(result: dict[str, Any]) -> str:
|
|
|
1078
1078
|
|
|
1079
1079
|
def _format_builder_summary(result: dict[str, Any]) -> str:
|
|
1080
1080
|
lines = []
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1081
|
+
emitted: set[str] = set()
|
|
1082
|
+
for key, label in (
|
|
1083
|
+
("status", "Status"),
|
|
1084
|
+
("message", "Message"),
|
|
1085
|
+
("app_key", "App Key"),
|
|
1086
|
+
("dash_key", "Dash Key"),
|
|
1087
|
+
("view_key", "View Key"),
|
|
1088
|
+
("chart_id", "Chart ID"),
|
|
1089
|
+
("package_id", "Package ID"),
|
|
1090
|
+
("verified", "Verified"),
|
|
1091
|
+
("write_executed", "Write Executed"),
|
|
1092
|
+
("delete_executed", "Delete Executed"),
|
|
1093
|
+
("safe_to_retry", "Safe To Retry"),
|
|
1094
|
+
):
|
|
1095
|
+
if key in result and result.get(key) not in (None, ""):
|
|
1096
|
+
lines.append(f"{label}: {result.get(key)}")
|
|
1097
|
+
emitted.add(key)
|
|
1098
|
+
for key, value in result.items():
|
|
1099
|
+
if key in emitted or key in {"data", "warnings", "verification", "details", "result", "raw"}:
|
|
1100
|
+
continue
|
|
1101
|
+
if isinstance(value, (str, int, float, bool)) or value is None:
|
|
1102
|
+
lines.append(f"{key}: {value}")
|
|
1089
1103
|
data = result.get("data")
|
|
1090
1104
|
if isinstance(data, dict):
|
|
1091
1105
|
scalar_lines = _dict_scalar_lines(data)
|
|
1092
|
-
|
|
1106
|
+
if scalar_lines:
|
|
1107
|
+
lines.append("Data:")
|
|
1108
|
+
lines.extend(f"- {line}" for line in scalar_lines[:12])
|
|
1109
|
+
for key in (
|
|
1110
|
+
"items",
|
|
1111
|
+
"apps",
|
|
1112
|
+
"fields",
|
|
1113
|
+
"sections",
|
|
1114
|
+
"components",
|
|
1115
|
+
"questions",
|
|
1116
|
+
"views",
|
|
1117
|
+
"charts",
|
|
1118
|
+
"buttons",
|
|
1119
|
+
"associations",
|
|
1120
|
+
"package_ids",
|
|
1121
|
+
"app_keys",
|
|
1122
|
+
):
|
|
1123
|
+
value = result.get(key)
|
|
1124
|
+
if isinstance(value, list):
|
|
1125
|
+
lines.append(f"{key}: {len(value)}")
|
|
1126
|
+
components = result.get("components") if isinstance(result.get("components"), list) else []
|
|
1127
|
+
if components:
|
|
1128
|
+
lines.append("Component Refs:")
|
|
1129
|
+
for item in components[:8]:
|
|
1130
|
+
if not isinstance(item, dict):
|
|
1131
|
+
continue
|
|
1132
|
+
chart_ref = item.get("chart_ref") if isinstance(item.get("chart_ref"), dict) else {}
|
|
1133
|
+
view_ref = item.get("view_ref") if isinstance(item.get("view_ref"), dict) else {}
|
|
1134
|
+
source_type = item.get("source_type") or item.get("type") or "unknown"
|
|
1135
|
+
title = item.get("title")
|
|
1136
|
+
if chart_ref:
|
|
1137
|
+
lines.append(f"- {source_type}: {title or chart_ref.get('chart_name') or '-'} / chart_id={chart_ref.get('chart_id') or '-'}")
|
|
1138
|
+
elif view_ref:
|
|
1139
|
+
lines.append(
|
|
1140
|
+
f"- {source_type}: {title or view_ref.get('view_name') or '-'} / "
|
|
1141
|
+
f"view_key={view_ref.get('view_key') or '-'} / app_key={view_ref.get('app_key') or '-'}"
|
|
1142
|
+
)
|
|
1143
|
+
else:
|
|
1144
|
+
lines.append(f"- {source_type}: {title or '-'}")
|
|
1145
|
+
if isinstance(result.get("base"), dict):
|
|
1146
|
+
lines.append(f"Base Keys: {', '.join(str(key) for key in list(result['base'].keys())[:12])}")
|
|
1147
|
+
if isinstance(result.get("config"), dict):
|
|
1148
|
+
lines.append(f"Config Keys: {', '.join(str(key) for key in list(result['config'].keys())[:12])}")
|
|
1149
|
+
if isinstance(result.get("visibility"), dict):
|
|
1150
|
+
lines.append(f"Visibility Keys: {', '.join(str(key) for key in list(result['visibility'].keys())[:12])}")
|
|
1093
1151
|
_append_warnings(lines, result.get("warnings"))
|
|
1094
1152
|
_append_verification(lines, result.get("verification"))
|
|
1095
1153
|
if not lines:
|