robotcode-plugin 2.4.0__tar.gz → 2.5.1__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.
@@ -334,4 +334,8 @@ bundled/libs
334
334
  results/
335
335
 
336
336
  # kilocode
337
- .kilocode/
337
+ .kilocode/
338
+
339
+ # .agents
340
+ .agents/
341
+ skills-lock.json
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: robotcode-plugin
3
- Version: 2.4.0
3
+ Version: 2.5.1
4
4
  Summary: Some classes for RobotCode plugin management
5
5
  Project-URL: Donate, https://opencollective.com/robotcode
6
6
  Project-URL: Documentation, https://github.com/robotcodedev/robotcode#readme
@@ -122,6 +122,15 @@ class Application:
122
122
  ColoredOutput.YES,
123
123
  ]
124
124
 
125
+ @property
126
+ def has_rich(self) -> bool:
127
+ try:
128
+ import rich # noqa: F401
129
+
130
+ return True
131
+ except ImportError:
132
+ return False
133
+
125
134
  def verbose(
126
135
  self,
127
136
  message: Union[str, Callable[[], Any], None],
@@ -333,7 +342,7 @@ class Application:
333
342
 
334
343
  def keyboard_interrupt(self) -> None:
335
344
  self.verbose("Aborted!", file=sys.stderr)
336
- sys.exit(253)
345
+ self.exit(253, fast=True)
337
346
 
338
347
  def exit(self, code: int = 0, fast: bool = False) -> None:
339
348
  self.verbose(f"Exit with code {code}")
@@ -0,0 +1 @@
1
+ __version__ = "2.5.1"
@@ -1 +0,0 @@
1
- __version__ = "2.4.0"