MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / _cmd_support

Function _cmd_support

uncommon_route/cli.py:1171–1201  ·  view source on GitHub ↗
(args: list[str])

Source from the content-addressed store, hash-verified

1169
1170
1171def _cmd_support(args: list[str]) -> None:
1172 from uncommon_route.support import build_support_bundle, find_trace
1173
1174 if not args:
1175 args = ["bundle"]
1176
1177 sub = args[0]
1178
1179 if sub == "bundle":
1180 flags, _ = _parse_flags(args[1:], {"limit": True, "output": True})
1181 limit = int(flags.get("limit", 50))
1182 output = str(flags.get("output", "")).strip() or None
1183 path = build_support_bundle(limit=limit, output_path=output)
1184 print(f" Support bundle written: {path}")
1185 return
1186
1187 if sub == "request":
1188 request_id = str(args[1]).strip() if len(args) > 1 else ""
1189 if not request_id:
1190 print("Usage: uncommon-route support request <request_id>", file=sys.stderr)
1191 sys.exit(1)
1192 record = find_trace(request_id)
1193 if record is None:
1194 print(f" Request not found: {request_id}", file=sys.stderr)
1195 sys.exit(1)
1196 print(json.dumps(record, indent=2, ensure_ascii=False))
1197 return
1198
1199 print(f"Unknown support subcommand: {sub}", file=sys.stderr)
1200 print(" Available: bundle, request", file=sys.stderr)
1201 sys.exit(1)
1202
1203
1204def _cmd_openclaw(args: list[str]) -> None:

Callers

nothing calls this directly

Calls 4

build_support_bundleFunction · 0.90
find_traceFunction · 0.90
_parse_flagsFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected