sugarai 1.5.2__py3-none-any.whl

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.
sugar/__init__.py ADDED
File without changes
sugar/__version__.py ADDED
@@ -0,0 +1,35 @@
1
+ """Version information for Sugar"""
2
+ import tomllib
3
+ from pathlib import Path
4
+
5
+ def _get_version_from_pyproject():
6
+ """Read version from pyproject.toml"""
7
+ try:
8
+ pyproject_path = Path(__file__).parent.parent / "pyproject.toml"
9
+ with open(pyproject_path, "rb") as f:
10
+ pyproject = tomllib.load(f)
11
+ return pyproject["project"]["version"]
12
+ except (FileNotFoundError, KeyError, Exception):
13
+ # Fallback version if pyproject.toml can't be read
14
+ return "0.1.0"
15
+
16
+ __version__ = _get_version_from_pyproject()
17
+ __title__ = "Sugar - AI-powered autonomous development system"
18
+ __description__ = "Autonomous development assistant for Claude Code CLI"
19
+ __author__ = "Steven Leggett"
20
+ __author_email__ = "contact@roboticforce.io"
21
+ __url__ = "https://github.com/cdnsteve/sugar"
22
+
23
+ def get_version_info():
24
+ """Get formatted version information"""
25
+ return f"{__title__} v{__version__}"
26
+
27
+ def get_full_version_info():
28
+ """Get detailed version information"""
29
+ return f"""
30
+ {__title__} v{__version__}
31
+ {__description__}
32
+
33
+ Author: {__author__} <{__author_email__}>
34
+ Repository: {__url__}
35
+ """.strip()
sugar/core/__init__.py ADDED
File without changes