chibi-bot 1.6.0b1__tar.gz → 1.6.0b3__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.
Files changed (75) hide show
  1. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/PKG-INFO +1 -1
  2. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/service.py +10 -0
  3. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/pyproject.toml +1 -1
  4. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/LICENSE +0 -0
  5. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/README.md +0 -0
  6. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/__init__.py +0 -0
  7. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/__main__.py +0 -0
  8. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/cli.py +0 -0
  9. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/config/__init__.py +0 -0
  10. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/config/app.py +0 -0
  11. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/config/gpt.py +0 -0
  12. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/config/logging.py +0 -0
  13. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/config/telegram.py +0 -0
  14. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/config_generator.py +0 -0
  15. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/constants.py +0 -0
  16. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/exceptions.py +0 -0
  17. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/models.py +0 -0
  18. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/schemas/__init__.py +0 -0
  19. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/schemas/anthropic.py +0 -0
  20. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/schemas/app.py +0 -0
  21. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/schemas/cloudflare.py +0 -0
  22. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/schemas/mistralai.py +0 -0
  23. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/schemas/suno.py +0 -0
  24. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/bot.py +0 -0
  25. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/lock_manager.py +0 -0
  26. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/mcp/manager.py +0 -0
  27. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/metrics.py +0 -0
  28. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/providers/__init__.py +0 -0
  29. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/providers/alibaba.py +0 -0
  30. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/providers/anthropic.py +0 -0
  31. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/providers/cloudflare.py +0 -0
  32. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/providers/constants/suno.py +0 -0
  33. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/providers/customopenai.py +0 -0
  34. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/providers/deepseek.py +0 -0
  35. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/providers/eleven_labs.py +0 -0
  36. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/providers/gemini_native.py +0 -0
  37. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/providers/grok.py +0 -0
  38. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/providers/minimax.py +0 -0
  39. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/providers/mistralai_native.py +0 -0
  40. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/providers/moonshotai.py +0 -0
  41. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/providers/openai.py +0 -0
  42. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/providers/provider.py +0 -0
  43. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/providers/suno.py +0 -0
  44. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/providers/tools/__init__.py +0 -0
  45. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/providers/tools/cmd.py +0 -0
  46. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/providers/tools/common.py +0 -0
  47. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/providers/tools/constants.py +0 -0
  48. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/providers/tools/exceptions.py +0 -0
  49. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/providers/tools/file_editor.py +0 -0
  50. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/providers/tools/mcp_management.py +0 -0
  51. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/providers/tools/mcp_simple.py +0 -0
  52. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/providers/tools/media.py +0 -0
  53. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/providers/tools/memory.py +0 -0
  54. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/providers/tools/schemas.py +0 -0
  55. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/providers/tools/send.py +0 -0
  56. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/providers/tools/tool.py +0 -0
  57. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/providers/tools/utils.py +0 -0
  58. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/providers/tools/web.py +0 -0
  59. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/providers/utils.py +0 -0
  60. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/task_manager.py +0 -0
  61. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/services/user.py +0 -0
  62. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/storage/abstract.py +0 -0
  63. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/storage/database.py +0 -0
  64. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/storage/dynamodb.py +0 -0
  65. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/storage/local.py +0 -0
  66. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/storage/redis.py +0 -0
  67. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/utils/__init__.py +0 -0
  68. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/utils/app.py +0 -0
  69. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/chibi/utils/telegram.py +0 -0
  70. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/data/.keep +0 -0
  71. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/skills/imagen_prompting_skill.md +0 -0
  72. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/skills/jina_reader_skill.md +0 -0
  73. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/skills/nano_banana_prompting_skill.md +0 -0
  74. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/skills/suno_skill.md +0 -0
  75. {chibi_bot-1.6.0b1 → chibi_bot-1.6.0b3}/skills/wan_prompting_skill.md +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: chibi-bot
3
- Version: 1.6.0b1
3
+ Version: 1.6.0b3
4
4
  Summary: An asynchronous Telegram bot providing access to various LLMs (OpenAI, Gemini, Anthropic, etc.) and image generation models, featuring context management and built-in tools for web search, news retrieval, and reading web pages.
5
5
  License: MIT
6
6
  Author: Sergei Nagaev
@@ -5,6 +5,8 @@ import sys
5
5
  from pathlib import Path
6
6
  from typing import Optional
7
7
 
8
+ from dotenv import dotenv_values
9
+
8
10
 
9
11
  class Service:
10
12
  """Service management for the Chibi bot."""
@@ -23,6 +25,7 @@ class Service:
23
25
  home = Path.home()
24
26
  self.pid_path = pid_path or str(home / ".chibi" / "chibi.pid")
25
27
  self.log_path = log_path or str(home / ".chibi" / "logs" / "chibi.log")
28
+ self.settings_path = home / ".chibi" / "settings"
26
29
 
27
30
  def _ensure_directories(self) -> None:
28
31
  """Ensure required directories exist."""
@@ -83,6 +86,12 @@ class Service:
83
86
  except OSError:
84
87
  pass
85
88
 
89
+ envs = os.environ.copy()
90
+
91
+ if self.settings_path.exists():
92
+ settings = dotenv_values(self.settings_path)
93
+ envs.update(settings)
94
+
86
95
  try:
87
96
  # Start the bot process in background
88
97
  with open(self.log_path, "a") as log_file:
@@ -91,6 +100,7 @@ class Service:
91
100
  stdout=log_file,
92
101
  stderr=log_file,
93
102
  start_new_session=True, # Create new process group (Unix)
103
+ env=envs,
94
104
  )
95
105
  self._write_pid(process.pid)
96
106
  print(f"Service started (PID: {process.pid}).")
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "chibi-bot"
3
- version = "1.6.0b1"
3
+ version = "1.6.0b3"
4
4
  description = "An asynchronous Telegram bot providing access to various LLMs (OpenAI, Gemini, Anthropic, etc.) and image generation models, featuring context management and built-in tools for web search, news retrieval, and reading web pages."
5
5
  authors = ["Sergei Nagaev <nagaev.sv@gmail.com>"]
6
6
  license = "MIT"
File without changes
File without changes
File without changes
File without changes
File without changes