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.
- tg_webui-0.0.1/.gitignore +7 -0
- tg_webui-0.0.1/CHANGELOG.md +29 -0
- tg_webui-0.0.1/LICENSE +21 -0
- tg_webui-0.0.1/PKG-INFO +52 -0
- tg_webui-0.0.1/README.md +23 -0
- tg_webui-0.0.1/conftest.py +10 -0
- tg_webui-0.0.1/core_conftest.py +629 -0
- tg_webui-0.0.1/docs/reference/parity.md +356 -0
- tg_webui-0.0.1/examples/plugin_digest/pyproject.toml +16 -0
- tg_webui-0.0.1/examples/plugin_digest/tg_plugin_digest/__init__.py +32 -0
- tg_webui-0.0.1/pyproject.toml +82 -0
- tg_webui-0.0.1/setup.cfg +4 -0
- tg_webui-0.0.1/src/tg_webui/__init__.py +1 -0
- tg_webui-0.0.1/src/tg_webui/agent/__init__.py +0 -0
- tg_webui-0.0.1/src/tg_webui/agent/forms.py +18 -0
- tg_webui-0.0.1/src/tg_webui/agent/handlers.py +506 -0
- tg_webui-0.0.1/src/tg_webui/agent/responses.py +51 -0
- tg_webui-0.0.1/src/tg_webui/app.py +542 -0
- tg_webui-0.0.1/src/tg_webui/assembly.py +206 -0
- tg_webui-0.0.1/src/tg_webui/bootstrap.py +41 -0
- tg_webui-0.0.1/src/tg_webui/channels/__init__.py +0 -0
- tg_webui-0.0.1/src/tg_webui/channels/forms.py +17 -0
- tg_webui-0.0.1/src/tg_webui/channels/handlers.py +166 -0
- tg_webui-0.0.1/src/tg_webui/channels/responses.py +45 -0
- tg_webui-0.0.1/src/tg_webui/container.py +29 -0
- tg_webui-0.0.1/src/tg_webui/csrf.py +134 -0
- tg_webui-0.0.1/src/tg_webui/deps.py +393 -0
- tg_webui-0.0.1/src/tg_webui/dialogs/__init__.py +1 -0
- tg_webui-0.0.1/src/tg_webui/dialogs/forms.py +221 -0
- tg_webui-0.0.1/src/tg_webui/dialogs/handlers.py +555 -0
- tg_webui-0.0.1/src/tg_webui/dialogs/responses.py +70 -0
- tg_webui-0.0.1/src/tg_webui/embedded_worker.py +209 -0
- tg_webui-0.0.1/src/tg_webui/filter/__init__.py +0 -0
- tg_webui-0.0.1/src/tg_webui/filter/forms.py +81 -0
- tg_webui-0.0.1/src/tg_webui/filter/handlers.py +270 -0
- tg_webui-0.0.1/src/tg_webui/filter/responses.py +48 -0
- tg_webui-0.0.1/src/tg_webui/images/__init__.py +0 -0
- tg_webui-0.0.1/src/tg_webui/images/forms.py +36 -0
- tg_webui-0.0.1/src/tg_webui/images/handlers.py +110 -0
- tg_webui-0.0.1/src/tg_webui/images/responses.py +34 -0
- tg_webui-0.0.1/src/tg_webui/panel_auth.py +93 -0
- tg_webui-0.0.1/src/tg_webui/paths.py +7 -0
- tg_webui-0.0.1/src/tg_webui/photo_loader/__init__.py +2 -0
- tg_webui-0.0.1/src/tg_webui/photo_loader/forms.py +136 -0
- tg_webui-0.0.1/src/tg_webui/photo_loader/handlers.py +509 -0
- tg_webui-0.0.1/src/tg_webui/photo_loader/responses.py +42 -0
- tg_webui-0.0.1/src/tg_webui/pipelines/__init__.py +0 -0
- tg_webui-0.0.1/src/tg_webui/pipelines/forms.py +206 -0
- tg_webui-0.0.1/src/tg_webui/pipelines/handlers.py +1051 -0
- tg_webui-0.0.1/src/tg_webui/pipelines/responses.py +85 -0
- tg_webui-0.0.1/src/tg_webui/py.typed +0 -0
- tg_webui-0.0.1/src/tg_webui/query_params.py +27 -0
- tg_webui-0.0.1/src/tg_webui/redirects.py +18 -0
- tg_webui-0.0.1/src/tg_webui/responses.py +71 -0
- tg_webui-0.0.1/src/tg_webui/routes/__init__.py +0 -0
- tg_webui-0.0.1/src/tg_webui/routes/accounts.py +221 -0
- tg_webui-0.0.1/src/tg_webui/routes/agent.py +105 -0
- tg_webui-0.0.1/src/tg_webui/routes/analytics.py +585 -0
- tg_webui-0.0.1/src/tg_webui/routes/auth.py +391 -0
- tg_webui-0.0.1/src/tg_webui/routes/calendar.py +155 -0
- tg_webui-0.0.1/src/tg_webui/routes/channel_collection.py +198 -0
- tg_webui-0.0.1/src/tg_webui/routes/channel_renames.py +194 -0
- tg_webui-0.0.1/src/tg_webui/routes/channels.py +100 -0
- tg_webui-0.0.1/src/tg_webui/routes/dashboard.py +106 -0
- tg_webui-0.0.1/src/tg_webui/routes/debug.py +157 -0
- tg_webui-0.0.1/src/tg_webui/routes/dialogs.py +234 -0
- tg_webui-0.0.1/src/tg_webui/routes/dms.py +139 -0
- tg_webui-0.0.1/src/tg_webui/routes/export.py +87 -0
- tg_webui-0.0.1/src/tg_webui/routes/filter.py +86 -0
- tg_webui-0.0.1/src/tg_webui/routes/images.py +49 -0
- tg_webui-0.0.1/src/tg_webui/routes/import_channels.py +87 -0
- tg_webui-0.0.1/src/tg_webui/routes/jobs.py +257 -0
- tg_webui-0.0.1/src/tg_webui/routes/moderation.py +177 -0
- tg_webui-0.0.1/src/tg_webui/routes/photo_loader.py +217 -0
- tg_webui-0.0.1/src/tg_webui/routes/pipelines.py +374 -0
- tg_webui-0.0.1/src/tg_webui/routes/plugin_tools.py +18 -0
- tg_webui-0.0.1/src/tg_webui/routes/rss.py +144 -0
- tg_webui-0.0.1/src/tg_webui/routes/scheduler.py +167 -0
- tg_webui-0.0.1/src/tg_webui/routes/search.py +115 -0
- tg_webui-0.0.1/src/tg_webui/routes/search_queries.py +91 -0
- tg_webui-0.0.1/src/tg_webui/routes/settings.py +291 -0
- tg_webui-0.0.1/src/tg_webui/routes/telegram_commands.py +48 -0
- tg_webui-0.0.1/src/tg_webui/scheduler/__init__.py +1 -0
- tg_webui-0.0.1/src/tg_webui/scheduler/commands.py +30 -0
- tg_webui-0.0.1/src/tg_webui/scheduler/context.py +636 -0
- tg_webui-0.0.1/src/tg_webui/scheduler/forms.py +52 -0
- tg_webui-0.0.1/src/tg_webui/scheduler/handlers.py +301 -0
- tg_webui-0.0.1/src/tg_webui/scheduler/responses.py +87 -0
- tg_webui-0.0.1/src/tg_webui/schemas/__init__.py +30 -0
- tg_webui-0.0.1/src/tg_webui/schemas/accounts.py +36 -0
- tg_webui-0.0.1/src/tg_webui/schemas/agent.py +26 -0
- tg_webui-0.0.1/src/tg_webui/schemas/analytics.py +155 -0
- tg_webui-0.0.1/src/tg_webui/schemas/calendar.py +32 -0
- tg_webui-0.0.1/src/tg_webui/schemas/common.py +31 -0
- tg_webui-0.0.1/src/tg_webui/schemas/dialogs.py +71 -0
- tg_webui-0.0.1/src/tg_webui/schemas/pipelines.py +110 -0
- tg_webui-0.0.1/src/tg_webui/search/__init__.py +1 -0
- tg_webui-0.0.1/src/tg_webui/search/forms.py +31 -0
- tg_webui-0.0.1/src/tg_webui/search/handlers.py +522 -0
- tg_webui-0.0.1/src/tg_webui/search/responses.py +42 -0
- tg_webui-0.0.1/src/tg_webui/search_queries/__init__.py +0 -0
- tg_webui-0.0.1/src/tg_webui/search_queries/forms.py +48 -0
- tg_webui-0.0.1/src/tg_webui/search_queries/handlers.py +92 -0
- tg_webui-0.0.1/src/tg_webui/search_queries/responses.py +37 -0
- tg_webui-0.0.1/src/tg_webui/session.py +60 -0
- tg_webui-0.0.1/src/tg_webui/settings/__init__.py +2 -0
- tg_webui-0.0.1/src/tg_webui/settings/forms.py +251 -0
- tg_webui-0.0.1/src/tg_webui/settings/handlers.py +1322 -0
- tg_webui-0.0.1/src/tg_webui/settings/responses.py +58 -0
- tg_webui-0.0.1/src/tg_webui/snapshot_refresher.py +82 -0
- tg_webui-0.0.1/src/tg_webui/static/_busy_button.js +26 -0
- tg_webui-0.0.1/src/tg_webui/static/_theme_init.js +1 -0
- tg_webui-0.0.1/src/tg_webui/static/js/app.js +393 -0
- tg_webui-0.0.1/src/tg_webui/static/js/nav-progress.js +101 -0
- tg_webui-0.0.1/src/tg_webui/static/js/searchable-picker.js +275 -0
- tg_webui-0.0.1/src/tg_webui/static/settings.js +491 -0
- tg_webui-0.0.1/src/tg_webui/static/style.css +592 -0
- tg_webui-0.0.1/src/tg_webui/template_globals.py +321 -0
- tg_webui-0.0.1/src/tg_webui/templates/_debug_errors.html +34 -0
- tg_webui-0.0.1/src/tg_webui/templates/_debug_logs.html +10 -0
- tg_webui-0.0.1/src/tg_webui/templates/_dry_run_results.html +52 -0
- tg_webui-0.0.1/src/tg_webui/templates/_macros.html +100 -0
- tg_webui-0.0.1/src/tg_webui/templates/_macros_ui.html +86 -0
- tg_webui-0.0.1/src/tg_webui/templates/_timing_rows.html +13 -0
- tg_webui-0.0.1/src/tg_webui/templates/agent/_threads.html +120 -0
- tg_webui-0.0.1/src/tg_webui/templates/agent.html +1358 -0
- tg_webui-0.0.1/src/tg_webui/templates/analytics/_channel_selector.html +8 -0
- tg_webui-0.0.1/src/tg_webui/templates/analytics/_content_pipelines.html +43 -0
- tg_webui-0.0.1/src/tg_webui/templates/analytics/_content_summary.html +32 -0
- tg_webui-0.0.1/src/tg_webui/templates/analytics/_engagement.html +19 -0
- tg_webui-0.0.1/src/tg_webui/templates/analytics/_hourly.html +19 -0
- tg_webui-0.0.1/src/tg_webui/templates/analytics/_rating_verdict.html +28 -0
- tg_webui-0.0.1/src/tg_webui/templates/analytics/_top_messages.html +62 -0
- tg_webui-0.0.1/src/tg_webui/templates/analytics/_trends_channels.html +25 -0
- tg_webui-0.0.1/src/tg_webui/templates/analytics/_trends_emojis.html +12 -0
- tg_webui-0.0.1/src/tg_webui/templates/analytics/_trends_topics.html +16 -0
- tg_webui-0.0.1/src/tg_webui/templates/analytics/channel_ratings.html +90 -0
- tg_webui-0.0.1/src/tg_webui/templates/analytics/channels.html +422 -0
- tg_webui-0.0.1/src/tg_webui/templates/analytics/content.html +36 -0
- tg_webui-0.0.1/src/tg_webui/templates/analytics/trends.html +49 -0
- tg_webui-0.0.1/src/tg_webui/templates/analytics.html +63 -0
- tg_webui-0.0.1/src/tg_webui/templates/base.html +104 -0
- tg_webui-0.0.1/src/tg_webui/templates/calendar/_grid.html +64 -0
- tg_webui-0.0.1/src/tg_webui/templates/calendar/_stats.html +18 -0
- tg_webui-0.0.1/src/tg_webui/templates/calendar/_upcoming.html +33 -0
- tg_webui-0.0.1/src/tg_webui/templates/calendar.html +57 -0
- tg_webui-0.0.1/src/tg_webui/templates/channel_renames.html +61 -0
- tg_webui-0.0.1/src/tg_webui/templates/channel_review.html +56 -0
- tg_webui-0.0.1/src/tg_webui/templates/channels/_list.html +120 -0
- tg_webui-0.0.1/src/tg_webui/templates/channels.html +152 -0
- tg_webui-0.0.1/src/tg_webui/templates/dashboard/_overview.html +71 -0
- tg_webui-0.0.1/src/tg_webui/templates/dashboard.html +11 -0
- tg_webui-0.0.1/src/tg_webui/templates/debug.html +34 -0
- tg_webui-0.0.1/src/tg_webui/templates/debug_timing.html +30 -0
- tg_webui-0.0.1/src/tg_webui/templates/dialogs/_history.html +205 -0
- tg_webui-0.0.1/src/tg_webui/templates/dialogs/_list.html +176 -0
- tg_webui-0.0.1/src/tg_webui/templates/dialogs.html +122 -0
- tg_webui-0.0.1/src/tg_webui/templates/dialogs_create_channel.html +57 -0
- tg_webui-0.0.1/src/tg_webui/templates/dms.html +106 -0
- tg_webui-0.0.1/src/tg_webui/templates/error.html +20 -0
- tg_webui-0.0.1/src/tg_webui/templates/filter_manage.html +13 -0
- tg_webui-0.0.1/src/tg_webui/templates/filter_manage_content.html +245 -0
- tg_webui-0.0.1/src/tg_webui/templates/images.html +210 -0
- tg_webui-0.0.1/src/tg_webui/templates/import_channels.html +72 -0
- tg_webui-0.0.1/src/tg_webui/templates/jobs.html +23 -0
- tg_webui-0.0.1/src/tg_webui/templates/jobs_table.html +216 -0
- tg_webui-0.0.1/src/tg_webui/templates/login.html +195 -0
- tg_webui-0.0.1/src/tg_webui/templates/moderation/view.html +123 -0
- tg_webui-0.0.1/src/tg_webui/templates/moderation.html +15 -0
- tg_webui-0.0.1/src/tg_webui/templates/moderation_content.html +111 -0
- tg_webui-0.0.1/src/tg_webui/templates/photo_loader.html +13 -0
- tg_webui-0.0.1/src/tg_webui/templates/photo_loader_batch_row.html +29 -0
- tg_webui-0.0.1/src/tg_webui/templates/photo_loader_content.html +597 -0
- tg_webui-0.0.1/src/tg_webui/templates/pipelines/create.html +892 -0
- tg_webui-0.0.1/src/tg_webui/templates/pipelines/edit.html +292 -0
- tg_webui-0.0.1/src/tg_webui/templates/pipelines/generate.html +124 -0
- tg_webui-0.0.1/src/tg_webui/templates/pipelines/templates.html +187 -0
- tg_webui-0.0.1/src/tg_webui/templates/pipelines.html +13 -0
- tg_webui-0.0.1/src/tg_webui/templates/pipelines_content.html +316 -0
- tg_webui-0.0.1/src/tg_webui/templates/qr_login.html +104 -0
- tg_webui-0.0.1/src/tg_webui/templates/scheduler/_health.html +93 -0
- tg_webui-0.0.1/src/tg_webui/templates/scheduler/_jobs.html +114 -0
- tg_webui-0.0.1/src/tg_webui/templates/scheduler.html +90 -0
- tg_webui-0.0.1/src/tg_webui/templates/search.html +181 -0
- tg_webui-0.0.1/src/tg_webui/templates/search_queries.html +269 -0
- tg_webui-0.0.1/src/tg_webui/templates/search_results.html +121 -0
- tg_webui-0.0.1/src/tg_webui/templates/settings/_accounts.html +153 -0
- tg_webui-0.0.1/src/tg_webui/templates/settings/_credentials.html +41 -0
- tg_webui-0.0.1/src/tg_webui/templates/settings/_devmode.html +269 -0
- tg_webui-0.0.1/src/tg_webui/templates/settings/_filters.html +36 -0
- tg_webui-0.0.1/src/tg_webui/templates/settings/_image_providers.html +230 -0
- tg_webui-0.0.1/src/tg_webui/templates/settings/_notifications.html +52 -0
- tg_webui-0.0.1/src/tg_webui/templates/settings/_plugins.html +18 -0
- tg_webui-0.0.1/src/tg_webui/templates/settings/_scheduler.html +17 -0
- tg_webui-0.0.1/src/tg_webui/templates/settings/_semantic.html +96 -0
- tg_webui-0.0.1/src/tg_webui/templates/settings/_tool_permissions.html +208 -0
- tg_webui-0.0.1/src/tg_webui/templates/settings/_translation.html +79 -0
- tg_webui-0.0.1/src/tg_webui/templates/settings.html +83 -0
- tg_webui-0.0.1/src/tg_webui/templates/web_login.html +39 -0
- tg_webui-0.0.1/src/tg_webui.egg-info/PKG-INFO +52 -0
- tg_webui-0.0.1/src/tg_webui.egg-info/SOURCES.txt +299 -0
- tg_webui-0.0.1/src/tg_webui.egg-info/dependency_links.txt +1 -0
- tg_webui-0.0.1/src/tg_webui.egg-info/requires.txt +7 -0
- tg_webui-0.0.1/src/tg_webui.egg-info/top_level.txt +1 -0
- tg_webui-0.0.1/tests/conftest.py +99 -0
- tg_webui-0.0.1/tests/content_cycle_helpers.py +159 -0
- tg_webui-0.0.1/tests/e2e/README.md +124 -0
- tg_webui-0.0.1/tests/e2e/__init__.py +0 -0
- tg_webui-0.0.1/tests/e2e/console_smoke.py +382 -0
- tg_webui-0.0.1/tests/e2e/htmx_functional.py +495 -0
- tg_webui-0.0.1/tests/e2e/test_collection_flow.py +264 -0
- tg_webui-0.0.1/tests/e2e/test_console_smoke.py +96 -0
- tg_webui-0.0.1/tests/e2e/test_console_smoke_parsing.py +354 -0
- tg_webui-0.0.1/tests/e2e/test_htmx_functional.py +122 -0
- tg_webui-0.0.1/tests/e2e/test_htmx_functional_parsing.py +96 -0
- tg_webui-0.0.1/tests/helpers.py +1042 -0
- tg_webui-0.0.1/tests/live_readiness.py +88 -0
- tg_webui-0.0.1/tests/package_hider.py +28 -0
- tg_webui-0.0.1/tests/routes/__init__.py +1 -0
- tg_webui-0.0.1/tests/routes/conftest.py +272 -0
- tg_webui-0.0.1/tests/routes/test_accounts_agent_web_mode.py +264 -0
- tg_webui-0.0.1/tests/routes/test_accounts_routes.py +383 -0
- tg_webui-0.0.1/tests/routes/test_agent_channels_routes_regression.py +189 -0
- tg_webui-0.0.1/tests/routes/test_agent_lazyload.py +204 -0
- tg_webui-0.0.1/tests/routes/test_agent_routes.py +369 -0
- tg_webui-0.0.1/tests/routes/test_agent_routes_streaming.py +589 -0
- tg_webui-0.0.1/tests/routes/test_agent_routes_threads.py +586 -0
- tg_webui-0.0.1/tests/routes/test_analytics_routes.py +458 -0
- tg_webui-0.0.1/tests/routes/test_analytics_routes_channel_trends.py +366 -0
- tg_webui-0.0.1/tests/routes/test_analytics_routes_rate.py +112 -0
- tg_webui-0.0.1/tests/routes/test_auth_routes.py +813 -0
- tg_webui-0.0.1/tests/routes/test_calendar_routes.py +152 -0
- tg_webui-0.0.1/tests/routes/test_channel_collection_routes.py +117 -0
- tg_webui-0.0.1/tests/routes/test_channels_routes.py +378 -0
- tg_webui-0.0.1/tests/routes/test_dashboard_routes.py +265 -0
- tg_webui-0.0.1/tests/routes/test_debug_routes.py +391 -0
- tg_webui-0.0.1/tests/routes/test_dialogs_routes.py +1608 -0
- tg_webui-0.0.1/tests/routes/test_dialogs_routes_actions.py +462 -0
- tg_webui-0.0.1/tests/routes/test_export_routes.py +64 -0
- tg_webui-0.0.1/tests/routes/test_export_session_1145.py +241 -0
- tg_webui-0.0.1/tests/routes/test_filter_routes.py +901 -0
- tg_webui-0.0.1/tests/routes/test_images_routes.py +278 -0
- tg_webui-0.0.1/tests/routes/test_import_channels_routes.py +426 -0
- tg_webui-0.0.1/tests/routes/test_import_session_form_1146.py +172 -0
- tg_webui-0.0.1/tests/routes/test_jobs_routes.py +553 -0
- tg_webui-0.0.1/tests/routes/test_moderation_routes.py +347 -0
- tg_webui-0.0.1/tests/routes/test_nav_progress.py +15 -0
- tg_webui-0.0.1/tests/routes/test_openapi_rest_schemas.py +124 -0
- tg_webui-0.0.1/tests/routes/test_photo_loader_routes.py +442 -0
- tg_webui-0.0.1/tests/routes/test_pipeline_run_cross_layer.py +207 -0
- tg_webui-0.0.1/tests/routes/test_pipelines_routes.py +972 -0
- tg_webui-0.0.1/tests/routes/test_pipelines_routes_dag_and_templates.py +1540 -0
- tg_webui-0.0.1/tests/routes/test_plugin_tools.py +186 -0
- tg_webui-0.0.1/tests/routes/test_rss_routes.py +154 -0
- tg_webui-0.0.1/tests/routes/test_scheduler_routes.py +647 -0
- tg_webui-0.0.1/tests/routes/test_scheduler_routes_edge_cases.py +1078 -0
- tg_webui-0.0.1/tests/routes/test_search_queries_routes.py +234 -0
- tg_webui-0.0.1/tests/routes/test_search_routes.py +826 -0
- tg_webui-0.0.1/tests/routes/test_settings_routes.py +858 -0
- tg_webui-0.0.1/tests/routes/test_settings_routes_provider_notifications.py +1247 -0
- tg_webui-0.0.1/tests/routes/test_telegram_commands_routes.py +52 -0
- tg_webui-0.0.1/tests/test_bootstrap.py +59 -0
- tg_webui-0.0.1/tests/test_channel_renames_routes.py +331 -0
- tg_webui-0.0.1/tests/test_channel_stats.py +117 -0
- tg_webui-0.0.1/tests/test_cli_agent_parity.py +95 -0
- tg_webui-0.0.1/tests/test_cli_channel_pipeline_route_paths.py +493 -0
- tg_webui-0.0.1/tests/test_cli_image_scheduler_web_routes.py +399 -0
- tg_webui-0.0.1/tests/test_content_cycle_e2e.py +191 -0
- tg_webui-0.0.1/tests/test_csrf.py +396 -0
- tg_webui-0.0.1/tests/test_dialogs.py +292 -0
- tg_webui-0.0.1/tests/test_dialogs_cli_and_web_actions.py +638 -0
- tg_webui-0.0.1/tests/test_dm_web_rest.py +149 -0
- tg_webui-0.0.1/tests/test_filter_flash_messages.py +69 -0
- tg_webui-0.0.1/tests/test_import_web.py +165 -0
- tg_webui-0.0.1/tests/test_integration.py +853 -0
- tg_webui-0.0.1/tests/test_integration_generation.py +180 -0
- tg_webui-0.0.1/tests/test_packaging.py +44 -0
- tg_webui-0.0.1/tests/test_panel_auth.py +111 -0
- tg_webui-0.0.1/tests/test_photo_loader.py +1185 -0
- tg_webui-0.0.1/tests/test_pipeline_dry_run_limit.py +46 -0
- tg_webui-0.0.1/tests/test_pipelines.py +49 -0
- tg_webui-0.0.1/tests/test_plugins.py +318 -0
- tg_webui-0.0.1/tests/test_publish_service.py +1431 -0
- tg_webui-0.0.1/tests/test_regression_infra_coverage.py +235 -0
- tg_webui-0.0.1/tests/test_runtime_worker.py +180 -0
- tg_webui-0.0.1/tests/test_scheduler_forms.py +40 -0
- tg_webui-0.0.1/tests/test_search.py +29 -0
- tg_webui-0.0.1/tests/test_session_tokens.py +91 -0
- tg_webui-0.0.1/tests/test_settings_scheduler_pipeline_search_paths.py +292 -0
- tg_webui-0.0.1/tests/test_smoke_preflight.py +43 -0
- tg_webui-0.0.1/tests/test_template_globals.py +139 -0
- tg_webui-0.0.1/tests/test_web.py +4200 -0
- tg_webui-0.0.1/tests/test_web_auth.py +450 -0
- tg_webui-0.0.1/tests/test_web_csrf.py +337 -0
- tg_webui-0.0.1/tests/test_web_paths.py +19 -0
- tg_webui-0.0.1/tests/test_web_route_helpers.py +159 -0
- tg_webui-0.0.1/tests/test_web_runtime_guards.py +163 -0
- tg_webui-0.0.1/tests/test_web_scheduler_helpers.py +201 -0
- tg_webui-0.0.1/tests/test_web_scheduler_reconcile_enqueue.py +168 -0
- tg_webui-0.0.1/tests/test_web_snapshot_refresher.py +174 -0
- tg_webui-0.0.1/tests/webui_helpers.py +71 -0
|
@@ -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.
|
tg_webui-0.0.1/PKG-INFO
ADDED
|
@@ -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.
|
tg_webui-0.0.1/README.md
ADDED
|
@@ -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)
|