tg-webui 0.0.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 (301) hide show
  1. tg_webui-0.0.1/.gitignore +7 -0
  2. tg_webui-0.0.1/CHANGELOG.md +29 -0
  3. tg_webui-0.0.1/LICENSE +21 -0
  4. tg_webui-0.0.1/PKG-INFO +52 -0
  5. tg_webui-0.0.1/README.md +23 -0
  6. tg_webui-0.0.1/conftest.py +10 -0
  7. tg_webui-0.0.1/core_conftest.py +629 -0
  8. tg_webui-0.0.1/docs/reference/parity.md +356 -0
  9. tg_webui-0.0.1/examples/plugin_digest/pyproject.toml +16 -0
  10. tg_webui-0.0.1/examples/plugin_digest/tg_plugin_digest/__init__.py +32 -0
  11. tg_webui-0.0.1/pyproject.toml +82 -0
  12. tg_webui-0.0.1/setup.cfg +4 -0
  13. tg_webui-0.0.1/src/tg_webui/__init__.py +1 -0
  14. tg_webui-0.0.1/src/tg_webui/agent/__init__.py +0 -0
  15. tg_webui-0.0.1/src/tg_webui/agent/forms.py +18 -0
  16. tg_webui-0.0.1/src/tg_webui/agent/handlers.py +506 -0
  17. tg_webui-0.0.1/src/tg_webui/agent/responses.py +51 -0
  18. tg_webui-0.0.1/src/tg_webui/app.py +542 -0
  19. tg_webui-0.0.1/src/tg_webui/assembly.py +206 -0
  20. tg_webui-0.0.1/src/tg_webui/bootstrap.py +41 -0
  21. tg_webui-0.0.1/src/tg_webui/channels/__init__.py +0 -0
  22. tg_webui-0.0.1/src/tg_webui/channels/forms.py +17 -0
  23. tg_webui-0.0.1/src/tg_webui/channels/handlers.py +166 -0
  24. tg_webui-0.0.1/src/tg_webui/channels/responses.py +45 -0
  25. tg_webui-0.0.1/src/tg_webui/container.py +29 -0
  26. tg_webui-0.0.1/src/tg_webui/csrf.py +134 -0
  27. tg_webui-0.0.1/src/tg_webui/deps.py +393 -0
  28. tg_webui-0.0.1/src/tg_webui/dialogs/__init__.py +1 -0
  29. tg_webui-0.0.1/src/tg_webui/dialogs/forms.py +221 -0
  30. tg_webui-0.0.1/src/tg_webui/dialogs/handlers.py +555 -0
  31. tg_webui-0.0.1/src/tg_webui/dialogs/responses.py +70 -0
  32. tg_webui-0.0.1/src/tg_webui/embedded_worker.py +209 -0
  33. tg_webui-0.0.1/src/tg_webui/filter/__init__.py +0 -0
  34. tg_webui-0.0.1/src/tg_webui/filter/forms.py +81 -0
  35. tg_webui-0.0.1/src/tg_webui/filter/handlers.py +270 -0
  36. tg_webui-0.0.1/src/tg_webui/filter/responses.py +48 -0
  37. tg_webui-0.0.1/src/tg_webui/images/__init__.py +0 -0
  38. tg_webui-0.0.1/src/tg_webui/images/forms.py +36 -0
  39. tg_webui-0.0.1/src/tg_webui/images/handlers.py +110 -0
  40. tg_webui-0.0.1/src/tg_webui/images/responses.py +34 -0
  41. tg_webui-0.0.1/src/tg_webui/panel_auth.py +93 -0
  42. tg_webui-0.0.1/src/tg_webui/paths.py +7 -0
  43. tg_webui-0.0.1/src/tg_webui/photo_loader/__init__.py +2 -0
  44. tg_webui-0.0.1/src/tg_webui/photo_loader/forms.py +136 -0
  45. tg_webui-0.0.1/src/tg_webui/photo_loader/handlers.py +509 -0
  46. tg_webui-0.0.1/src/tg_webui/photo_loader/responses.py +42 -0
  47. tg_webui-0.0.1/src/tg_webui/pipelines/__init__.py +0 -0
  48. tg_webui-0.0.1/src/tg_webui/pipelines/forms.py +206 -0
  49. tg_webui-0.0.1/src/tg_webui/pipelines/handlers.py +1051 -0
  50. tg_webui-0.0.1/src/tg_webui/pipelines/responses.py +85 -0
  51. tg_webui-0.0.1/src/tg_webui/py.typed +0 -0
  52. tg_webui-0.0.1/src/tg_webui/query_params.py +27 -0
  53. tg_webui-0.0.1/src/tg_webui/redirects.py +18 -0
  54. tg_webui-0.0.1/src/tg_webui/responses.py +71 -0
  55. tg_webui-0.0.1/src/tg_webui/routes/__init__.py +0 -0
  56. tg_webui-0.0.1/src/tg_webui/routes/accounts.py +221 -0
  57. tg_webui-0.0.1/src/tg_webui/routes/agent.py +105 -0
  58. tg_webui-0.0.1/src/tg_webui/routes/analytics.py +585 -0
  59. tg_webui-0.0.1/src/tg_webui/routes/auth.py +391 -0
  60. tg_webui-0.0.1/src/tg_webui/routes/calendar.py +155 -0
  61. tg_webui-0.0.1/src/tg_webui/routes/channel_collection.py +198 -0
  62. tg_webui-0.0.1/src/tg_webui/routes/channel_renames.py +194 -0
  63. tg_webui-0.0.1/src/tg_webui/routes/channels.py +100 -0
  64. tg_webui-0.0.1/src/tg_webui/routes/dashboard.py +106 -0
  65. tg_webui-0.0.1/src/tg_webui/routes/debug.py +157 -0
  66. tg_webui-0.0.1/src/tg_webui/routes/dialogs.py +234 -0
  67. tg_webui-0.0.1/src/tg_webui/routes/dms.py +139 -0
  68. tg_webui-0.0.1/src/tg_webui/routes/export.py +87 -0
  69. tg_webui-0.0.1/src/tg_webui/routes/filter.py +86 -0
  70. tg_webui-0.0.1/src/tg_webui/routes/images.py +49 -0
  71. tg_webui-0.0.1/src/tg_webui/routes/import_channels.py +87 -0
  72. tg_webui-0.0.1/src/tg_webui/routes/jobs.py +257 -0
  73. tg_webui-0.0.1/src/tg_webui/routes/moderation.py +177 -0
  74. tg_webui-0.0.1/src/tg_webui/routes/photo_loader.py +217 -0
  75. tg_webui-0.0.1/src/tg_webui/routes/pipelines.py +374 -0
  76. tg_webui-0.0.1/src/tg_webui/routes/plugin_tools.py +18 -0
  77. tg_webui-0.0.1/src/tg_webui/routes/rss.py +144 -0
  78. tg_webui-0.0.1/src/tg_webui/routes/scheduler.py +167 -0
  79. tg_webui-0.0.1/src/tg_webui/routes/search.py +115 -0
  80. tg_webui-0.0.1/src/tg_webui/routes/search_queries.py +91 -0
  81. tg_webui-0.0.1/src/tg_webui/routes/settings.py +291 -0
  82. tg_webui-0.0.1/src/tg_webui/routes/telegram_commands.py +48 -0
  83. tg_webui-0.0.1/src/tg_webui/scheduler/__init__.py +1 -0
  84. tg_webui-0.0.1/src/tg_webui/scheduler/commands.py +30 -0
  85. tg_webui-0.0.1/src/tg_webui/scheduler/context.py +636 -0
  86. tg_webui-0.0.1/src/tg_webui/scheduler/forms.py +52 -0
  87. tg_webui-0.0.1/src/tg_webui/scheduler/handlers.py +301 -0
  88. tg_webui-0.0.1/src/tg_webui/scheduler/responses.py +87 -0
  89. tg_webui-0.0.1/src/tg_webui/schemas/__init__.py +30 -0
  90. tg_webui-0.0.1/src/tg_webui/schemas/accounts.py +36 -0
  91. tg_webui-0.0.1/src/tg_webui/schemas/agent.py +26 -0
  92. tg_webui-0.0.1/src/tg_webui/schemas/analytics.py +155 -0
  93. tg_webui-0.0.1/src/tg_webui/schemas/calendar.py +32 -0
  94. tg_webui-0.0.1/src/tg_webui/schemas/common.py +31 -0
  95. tg_webui-0.0.1/src/tg_webui/schemas/dialogs.py +71 -0
  96. tg_webui-0.0.1/src/tg_webui/schemas/pipelines.py +110 -0
  97. tg_webui-0.0.1/src/tg_webui/search/__init__.py +1 -0
  98. tg_webui-0.0.1/src/tg_webui/search/forms.py +31 -0
  99. tg_webui-0.0.1/src/tg_webui/search/handlers.py +522 -0
  100. tg_webui-0.0.1/src/tg_webui/search/responses.py +42 -0
  101. tg_webui-0.0.1/src/tg_webui/search_queries/__init__.py +0 -0
  102. tg_webui-0.0.1/src/tg_webui/search_queries/forms.py +48 -0
  103. tg_webui-0.0.1/src/tg_webui/search_queries/handlers.py +92 -0
  104. tg_webui-0.0.1/src/tg_webui/search_queries/responses.py +37 -0
  105. tg_webui-0.0.1/src/tg_webui/session.py +60 -0
  106. tg_webui-0.0.1/src/tg_webui/settings/__init__.py +2 -0
  107. tg_webui-0.0.1/src/tg_webui/settings/forms.py +251 -0
  108. tg_webui-0.0.1/src/tg_webui/settings/handlers.py +1322 -0
  109. tg_webui-0.0.1/src/tg_webui/settings/responses.py +58 -0
  110. tg_webui-0.0.1/src/tg_webui/snapshot_refresher.py +82 -0
  111. tg_webui-0.0.1/src/tg_webui/static/_busy_button.js +26 -0
  112. tg_webui-0.0.1/src/tg_webui/static/_theme_init.js +1 -0
  113. tg_webui-0.0.1/src/tg_webui/static/js/app.js +393 -0
  114. tg_webui-0.0.1/src/tg_webui/static/js/nav-progress.js +101 -0
  115. tg_webui-0.0.1/src/tg_webui/static/js/searchable-picker.js +275 -0
  116. tg_webui-0.0.1/src/tg_webui/static/settings.js +491 -0
  117. tg_webui-0.0.1/src/tg_webui/static/style.css +592 -0
  118. tg_webui-0.0.1/src/tg_webui/template_globals.py +321 -0
  119. tg_webui-0.0.1/src/tg_webui/templates/_debug_errors.html +34 -0
  120. tg_webui-0.0.1/src/tg_webui/templates/_debug_logs.html +10 -0
  121. tg_webui-0.0.1/src/tg_webui/templates/_dry_run_results.html +52 -0
  122. tg_webui-0.0.1/src/tg_webui/templates/_macros.html +100 -0
  123. tg_webui-0.0.1/src/tg_webui/templates/_macros_ui.html +86 -0
  124. tg_webui-0.0.1/src/tg_webui/templates/_timing_rows.html +13 -0
  125. tg_webui-0.0.1/src/tg_webui/templates/agent/_threads.html +120 -0
  126. tg_webui-0.0.1/src/tg_webui/templates/agent.html +1358 -0
  127. tg_webui-0.0.1/src/tg_webui/templates/analytics/_channel_selector.html +8 -0
  128. tg_webui-0.0.1/src/tg_webui/templates/analytics/_content_pipelines.html +43 -0
  129. tg_webui-0.0.1/src/tg_webui/templates/analytics/_content_summary.html +32 -0
  130. tg_webui-0.0.1/src/tg_webui/templates/analytics/_engagement.html +19 -0
  131. tg_webui-0.0.1/src/tg_webui/templates/analytics/_hourly.html +19 -0
  132. tg_webui-0.0.1/src/tg_webui/templates/analytics/_rating_verdict.html +28 -0
  133. tg_webui-0.0.1/src/tg_webui/templates/analytics/_top_messages.html +62 -0
  134. tg_webui-0.0.1/src/tg_webui/templates/analytics/_trends_channels.html +25 -0
  135. tg_webui-0.0.1/src/tg_webui/templates/analytics/_trends_emojis.html +12 -0
  136. tg_webui-0.0.1/src/tg_webui/templates/analytics/_trends_topics.html +16 -0
  137. tg_webui-0.0.1/src/tg_webui/templates/analytics/channel_ratings.html +90 -0
  138. tg_webui-0.0.1/src/tg_webui/templates/analytics/channels.html +422 -0
  139. tg_webui-0.0.1/src/tg_webui/templates/analytics/content.html +36 -0
  140. tg_webui-0.0.1/src/tg_webui/templates/analytics/trends.html +49 -0
  141. tg_webui-0.0.1/src/tg_webui/templates/analytics.html +63 -0
  142. tg_webui-0.0.1/src/tg_webui/templates/base.html +104 -0
  143. tg_webui-0.0.1/src/tg_webui/templates/calendar/_grid.html +64 -0
  144. tg_webui-0.0.1/src/tg_webui/templates/calendar/_stats.html +18 -0
  145. tg_webui-0.0.1/src/tg_webui/templates/calendar/_upcoming.html +33 -0
  146. tg_webui-0.0.1/src/tg_webui/templates/calendar.html +57 -0
  147. tg_webui-0.0.1/src/tg_webui/templates/channel_renames.html +61 -0
  148. tg_webui-0.0.1/src/tg_webui/templates/channel_review.html +56 -0
  149. tg_webui-0.0.1/src/tg_webui/templates/channels/_list.html +120 -0
  150. tg_webui-0.0.1/src/tg_webui/templates/channels.html +152 -0
  151. tg_webui-0.0.1/src/tg_webui/templates/dashboard/_overview.html +71 -0
  152. tg_webui-0.0.1/src/tg_webui/templates/dashboard.html +11 -0
  153. tg_webui-0.0.1/src/tg_webui/templates/debug.html +34 -0
  154. tg_webui-0.0.1/src/tg_webui/templates/debug_timing.html +30 -0
  155. tg_webui-0.0.1/src/tg_webui/templates/dialogs/_history.html +205 -0
  156. tg_webui-0.0.1/src/tg_webui/templates/dialogs/_list.html +176 -0
  157. tg_webui-0.0.1/src/tg_webui/templates/dialogs.html +122 -0
  158. tg_webui-0.0.1/src/tg_webui/templates/dialogs_create_channel.html +57 -0
  159. tg_webui-0.0.1/src/tg_webui/templates/dms.html +106 -0
  160. tg_webui-0.0.1/src/tg_webui/templates/error.html +20 -0
  161. tg_webui-0.0.1/src/tg_webui/templates/filter_manage.html +13 -0
  162. tg_webui-0.0.1/src/tg_webui/templates/filter_manage_content.html +245 -0
  163. tg_webui-0.0.1/src/tg_webui/templates/images.html +210 -0
  164. tg_webui-0.0.1/src/tg_webui/templates/import_channels.html +72 -0
  165. tg_webui-0.0.1/src/tg_webui/templates/jobs.html +23 -0
  166. tg_webui-0.0.1/src/tg_webui/templates/jobs_table.html +216 -0
  167. tg_webui-0.0.1/src/tg_webui/templates/login.html +195 -0
  168. tg_webui-0.0.1/src/tg_webui/templates/moderation/view.html +123 -0
  169. tg_webui-0.0.1/src/tg_webui/templates/moderation.html +15 -0
  170. tg_webui-0.0.1/src/tg_webui/templates/moderation_content.html +111 -0
  171. tg_webui-0.0.1/src/tg_webui/templates/photo_loader.html +13 -0
  172. tg_webui-0.0.1/src/tg_webui/templates/photo_loader_batch_row.html +29 -0
  173. tg_webui-0.0.1/src/tg_webui/templates/photo_loader_content.html +597 -0
  174. tg_webui-0.0.1/src/tg_webui/templates/pipelines/create.html +892 -0
  175. tg_webui-0.0.1/src/tg_webui/templates/pipelines/edit.html +292 -0
  176. tg_webui-0.0.1/src/tg_webui/templates/pipelines/generate.html +124 -0
  177. tg_webui-0.0.1/src/tg_webui/templates/pipelines/templates.html +187 -0
  178. tg_webui-0.0.1/src/tg_webui/templates/pipelines.html +13 -0
  179. tg_webui-0.0.1/src/tg_webui/templates/pipelines_content.html +316 -0
  180. tg_webui-0.0.1/src/tg_webui/templates/qr_login.html +104 -0
  181. tg_webui-0.0.1/src/tg_webui/templates/scheduler/_health.html +93 -0
  182. tg_webui-0.0.1/src/tg_webui/templates/scheduler/_jobs.html +114 -0
  183. tg_webui-0.0.1/src/tg_webui/templates/scheduler.html +90 -0
  184. tg_webui-0.0.1/src/tg_webui/templates/search.html +181 -0
  185. tg_webui-0.0.1/src/tg_webui/templates/search_queries.html +269 -0
  186. tg_webui-0.0.1/src/tg_webui/templates/search_results.html +121 -0
  187. tg_webui-0.0.1/src/tg_webui/templates/settings/_accounts.html +153 -0
  188. tg_webui-0.0.1/src/tg_webui/templates/settings/_credentials.html +41 -0
  189. tg_webui-0.0.1/src/tg_webui/templates/settings/_devmode.html +269 -0
  190. tg_webui-0.0.1/src/tg_webui/templates/settings/_filters.html +36 -0
  191. tg_webui-0.0.1/src/tg_webui/templates/settings/_image_providers.html +230 -0
  192. tg_webui-0.0.1/src/tg_webui/templates/settings/_notifications.html +52 -0
  193. tg_webui-0.0.1/src/tg_webui/templates/settings/_plugins.html +18 -0
  194. tg_webui-0.0.1/src/tg_webui/templates/settings/_scheduler.html +17 -0
  195. tg_webui-0.0.1/src/tg_webui/templates/settings/_semantic.html +96 -0
  196. tg_webui-0.0.1/src/tg_webui/templates/settings/_tool_permissions.html +208 -0
  197. tg_webui-0.0.1/src/tg_webui/templates/settings/_translation.html +79 -0
  198. tg_webui-0.0.1/src/tg_webui/templates/settings.html +83 -0
  199. tg_webui-0.0.1/src/tg_webui/templates/web_login.html +39 -0
  200. tg_webui-0.0.1/src/tg_webui.egg-info/PKG-INFO +52 -0
  201. tg_webui-0.0.1/src/tg_webui.egg-info/SOURCES.txt +299 -0
  202. tg_webui-0.0.1/src/tg_webui.egg-info/dependency_links.txt +1 -0
  203. tg_webui-0.0.1/src/tg_webui.egg-info/requires.txt +7 -0
  204. tg_webui-0.0.1/src/tg_webui.egg-info/top_level.txt +1 -0
  205. tg_webui-0.0.1/tests/conftest.py +99 -0
  206. tg_webui-0.0.1/tests/content_cycle_helpers.py +159 -0
  207. tg_webui-0.0.1/tests/e2e/README.md +124 -0
  208. tg_webui-0.0.1/tests/e2e/__init__.py +0 -0
  209. tg_webui-0.0.1/tests/e2e/console_smoke.py +382 -0
  210. tg_webui-0.0.1/tests/e2e/htmx_functional.py +495 -0
  211. tg_webui-0.0.1/tests/e2e/test_collection_flow.py +264 -0
  212. tg_webui-0.0.1/tests/e2e/test_console_smoke.py +96 -0
  213. tg_webui-0.0.1/tests/e2e/test_console_smoke_parsing.py +354 -0
  214. tg_webui-0.0.1/tests/e2e/test_htmx_functional.py +122 -0
  215. tg_webui-0.0.1/tests/e2e/test_htmx_functional_parsing.py +96 -0
  216. tg_webui-0.0.1/tests/helpers.py +1042 -0
  217. tg_webui-0.0.1/tests/live_readiness.py +88 -0
  218. tg_webui-0.0.1/tests/package_hider.py +28 -0
  219. tg_webui-0.0.1/tests/routes/__init__.py +1 -0
  220. tg_webui-0.0.1/tests/routes/conftest.py +272 -0
  221. tg_webui-0.0.1/tests/routes/test_accounts_agent_web_mode.py +264 -0
  222. tg_webui-0.0.1/tests/routes/test_accounts_routes.py +383 -0
  223. tg_webui-0.0.1/tests/routes/test_agent_channels_routes_regression.py +189 -0
  224. tg_webui-0.0.1/tests/routes/test_agent_lazyload.py +204 -0
  225. tg_webui-0.0.1/tests/routes/test_agent_routes.py +369 -0
  226. tg_webui-0.0.1/tests/routes/test_agent_routes_streaming.py +589 -0
  227. tg_webui-0.0.1/tests/routes/test_agent_routes_threads.py +586 -0
  228. tg_webui-0.0.1/tests/routes/test_analytics_routes.py +458 -0
  229. tg_webui-0.0.1/tests/routes/test_analytics_routes_channel_trends.py +366 -0
  230. tg_webui-0.0.1/tests/routes/test_analytics_routes_rate.py +112 -0
  231. tg_webui-0.0.1/tests/routes/test_auth_routes.py +813 -0
  232. tg_webui-0.0.1/tests/routes/test_calendar_routes.py +152 -0
  233. tg_webui-0.0.1/tests/routes/test_channel_collection_routes.py +117 -0
  234. tg_webui-0.0.1/tests/routes/test_channels_routes.py +378 -0
  235. tg_webui-0.0.1/tests/routes/test_dashboard_routes.py +265 -0
  236. tg_webui-0.0.1/tests/routes/test_debug_routes.py +391 -0
  237. tg_webui-0.0.1/tests/routes/test_dialogs_routes.py +1608 -0
  238. tg_webui-0.0.1/tests/routes/test_dialogs_routes_actions.py +462 -0
  239. tg_webui-0.0.1/tests/routes/test_export_routes.py +64 -0
  240. tg_webui-0.0.1/tests/routes/test_export_session_1145.py +241 -0
  241. tg_webui-0.0.1/tests/routes/test_filter_routes.py +901 -0
  242. tg_webui-0.0.1/tests/routes/test_images_routes.py +278 -0
  243. tg_webui-0.0.1/tests/routes/test_import_channels_routes.py +426 -0
  244. tg_webui-0.0.1/tests/routes/test_import_session_form_1146.py +172 -0
  245. tg_webui-0.0.1/tests/routes/test_jobs_routes.py +553 -0
  246. tg_webui-0.0.1/tests/routes/test_moderation_routes.py +347 -0
  247. tg_webui-0.0.1/tests/routes/test_nav_progress.py +15 -0
  248. tg_webui-0.0.1/tests/routes/test_openapi_rest_schemas.py +124 -0
  249. tg_webui-0.0.1/tests/routes/test_photo_loader_routes.py +442 -0
  250. tg_webui-0.0.1/tests/routes/test_pipeline_run_cross_layer.py +207 -0
  251. tg_webui-0.0.1/tests/routes/test_pipelines_routes.py +972 -0
  252. tg_webui-0.0.1/tests/routes/test_pipelines_routes_dag_and_templates.py +1540 -0
  253. tg_webui-0.0.1/tests/routes/test_plugin_tools.py +186 -0
  254. tg_webui-0.0.1/tests/routes/test_rss_routes.py +154 -0
  255. tg_webui-0.0.1/tests/routes/test_scheduler_routes.py +647 -0
  256. tg_webui-0.0.1/tests/routes/test_scheduler_routes_edge_cases.py +1078 -0
  257. tg_webui-0.0.1/tests/routes/test_search_queries_routes.py +234 -0
  258. tg_webui-0.0.1/tests/routes/test_search_routes.py +826 -0
  259. tg_webui-0.0.1/tests/routes/test_settings_routes.py +858 -0
  260. tg_webui-0.0.1/tests/routes/test_settings_routes_provider_notifications.py +1247 -0
  261. tg_webui-0.0.1/tests/routes/test_telegram_commands_routes.py +52 -0
  262. tg_webui-0.0.1/tests/test_bootstrap.py +59 -0
  263. tg_webui-0.0.1/tests/test_channel_renames_routes.py +331 -0
  264. tg_webui-0.0.1/tests/test_channel_stats.py +117 -0
  265. tg_webui-0.0.1/tests/test_cli_agent_parity.py +95 -0
  266. tg_webui-0.0.1/tests/test_cli_channel_pipeline_route_paths.py +493 -0
  267. tg_webui-0.0.1/tests/test_cli_image_scheduler_web_routes.py +399 -0
  268. tg_webui-0.0.1/tests/test_content_cycle_e2e.py +191 -0
  269. tg_webui-0.0.1/tests/test_csrf.py +396 -0
  270. tg_webui-0.0.1/tests/test_dialogs.py +292 -0
  271. tg_webui-0.0.1/tests/test_dialogs_cli_and_web_actions.py +638 -0
  272. tg_webui-0.0.1/tests/test_dm_web_rest.py +149 -0
  273. tg_webui-0.0.1/tests/test_filter_flash_messages.py +69 -0
  274. tg_webui-0.0.1/tests/test_import_web.py +165 -0
  275. tg_webui-0.0.1/tests/test_integration.py +853 -0
  276. tg_webui-0.0.1/tests/test_integration_generation.py +180 -0
  277. tg_webui-0.0.1/tests/test_packaging.py +44 -0
  278. tg_webui-0.0.1/tests/test_panel_auth.py +111 -0
  279. tg_webui-0.0.1/tests/test_photo_loader.py +1185 -0
  280. tg_webui-0.0.1/tests/test_pipeline_dry_run_limit.py +46 -0
  281. tg_webui-0.0.1/tests/test_pipelines.py +49 -0
  282. tg_webui-0.0.1/tests/test_plugins.py +318 -0
  283. tg_webui-0.0.1/tests/test_publish_service.py +1431 -0
  284. tg_webui-0.0.1/tests/test_regression_infra_coverage.py +235 -0
  285. tg_webui-0.0.1/tests/test_runtime_worker.py +180 -0
  286. tg_webui-0.0.1/tests/test_scheduler_forms.py +40 -0
  287. tg_webui-0.0.1/tests/test_search.py +29 -0
  288. tg_webui-0.0.1/tests/test_session_tokens.py +91 -0
  289. tg_webui-0.0.1/tests/test_settings_scheduler_pipeline_search_paths.py +292 -0
  290. tg_webui-0.0.1/tests/test_smoke_preflight.py +43 -0
  291. tg_webui-0.0.1/tests/test_template_globals.py +139 -0
  292. tg_webui-0.0.1/tests/test_web.py +4200 -0
  293. tg_webui-0.0.1/tests/test_web_auth.py +450 -0
  294. tg_webui-0.0.1/tests/test_web_csrf.py +337 -0
  295. tg_webui-0.0.1/tests/test_web_paths.py +19 -0
  296. tg_webui-0.0.1/tests/test_web_route_helpers.py +159 -0
  297. tg_webui-0.0.1/tests/test_web_runtime_guards.py +163 -0
  298. tg_webui-0.0.1/tests/test_web_scheduler_helpers.py +201 -0
  299. tg_webui-0.0.1/tests/test_web_scheduler_reconcile_enqueue.py +168 -0
  300. tg_webui-0.0.1/tests/test_web_snapshot_refresher.py +174 -0
  301. tg_webui-0.0.1/tests/webui_helpers.py +71 -0
@@ -0,0 +1,7 @@
1
+ __pycache__/
2
+ *.egg-info/
3
+ dist/
4
+ build/
5
+ .venv/
6
+ .pytest_cache/
7
+ data/
@@ -0,0 +1,29 @@
1
+ # Changelog
2
+
3
+ Keep a Changelog format, SemVer.
4
+
5
+ ## [0.1.0] — 2026-10-31
6
+
7
+ ### Added
8
+
9
+ - Package split out of the core (#1720 wave 3): `tg_agent/web` moved to
10
+ `tg_webui` (routes, templates, static, bootstrap, embedded worker); the web
11
+ tests moved into `packages/tg_webui/tests`.
12
+
13
+ ### Removed
14
+
15
+ - Compatibility re-exports of core modules (`timing`, `log_handler`,
16
+ `runtime_shims`, the runtime helpers in `bootstrap`, the data-path helpers in
17
+ `paths`): import them from `tg_agent.utils.timing`, `tg_agent.runtime.*` and
18
+ `tg_agent.paths`.
19
+
20
+ ### Changed
21
+
22
+ - Log categories: the web loggers moved from `tg_agent.web.*` to `tg_webui.*`, and
23
+ the core container bootstrap logs as `tg_agent.runtime.bootstrap` (was the
24
+ historical `tg_agent.web.bootstrap`). Update operator log filters or level
25
+ overrides keyed on the old names.
26
+ - `serve`'s password policy (`is_strong_password`) moved to the core
27
+ (`tg_agent.security.password_policy`): it is CLI input validation, so neither
28
+ the core CLI nor its tests need this package for it.
29
+
tg_webui-0.0.1/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Axisrow
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,52 @@
1
+ Metadata-Version: 2.4
2
+ Name: tg-webui
3
+ Version: 0.0.1
4
+ Summary: Legacy web panel for tg-agent (`tg-agent serve`): FastAPI + Jinja2 dashboard; frozen, optional
5
+ Author: Axisrow
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/axisrow/tg_webui
8
+ Project-URL: Issues, https://github.com/axisrow/tg_webui/issues
9
+ Keywords: telegram,agent,web,fastapi
10
+ Classifier: Development Status :: 7 - Inactive
11
+ Classifier: Environment :: Web Environment
12
+ Classifier: Framework :: FastAPI
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: Typing :: Typed
18
+ Requires-Python: >=3.11
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: tg-agent
22
+ Requires-Dist: tg-shared
23
+ Requires-Dist: fastapi<0.163,>=0.136.3
24
+ Requires-Dist: jinja2>=3.1.6
25
+ Requires-Dist: python-multipart>=0.0.29
26
+ Requires-Dist: itsdangerous>=2.2.0
27
+ Requires-Dist: qrcode>=8.0
28
+ Dynamic: license-file
29
+
30
+ # tg-webui
31
+
32
+ The legacy web panel of tg-agent (`tg-agent serve`): a FastAPI + Jinja2/HTMX
33
+ dashboard over the same services the CLI uses. Split out of the core in
34
+ [#1720](https://github.com/axisrow/tg_content_factory/issues/1720) (wave 3),
35
+ following the `packages/tg_shared` layout.
36
+
37
+ **Status: legacy, frozen.** Under the automation-first contract the web panel
38
+ is a deprecated human-facing surface: it keeps working, gets no new features.
39
+ The core (`tg_agent`) never imports this package — an import-linter contract
40
+ enforces it; only the `serve` entry point loads it lazily. The runtime split
41
+ is unchanged: `serve` hosts uvicorn plus an embedded worker, `serve --no-worker`
42
+ runs only the web side next to a separate `tg-agent worker`.
43
+
44
+ ## Install
45
+
46
+ ```bash
47
+ pip install -e packages/tg_webui
48
+ ```
49
+
50
+ Without it, `tg-agent serve` exits with code 1 and an install hint; the worker
51
+ daemon (`tg-agent restart` / `tg-agent worker`) and every other command work
52
+ without the package.
@@ -0,0 +1,23 @@
1
+ # tg-webui
2
+
3
+ The legacy web panel of tg-agent (`tg-agent serve`): a FastAPI + Jinja2/HTMX
4
+ dashboard over the same services the CLI uses. Split out of the core in
5
+ [#1720](https://github.com/axisrow/tg_content_factory/issues/1720) (wave 3),
6
+ following the `packages/tg_shared` layout.
7
+
8
+ **Status: legacy, frozen.** Under the automation-first contract the web panel
9
+ is a deprecated human-facing surface: it keeps working, gets no new features.
10
+ The core (`tg_agent`) never imports this package — an import-linter contract
11
+ enforces it; only the `serve` entry point loads it lazily. The runtime split
12
+ is unchanged: `serve` hosts uvicorn plus an embedded worker, `serve --no-worker`
13
+ runs only the web side next to a separate `tg-agent worker`.
14
+
15
+ ## Install
16
+
17
+ ```bash
18
+ pip install -e packages/tg_webui
19
+ ```
20
+
21
+ Without it, `tg-agent serve` exits with code 1 and an install hint; the worker
22
+ daemon (`tg-agent restart` / `tg-agent worker`) and every other command work
23
+ without the package.
@@ -0,0 +1,10 @@
1
+ """Repo-root conftest: puts the repo root on sys.path so tests import as the
2
+ ``tests.*`` namespace (same layout the suite had inside the tg_content_factory
3
+ monorepo before extraction)."""
4
+
5
+ import sys
6
+ from pathlib import Path
7
+
8
+ _ROOT = str(Path(__file__).resolve().parent)
9
+ if _ROOT not in sys.path:
10
+ sys.path.insert(0, _ROOT)