tunacode-cli 0.0.50__py3-none-any.whl → 0.0.51__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.

Potentially problematic release.


This version of tunacode-cli might be problematic. Click here for more details.

tunacode/constants.py CHANGED
@@ -7,7 +7,7 @@ Centralizes all magic strings, UI text, error messages, and application constant
7
7
 
8
8
  # Application info
9
9
  APP_NAME = "TunaCode"
10
- APP_VERSION = "0.0.50"
10
+ APP_VERSION = "0.0.51"
11
11
 
12
12
 
13
13
  # File patterns
@@ -1,14 +1,33 @@
1
1
  import logging
2
2
  import logging.config
3
- import os
4
-
5
- import yaml
6
3
 
7
4
  from tunacode.utils import user_configuration
8
5
 
9
- DEFAULT_CONFIG_PATH = os.path.join(
10
- os.path.dirname(os.path.dirname(os.path.dirname(__file__))), "config", "logging.yaml"
11
- )
6
+ # Default logging configuration when none is provided
7
+ DEFAULT_LOGGING_CONFIG = {
8
+ "version": 1,
9
+ "disable_existing_loggers": False,
10
+ "formatters": {
11
+ "simple": {"format": "[%(levelname)s] %(message)s"},
12
+ "detailed": {"format": "[%(asctime)s] [%(levelname)s] [%(name)s:%(lineno)d] - %(message)s"},
13
+ },
14
+ "handlers": {
15
+ "file": {
16
+ "class": "logging.handlers.RotatingFileHandler",
17
+ "level": "DEBUG",
18
+ "formatter": "detailed",
19
+ "filename": "tunacode.log",
20
+ "maxBytes": 10485760, # 10MB
21
+ "backupCount": 5,
22
+ }
23
+ },
24
+ "root": {"level": "DEBUG", "handlers": ["file"]},
25
+ "loggers": {
26
+ "tunacode.ui": {"level": "INFO", "propagate": False},
27
+ "tunacode.tools": {"level": "DEBUG"},
28
+ "tunacode.core.agents": {"level": "DEBUG"},
29
+ },
30
+ }
12
31
 
13
32
 
14
33
  class LogConfig:
@@ -43,15 +62,9 @@ class LogConfig:
43
62
  print(f"Failed to configure custom logging: {e}")
44
63
  logging.basicConfig(level=logging.INFO)
45
64
  else:
46
- # Use default configuration from YAML file
47
- path = config_path or DEFAULT_CONFIG_PATH
48
- if not os.path.exists(path):
49
- raise FileNotFoundError(f"Logging config file not found: {path}")
50
- with open(path, "r") as f:
51
- config = yaml.safe_load(f)
52
- logging_config = config.get("logging", config)
65
+ # Use default configuration
53
66
  try:
54
- logging.config.dictConfig(logging_config)
67
+ logging.config.dictConfig(DEFAULT_LOGGING_CONFIG)
55
68
  except Exception as e:
56
- print(f"Failed to configure logging: {e}")
69
+ print(f"Failed to configure default logging: {e}")
57
70
  logging.basicConfig(level=logging.INFO)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tunacode-cli
3
- Version: 0.0.50
3
+ Version: 0.0.51
4
4
  Summary: Your agentic CLI developer.
5
5
  Author-email: larock22 <noreply@github.com>
6
6
  License: MIT
@@ -1,7 +1,7 @@
1
1
  api/auth.py,sha256=_ysF1RCXvtJR1S35lbYQZexES1lif4J6VVzEyqNK74Q,303
2
2
  api/users.py,sha256=WRcy1Vsr4cEC8CW2qeN3XrA9EMyIk47ufpMyvQ4nLuw,193
3
3
  tunacode/__init__.py,sha256=yUul8igNYMfUrHnYfioIGAqvrH8b5BKiO_pt1wVnmd0,119
4
- tunacode/constants.py,sha256=PTrWcwVZhzd7mx0wzl8yEuBrEzzZx_AEK_eHANL_FsY,5169
4
+ tunacode/constants.py,sha256=UHIkQ_6jwGc9xdupwtCXJRJnRM4yqHx5bXkcej6mCE0,5169
5
5
  tunacode/context.py,sha256=_gXVCyjU052jlyRAl9tklZSwl5U_zI_EIX8XN87VVWE,2786
6
6
  tunacode/exceptions.py,sha256=oDO1SVKOgjcKIylwqdbqh_g5my4roU5mB9Nv4n_Vb0s,3877
7
7
  tunacode/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -35,7 +35,7 @@ tunacode/core/background/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZ
35
35
  tunacode/core/background/manager.py,sha256=rJdl3eDLTQwjbT7VhxXcJbZopCNR3M8ZGMbmeVnwwMc,1126
36
36
  tunacode/core/llm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
37
37
  tunacode/core/logging/__init__.py,sha256=pGr3EXxS4Yyz6Gasqg-m9fUENWnnbyaQqMaxR56WW4c,635
38
- tunacode/core/logging/config.py,sha256=USR7taIzs7YFlhf7hYdKL8jFbcl6TbOUb6tigb98e0U,2122
38
+ tunacode/core/logging/config.py,sha256=qwY7D8PYdMziGyJIYiZqChmOjgbsScluRJkruuOXu2A,2514
39
39
  tunacode/core/logging/formatters.py,sha256=lDex7P5eFzu-r9VEMshohj1zxWqANWSS581CJoMp-HA,1210
40
40
  tunacode/core/logging/handlers.py,sha256=SxmgH7yWc8bbCKcDeBtkbkHJy5saRqbIoDoTQh4jiYQ,2538
41
41
  tunacode/core/logging/logger.py,sha256=9RjRuX0GoUojRJ8WnJGQPFdXiluiJMCoFmvc8xEioB8,142
@@ -99,9 +99,9 @@ tunacode/utils/system.py,sha256=FSoibTIH0eybs4oNzbYyufIiV6gb77QaeY2yGqW39AY,1138
99
99
  tunacode/utils/text_utils.py,sha256=6YBD9QfkDO44-6jxnwRWIpmfIifPG-NqMzy_O2NAouc,7277
100
100
  tunacode/utils/token_counter.py,sha256=lLbkrNUraRQn5RMhwnGurqq1RHFDyn4AaFhruONWIxo,2690
101
101
  tunacode/utils/user_configuration.py,sha256=Ilz8dpGVJDBE2iLWHAPT0xR8D51VRKV3kIbsAz8Bboc,3275
102
- tunacode_cli-0.0.50.dist-info/licenses/LICENSE,sha256=Btzdu2kIoMbdSp6OyCLupB1aRgpTCJ_szMimgEnpkkE,1056
103
- tunacode_cli-0.0.50.dist-info/METADATA,sha256=OhjsuKawbWFnRFWWhF4Mrxk3Dnth4bWX5k1Lt4RnNwQ,5906
104
- tunacode_cli-0.0.50.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
105
- tunacode_cli-0.0.50.dist-info/entry_points.txt,sha256=hbkytikj4dGu6rizPuAd_DGUPBGF191RTnhr9wdhORY,51
106
- tunacode_cli-0.0.50.dist-info/top_level.txt,sha256=GuU751acRvOhM5yLKFW0-gBg62JGh5zycDSq4tRFOYE,13
107
- tunacode_cli-0.0.50.dist-info/RECORD,,
102
+ tunacode_cli-0.0.51.dist-info/licenses/LICENSE,sha256=Btzdu2kIoMbdSp6OyCLupB1aRgpTCJ_szMimgEnpkkE,1056
103
+ tunacode_cli-0.0.51.dist-info/METADATA,sha256=fmzMXrwNvILw3BFNvJmIt3HwZWLVhP7_FAjWM5ysFNM,5906
104
+ tunacode_cli-0.0.51.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
105
+ tunacode_cli-0.0.51.dist-info/entry_points.txt,sha256=hbkytikj4dGu6rizPuAd_DGUPBGF191RTnhr9wdhORY,51
106
+ tunacode_cli-0.0.51.dist-info/top_level.txt,sha256=GuU751acRvOhM5yLKFW0-gBg62JGh5zycDSq4tRFOYE,13
107
+ tunacode_cli-0.0.51.dist-info/RECORD,,