codex-bot 0.1.0__tar.gz → 0.2.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.
Files changed (351) hide show
  1. codex_bot-0.2.1/.github/workflows/ci.yml +88 -0
  2. codex_bot-0.2.1/.github/workflows/docs.yml +68 -0
  3. codex_bot-0.2.1/.github/workflows/publish.yml +42 -0
  4. {codex_bot-0.1.0 → codex_bot-0.2.1}/.gitignore +5 -0
  5. {codex_bot-0.1.0 → codex_bot-0.2.1}/.pre-commit-config.yaml +38 -38
  6. codex_bot-0.2.1/.python-version +1 -0
  7. codex_bot-0.2.1/.secrets.baseline +127 -0
  8. {codex_bot-0.1.0 → codex_bot-0.2.1}/CHANGELOG.md +43 -29
  9. codex_bot-0.2.1/LICENSE +161 -0
  10. codex_bot-0.2.1/NOTICE +7 -0
  11. codex_bot-0.2.1/PKG-INFO +162 -0
  12. codex_bot-0.2.1/README.md +72 -0
  13. codex_bot-0.2.1/docs/DOCUMENTATION_STANDARD.md +76 -0
  14. codex_bot-0.2.1/docs/README.md +53 -0
  15. codex_bot-0.2.1/docs/api/README.md +46 -0
  16. codex_bot-0.2.1/docs/api/helper.md +17 -0
  17. codex_bot-0.2.1/docs/api/i18n.md +13 -0
  18. codex_bot-0.2.1/docs/api/middlewares.md +45 -0
  19. codex_bot-0.2.1/docs/api/redis.md +32 -0
  20. codex_bot-0.2.1/docs/api/sender.md +34 -0
  21. codex_bot-0.2.1/docs/changelog.md +3 -0
  22. codex_bot-0.2.1/docs/en_EN/README.md +37 -0
  23. codex_bot-0.2.1/docs/en_EN/architecture/README.md +43 -0
  24. codex_bot-0.2.1/docs/en_EN/architecture/cli/README.md +45 -0
  25. codex_bot-0.2.1/docs/en_EN/architecture/engine/README.md +40 -0
  26. codex_bot-0.2.1/docs/en_EN/architecture/engine/container.md +45 -0
  27. codex_bot-0.2.1/docs/en_EN/architecture/engine/discovery.md +47 -0
  28. codex_bot-0.2.1/docs/en_EN/architecture/engine/factory.md +30 -0
  29. codex_bot-0.2.1/docs/en_EN/architecture/engine/http_db.md +41 -0
  30. codex_bot-0.2.1/docs/en_EN/architecture/engine/i18n.md +69 -0
  31. codex_bot-0.2.1/docs/en_EN/architecture/engine/middlewares.md +41 -0
  32. codex_bot-0.2.1/docs/en_EN/architecture/services/animation/README.md +78 -0
  33. codex_bot-0.2.1/docs/en_EN/architecture/services/base/README.md +46 -0
  34. codex_bot-0.2.1/docs/en_EN/architecture/services/director/README.md +46 -0
  35. codex_bot-0.2.1/docs/en_EN/architecture/services/fsm/README.md +74 -0
  36. codex_bot-0.2.1/docs/en_EN/architecture/services/helper/README.md +42 -0
  37. codex_bot-0.2.1/docs/en_EN/architecture/services/helper/url_signer.md +38 -0
  38. codex_bot-0.2.1/docs/en_EN/architecture/services/redis/README.md +37 -0
  39. codex_bot-0.2.1/docs/en_EN/architecture/services/view_sender/README.md +31 -0
  40. codex_bot-0.2.1/docs/en_EN/guide/getting_started.md +114 -0
  41. codex_bot-0.2.1/docs/en_EN/roadmap.md +54 -0
  42. codex_bot-0.2.1/docs/en_EN/tasks/001_high_integrated_debug_system.md +18 -0
  43. codex_bot-0.2.1/docs/en_EN/tasks/002_med_docker_infrastructure.md +18 -0
  44. codex_bot-0.2.1/docs/en_EN/tasks/003_high_in_bot_guide_system.md +18 -0
  45. codex_bot-0.2.1/docs/en_EN/tasks/004_high_redis_fsm_integration.md +23 -0
  46. codex_bot-0.2.1/docs/en_EN/tasks/005_med_header_driven_navigation.md +22 -0
  47. codex_bot-0.2.1/docs/en_EN/tasks/006_med_redis_stream_contract.md +47 -0
  48. codex_bot-0.2.1/docs/en_EN/tasks/007_med_sqlalchemy_sender_storage.md +19 -0
  49. codex_bot-0.2.1/docs/en_EN/tasks/008_high_multi_broker_support.md +19 -0
  50. codex_bot-0.2.1/docs/en_EN/tasks/009_high_webhook_server.md +19 -0
  51. codex_bot-0.2.1/docs/en_EN/tasks/ARCHIVE.md +10 -0
  52. codex_bot-0.2.1/docs/en_EN/tasks/backlog.md +25 -0
  53. codex_bot-0.2.1/docs/ru_RU/README.md +37 -0
  54. codex_bot-0.2.1/docs/ru_RU/architecture/README.md +50 -0
  55. codex_bot-0.2.1/docs/ru_RU/architecture/cli/README.md +45 -0
  56. codex_bot-0.2.1/docs/ru_RU/architecture/engine/README.md +39 -0
  57. codex_bot-0.2.1/docs/ru_RU/architecture/engine/container.md +45 -0
  58. codex_bot-0.2.1/docs/ru_RU/architecture/engine/discovery.md +47 -0
  59. codex_bot-0.2.1/docs/ru_RU/architecture/engine/factory.md +66 -0
  60. codex_bot-0.2.1/docs/ru_RU/architecture/engine/http_db.md +41 -0
  61. codex_bot-0.2.1/docs/ru_RU/architecture/engine/i18n.md +68 -0
  62. codex_bot-0.2.1/docs/ru_RU/architecture/engine/middlewares.md +41 -0
  63. codex_bot-0.2.1/docs/ru_RU/architecture/services/README.md +35 -0
  64. codex_bot-0.2.1/docs/ru_RU/architecture/services/animation/README.md +78 -0
  65. codex_bot-0.2.1/docs/ru_RU/architecture/services/base/README.md +55 -0
  66. codex_bot-0.2.1/docs/ru_RU/architecture/services/director/README.md +89 -0
  67. codex_bot-0.2.1/docs/ru_RU/architecture/services/fsm/README.md +74 -0
  68. codex_bot-0.2.1/docs/ru_RU/architecture/services/helper/README.md +42 -0
  69. codex_bot-0.2.1/docs/ru_RU/architecture/services/helper/url_signer.md +38 -0
  70. codex_bot-0.2.1/docs/ru_RU/architecture/services/redis/README.md +37 -0
  71. codex_bot-0.2.1/docs/ru_RU/architecture/services/view_sender/README.md +49 -0
  72. codex_bot-0.2.1/docs/ru_RU/guide/getting_started.md +114 -0
  73. codex_bot-0.2.1/docs/ru_RU/roadmap.md +54 -0
  74. codex_bot-0.2.1/docs/ru_RU/tasks/001_high_integrated_debug_system.md +27 -0
  75. codex_bot-0.2.1/docs/ru_RU/tasks/002_med_docker_infrastructure.md +24 -0
  76. codex_bot-0.2.1/docs/ru_RU/tasks/003_high_in_bot_guide_system.md +31 -0
  77. codex_bot-0.2.1/docs/ru_RU/tasks/004_high_redis_fsm_integration.md +23 -0
  78. codex_bot-0.2.1/docs/ru_RU/tasks/005_med_header_driven_navigation.md +22 -0
  79. codex_bot-0.2.1/docs/ru_RU/tasks/006_med_redis_stream_contract.md +47 -0
  80. codex_bot-0.2.1/docs/ru_RU/tasks/007_med_sqlalchemy_sender_storage.md +19 -0
  81. codex_bot-0.2.1/docs/ru_RU/tasks/008_high_multi_broker_support.md +19 -0
  82. codex_bot-0.2.1/docs/ru_RU/tasks/009_high_webhook_server.md +19 -0
  83. codex_bot-0.2.1/docs/ru_RU/tasks/ARCHIVE.md +10 -0
  84. codex_bot-0.2.1/docs/ru_RU/tasks/backlog.md +25 -0
  85. codex_bot-0.2.1/mkdocs.yml +117 -0
  86. codex_bot-0.2.1/project_structure.txt +589 -0
  87. codex_bot-0.2.1/pyproject.toml +130 -0
  88. codex_bot-0.2.1/src/codex_bot/__init__.py +32 -0
  89. {codex_bot-0.1.0 → codex_bot-0.2.1}/src/codex_bot/animation/animation_service.py +27 -30
  90. codex_bot-0.2.1/src/codex_bot/base/base_orchestrator.py +126 -0
  91. codex_bot-0.2.1/src/codex_bot/base/view_dto.py +105 -0
  92. {codex_bot-0.1.0 → codex_bot-0.2.1}/src/codex_bot/cli/__init__.py +2 -2
  93. codex_bot-0.2.1/src/codex_bot/cli/commands/create_feature.py +128 -0
  94. codex_bot-0.2.1/src/codex_bot/cli/commands/migrations.py +82 -0
  95. codex_bot-0.2.1/src/codex_bot/cli/commands/startproject.py +228 -0
  96. codex_bot-0.2.1/src/codex_bot/cli/commands/utils.py +130 -0
  97. codex_bot-0.2.1/src/codex_bot/cli/main.py +72 -0
  98. codex_bot-0.2.1/src/codex_bot/cli/management.py +103 -0
  99. codex_bot-0.2.1/src/codex_bot/cli/templating.py +57 -0
  100. codex_bot-0.2.1/src/codex_bot/director/director.py +141 -0
  101. codex_bot-0.2.1/src/codex_bot/director/protocols.py +111 -0
  102. codex_bot-0.2.1/src/codex_bot/engine/__init__.py +15 -0
  103. codex_bot-0.2.1/src/codex_bot/engine/container.py +159 -0
  104. codex_bot-0.2.1/src/codex_bot/engine/database/__init__.py +3 -0
  105. codex_bot-0.2.1/src/codex_bot/engine/database/engine.py +100 -0
  106. codex_bot-0.2.1/src/codex_bot/engine/database/models.py +50 -0
  107. codex_bot-0.2.1/src/codex_bot/engine/database/repository.py +76 -0
  108. codex_bot-0.2.1/src/codex_bot/engine/discovery/service.py +260 -0
  109. codex_bot-0.2.1/src/codex_bot/engine/factory/bot_builder.py +148 -0
  110. {codex_bot-0.1.0 → codex_bot-0.2.1}/src/codex_bot/engine/http/api_client.py +4 -6
  111. codex_bot-0.2.1/src/codex_bot/engine/i18n/locales_compiler.py +85 -0
  112. codex_bot-0.2.1/src/codex_bot/engine/middlewares/__init__.py +15 -0
  113. codex_bot-0.2.1/src/codex_bot/engine/middlewares/container.py +41 -0
  114. codex_bot-0.2.1/src/codex_bot/engine/middlewares/database.py +58 -0
  115. codex_bot-0.2.1/src/codex_bot/engine/middlewares/director_middleware.py +62 -0
  116. {codex_bot-0.1.0 → codex_bot-0.2.1}/src/codex_bot/engine/middlewares/i18n.py +4 -3
  117. {codex_bot-0.1.0 → codex_bot-0.2.1}/src/codex_bot/engine/middlewares/throttling.py +4 -4
  118. codex_bot-0.2.1/src/codex_bot/engine/middlewares/user_validation.py +56 -0
  119. codex_bot-0.2.1/src/codex_bot/engine/protocols.py +38 -0
  120. {codex_bot-0.1.0 → codex_bot-0.2.1}/src/codex_bot/engine/router_builder/router_builder.py +4 -6
  121. codex_bot-0.2.1/src/codex_bot/engine/runner.py +155 -0
  122. codex_bot-0.2.1/src/codex_bot/features/__init__.py +7 -0
  123. codex_bot-0.2.1/src/codex_bot/features/errors/__init__.py +18 -0
  124. codex_bot-0.2.1/src/codex_bot/features/errors/default_errors.py +34 -0
  125. codex_bot-0.2.1/src/codex_bot/features/errors/handlers.py +58 -0
  126. codex_bot-0.2.1/src/codex_bot/features/errors/orchestrator.py +85 -0
  127. codex_bot-0.2.1/src/codex_bot/features/errors/ui.py +74 -0
  128. codex_bot-0.2.1/src/codex_bot/fsm/garbage_collector.py +122 -0
  129. {codex_bot-0.1.0 → codex_bot-0.2.1}/src/codex_bot/fsm/state_helper.py +73 -72
  130. {codex_bot-0.1.0 → codex_bot-0.2.1}/src/codex_bot/fsm/state_manager.py +20 -25
  131. codex_bot-0.2.1/src/codex_bot/helper/__init__.py +10 -0
  132. codex_bot-0.2.1/src/codex_bot/helper/context_helper.py +82 -0
  133. codex_bot-0.2.1/src/codex_bot/helper/id_inspector.py +43 -0
  134. {codex_bot-0.1.0 → codex_bot-0.2.1}/src/codex_bot/redis/__init__.py +5 -1
  135. {codex_bot-0.1.0 → codex_bot-0.2.1}/src/codex_bot/redis/dispatcher.py +35 -35
  136. {codex_bot-0.1.0 → codex_bot-0.2.1}/src/codex_bot/redis/router.py +4 -3
  137. {codex_bot-0.1.0 → codex_bot-0.2.1}/src/codex_bot/redis/stream_processor.py +88 -45
  138. codex_bot-0.2.1/src/codex_bot/sender/memory_storage.py +69 -0
  139. codex_bot-0.2.1/src/codex_bot/sender/redis_storage.py +69 -0
  140. {codex_bot-0.1.0 → codex_bot-0.2.1}/src/codex_bot/sender/view_sender.py +42 -43
  141. codex_bot-0.2.1/src/codex_bot/stream/__init__.py +4 -0
  142. codex_bot-0.2.1/src/codex_bot/stream/dispatcher.py +58 -0
  143. codex_bot-0.2.1/src/codex_bot/stream/router.py +54 -0
  144. codex_bot-0.2.1/src/codex_bot/templates/feature/redis/feature_setting.py.j2 +24 -0
  145. codex_bot-0.2.1/src/codex_bot/templates/feature/redis/handlers/__init__.py.j2 +1 -0
  146. codex_bot-0.2.1/src/codex_bot/templates/feature/redis/handlers/handlers.py.j2 +27 -0
  147. codex_bot-0.2.1/src/codex_bot/templates/feature/redis/logic/__init__.py +0 -0
  148. codex_bot-0.2.1/src/codex_bot/templates/feature/redis/logic/orchestrator.py.j2 +29 -0
  149. codex_bot-0.2.1/src/codex_bot/templates/feature/redis/resources/__init__.py.j2 +4 -0
  150. codex_bot-0.2.1/src/codex_bot/templates/feature/redis/resources/callbacks.py.j2 +7 -0
  151. codex_bot-0.2.1/src/codex_bot/templates/feature/redis/resources/dto.py.j2 +9 -0
  152. codex_bot-0.2.1/src/codex_bot/templates/feature/redis/resources/keyboards.py.j2 +18 -0
  153. codex_bot-0.2.1/src/codex_bot/templates/feature/redis/resources/texts.py.j2 +4 -0
  154. codex_bot-0.2.1/src/codex_bot/templates/feature/telegram/__init__.py +0 -0
  155. codex_bot-0.2.1/src/codex_bot/templates/feature/telegram/contracts/contract.py.j2 +14 -0
  156. codex_bot-0.2.1/src/codex_bot/templates/feature/telegram/feature_setting.py.j2 +31 -0
  157. codex_bot-0.2.1/src/codex_bot/templates/feature/telegram/handlers/__init__.py.j2 +1 -0
  158. codex_bot-0.2.1/src/codex_bot/templates/feature/telegram/handlers/handlers.py.j2 +38 -0
  159. codex_bot-0.2.1/src/codex_bot/templates/feature/telegram/logic/orchestrator.py.j2 +51 -0
  160. codex_bot-0.2.1/src/codex_bot/templates/feature/telegram/logic/state_manager.py.j2 +27 -0
  161. codex_bot-0.1.0/src/codex_bot/templates/feature/callbacks.py.tpl → codex_bot-0.2.1/src/codex_bot/templates/feature/telegram/resources/callbacks.py.j2 +4 -4
  162. codex_bot-0.2.1/src/codex_bot/templates/feature/telegram/resources/dto.py.j2 +7 -0
  163. codex_bot-0.2.1/src/codex_bot/templates/feature/telegram/resources/formatters.py.j2 +16 -0
  164. codex_bot-0.2.1/src/codex_bot/templates/feature/telegram/resources/keyboards.py.j2 +16 -0
  165. codex_bot-0.2.1/src/codex_bot/templates/feature/telegram/resources/texts.py.j2 +6 -0
  166. codex_bot-0.2.1/src/codex_bot/templates/feature/telegram/ui/ui.py.j2 +26 -0
  167. codex_bot-0.2.1/src/codex_bot/templates/project/root/.env.example.j2 +32 -0
  168. codex_bot-0.2.1/src/codex_bot/templates/project/root/.env.j2 +31 -0
  169. codex_bot-0.2.1/src/codex_bot/templates/project/root/.gitignore.j2 +157 -0
  170. codex_bot-0.2.1/src/codex_bot/templates/project/root/.python-version.j2 +1 -0
  171. codex_bot-0.2.1/src/codex_bot/templates/project/root/README.md.j2 +48 -0
  172. codex_bot-0.2.1/src/codex_bot/templates/project/root/docs/architecture_cheat_sheet.md.j2 +28 -0
  173. codex_bot-0.2.1/src/codex_bot/templates/project/root/docs/message_flow.md.j2 +29 -0
  174. codex_bot-0.2.1/src/codex_bot/templates/project/root/manage.py.j2 +19 -0
  175. codex_bot-0.2.1/src/codex_bot/templates/project/root/pyproject.toml.j2 +85 -0
  176. codex_bot-0.2.1/src/codex_bot/templates/project/src/alembic.ini.j2 +43 -0
  177. codex_bot-0.2.1/src/codex_bot/templates/project/src/core/config.py.j2 +78 -0
  178. codex_bot-0.2.1/src/codex_bot/templates/project/src/core/container.py.j2 +124 -0
  179. codex_bot-0.2.1/src/codex_bot/templates/project/src/core/errors.py.j2 +21 -0
  180. codex_bot-0.2.1/src/codex_bot/templates/project/src/core/factory.py.j2 +107 -0
  181. codex_bot-0.2.1/src/codex_bot/templates/project/src/core/logging.py.j2 +137 -0
  182. codex_bot-0.2.1/src/codex_bot/templates/project/src/core/settings.py.j2 +34 -0
  183. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/bot_menu/__init__.py.j2 +1 -0
  184. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/bot_menu/contracts/__init__.py.j2 +1 -0
  185. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/bot_menu/contracts/menu_contract.py.j2 +13 -0
  186. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/bot_menu/feature_setting.py.j2 +27 -0
  187. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/bot_menu/handlers/__init__.py.j2 +1 -0
  188. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/bot_menu/handlers/handlers.py.j2 +48 -0
  189. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/bot_menu/logic/__init__.py.j2 +1 -0
  190. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/bot_menu/logic/orchestrator.py.j2 +95 -0
  191. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/bot_menu/orchestrator.py.j2 +46 -0
  192. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/bot_menu/resources/__init__.py.j2 +4 -0
  193. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/bot_menu/resources/callbacks.py.j2 +8 -0
  194. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/bot_menu/resources/dto.py.j2 +6 -0
  195. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/bot_menu/resources/keyboards.py.j2 +46 -0
  196. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/bot_menu/resources/texts.py.j2 +16 -0
  197. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/bot_menu/ui/__init__.py.j2 +1 -0
  198. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/bot_menu/ui/menu_ui.py.j2 +40 -0
  199. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/bot_menu/ui/ui.py.j2 +40 -0
  200. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/commands/__init__.py.j2 +1 -0
  201. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/commands/contracts/__init__.py.j2 +1 -0
  202. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/commands/contracts/auth_contract.py.j2 +11 -0
  203. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/commands/contracts/contract.py.j2 +14 -0
  204. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/commands/feature_setting.py.j2 +38 -0
  205. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/commands/handlers/__init__.py.j2 +1 -0
  206. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/commands/handlers/handlers.py.j2 +61 -0
  207. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/commands/logic/__init__.py.j2 +1 -0
  208. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/commands/logic/orchestrator.py.j2 +63 -0
  209. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/commands/resources/__init__.py.j2 +4 -0
  210. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/commands/resources/callbacks.py.j2 +10 -0
  211. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/commands/resources/formatters.py.j2 +20 -0
  212. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/commands/resources/keyboards.py.j2 +40 -0
  213. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/commands/resources/texts.py.j2 +32 -0
  214. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/commands/ui/__init__.py.j2 +1 -0
  215. codex_bot-0.2.1/src/codex_bot/templates/project/src/features/telegram/commands/ui/commands_ui.py.j2 +28 -0
  216. codex_bot-0.2.1/src/codex_bot/templates/project/src/infrastructure/database/__init__.py.j2 +4 -0
  217. codex_bot-0.2.1/src/codex_bot/templates/project/src/infrastructure/database/migrations/env.py.j2 +72 -0
  218. codex_bot-0.2.1/src/codex_bot/templates/project/src/infrastructure/database/migrations/script.py.mako.j2 +26 -0
  219. codex_bot-0.2.1/src/codex_bot/templates/project/src/infrastructure/migrations/env.py.j2 +71 -0
  220. codex_bot-0.2.1/src/codex_bot/templates/project/src/infrastructure/models/base.py.j2 +18 -0
  221. codex_bot-0.2.1/src/codex_bot/templates/project/src/infrastructure/redis/container.py.j2 +22 -0
  222. codex_bot-0.2.1/src/codex_bot/templates/project/src/infrastructure/repositories/base.py.j2 +21 -0
  223. codex_bot-0.2.1/src/codex_bot/templates/project/src/launcher.py.j2 +39 -0
  224. codex_bot-0.2.1/src/codex_bot/templates/project/src/resources/locales/en/messages.ftl.j2 +21 -0
  225. codex_bot-0.2.1/src/codex_bot/templates/project/src/resources/locales/ru/messages.ftl.j2 +21 -0
  226. codex_bot-0.2.1/src/codex_bot/templates/project/src/shared/schemas/user.py.j2 +10 -0
  227. codex_bot-0.2.1/src/codex_bot/url_signer/__init__.py +11 -0
  228. {codex_bot-0.1.0 → codex_bot-0.2.1}/src/codex_bot/url_signer/service.py +17 -35
  229. {codex_bot-0.1.0 → codex_bot-0.2.1}/tests/animation/test_animation_service.py +55 -55
  230. {codex_bot-0.1.0 → codex_bot-0.2.1}/tests/base/test_base_orchestrator.py +55 -54
  231. {codex_bot-0.1.0 → codex_bot-0.2.1}/tests/base/test_view_dto.py +48 -48
  232. codex_bot-0.2.1/tests/conftest.py +75 -0
  233. codex_bot-0.2.1/tests/director/test_director.py +122 -0
  234. {codex_bot-0.1.0 → codex_bot-0.2.1}/tests/engine/factory/test_bot_builder.py +37 -37
  235. {codex_bot-0.1.0 → codex_bot-0.2.1}/tests/engine/http/test_api_client.py +60 -60
  236. {codex_bot-0.1.0 → codex_bot-0.2.1}/tests/engine/middlewares/test_throttling.py +62 -62
  237. {codex_bot-0.1.0 → codex_bot-0.2.1}/tests/fsm/test_garbage_collector.py +50 -50
  238. {codex_bot-0.1.0 → codex_bot-0.2.1}/tests/fsm/test_state_manager.py +48 -48
  239. {codex_bot-0.1.0 → codex_bot-0.2.1}/tests/helper/test_context_helper.py +47 -47
  240. codex_bot-0.2.1/tests/integration/test_templates_e2e.py +129 -0
  241. codex_bot-0.2.1/tests/redis/__init__.py +0 -0
  242. codex_bot-0.2.1/tests/redis/test_dispatcher.py +61 -0
  243. codex_bot-0.2.1/tests/redis/test_router.py +46 -0
  244. {codex_bot-0.1.0 → codex_bot-0.2.1}/tests/sender/test_sender_keys.py +16 -16
  245. codex_bot-0.2.1/tests/test_template_consistency.py +44 -0
  246. codex_bot-0.2.1/tests/test_templates.py +82 -0
  247. {codex_bot-0.1.0 → codex_bot-0.2.1}/tests/url_signer/test_url_signer.py +49 -49
  248. codex_bot-0.2.1/tools/__init__.py +0 -0
  249. codex_bot-0.2.1/tools/dev/__init__.py +0 -0
  250. {codex_bot-0.1.0 → codex_bot-0.2.1}/tools/dev/check.py +43 -26
  251. codex_bot-0.2.1/tools/dev/generate_project_tree.py +123 -0
  252. codex_bot-0.2.1/uv.lock +2516 -0
  253. codex_bot-0.1.0/.claude/project.md +0 -25
  254. codex_bot-0.1.0/.claude/settings.local.json +0 -10
  255. codex_bot-0.1.0/.github/workflows/docs.yml +0 -39
  256. codex_bot-0.1.0/CLAUDE.md +0 -48
  257. codex_bot-0.1.0/LICENSE +0 -21
  258. codex_bot-0.1.0/PKG-INFO +0 -116
  259. codex_bot-0.1.0/README.md +0 -71
  260. codex_bot-0.1.0/docs/DOCUMENTATION_STANDARD.md +0 -142
  261. codex_bot-0.1.0/docs/README.md +0 -36
  262. codex_bot-0.1.0/docs/api/README.md +0 -3
  263. codex_bot-0.1.0/docs/api/cli.md +0 -20
  264. codex_bot-0.1.0/docs/api/helper.md +0 -5
  265. codex_bot-0.1.0/docs/api/middlewares.md +0 -19
  266. codex_bot-0.1.0/docs/api/redis.md +0 -19
  267. codex_bot-0.1.0/docs/api/sender.md +0 -17
  268. codex_bot-0.1.0/docs/en_EN/README.md +0 -36
  269. codex_bot-0.1.0/docs/en_EN/architecture/animation/README.md +0 -39
  270. codex_bot-0.1.0/docs/en_EN/architecture/base/README.md +0 -38
  271. codex_bot-0.1.0/docs/en_EN/architecture/cli/README.md +0 -38
  272. codex_bot-0.1.0/docs/en_EN/architecture/director/README.md +0 -39
  273. codex_bot-0.1.0/docs/en_EN/architecture/engine/README.md +0 -41
  274. codex_bot-0.1.0/docs/en_EN/architecture/fsm/README.md +0 -38
  275. codex_bot-0.1.0/docs/en_EN/architecture/helper/README.md +0 -37
  276. codex_bot-0.1.0/docs/en_EN/architecture/redis/README.md +0 -40
  277. codex_bot-0.1.0/docs/en_EN/architecture/sender/README.md +0 -41
  278. codex_bot-0.1.0/docs/en_EN/architecture/url_signer/README.md +0 -38
  279. codex_bot-0.1.0/docs/guide/getting_started.md +0 -20
  280. codex_bot-0.1.0/docs/ru_RU/README.md +0 -36
  281. codex_bot-0.1.0/docs/ru_RU/architecture/animation/README.md +0 -39
  282. codex_bot-0.1.0/docs/ru_RU/architecture/base/README.md +0 -38
  283. codex_bot-0.1.0/docs/ru_RU/architecture/cli/README.md +0 -38
  284. codex_bot-0.1.0/docs/ru_RU/architecture/director/README.md +0 -39
  285. codex_bot-0.1.0/docs/ru_RU/architecture/engine/README.md +0 -41
  286. codex_bot-0.1.0/docs/ru_RU/architecture/fsm/README.md +0 -38
  287. codex_bot-0.1.0/docs/ru_RU/architecture/helper/README.md +0 -37
  288. codex_bot-0.1.0/docs/ru_RU/architecture/redis/README.md +0 -40
  289. codex_bot-0.1.0/docs/ru_RU/architecture/sender/README.md +0 -41
  290. codex_bot-0.1.0/docs/ru_RU/architecture/url_signer/README.md +0 -38
  291. codex_bot-0.1.0/mkdocs.yml +0 -67
  292. codex_bot-0.1.0/project_structure.txt +0 -207
  293. codex_bot-0.1.0/pyproject.toml +0 -85
  294. codex_bot-0.1.0/src/codex_bot/__init__.py +0 -24
  295. codex_bot-0.1.0/src/codex_bot/base/base_orchestrator.py +0 -123
  296. codex_bot-0.1.0/src/codex_bot/base/view_dto.py +0 -93
  297. codex_bot-0.1.0/src/codex_bot/cli/commands.py +0 -215
  298. codex_bot-0.1.0/src/codex_bot/director/director.py +0 -107
  299. codex_bot-0.1.0/src/codex_bot/director/protocols.py +0 -80
  300. codex_bot-0.1.0/src/codex_bot/engine/__init__.py +0 -13
  301. codex_bot-0.1.0/src/codex_bot/engine/discovery/service.py +0 -258
  302. codex_bot-0.1.0/src/codex_bot/engine/factory/bot_builder.py +0 -111
  303. codex_bot-0.1.0/src/codex_bot/engine/i18n/locales_compiler.py +0 -83
  304. codex_bot-0.1.0/src/codex_bot/engine/middlewares/__init__.py +0 -24
  305. codex_bot-0.1.0/src/codex_bot/engine/middlewares/container.py +0 -46
  306. codex_bot-0.1.0/src/codex_bot/engine/middlewares/user_validation.py +0 -49
  307. codex_bot-0.1.0/src/codex_bot/fsm/garbage_collector.py +0 -141
  308. codex_bot-0.1.0/src/codex_bot/helper/__init__.py +0 -7
  309. codex_bot-0.1.0/src/codex_bot/helper/context_helper.py +0 -61
  310. codex_bot-0.1.0/src/codex_bot/templates/feature/contract.py.tpl +0 -12
  311. codex_bot-0.1.0/src/codex_bot/templates/feature/dto.py.tpl +0 -7
  312. codex_bot-0.1.0/src/codex_bot/templates/feature/feature.py.tpl +0 -26
  313. codex_bot-0.1.0/src/codex_bot/templates/feature/feature_redis.py.tpl +0 -6
  314. codex_bot-0.1.0/src/codex_bot/templates/feature/formatters.py.tpl +0 -15
  315. codex_bot-0.1.0/src/codex_bot/templates/feature/handlers.py.tpl +0 -32
  316. codex_bot-0.1.0/src/codex_bot/templates/feature/handlers_redis.py.tpl +0 -24
  317. codex_bot-0.1.0/src/codex_bot/templates/feature/keyboards.py.tpl +0 -14
  318. codex_bot-0.1.0/src/codex_bot/templates/feature/orchestrator.py.tpl +0 -26
  319. codex_bot-0.1.0/src/codex_bot/templates/feature/orchestrator_redis.py.tpl +0 -17
  320. codex_bot-0.1.0/src/codex_bot/templates/feature/texts.py.tpl +0 -6
  321. codex_bot-0.1.0/src/codex_bot/templates/feature/ui.py.tpl +0 -19
  322. codex_bot-0.1.0/src/codex_bot/url_signer/__init__.py +0 -7
  323. codex_bot-0.1.0/tests/conftest.py +0 -42
  324. codex_bot-0.1.0/tests/director/test_director.py +0 -54
  325. codex_bot-0.1.0/tools/dev/generate_project_tree.py +0 -119
  326. {codex_bot-0.1.0 → codex_bot-0.2.1}/docs/api/animation.md +0 -0
  327. {codex_bot-0.1.0 → codex_bot-0.2.1}/docs/api/base.md +0 -0
  328. {codex_bot-0.1.0 → codex_bot-0.2.1}/docs/api/director.md +0 -0
  329. {codex_bot-0.1.0 → codex_bot-0.2.1}/docs/api/discovery.md +0 -0
  330. {codex_bot-0.1.0 → codex_bot-0.2.1}/docs/api/factory.md +0 -0
  331. {codex_bot-0.1.0 → codex_bot-0.2.1}/docs/api/fsm.md +0 -0
  332. {codex_bot-0.1.0 → codex_bot-0.2.1}/docs/api/http.md +0 -0
  333. {codex_bot-0.1.0 → codex_bot-0.2.1}/docs/api/router_builder.md +0 -0
  334. {codex_bot-0.1.0 → codex_bot-0.2.1}/docs/api/url_signer.md +0 -0
  335. {codex_bot-0.1.0 → codex_bot-0.2.1}/src/codex_bot/animation/__init__.py +0 -0
  336. {codex_bot-0.1.0 → codex_bot-0.2.1}/src/codex_bot/base/__init__.py +0 -0
  337. {codex_bot-0.1.0 → codex_bot-0.2.1}/src/codex_bot/base/context_dto.py +0 -0
  338. {codex_bot-0.1.0 → codex_bot-0.2.1}/src/codex_bot/director/__init__.py +0 -0
  339. {codex_bot-0.1.0 → codex_bot-0.2.1}/src/codex_bot/engine/discovery/__init__.py +0 -0
  340. {codex_bot-0.1.0 → codex_bot-0.2.1}/src/codex_bot/engine/factory/__init__.py +0 -0
  341. {codex_bot-0.1.0 → codex_bot-0.2.1}/src/codex_bot/engine/http/__init__.py +0 -0
  342. {codex_bot-0.1.0 → codex_bot-0.2.1}/src/codex_bot/engine/i18n/__init__.py +0 -0
  343. {codex_bot-0.1.0 → codex_bot-0.2.1}/src/codex_bot/engine/router_builder/__init__.py +0 -0
  344. {codex_bot-0.1.0 → codex_bot-0.2.1}/src/codex_bot/fsm/__init__.py +0 -0
  345. {codex_bot-0.1.0 → codex_bot-0.2.1}/src/codex_bot/fsm/common_fsm_handlers.py +0 -0
  346. /codex_bot-0.1.0/tools/__init__.py → /codex_bot-0.2.1/src/codex_bot/py.typed +0 -0
  347. {codex_bot-0.1.0 → codex_bot-0.2.1}/src/codex_bot/sender/__init__.py +0 -0
  348. {codex_bot-0.1.0 → codex_bot-0.2.1}/src/codex_bot/sender/protocols.py +0 -0
  349. {codex_bot-0.1.0 → codex_bot-0.2.1}/src/codex_bot/sender/sender_keys.py +0 -0
  350. {codex_bot-0.1.0 → codex_bot-0.2.1}/src/codex_bot/sender/sender_manager.py +0 -0
  351. {codex_bot-0.1.0/tools/dev → codex_bot-0.2.1/src/codex_bot/templates/feature/redis}/__init__.py +0 -0
@@ -0,0 +1,88 @@
1
+ name: CI Pipeline
2
+
3
+ on:
4
+ push:
5
+ branches: [develop]
6
+ paths-ignore: ["**.md", "docs/**", ".gitignore"]
7
+ pull_request:
8
+ branches: [main]
9
+
10
+ jobs:
11
+ quality-gate:
12
+ name: Quality Gate
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - uses: actions/setup-python@v5
17
+ with:
18
+ python-version: "3.12"
19
+ - uses: astral-sh/setup-uv@v7
20
+ with:
21
+ version: "0.10.7"
22
+
23
+ - name: Sync dev environment
24
+ run: uv sync --locked --extra dev
25
+
26
+ - name: Run pre-commit
27
+ run: uv run pre-commit run --all-files
28
+
29
+ - name: Run pip-audit
30
+ run: uv run pip-audit
31
+
32
+ - name: Run mypy
33
+ run: uv run mypy src/
34
+
35
+ unit-tests:
36
+ name: Unit Tests (Python ${{ matrix.python-version }})
37
+ needs: quality-gate
38
+ runs-on: ubuntu-latest
39
+ strategy:
40
+ matrix:
41
+ python-version: ["3.12", "3.13"]
42
+ steps:
43
+ - uses: actions/checkout@v4
44
+ - uses: actions/setup-python@v5
45
+ with:
46
+ python-version: ${{ matrix.python-version }}
47
+ - uses: astral-sh/setup-uv@v7
48
+ with:
49
+ version: "0.10.7"
50
+
51
+ - name: Sync dev environment
52
+ run: uv sync --locked --extra dev
53
+
54
+ - name: Run unit tests
55
+ run: uv run pytest tests/ -m "unit" -v --tb=short
56
+
57
+ integration-tests:
58
+ name: Integration Tests
59
+ needs: unit-tests
60
+ runs-on: ubuntu-latest
61
+
62
+ services:
63
+ redis:
64
+ image: redis:7-alpine
65
+ ports:
66
+ - 6379:6379
67
+ options: >-
68
+ --health-cmd "redis-cli ping"
69
+ --health-interval 10s
70
+ --health-timeout 5s
71
+ --health-retries 5
72
+
73
+ steps:
74
+ - uses: actions/checkout@v4
75
+ - uses: actions/setup-python@v5
76
+ with:
77
+ python-version: "3.12"
78
+ - uses: astral-sh/setup-uv@v7
79
+ with:
80
+ version: "0.10.7"
81
+
82
+ - name: Sync dev environment
83
+ run: uv sync --locked --extra dev
84
+
85
+ - name: Run integration tests
86
+ env:
87
+ REDIS_URL: redis://localhost:6379/0
88
+ run: uv run pytest tests/ -m "integration" -v --tb=short
@@ -0,0 +1,68 @@
1
+ name: Deploy Docs
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+ workflow_dispatch:
8
+ inputs:
9
+ version:
10
+ description: "Version alias to deploy (e.g. 0.x, 1.x)"
11
+ required: true
12
+ alias:
13
+ description: "Alias (latest, stable, or leave empty)"
14
+ required: false
15
+ default: "latest"
16
+
17
+ permissions:
18
+ contents: write
19
+
20
+ jobs:
21
+ deploy:
22
+ name: Build & Deploy Docs
23
+ runs-on: ubuntu-latest
24
+ steps:
25
+ - name: Checkout code
26
+ uses: actions/checkout@v4
27
+ with:
28
+ fetch-depth: 0
29
+
30
+ - name: Configure Git Credentials
31
+ run: |
32
+ git config user.name github-actions[bot]
33
+ git config user.email 41898282+github-actions[bot]@users.noreply.github.com
34
+
35
+ - name: Set up Python 3.12
36
+ uses: actions/setup-python@v5
37
+ with:
38
+ python-version: "3.12"
39
+ - uses: astral-sh/setup-uv@v7
40
+ with:
41
+ version: "0.10.7"
42
+
43
+ - name: Sync docs environment
44
+ run: uv sync --locked --extra docs --extra all
45
+
46
+ - name: Resolve version alias (tag push)
47
+ if: github.event_name == 'push'
48
+ id: version
49
+ run: |
50
+ TAG="${GITHUB_REF_NAME}"
51
+ MAJOR=$(echo "$TAG" | sed 's/^v//' | cut -d. -f1)
52
+ echo "alias=${MAJOR}.x" >> "$GITHUB_OUTPUT"
53
+
54
+ - name: Deploy versioned docs (tag push)
55
+ if: github.event_name == 'push'
56
+ run: |
57
+ uv run mike deploy --push --update-aliases "${{ steps.version.outputs.alias }}" latest
58
+ uv run mike set-default --push latest
59
+
60
+ - name: Deploy versioned docs (manual)
61
+ if: github.event_name == 'workflow_dispatch'
62
+ run: |
63
+ if [ -n "${{ inputs.alias }}" ]; then
64
+ uv run mike deploy --push --update-aliases "${{ inputs.version }}" "${{ inputs.alias }}"
65
+ else
66
+ uv run mike deploy --push "${{ inputs.version }}"
67
+ fi
68
+ uv run mike set-default --push latest
@@ -0,0 +1,42 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+
8
+ jobs:
9
+ build-n-publish:
10
+ name: Build and publish to PyPI
11
+ runs-on: ubuntu-latest
12
+ environment:
13
+ name: pypi
14
+ url: https://pypi.org/project/codex-bot/
15
+ permissions:
16
+ id-token: write
17
+ contents: read
18
+
19
+ steps:
20
+ - name: Checkout code
21
+ uses: actions/checkout@v4
22
+ with:
23
+ fetch-depth: 0
24
+
25
+ - name: Set up Python
26
+ uses: actions/setup-python@v5
27
+ with:
28
+ python-version: "3.12"
29
+ - uses: astral-sh/setup-uv@v7
30
+ with:
31
+ version: "0.10.7"
32
+
33
+ - name: Build sdist and wheel
34
+ run: uv build --no-sources
35
+
36
+ - name: Check artifacts
37
+ run: uvx twine check dist/*
38
+
39
+ - name: Publish to PyPI
40
+ uses: pypa/gh-action-pypi-publish@release/v1
41
+ with:
42
+ print-hash: true
@@ -48,6 +48,7 @@ docs/_build/
48
48
  # --- Linting & Typing ---
49
49
  .mypy_cache/
50
50
  .ruff_cache/
51
+ .uv-cache/
51
52
  .dmypy.json
52
53
  dmypy.json
53
54
  .pyre/
@@ -64,5 +65,9 @@ dmypy.json
64
65
  .env
65
66
  .envrc
66
67
  *.log
68
+ .agents/
69
+ .claude/
70
+ # Sandbox for template E2E testing
71
+ sandbox/
67
72
  # Temporary files from LocalesCompiler (if they leak into root)
68
73
  bot_locales_*
@@ -1,38 +1,38 @@
1
- repos:
2
- - repo: https://github.com/pre-commit/pre-commit-hooks
3
- rev: v5.0.0
4
- hooks:
5
- - id: trailing-whitespace
6
- - id: end-of-file-fixer
7
- - id: check-yaml
8
- - id: check-json
9
- - id: check-added-large-files
10
- args: ['--maxkb=2000']
11
- - id: check-merge-conflict
12
-
13
- - repo: https://github.com/astral-sh/ruff-pre-commit
14
- rev: v0.9.6
15
- hooks:
16
- - id: ruff
17
- args: [--fix]
18
- - id: ruff-format
19
-
20
- - repo: https://github.com/igorshubovych/markdownlint-cli
21
- rev: v0.44.0
22
- hooks:
23
- - id: markdownlint
24
- args: ["--fix", "--disable", "MD013"]
25
-
26
- - repo: https://github.com/PyCQA/bandit
27
- rev: 1.8.2
28
- hooks:
29
- - id: bandit
30
- args: ["-c", "pyproject.toml"]
31
- additional_dependencies: ["bandit[toml]"]
32
-
33
- # 2. Поиск "забытых" секретов и паролей (усиленный)
34
- - repo: https://github.com/Yelp/detect-secrets
35
- rev: v1.5.0
36
- hooks:
37
- - id: detect-secrets
38
- # Baseline will be added after manual creation
1
+ repos:
2
+ - repo: https://github.com/pre-commit/pre-commit-hooks
3
+ rev: v5.0.0
4
+ hooks:
5
+ - id: trailing-whitespace
6
+ - id: end-of-file-fixer
7
+ - id: check-yaml
8
+ - id: check-json
9
+ - id: check-added-large-files
10
+ args: ['--maxkb=2000']
11
+ - id: check-merge-conflict
12
+
13
+ - repo: https://github.com/astral-sh/ruff-pre-commit
14
+ rev: v0.9.6
15
+ hooks:
16
+ - id: ruff
17
+ args: [--fix]
18
+ - id: ruff-format
19
+
20
+ - repo: https://github.com/igorshubovych/markdownlint-cli
21
+ rev: v0.44.0
22
+ hooks:
23
+ - id: markdownlint
24
+ args: ["--fix", "--disable", "MD013"]
25
+
26
+ - repo: https://github.com/PyCQA/bandit
27
+ rev: 1.8.2
28
+ hooks:
29
+ - id: bandit
30
+ args: ["-c", "pyproject.toml"]
31
+ additional_dependencies: ["bandit[toml]"]
32
+
33
+ # 2. Поиск "забытых" секретов и паролей (усиленный)
34
+ - repo: https://github.com/Yelp/detect-secrets
35
+ rev: v1.5.0
36
+ hooks:
37
+ - id: detect-secrets
38
+ # Baseline will be added after manual creation
@@ -0,0 +1 @@
1
+ 3.12
@@ -0,0 +1,127 @@
1
+ {
2
+ "version": "1.5.0",
3
+ "plugins_used": [
4
+ {
5
+ "name": "ArtifactoryDetector"
6
+ },
7
+ {
8
+ "name": "AWSKeyDetector"
9
+ },
10
+ {
11
+ "name": "AzureStorageKeyDetector"
12
+ },
13
+ {
14
+ "name": "Base64HighEntropyString",
15
+ "limit": 4.5
16
+ },
17
+ {
18
+ "name": "BasicAuthDetector"
19
+ },
20
+ {
21
+ "name": "CloudantDetector"
22
+ },
23
+ {
24
+ "name": "DiscordBotTokenDetector"
25
+ },
26
+ {
27
+ "name": "GitHubTokenDetector"
28
+ },
29
+ {
30
+ "name": "GitLabTokenDetector"
31
+ },
32
+ {
33
+ "name": "HexHighEntropyString",
34
+ "limit": 3.0
35
+ },
36
+ {
37
+ "name": "IbmCloudIamDetector"
38
+ },
39
+ {
40
+ "name": "IbmCosHmacDetector"
41
+ },
42
+ {
43
+ "name": "IPPublicDetector"
44
+ },
45
+ {
46
+ "name": "JwtTokenDetector"
47
+ },
48
+ {
49
+ "name": "KeywordDetector",
50
+ "keyword_exclude": ""
51
+ },
52
+ {
53
+ "name": "MailchimpDetector"
54
+ },
55
+ {
56
+ "name": "NpmDetector"
57
+ },
58
+ {
59
+ "name": "OpenAIDetector"
60
+ },
61
+ {
62
+ "name": "PrivateKeyDetector"
63
+ },
64
+ {
65
+ "name": "PypiTokenDetector"
66
+ },
67
+ {
68
+ "name": "SendGridDetector"
69
+ },
70
+ {
71
+ "name": "SlackDetector"
72
+ },
73
+ {
74
+ "name": "SoftlayerDetector"
75
+ },
76
+ {
77
+ "name": "SquareOAuthDetector"
78
+ },
79
+ {
80
+ "name": "StripeDetector"
81
+ },
82
+ {
83
+ "name": "TelegramBotTokenDetector"
84
+ },
85
+ {
86
+ "name": "TwilioKeyDetector"
87
+ }
88
+ ],
89
+ "filters_used": [
90
+ {
91
+ "path": "detect_secrets.filters.allowlist.is_line_allowlisted"
92
+ },
93
+ {
94
+ "path": "detect_secrets.filters.common.is_ignored_due_to_verification_policies",
95
+ "min_level": 2
96
+ },
97
+ {
98
+ "path": "detect_secrets.filters.heuristic.is_indirect_reference"
99
+ },
100
+ {
101
+ "path": "detect_secrets.filters.heuristic.is_likely_id_string"
102
+ },
103
+ {
104
+ "path": "detect_secrets.filters.heuristic.is_lock_file"
105
+ },
106
+ {
107
+ "path": "detect_secrets.filters.heuristic.is_not_alphanumeric_string"
108
+ },
109
+ {
110
+ "path": "detect_secrets.filters.heuristic.is_potential_uuid"
111
+ },
112
+ {
113
+ "path": "detect_secrets.filters.heuristic.is_prefixed_with_dollar_sign"
114
+ },
115
+ {
116
+ "path": "detect_secrets.filters.heuristic.is_sequential_string"
117
+ },
118
+ {
119
+ "path": "detect_secrets.filters.heuristic.is_swagger_file"
120
+ },
121
+ {
122
+ "path": "detect_secrets.filters.heuristic.is_templated_secret"
123
+ }
124
+ ],
125
+ "results": {},
126
+ "generated_at": "2026-03-10T10:23:53Z"
127
+ }
@@ -1,29 +1,43 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ## [0.1.0] - 2025-03-09
9
-
10
- ### Added
11
- - **Initial Library Release**: Migration and adaptation of core infrastructure from production projects into a reusable feature-based framework.
12
- - **Feature-based Architecture**: Implementation of `BaseBotOrchestrator` and `Director` for stateless UI management.
13
- - **Redis Integration**: Stream processing, consumer groups support, and Redis-based dispatching.
14
- - **FSM Enhancements**: `GarbageStateRegistry` for automatic UI cleanup and advanced state management.
15
- - **Unified View System**: `ViewSender` and `UnifiedViewDTO` for consistent message rendering across different platforms.
16
- - **I18n Engine**: Custom Fluent-based locales compiler with isolation support.
17
- - **CLI Tools**: Scaffolding templates for rapid feature development.
18
- - **Multi-language Documentation**: Comprehensive guides and API references in English and Russian.
19
- - **DevOps Infrastructure**: Pre-commit hooks, Ruff/Mypy configurations, and GitHub Actions for docs.
20
- - **Final Polish**: Refined `Director` logic, `BotBuilder` factory, and `RouterBuilder` for better stability.
21
- - **Enhanced State Management**: Improved `StateManager` and `FSM` handlers for more robust session control.
22
- - **Redis Dispatcher Optimization**: Fine-tuned stream processing and error handling in `RedisDispatcher`.
23
- - **Test Coverage**: Added comprehensive unit tests for all core modules.
24
-
25
- ### Changed
26
- - Refactored production code into a modular library structure.
27
- - Standardized DTOs and protocols for better extensibility.
28
- - Optimized Redis Stream processing for high-load scenarios.
29
- - Improved type safety across the entire codebase (Mypy strict mode).
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [0.2.1] - 2026-04-18
9
+
10
+ ### Fixed
11
+
12
+ - **API Restoration**: Restored `FeatureDiscoveryService.discover_models()` to fix broken Alembic model registration in generated projects.
13
+ - **Bridge Methods**: Restored `UnifiedViewDTO.send()` as a compatibility bridge for existing feature handlers.
14
+ - **Template Bugfixes**: Fixed boolean literal generation in `config.py.j2` by removing the invalid `| lower` filter (resolving `True`/`False` token errors).
15
+ - **Mypy Hardening**: Added `codex_platform.*` overrides to project templates to ensure new projects pass type-checking out of the box.
16
+ - **Security Patches**: Updated `aiohttp` (3.13.4), `pygments` (2.20.0), and `pytest` (9.0.3) to resolve 12 identified vulnerabilities.
17
+ - **Import Resilience**: Implemented robust `TYPE_CHECKING` patterns for optional dependencies (`codex-platform`) to prevent linting paradoxes.
18
+
19
+ ## [0.1.1] - 2025-03-09
20
+
21
+ ### Added
22
+ - **CI/CD Automation**: Integrated GitHub Actions for automated publishing to PyPI using Trusted Publishers (OIDC).
23
+ - **Project Metadata**: Added comprehensive project URLs (Documentation, Repository, Issues, Changelog) to `pyproject.toml` for better PyPI presentation.
24
+
25
+ ### Fixed
26
+ - **Documentation Links**: Corrected broken documentation links in `README.md` to point to the actual GitHub Pages site.
27
+
28
+ ## [0.1.0] - 2025-03-09
29
+
30
+ ### Added
31
+ - **Initial Library Release**: Migration and adaptation of core infrastructure from production projects into a reusable feature-based framework.
32
+ - **Feature-based Architecture**: Implementation of `BaseBotOrchestrator` and `Director` for stateless UI management.
33
+ - **Redis Integration**: Stream processing, consumer groups support, and Redis-based dispatching.
34
+ - **FSM Enhancements**: `GarbageStateRegistry` for automatic UI cleanup and advanced state management.
35
+ - **Unified View System**: `ViewSender` and `UnifiedViewDTO` for consistent message rendering across different platforms.
36
+ - **I18n Engine**: Custom Fluent-based locales compiler with isolation support.
37
+ - **CLI Tools**: Scaffolding templates for rapid feature development.
38
+ - **Multi-language Documentation**: Comprehensive guides and API references in English and Russian.
39
+ - **DevOps Infrastructure**: Pre-commit hooks, Ruff/Mypy configurations, and GitHub Actions for docs.
40
+ - **Final Polish**: Refined `Director` logic, `BotBuilder` factory, and `RouterBuilder` for better stability.
41
+ - **Enhanced State Management**: Improved `StateManager` and `FSM` handlers for more robust session control.
42
+ - **Redis Dispatcher Optimization**: Fine-tuned stream processing and error handling in `RedisDispatcher`.
43
+ - **Test Coverage**: Added comprehensive unit tests for all core modules.
@@ -0,0 +1,161 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+ "License" shall mean the terms and conditions for use, reproduction,
9
+ and distribution as defined by Sections 1 through 9 of this document.
10
+ "Licensor" shall mean the copyright owner or entity authorized by
11
+ the copyright owner that is granting the License.
12
+ "Legal Entity" shall mean the union of the acting entity and all
13
+ other entities that control, are controlled by, or are under common
14
+ control with that entity. For the purposes of this definition,
15
+ "control" means (i) the power, direct or indirect, to cause the
16
+ direction or management of such entity, whether by contract or
17
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
18
+ outstanding shares, or (iii) beneficial ownership of such entity.
19
+ "You" (or "Your") shall mean an individual or Legal Entity
20
+ exercising permissions granted by this License.
21
+ "Source" form shall mean the preferred form for making modifications,
22
+ including but not limited to software source code, documentation
23
+ source, and configuration files.
24
+ "Object" form shall mean any form resulting from mechanical
25
+ transformation or translation of a Source form, including but
26
+ not limited to compiled object code, generated documentation,
27
+ and conversions to other media types.
28
+ "Work" shall mean the work of authorship, whether in Source or
29
+ Object form, made available under the License, as indicated by a
30
+ copyright notice that is included in or attached to the work
31
+ (an example is provided in the Appendix below).
32
+ "Derivative Works" shall mean any work, whether in Source or Object
33
+ form, that is based on (or derived from) the Work and for which the
34
+ editorial revisions, annotations, elaborations, or other modifications
35
+ represent, as a whole, an original work of authorship. For the purposes
36
+ of this License, Derivative Works shall not include works that remain
37
+ separable from, or merely link (or bind by name) to the interfaces of,
38
+ the Work and Derivative Works thereof.
39
+ "Contribution" shall mean any work of authorship, including
40
+ the original version of the Work and any modifications or additions
41
+ to that Work or Derivative Works thereof, that is intentionally
42
+ submitted to Licensor for inclusion in the Work by the copyright owner
43
+ or by an individual or Legal Entity authorized to submit on behalf of
44
+ the copyright owner. For the purposes of this definition, "submitted"
45
+ means any form of electronic, verbal, or written communication sent
46
+ to the Licensor or its representatives, including but not limited to
47
+ communication on electronic mailing lists, source code control systems,
48
+ and issue tracking systems that are managed by, or on behalf of, the
49
+ Licensor for the purpose of discussing and improving the Work, but
50
+ excluding communication that is conspicuously marked or otherwise
51
+ designated in writing by the copyright owner as "Not a Contribution."
52
+ "Contributor" shall mean Licensor and any individual or Legal Entity
53
+ on behalf of whom a Contribution has been received by Licensor and
54
+ subsequently incorporated within the Work.
55
+
56
+ 2. Grant of Copyright License. Subject to the terms and conditions of
57
+ this License, each Contributor hereby grants to You a perpetual,
58
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
59
+ copyright license to reproduce, prepare Derivative Works of,
60
+ publicly display, publicly perform, sublicense, and distribute the
61
+ Work and such Derivative Works in Source or Object form.
62
+
63
+ 3. Grant of Patent License. Subject to the terms and conditions of
64
+ this License, each Contributor hereby grants to You a perpetual,
65
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
66
+ (except as stated in this section) patent license to make, have made,
67
+ use, offer to sell, sell, import, and otherwise transfer the Work,
68
+ where such license applies only to those patent claims licensable
69
+ by such Contributor that are necessarily infringed by their
70
+ Contribution(s) alone or by combination of their Contribution(s)
71
+ with the Work to which such Contribution(s) was submitted. If You
72
+ institute patent litigation against any entity (including a
73
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
74
+ or a Contribution incorporated within the Work constitutes direct
75
+ or contributory patent infringement, then any patent licenses
76
+ granted to You under this License for that Work shall terminate
77
+ as of the date such litigation is filed.
78
+
79
+ 4. Redistribution. You may reproduce and distribute copies of the
80
+ Work or Derivative Works thereof in any medium, with or without
81
+ modifications, and in Source or Object form, provided that You
82
+ meet the following conditions:
83
+ (a) You must give any other recipients of the Work or
84
+ Derivative Works a copy of this License; and
85
+ (b) You must cause any modified files to carry prominent notices
86
+ stating that You changed the files; and
87
+ (c) You must retain, in the Source form of any Derivative Works
88
+ that You distribute, all copyright, patent, trademark, and
89
+ attribution notices from the Source form of the Work,
90
+ excluding those notices that do not pertain to any part of
91
+ the Derivative Works; and
92
+ (d) If the Work includes a "NOTICE" text file as part of its
93
+ distribution, then any Derivative Works that You distribute must
94
+ include a readable copy of the attribution notices contained
95
+ within such NOTICE file, excluding those notices that do not
96
+ pertain to any part of the Derivative Works, in at least one
97
+ of the following places: within a NOTICE text file distributed
98
+ as part of the Derivative Works; within the Source form or
99
+ documentation, if provided along with the Derivative Works; or,
100
+ within a display generated by the Derivative Works, if and
101
+ wherever such third-party notices normally appear. The contents
102
+ of the NOTICE file are for informational purposes only and
103
+ do not modify the License. You may add Your own attribution
104
+ notices within Derivative Works that You distribute, alongside
105
+ or as an addendum to the NOTICE text from the Work, provided
106
+ that such additional attribution notices cannot be construed
107
+ as modifying the License.
108
+ You may add Your own copyright statement to Your modifications and
109
+ may provide additional or different license terms and conditions
110
+ for use, reproduction, or distribution of Your modifications, or
111
+ for any such Derivative Works as a whole, provided Your use,
112
+ reproduction, and distribution of the Work otherwise complies with
113
+ the conditions stated in this License.
114
+
115
+ 5. Submission of Contributions. Unless You explicitly shall state
116
+ otherwise, any Contribution intentionally submitted for inclusion in the
117
+ Work by You to the Licensor shall be under the terms and conditions of
118
+ this License, without any additional terms or conditions.
119
+ Notwithstanding the above, nothing herein shall supersede or modify
120
+ the terms of any separate license agreement you may have executed
121
+ with Licensor regarding such Contributions.
122
+
123
+ 6. Trademarks. This License does not grant permission to use the trade
124
+ names, trademarks, service marks, or product names of the Licensor,
125
+ except as required for reasonable and customary use in describing the
126
+ origin of the Work and reproducing the content of the NOTICE file.
127
+
128
+ 7. Disclaimer of Warranty. Unless required by applicable law or
129
+ agreed to in writing, Licensor provides the Work (and each
130
+ Contributor provides its Contributions) on an "AS IS" BASIS,
131
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
132
+ implied, including, without limitation, any warranties or conditions
133
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
134
+ PARTICULAR PURPOSE. You are solely responsible for determining the
135
+ appropriateness of using or redistributing the Work and assume any
136
+ risks associated with Your exercise of permissions under this License.
137
+
138
+ 8. Limitation of Liability. In no event and under no legal theory,
139
+ whether in tort (including negligence), contract, or otherwise,
140
+ unless required by applicable law (such as deliberate and grossly
141
+ negligent acts) or agreed to in writing, shall any Contributor be
142
+ liable to You for damages, including any direct, indirect, special,
143
+ incidental, or consequential damages of any character arising as a
144
+ result of this License or out of the use or inability to use the
145
+ Work (including but not limited to damages for loss of goodwill,
146
+ work stoppage, computer failure or malfunction, or any and all
147
+ other commercial damages or losses), even if such Contributor
148
+ has been advised of the possibility of such damages.
149
+
150
+ 9. Accepting Warranty or Additional Liability. While redistributing
151
+ the Work or Derivative Works thereof, You may choose to offer,
152
+ and charge a fee for, acceptance of support, warranty, indemnity,
153
+ or other liability obligations and/or rights consistent with this
154
+ License. However, in accepting such obligations, You may act only
155
+ on Your own behalf and on Your sole responsibility, not on behalf
156
+ of any other Contributor, and only if You agree to indemnify,
157
+ defend, and hold each Contributor harmless for any liability
158
+ incurred by, or claims asserted against, such Contributor by reason
159
+ of your accepting any such warranty or additional liability.
160
+
161
+ END OF TERMS AND CONDITIONS
codex_bot-0.2.1/NOTICE ADDED
@@ -0,0 +1,7 @@
1
+ Codex Bot Framework
2
+ Copyright 2024-2026 CodexDLC
3
+
4
+ This product includes software developed by CodexDLC
5
+ (https://github.com/codexdlc/codex-bot).
6
+
7
+ Built on top of the aiogram library.