langgraph-cli 0.2.3__tar.gz → 0.2.4__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.
- {langgraph_cli-0.2.3 → langgraph_cli-0.2.4}/PKG-INFO +1 -1
- {langgraph_cli-0.2.3 → langgraph_cli-0.2.4}/langgraph_cli/progress.py +23 -14
- {langgraph_cli-0.2.3 → langgraph_cli-0.2.4}/pyproject.toml +1 -1
- {langgraph_cli-0.2.3 → langgraph_cli-0.2.4}/LICENSE +0 -0
- {langgraph_cli-0.2.3 → langgraph_cli-0.2.4}/README.md +0 -0
- {langgraph_cli-0.2.3 → langgraph_cli-0.2.4}/langgraph_cli/__init__.py +0 -0
- {langgraph_cli-0.2.3 → langgraph_cli-0.2.4}/langgraph_cli/analytics.py +0 -0
- {langgraph_cli-0.2.3 → langgraph_cli-0.2.4}/langgraph_cli/cli.py +0 -0
- {langgraph_cli-0.2.3 → langgraph_cli-0.2.4}/langgraph_cli/config.py +0 -0
- {langgraph_cli-0.2.3 → langgraph_cli-0.2.4}/langgraph_cli/constants.py +0 -0
- {langgraph_cli-0.2.3 → langgraph_cli-0.2.4}/langgraph_cli/docker.py +0 -0
- {langgraph_cli-0.2.3 → langgraph_cli-0.2.4}/langgraph_cli/exec.py +0 -0
- {langgraph_cli-0.2.3 → langgraph_cli-0.2.4}/langgraph_cli/py.typed +0 -0
- {langgraph_cli-0.2.3 → langgraph_cli-0.2.4}/langgraph_cli/templates.py +0 -0
- {langgraph_cli-0.2.3 → langgraph_cli-0.2.4}/langgraph_cli/util.py +0 -0
- {langgraph_cli-0.2.3 → langgraph_cli-0.2.4}/langgraph_cli/version.py +0 -0
|
@@ -44,21 +44,30 @@ class Progress:
|
|
|
44
44
|
sys.stdout.flush()
|
|
45
45
|
|
|
46
46
|
def __enter__(self) -> Callable[[str], None]:
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
if sys.stdout.isatty():
|
|
48
|
+
self.thread = threading.Thread(target=self.spinner_task)
|
|
49
|
+
self.thread.start()
|
|
49
50
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
def set_message(message):
|
|
52
|
+
self.message = message
|
|
53
|
+
if not message:
|
|
54
|
+
self.thread.join()
|
|
55
|
+
|
|
56
|
+
return set_message
|
|
57
|
+
else:
|
|
54
58
|
|
|
55
|
-
|
|
59
|
+
def set_message(message):
|
|
60
|
+
sys.stderr.write(message + "\n")
|
|
61
|
+
sys.stderr.flush()
|
|
62
|
+
|
|
63
|
+
return set_message
|
|
56
64
|
|
|
57
65
|
def __exit__(self, exception, value, tb):
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
66
|
+
if sys.stdout.isatty():
|
|
67
|
+
self.message = ""
|
|
68
|
+
try:
|
|
69
|
+
self.thread.join()
|
|
70
|
+
finally:
|
|
71
|
+
del self.thread
|
|
72
|
+
if exception is not None:
|
|
73
|
+
return False
|
|
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
|
|
File without changes
|
|
File without changes
|