applied-cli 0.5.2__tar.gz → 0.5.3__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: applied-cli
3
- Version: 0.5.2
3
+ Version: 0.5.3
4
4
  Summary: CLI and shared client library for Applied Labs AI support agents
5
5
  Author: Applied Labs
6
6
  License-Expression: MIT
@@ -4,6 +4,6 @@ from applied_cli import tools
4
4
  from applied_cli.client import AppliedClient
5
5
  from applied_cli.formatters import to_csv, to_json
6
6
 
7
- __version__ = "0.5.2"
7
+ __version__ = "0.5.3"
8
8
 
9
9
  __all__ = ["AppliedClient", "tools", "to_csv", "to_json", "__version__"]
@@ -714,15 +714,16 @@ async def flow_run_get(
714
714
  if run.get("duration"):
715
715
  result += f"duration: {run.get('duration')}s\n"
716
716
 
717
- # Execution trace from spans
717
+ # Execution trace from spans (API returns snake_case field names)
718
718
  spans = run.get("spans", [])
719
719
  if spans:
720
720
  result += f"\n## Execution Trace ({len(spans)} spans)\n"
721
721
  for i, span in enumerate(spans, 1):
722
- name = span.get("spanName", "")
722
+ name = span.get("span_name", "")
723
723
  duration = span.get("duration", 0)
724
- status = span.get("statusCode", "")
725
- status_msg = span.get("statusMessage", "")
724
+ status = span.get("status_code", "")
725
+ status_msg = span.get("status_message", "")
726
+ attrs = span.get("span_attributes", {})
726
727
 
727
728
  status_str = "OK" if "OK" in str(status) else "ERROR"
728
729
  result += f"{i}. [{name}] {duration:.2f}s - {status_str}"
@@ -731,9 +732,8 @@ async def flow_run_get(
731
732
  result += "\n"
732
733
 
733
734
  # Show executor output for executor_run spans
734
- attrs = span.get("spanAttributes", {})
735
735
  if name == "executor_run" and attrs.get("output"):
736
- output = str(attrs.get("output", ""))[:200]
736
+ output = str(attrs.get("output", ""))[:500]
737
737
  result += f" Output: {output}\n"
738
738
 
739
739
  # Actions
@@ -750,15 +750,25 @@ async def flow_run_get(
750
750
  ]
751
751
  result += to_csv(action_rows, ["node", "status", "cost"])
752
752
 
753
- # Errors
754
- errors = [s for s in spans if "ERROR" in str(s.get("statusCode", ""))]
753
+ # Errors section with detailed debugging info
754
+ errors = [s for s in spans if "ERROR" in str(s.get("status_code", ""))]
755
755
  if errors:
756
756
  result += "\n## Errors\n"
757
757
  for err in errors:
758
- result += (
759
- f"Node: {err.get('spanAttributes', {}).get('toolName', 'unknown')}\n"
760
- )
761
- result += f"Message: {err.get('statusMessage', 'Unknown error')}\n\n"
758
+ attrs = err.get("span_attributes", {})
759
+ node_name = attrs.get("tool_name") or attrs.get("toolName") or "unknown"
760
+ error_msg = err.get("status_message", "")
761
+
762
+ result += f"**Node:** {node_name}\n"
763
+ if error_msg:
764
+ result += f"**Error:** {error_msg}\n"
765
+
766
+ # Include relevant span attributes for debugging
767
+ if attrs.get("output"):
768
+ result += f"**Output:** {str(attrs.get('output'))[:500]}\n"
769
+ if attrs.get("input"):
770
+ result += f"**Input:** {str(attrs.get('input'))[:300]}\n"
771
+ result += "\n"
762
772
 
763
773
  return result
764
774
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: applied-cli
3
- Version: 0.5.2
3
+ Version: 0.5.3
4
4
  Summary: CLI and shared client library for Applied Labs AI support agents
5
5
  Author: Applied Labs
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "applied-cli"
3
- version = "0.5.2"
3
+ version = "0.5.3"
4
4
  description = "CLI and shared client library for Applied Labs AI support agents"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.11"
File without changes
File without changes