telepost-bot 2.84.6__tar.gz → 2.84.8__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.
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/CHANGELOG.md +14 -0
- {telepost_bot-2.84.6/telepost_bot.egg-info → telepost_bot-2.84.8}/PKG-INFO +1 -1
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/handlers/recovery.py +13 -9
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/application/recovery.py +32 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/build_info.py +1 -1
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/storage/sqlite/recovery.py +22 -1
- {telepost_bot-2.84.6 → telepost_bot-2.84.8/telepost_bot.egg-info}/PKG-INFO +1 -1
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_recovery.py +5 -1
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_recovery_answer_first.py +35 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/utils/api_server.py +20 -1
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/LICENSE +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/MANIFEST.in +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/README.en.md +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/README.md +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/config/__init__.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/config/fly-telepost-policy.example.json +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/config/review_policy.md +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/config/settings.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/config.ini.example +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/database/__init__.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/database/db_manager.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/handlers/__init__.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/handlers/api_commands.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/handlers/automation.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/handlers/botconfig.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/handlers/callback_handlers.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/handlers/channel_listener.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/handlers/command_handlers.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/handlers/conversation.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/handlers/error_handler.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/handlers/index_handlers.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/handlers/mode_selection.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/handlers/moderation.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/handlers/preview_handlers.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/handlers/publish.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/handlers/reaction_stats.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/handlers/review.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/handlers/schedule_status.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/handlers/search_handlers.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/handlers/stats_handlers.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/handlers/upload.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/main.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/mcp_server/__init__.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/mcp_server/review_client.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/mcp_server/server.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/models/__init__.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/models/state.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/protocol/__init__.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/protocol/v1/SOURCES.sha256 +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/protocol/v1/__init__.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/protocol/v1/error-mapping.json +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/protocol/v1/fixtures/ackresult.candidate_search.json +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/protocol/v1/fixtures/capabilities.pixivflow.json +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/protocol/v1/fixtures/event.job.expired.json +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/protocol/v1/fixtures/event.job.succeeded.json +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/protocol/v1/fixtures/eventpage.candidate_search.json +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/protocol/v1/fixtures/job.cancelled.candidate_search.json +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/protocol/v1/fixtures/job.failed.no_candidate.json +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/protocol/v1/fixtures/job.queued.json +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/protocol/v1/fixtures/job.running.json +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/protocol/v1/fixtures/job.succeeded.candidate_search.json +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/protocol/v1/fixtures/jobpage.candidate_search.json +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/protocol/v1/fixtures/task.candidate_search.json +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/protocol/v1/fixtures/task.candidate_search.target_only.json +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/protocol/v1/protocol.schema.json +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/pyproject.toml +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/run.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/services/__init__.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/services/review_service.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/setup.cfg +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/__init__.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/api/__init__.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/application/__init__.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/application/admin_ops.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/application/automation.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/application/delivery_planner.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/application/editorial.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/application/hot.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/application/novel_fallback_card.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/application/novel_preview.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/application/pixivflow_jobs.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/application/post_media.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/application/posts.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/application/publication.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/application/reaction_backfill.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/application/refetch.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/application/rerender.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/application/resubmit.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/application/review_queue.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/application/submitter_notify.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/application/telepress_provider.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/domain/__init__.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/domain/automation.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/domain/delivery.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/domain/editorial.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/domain/errors.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/domain/hot.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/domain/media.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/domain/navigation.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/domain/novel_preview.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/domain/packing.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/domain/presentation.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/domain/presentation_policy.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/domain/refetch_state.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/domain/review.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/domain/review_chat.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/domain/submission.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/miniapp/__init__.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/miniapp/auth.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/miniapp/rbac.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/miniapp/role_bindings.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/miniapp/session.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/observability/__init__.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/observability/audit.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/observability/cli.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/observability/doctor.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/observability/errors.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/observability/redact.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/storage/__init__.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/storage/sqlite/__init__.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/storage/sqlite/automation.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/storage/sqlite/columns.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/storage/sqlite/editorial.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/storage/sqlite/inbox.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/storage/sqlite/ledger.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/storage/sqlite/media_assets.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/storage/sqlite/moderation.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/storage/sqlite/novel_preview.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/storage/sqlite/posts.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/storage/sqlite/protocol_events.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/storage/sqlite/refetch.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/storage/sqlite/reviews.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/storage/sqlite/submitter_notifications.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/telegram/__init__.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/telegram/callback_feedback.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/telegram/capture.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/telegram/delivery/__init__.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/telegram/delivery/discussion.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/telegram/delivery/executor.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/telegram/delivery/gateway.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/telegram/delivery/legacy_runner.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/telegram/delivery/planner.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/telegram/delivery/preparation.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/telegram/delivery/registry.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/telegram/delivery/sender.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/telegram/inbox_worker.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/telegram/review_expiry.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/telegram/review_keyboard.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/telegram/review_media.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/telegram/review_stager.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost_bot.egg-info/SOURCES.txt +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost_bot.egg-info/dependency_links.txt +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost_bot.egg-info/entry_points.txt +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost_bot.egg-info/requires.txt +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost_bot.egg-info/top_level.txt +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_admin_api.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_anonymous.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_api_commands.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_api_server.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_api_version.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_architecture_application.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_architecture_core.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_automation.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_backfill_attribution.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_blacklist.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_bot_language.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_bot_token_logging.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_botconfig.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_boundary.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_callback_contract.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_caption_mentions.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_compatibility.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_config_encoding.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_console_encoding.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_conversation_flow.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_data_class_cleanup.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_database.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_database_first_start.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_database_operations.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_delivery_planner.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_discussion_uncertainty.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_disposition.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_doctor.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_editorial.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_file_validator.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_fly_deploy_contract.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_frozen_support.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_handlers.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_heat_calculator.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_helper_functions.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_hot_domain.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_identity_provenance.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_install_scripts.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_integration.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_legacy_delivery_port_navigation.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_logic_flow.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_logical_submissions.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_maintenance_jobs.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_manager_notifications.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_media_decision_audit.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_media_delivery_pipeline.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_media_domain.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_media_preparation.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_media_proxy_delivery.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_menu_shortcut_single_reply.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_messages.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_miniapp_api.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_miniapp_auth.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_miniapp_content.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_miniapp_entries.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_miniapp_history.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_miniapp_rbac.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_mixed_media_integrity.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_moderation_and_admin_ux.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_navigation.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_no_owner_probe.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_novel_cover_preview.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_novel_delivery_semantics.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_novel_preview.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_observability.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_observability_lifecycle.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_online_reading_root_button.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_packing_ssot.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_polling_server.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_preview_pagination.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_production_handler_graph.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_protocol_contract.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_publication_presentation.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_publish_idempotency.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_publish_regressions.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_publish_reply.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_reaction_backfill.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_reaction_stats.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_refetch.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_refetch_card_state.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_refetch_events.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_refetch_job_lifecycle.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_refetch_reason_normalization.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_refetch_replacement.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_remote_fetch_fallback.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_rerender.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_resubmit.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_review.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_review_album_payload.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_review_card_recovery.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_review_chat_contract.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_review_consistency.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_review_expiry_recovery.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_review_http_mcp.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_review_media_lifecycle.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_review_service.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_robustness.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_run_dispatcher.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_run_mode.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_run_supervisor.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_schedule_outcomes.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_search_disabled_hint.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_search_recovery.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_security.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_security_headers.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_session_database_handles.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_shutdown.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_staging_recovery.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_streaming_uploads.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_submission_timeout_idempotency.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_telegram_golden_messages.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_telegram_media_cache.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_update_inbox.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_upload.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_user_friendly_messages.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_webhook_payload_admission.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_webhook_ready.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_webhook_router.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_webhook_secret.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_webhook_secret_logging.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_webhook_static.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/tests/test_work_id_wire.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/ui/__init__.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/ui/i18n.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/ui/keyboards.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/ui/locales/en/LC_MESSAGES/telepost.mo +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/ui/locales/en/LC_MESSAGES/telepost.po +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/ui/messages.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/utils/__init__.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/utils/api_tokens.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/utils/blacklist.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/utils/cache.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/utils/config_wizard.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/utils/console.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/utils/database.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/utils/file_validator.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/utils/heat_calculator.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/utils/helper_functions.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/utils/index_manager.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/utils/logging_config.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/utils/maintenance_jobs.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/utils/polling_server.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/utils/run_mode.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/utils/runtime_policy.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/utils/schedule_watchdog.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/utils/search_engine.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/utils/security_headers.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/utils/submission.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/utils/webhook_server.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/webapp/__init__.py +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/webapp/dist/assets/2d82b92e720462f8dd3b-Bh4Fahcw.svg +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/webapp/dist/assets/index-CLfkW8eZ.css +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/webapp/dist/assets/index-CfjBQN_e.js +0 -0
- {telepost_bot-2.84.6 → telepost_bot-2.84.8}/webapp/dist/index.html +0 -0
|
@@ -8,6 +8,20 @@
|
|
|
8
8
|
> 发布说明面向普通用户:写「对用户有什么改变」,不写内部实现细节(模块名、函数名、配置键);
|
|
9
9
|
> 技术细节放进代码注释或 `docs/`。每个 Release 的正文由本文件对应版本段自动生成。
|
|
10
10
|
|
|
11
|
+
## [2.84.8](https://github.com/redtidev1918/TelePost/compare/v2.84.7...v2.84.8) (2026-10-25)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* keep recovery buttons so a failed attempt can be retried ([#358](https://github.com/redtidev1918/TelePost/issues/358)) ([ee92b08](https://github.com/redtidev1918/TelePost/commit/ee92b085e8946ab6b9702515baaa5207dcf667e1))
|
|
17
|
+
|
|
18
|
+
## [2.84.7](https://github.com/redtidev1918/TelePost/compare/v2.84.6...v2.84.7) (2026-10-25)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* make recovery submission failures visible and never sticky ([#356](https://github.com/redtidev1918/TelePost/issues/356)) ([a64a30a](https://github.com/redtidev1918/TelePost/commit/a64a30a99ec495f433070f7f96c0f08539c86f50))
|
|
24
|
+
|
|
11
25
|
## [2.84.6](https://github.com/redtidev1918/TelePost/compare/v2.84.5...v2.84.6) (2026-10-25)
|
|
12
26
|
|
|
13
27
|
|
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
``sched_recover|<target_id>|<normal|relaxed>`` — one button row per FAILED
|
|
4
4
|
target on the terminal schedule message. Clicking admits a durable recovery
|
|
5
|
-
attempt (idempotent per callback id
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
attempt (idempotent per callback id) and shows the operator a
|
|
6
|
+
business-friendly "accepted/queued" answer. The buttons STAY on the message:
|
|
7
|
+
re-clicks are governed by the data layer (one active attempt per target;
|
|
8
|
+
active →「正在恢复中」, terminal → a fresh attempt), so a failed recovery can
|
|
9
|
+
always be retried from the same message.
|
|
8
10
|
"""
|
|
9
11
|
from __future__ import annotations
|
|
10
12
|
from ui.i18n import tr
|
|
@@ -99,12 +101,14 @@ async def schedule_recover(update: Update, context: CallbackContext) -> None:
|
|
|
99
101
|
if result.get("already_running"):
|
|
100
102
|
await _answer(query, ALREADY_TEXT)
|
|
101
103
|
return
|
|
102
|
-
#
|
|
103
|
-
#
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
# KEEP the buttons (2026-10-25 UX fix): removing them after one click
|
|
105
|
+
# left the operator with no retry entry at all once the attempt
|
|
106
|
+
# terminalized (no_candidate / submit exhausted) — the outcome message is
|
|
107
|
+
# the ONLY surface carrying these buttons, and failed-recovery outcome
|
|
108
|
+
# messages deliberately carry none. Re-clicks are safe and informative:
|
|
109
|
+
# while an attempt is active the partial-UNIQUE answers「正在恢复中」,
|
|
110
|
+
# after a terminal outcome a fresh attempt is admitted, and PixivFlow
|
|
111
|
+
# refuses recovery of already-consumed targets with a clear error.
|
|
108
112
|
# Out-of-band remote submission (same requestId; idempotent on PixivFlow).
|
|
109
113
|
# Only for rows still awaiting submission — a replayed/terminal row must
|
|
110
114
|
# not be resurrected by a second submit.
|
|
@@ -200,6 +200,10 @@ async def submit_recovery(target_id: str, request_id: str,
|
|
|
200
200
|
result = await asyncio.to_thread(
|
|
201
201
|
_submit_pixivflow_recover, target_id, request_id, mode
|
|
202
202
|
)
|
|
203
|
+
logger.info(
|
|
204
|
+
"恢复提交成功: target=%s request=%s slot=%s",
|
|
205
|
+
target_id, request_id, result.get("slotId", ""),
|
|
206
|
+
)
|
|
203
207
|
async with db_manager.get_db() as conn:
|
|
204
208
|
from telepost.storage.sqlite.recovery import RecoveryRepository
|
|
205
209
|
repo = RecoveryRepository(conn)
|
|
@@ -247,6 +251,11 @@ async def submit_recovery(target_id: str, request_id: str,
|
|
|
247
251
|
retryable=failure["retryable"],
|
|
248
252
|
hint=failure["hint"],
|
|
249
253
|
) from exc
|
|
254
|
+
logger.warning(
|
|
255
|
+
"恢复提交暂缓(可重试,等待兜底重扫): target=%s request=%s "
|
|
256
|
+
"error_class=%s detail=%s",
|
|
257
|
+
target_id, request_id, code, str(exc)[:200],
|
|
258
|
+
)
|
|
250
259
|
try:
|
|
251
260
|
await _record_recovery_event(
|
|
252
261
|
"schedule.recovery_submit_deferred", target_id=target_id,
|
|
@@ -292,6 +301,9 @@ RECOVERY_SUBMIT_SWEEP_MIN_AGE = 60.0
|
|
|
292
301
|
#: Give up (terminalize with audit) after this total age — a recovery admit
|
|
293
302
|
#: must never run forever.
|
|
294
303
|
RECOVERY_SUBMIT_MAX_AGE = 15 * 60.0
|
|
304
|
+
#: An accepted recovery older than this with no outcome terminalizes so the
|
|
305
|
+
#: target never stays "正在恢复中" forever.
|
|
306
|
+
RECOVERY_ACCEPTED_STALE_MAX_AGE = 30 * 60.0
|
|
295
307
|
|
|
296
308
|
|
|
297
309
|
async def resubmit_pending_recoveries(*, now: Optional[float] = None) -> int:
|
|
@@ -323,6 +335,26 @@ async def resubmit_pending_recoveries(*, now: Optional[float] = None) -> int:
|
|
|
323
335
|
schedule_id=row["schedule_id"] or "",
|
|
324
336
|
error_class="submit_retry_exhausted",
|
|
325
337
|
)
|
|
338
|
+
# An ACCEPTED recovery whose outcome never landed (PixivFlow died
|
|
339
|
+
# after accepting, outcome notification lost) used to block the
|
|
340
|
+
# target's partial-UNIQUE slot FOREVER — every later click answered
|
|
341
|
+
# 「正在恢复中」 with nothing running. Terminalize past a staleness
|
|
342
|
+
# cap so the operator can click again.
|
|
343
|
+
stale_accepted = await repo.list_stale_accepted(
|
|
344
|
+
now - RECOVERY_ACCEPTED_STALE_MAX_AGE)
|
|
345
|
+
for row in stale_accepted:
|
|
346
|
+
await repo.mark_failed(row["request_id"], "accepted_stale")
|
|
347
|
+
logger.warning(
|
|
348
|
+
"恢复行 accepted 超龄终态化: target=%s request=%s",
|
|
349
|
+
row["target_id"], row["request_id"],
|
|
350
|
+
)
|
|
351
|
+
await _record_recovery_event(
|
|
352
|
+
"schedule.recovery_failed", target_id=row["target_id"],
|
|
353
|
+
request_id=row["request_id"],
|
|
354
|
+
retry_mode=row["retry_mode"] or NORMAL,
|
|
355
|
+
schedule_id=row["schedule_id"] or "",
|
|
356
|
+
error_class="accepted_stale",
|
|
357
|
+
)
|
|
326
358
|
for row in rows:
|
|
327
359
|
if float(row["created_at"]) < now - RECOVERY_SUBMIT_MAX_AGE:
|
|
328
360
|
continue
|
|
@@ -8,7 +8,7 @@ to the entry points; when present it overrides these committed defaults.
|
|
|
8
8
|
# Bumped automatically by release-please (extra-files in
|
|
9
9
|
# release-please-config.json). Release bundles and images override it at build
|
|
10
10
|
# time with the exact version/commit; this constant is the local-dev fallback.
|
|
11
|
-
RELEASE_VERSION = "2.84.
|
|
11
|
+
RELEASE_VERSION = "2.84.8" # x-release-please-version
|
|
12
12
|
RELEASE_COMMIT = "dev"
|
|
13
13
|
BUILD_DATE = "dev"
|
|
14
14
|
SERVICE = "telepost"
|
|
@@ -90,4 +90,25 @@ class RecoveryRepository:
|
|
|
90
90
|
"AND created_at <= ? ORDER BY created_at ASC",
|
|
91
91
|
(float(cutoff),),
|
|
92
92
|
)
|
|
93
|
-
return list(await cur.fetchall())
|
|
93
|
+
return list(await cur.fetchall())
|
|
94
|
+
|
|
95
|
+
async def list_stale_accepted(self, cutoff: float) -> list:
|
|
96
|
+
"""'accepted' rows older than ``cutoff`` (outcome never landed)."""
|
|
97
|
+
cur = await self._conn.execute(
|
|
98
|
+
"SELECT * FROM recovery_attempts WHERE state='accepted' "
|
|
99
|
+
"AND created_at <= ? ORDER BY created_at ASC",
|
|
100
|
+
(float(cutoff),),
|
|
101
|
+
)
|
|
102
|
+
return list(await cur.fetchall())
|
|
103
|
+
|
|
104
|
+
async def active_summary(self) -> dict:
|
|
105
|
+
"""{state: count} of ACTIVE (non-terminal) rows, for health output."""
|
|
106
|
+
cur = await self._conn.execute(
|
|
107
|
+
"SELECT state, COUNT(*) AS n, MIN(created_at) AS oldest "
|
|
108
|
+
"FROM recovery_attempts "
|
|
109
|
+
"WHERE state IN ('requested','accepted') GROUP BY state"
|
|
110
|
+
)
|
|
111
|
+
rows = list(await cur.fetchall())
|
|
112
|
+
summary = {str(r["state"]): int(r["n"]) for r in rows}
|
|
113
|
+
oldest = min((float(r["oldest"]) for r in rows), default=None)
|
|
114
|
+
return {"states": summary, "oldest_age_seconds": oldest}
|
|
@@ -148,7 +148,11 @@ async def test_schedule_recover_button_handler(monkeypatch, tmp_path,
|
|
|
148
148
|
answer = query.answer.await_args.kwargs.get("text") or ""
|
|
149
149
|
assert "系统会自动继续处理" in answer
|
|
150
150
|
assert "放宽条件重试" in answer
|
|
151
|
-
|
|
151
|
+
# 2026-10-25 UX fix: the buttons STAY — removing them left no retry entry
|
|
152
|
+
# once an attempt terminalized (the outcome message is the only surface
|
|
153
|
+
# carrying them). Re-click safety comes from the one-active-per-target
|
|
154
|
+
# constraint + its「正在恢复中」answer, not from hiding the buttons.
|
|
155
|
+
query.edit_message_reply_markup.assert_not_awaited()
|
|
152
156
|
|
|
153
157
|
|
|
154
158
|
@pytest.mark.asyncio
|
|
@@ -185,6 +185,41 @@ async def test_replayed_click_does_not_resubmit(monkeypatch, tmp_path,
|
|
|
185
185
|
assert len(calls) == 1
|
|
186
186
|
|
|
187
187
|
|
|
188
|
+
@pytest.mark.asyncio
|
|
189
|
+
async def test_sweep_terminalizes_stale_accepted(monkeypatch, tmp_path,
|
|
190
|
+
pixivflow_env):
|
|
191
|
+
"""An accepted recovery whose outcome never landed must not block the
|
|
192
|
+
target forever (the「一直正在恢复中」trap)."""
|
|
193
|
+
await _init(monkeypatch, tmp_path)
|
|
194
|
+
from telepost.storage.sqlite.recovery import RecoveryRepository
|
|
195
|
+
|
|
196
|
+
request_id = str(uuid.uuid4())
|
|
197
|
+
key = f"cb-acc-{request_id[:8]}"
|
|
198
|
+
async with db_manager.get_db() as conn:
|
|
199
|
+
repo = RecoveryRepository(conn)
|
|
200
|
+
await repo.create_attempt(
|
|
201
|
+
target_id="bot1-illust-stale", retry_mode="normal",
|
|
202
|
+
callback_key=key,
|
|
203
|
+
)
|
|
204
|
+
await conn.execute(
|
|
205
|
+
"UPDATE recovery_attempts SET request_id=?, created_at=? "
|
|
206
|
+
"WHERE callback_key=?",
|
|
207
|
+
(request_id, time.time() - 3600, key),
|
|
208
|
+
)
|
|
209
|
+
await repo.mark_accepted(request_id, "slot-x")
|
|
210
|
+
# mark_accepted keeps created_at; force it old again if needed.
|
|
211
|
+
await conn.execute(
|
|
212
|
+
"UPDATE recovery_attempts SET created_at=? WHERE request_id=?",
|
|
213
|
+
(time.time() - 3600, request_id),
|
|
214
|
+
)
|
|
215
|
+
|
|
216
|
+
from telepost.application.recovery import resubmit_pending_recoveries
|
|
217
|
+
await resubmit_pending_recoveries()
|
|
218
|
+
row = await _row(request_id)
|
|
219
|
+
assert row["state"] == "failed"
|
|
220
|
+
assert row["failure_code"] == "accepted_stale"
|
|
221
|
+
|
|
222
|
+
|
|
188
223
|
# ---- sweep: crash / transient safety net -----------------------------------
|
|
189
224
|
@pytest.mark.asyncio
|
|
190
225
|
async def test_sweep_resubmits_stale_requested_row(monkeypatch, tmp_path,
|
|
@@ -1104,7 +1104,26 @@ def add_api_routes(web_app, application) -> None:
|
|
|
1104
1104
|
"api_review_required": True,
|
|
1105
1105
|
"miniapp_review_required": MINIAPP_REVIEW_REQUIRED,
|
|
1106
1106
|
"chat_review_required": CHAT_REVIEW_REQUIRED,
|
|
1107
|
-
"inbox": await _inbox_health()
|
|
1107
|
+
"inbox": await _inbox_health(),
|
|
1108
|
+
"recovery": await _recovery_health()})
|
|
1109
|
+
|
|
1110
|
+
async def _recovery_health():
|
|
1111
|
+
"""Active manual-recovery attempts (SSH-less 「正在恢复中」 diagnosis)."""
|
|
1112
|
+
try:
|
|
1113
|
+
from database import db_manager
|
|
1114
|
+
from telepost.storage.sqlite.recovery import RecoveryRepository
|
|
1115
|
+
async with db_manager.get_db() as conn:
|
|
1116
|
+
summary = await RecoveryRepository(conn).active_summary()
|
|
1117
|
+
import time as _time
|
|
1118
|
+
oldest = summary.get("oldest_age_seconds")
|
|
1119
|
+
summary["oldest_age_seconds"] = (
|
|
1120
|
+
round(_time.time() - float(oldest), 1)
|
|
1121
|
+
if oldest is not None else None
|
|
1122
|
+
)
|
|
1123
|
+
return summary
|
|
1124
|
+
except Exception:
|
|
1125
|
+
logger.warning("recovery health 读取失败", exc_info=True)
|
|
1126
|
+
return {"error": "unavailable"}
|
|
1108
1127
|
|
|
1109
1128
|
async def _inbox_health():
|
|
1110
1129
|
"""Durable-inbox liveness from HTTP (§durable-inbox observability).
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{telepost_bot-2.84.6 → telepost_bot-2.84.8}/protocol/v1/fixtures/ackresult.candidate_search.json
RENAMED
|
File without changes
|
{telepost_bot-2.84.6 → telepost_bot-2.84.8}/protocol/v1/fixtures/capabilities.pixivflow.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{telepost_bot-2.84.6 → telepost_bot-2.84.8}/protocol/v1/fixtures/eventpage.candidate_search.json
RENAMED
|
File without changes
|
{telepost_bot-2.84.6 → telepost_bot-2.84.8}/protocol/v1/fixtures/job.cancelled.candidate_search.json
RENAMED
|
File without changes
|
{telepost_bot-2.84.6 → telepost_bot-2.84.8}/protocol/v1/fixtures/job.failed.no_candidate.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{telepost_bot-2.84.6 → telepost_bot-2.84.8}/protocol/v1/fixtures/job.succeeded.candidate_search.json
RENAMED
|
File without changes
|
{telepost_bot-2.84.6 → telepost_bot-2.84.8}/protocol/v1/fixtures/jobpage.candidate_search.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{telepost_bot-2.84.6 → telepost_bot-2.84.8}/telepost/storage/sqlite/submitter_notifications.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|