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.
- {applied_cli-0.5.2 → applied_cli-0.5.3}/PKG-INFO +1 -1
- {applied_cli-0.5.2 → applied_cli-0.5.3}/applied_cli/__init__.py +1 -1
- {applied_cli-0.5.2 → applied_cli-0.5.3}/applied_cli/tools.py +22 -12
- {applied_cli-0.5.2 → applied_cli-0.5.3}/applied_cli.egg-info/PKG-INFO +1 -1
- {applied_cli-0.5.2 → applied_cli-0.5.3}/pyproject.toml +1 -1
- {applied_cli-0.5.2 → applied_cli-0.5.3}/README.md +0 -0
- {applied_cli-0.5.2 → applied_cli-0.5.3}/applied_cli/cli.py +0 -0
- {applied_cli-0.5.2 → applied_cli-0.5.3}/applied_cli/client.py +0 -0
- {applied_cli-0.5.2 → applied_cli-0.5.3}/applied_cli/credentials.py +0 -0
- {applied_cli-0.5.2 → applied_cli-0.5.3}/applied_cli/formatters.py +0 -0
- {applied_cli-0.5.2 → applied_cli-0.5.3}/applied_cli.egg-info/SOURCES.txt +0 -0
- {applied_cli-0.5.2 → applied_cli-0.5.3}/applied_cli.egg-info/dependency_links.txt +0 -0
- {applied_cli-0.5.2 → applied_cli-0.5.3}/applied_cli.egg-info/entry_points.txt +0 -0
- {applied_cli-0.5.2 → applied_cli-0.5.3}/applied_cli.egg-info/requires.txt +0 -0
- {applied_cli-0.5.2 → applied_cli-0.5.3}/applied_cli.egg-info/top_level.txt +0 -0
- {applied_cli-0.5.2 → applied_cli-0.5.3}/setup.cfg +0 -0
|
@@ -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("
|
|
722
|
+
name = span.get("span_name", "")
|
|
723
723
|
duration = span.get("duration", 0)
|
|
724
|
-
status = span.get("
|
|
725
|
-
status_msg = span.get("
|
|
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", ""))[:
|
|
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("
|
|
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
|
-
|
|
759
|
-
|
|
760
|
-
)
|
|
761
|
-
|
|
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
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|