socialcli 0.3.11__tar.gz → 0.3.12__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 (200) hide show
  1. {socialcli-0.3.11 → socialcli-0.3.12}/PKG-INFO +1 -1
  2. {socialcli-0.3.11 → socialcli-0.3.12}/pyproject.toml +3 -1
  3. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/agent_errors.py +7 -1
  4. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/agent_recovery.py +22 -7
  5. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/capabilities.yml +18 -0
  6. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/cli.py +87 -32
  7. socialcli-0.3.12/socialctl/metricas/almacen.py +311 -0
  8. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/metricas/resumen.py +83 -3
  9. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/metricas/youtube.py +154 -39
  10. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/read_budget.py +173 -31
  11. socialcli-0.3.12/socialctl/read_checkpoints.py +739 -0
  12. socialcli-0.3.12/socialctl/stats_recovery.py +67 -0
  13. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/ui/assets/agent-actions.json +129 -0
  14. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/ui/assets/agent-journey.json +25 -2
  15. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/ui/assets/agent-manual.md +10 -4
  16. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/ui/assets/agents.md +3 -3
  17. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/youtube_data.py +42 -3
  18. socialcli-0.3.11/socialctl/metricas/almacen.py +0 -133
  19. socialcli-0.3.11/socialctl/read_checkpoints.py +0 -376
  20. {socialcli-0.3.11 → socialcli-0.3.12}/.gitignore +0 -0
  21. {socialcli-0.3.11 → socialcli-0.3.12}/LICENSE +0 -0
  22. {socialcli-0.3.11 → socialcli-0.3.12}/LICENSE-MIT-LEGACY +0 -0
  23. {socialcli-0.3.11 → socialcli-0.3.12}/README.md +0 -0
  24. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/__init__.py +0 -0
  25. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/__main__.py +0 -0
  26. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/adapters/__init__.py +0 -0
  27. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/adapters/base.py +0 -0
  28. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/adapters/errores.py +0 -0
  29. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/adapters/facebook.py +0 -0
  30. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/adapters/instagram.py +0 -0
  31. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/adapters/tiktok.py +0 -0
  32. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/adapters/youtube.py +0 -0
  33. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/agent_guide.py +0 -0
  34. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/agent_journey.py +0 -0
  35. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/approval_cli.py +0 -0
  36. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/auth.py +0 -0
  37. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/authflow.py +0 -0
  38. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/brands.py +0 -0
  39. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/capabilities.py +0 -0
  40. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/cli_result.py +0 -0
  41. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/connections/__init__.py +0 -0
  42. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/connections/account_cli.py +0 -0
  43. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/connections/cli.py +0 -0
  44. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/connections/client.py +0 -0
  45. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/connections/credential_cli.py +0 -0
  46. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/connections/credential_store.py +0 -0
  47. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/connections/file_store.py +0 -0
  48. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/connections/http_transport.py +0 -0
  49. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/connections/keychain.py +0 -0
  50. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/connections/meta_user.py +0 -0
  51. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/connections/rotation_cli.py +0 -0
  52. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/connections/saas_client.py +0 -0
  53. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/connections/temporary_media.py +0 -0
  54. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/connections/token_requests.py +0 -0
  55. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/context.py +0 -0
  56. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/context_cli.py +0 -0
  57. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/delivery_options.py +0 -0
  58. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/engagement.py +0 -0
  59. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/engagement_cli.py +0 -0
  60. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/entrypoint.py +0 -0
  61. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/executor.py +0 -0
  62. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/formatter.py +0 -0
  63. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/hosted_media.py +0 -0
  64. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/identity.py +0 -0
  65. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/inbox.py +0 -0
  66. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/inbox_cli.py +0 -0
  67. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/inventory.py +0 -0
  68. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/inventory_cli.py +0 -0
  69. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/inventory_sources.py +0 -0
  70. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/__init__.py +0 -0
  71. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/batch_cli.py +0 -0
  72. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/batches.py +0 -0
  73. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/changes.py +0 -0
  74. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/cli.py +0 -0
  75. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/comments_cli.py +0 -0
  76. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/community_batch_cli.py +0 -0
  77. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/community_batches.py +0 -0
  78. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/community_changes.py +0 -0
  79. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/community_cli.py +0 -0
  80. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/community_schema.py +0 -0
  81. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/facebook_groups.py +0 -0
  82. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/groups_cli.py +0 -0
  83. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/inbox_readers.py +0 -0
  84. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/meta_changes.py +0 -0
  85. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/meta_cli.py +0 -0
  86. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/meta_client.py +0 -0
  87. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/meta_comment_inbox.py +0 -0
  88. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/meta_comments.py +0 -0
  89. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/meta_errors.py +0 -0
  90. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/meta_pagination.py +0 -0
  91. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/meta_schema.py +0 -0
  92. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/meta_webhooks.py +0 -0
  93. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/metadata_parts.py +0 -0
  94. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/owned_assets.py +0 -0
  95. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/owned_changes.py +0 -0
  96. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/owned_cli.py +0 -0
  97. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/owned_reorder.py +0 -0
  98. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/owned_schema.py +0 -0
  99. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/proposal_routes.py +0 -0
  100. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/reply_context.py +0 -0
  101. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/reply_evidence.py +0 -0
  102. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/resource_changes.py +0 -0
  103. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/resource_cli.py +0 -0
  104. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/snapshot_diagnostics.py +0 -0
  105. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/snippet_readback.py +0 -0
  106. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/stories.py +0 -0
  107. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/stories_cli.py +0 -0
  108. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/youtube.py +0 -0
  109. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/youtube_community.py +0 -0
  110. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/youtube_metadata.py +0 -0
  111. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/youtube_owned.py +0 -0
  112. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/management/youtube_resources.py +0 -0
  113. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/media.py +0 -0
  114. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/media_cli.py +0 -0
  115. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/media_ingress.py +0 -0
  116. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/media_preflight.py +0 -0
  117. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/media_registry.py +0 -0
  118. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/media_requirements.py +0 -0
  119. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/metricas/__init__.py +0 -0
  120. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/metricas/analytics_changes.py +0 -0
  121. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/metricas/analytics_cli.py +0 -0
  122. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/metricas/analytics_client.py +0 -0
  123. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/metricas/analytics_ingest.py +0 -0
  124. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/metricas/analytics_schema.py +0 -0
  125. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/metricas/base.py +0 -0
  126. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/metricas/facebook.py +0 -0
  127. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/metricas/insights.py +0 -0
  128. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/metricas/instagram.py +0 -0
  129. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/metricas/modelos.py +0 -0
  130. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/metricas/piezas.py +0 -0
  131. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/metricas/reach.py +0 -0
  132. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/metricas/reporting_client.py +0 -0
  133. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/metricas/slugs.py +0 -0
  134. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/metricas/tiktok.py +0 -0
  135. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/migration_cli.py +0 -0
  136. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/migration_files.py +0 -0
  137. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/models.py +0 -0
  138. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/native_schedule/__init__.py +0 -0
  139. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/native_schedule/api_delivery.py +0 -0
  140. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/native_schedule/api_reconcile.py +0 -0
  141. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/native_schedule/approval.py +0 -0
  142. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/native_schedule/attestations.py +0 -0
  143. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/native_schedule/cadence.py +0 -0
  144. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/native_schedule/cli.py +0 -0
  145. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/native_schedule/dispatcher.py +0 -0
  146. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/native_schedule/facebook.py +0 -0
  147. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/native_schedule/facebook_reels.py +0 -0
  148. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/native_schedule/first_comment.py +0 -0
  149. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/native_schedule/handoff.py +0 -0
  150. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/native_schedule/instagram_delivery.py +0 -0
  151. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/native_schedule/instagram_runtime.py +0 -0
  152. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/native_schedule/inventory.py +0 -0
  153. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/native_schedule/migration.py +0 -0
  154. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/native_schedule/models.py +0 -0
  155. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/native_schedule/planner.py +0 -0
  156. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/native_schedule/preflight.py +0 -0
  157. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/native_schedule/preparation.py +0 -0
  158. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/native_schedule/reconcile.py +0 -0
  159. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/native_schedule/remote_data.py +0 -0
  160. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/native_schedule/report.py +0 -0
  161. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/native_schedule/store.py +0 -0
  162. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/native_schedule/verification.py +0 -0
  163. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/native_schedule/youtube.py +0 -0
  164. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/operation_output.py +0 -0
  165. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/plantillas/accounts.yml +0 -0
  166. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/plantillas/brand.md +0 -0
  167. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/plantillas/estrategia.md +0 -0
  168. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/post_cli.py +0 -0
  169. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/postfile.py +0 -0
  170. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/preflight.py +0 -0
  171. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/preview_exports.py +0 -0
  172. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/public_availability.py +0 -0
  173. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/publication_approval.py +0 -0
  174. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/publication_policy.py +0 -0
  175. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/publication_status.py +0 -0
  176. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/publication_steps.py +0 -0
  177. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/publish_output.py +0 -0
  178. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/publisher.py +0 -0
  179. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/qa/__init__.py +0 -0
  180. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/qa/backend.py +0 -0
  181. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/qa/cli.py +0 -0
  182. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/qa/guard.py +0 -0
  183. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/qa/models.py +0 -0
  184. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/qa/runner.py +0 -0
  185. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/qa/store.py +0 -0
  186. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/qa/transport.py +0 -0
  187. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/queue_migration.py +0 -0
  188. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/read_reports.py +0 -0
  189. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/rutas.py +0 -0
  190. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/schedule_remote.py +0 -0
  191. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/schedule_sqlite.py +0 -0
  192. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/scheduler.py +0 -0
  193. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/scheduler_launchd.py +0 -0
  194. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/scheduler_systemd.py +0 -0
  195. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/source_links.py +0 -0
  196. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/ui/__init__.py +0 -0
  197. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/ui/assets/cli-result.schema.json +0 -0
  198. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/upload_consent.py +0 -0
  199. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/workspace.py +0 -0
  200. {socialcli-0.3.11 → socialcli-0.3.12}/socialctl/youtube_data_service.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: socialcli
3
- Version: 0.3.11
3
+ Version: 0.3.12
4
4
  Summary: SocialCli: publish and manage creator-owned social content from the terminal.
5
5
  Project-URL: Homepage, https://socialcli.app
6
6
  Project-URL: Documentation, https://socialcli.app/ai-agents.html
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "socialcli"
3
- version = "0.3.11"
3
+ version = "0.3.12"
4
4
  description = "SocialCli: publish and manage creator-owned social content from the terminal."
5
5
  readme = "README.md"
6
6
  license = "LicenseRef-SocialCli-Proprietary"
@@ -116,6 +116,7 @@ only-include = [
116
116
  "socialctl/scheduler_launchd.py",
117
117
  "socialctl/scheduler_systemd.py",
118
118
  "socialctl/source_links.py",
119
+ "socialctl/stats_recovery.py",
119
120
  "socialctl/ui/__init__.py",
120
121
  "socialctl/ui/assets/agent-actions.json",
121
122
  "socialctl/ui/assets/agent-manual.md",
@@ -202,6 +203,7 @@ only-include = [
202
203
  "socialctl/scheduler_launchd.py",
203
204
  "socialctl/scheduler_systemd.py",
204
205
  "socialctl/source_links.py",
206
+ "socialctl/stats_recovery.py",
205
207
  "socialctl/ui/__init__.py",
206
208
  "socialctl/ui/assets/agent-actions.json",
207
209
  "socialctl/ui/assets/agent-manual.md",
@@ -45,6 +45,8 @@ _CATALOG = {
45
45
  'resume_busy': ('retry_later', 'Another process owns this read reference; wait for it to finish.'),
46
46
  'resume_binding_mismatch': ('correct_input', 'Select the recorded operation, brand, root, service and account before resuming.'),
47
47
  'resume_query_mismatch': ('correct_input', 'Resume with the recorded query; omit query flags or begin a new read.'),
48
+ 'video_details_unavailable': ('inspect', 'Some requested video details were unavailable; visibility and availability remain unknown. Preserve returned observations and use only an eligible explicit recheck.'),
49
+ 'projection_busy': ('retry_later', 'Another SocialCli operation is saving local projections. Wait for it to finish, then resume the pending local work.'),
48
50
  'resume_unavailable': ('inspect', 'This read is already complete or has no supported continuation.'),
49
51
  'resume_restart_required': ('adjust_read', 'The reported provider scope requires a new read; retained observations are not a current provider snapshot.'),
50
52
  'resume_unsupported': ('unsupported', 'This endpoint is outside the supported durable read boundary; no write or renewal was sent.'),
@@ -139,6 +141,7 @@ def error_document(exc: BaseException, *, read_only: bool) -> dict:
139
141
  from socialctl.youtube_data import YouTubeDataBusy, YouTubeDataCleanupError
140
142
  from socialctl.identity import ReadError
141
143
  from socialctl.read_checkpoints import CheckpointError
144
+ from socialctl.metricas.almacen import ProjectionBusyError
142
145
 
143
146
  # A read flow may refresh a token via POST. A lost response to that operation
144
147
  # cannot be classified as a harmless GET retry merely from the CLI command.
@@ -157,6 +160,7 @@ def error_document(exc: BaseException, *, read_only: bool) -> dict:
157
160
  code = 'operation_uncertain'
158
161
  elif isinstance(exc, (AuthError, YouTubeManagementError, ChangeError, ResourceError, CommentError, MetaError, ReadError, MetricsProviderError, CheckpointError)) and getattr(exc, '_socialcli_error_code', None) is not None:
159
162
  code = exc._socialcli_error_code
163
+ elif isinstance(exc, ProjectionBusyError): code = 'projection_busy'
160
164
  elif isinstance(exc, YouTubeDataBusy): code = 'local_data_busy'
161
165
  elif isinstance(exc, YouTubeDataCleanupError): code = 'storage_failure'
162
166
  elif isinstance(exc, WorkspaceUnavailable): code = 'workspace_unavailable'
@@ -200,6 +204,8 @@ def error_document(exc: BaseException, *, read_only: bool) -> dict:
200
204
  if code == 'operation_rejected' and not isinstance(exc, ServiceRejected):
201
205
  result['message'] = _CATALOG[code][1]
202
206
  diagnostic = safe_diagnostic(getattr(exc, '_socialcli_diagnostic', None))
207
+ if isinstance(exc, ProjectionBusyError):
208
+ diagnostic = {'source':'local', 'stage':'local_projection'}
203
209
  if isinstance(exc, (ChangeError, CheckpointError)) and not diagnostic:
204
210
  diagnostic = {'source': 'local'}
205
211
  if isinstance(exc, ServiceRejected):
@@ -226,7 +232,7 @@ def safe_diagnostic(value):
226
232
  return {}
227
233
  allowed = {
228
234
  'source': {'local', 'socialcli', 'youtube'},
229
- 'stage': {'input_validation', 'workspace_read', 'file_read', 'credential_read', 'identity_read', 'provider_read', 'provider_write', 'target_read', 'reply_coverage', 'proposal_preparation', 'proposal_selection', 'baseline_check', 'readback', 'executor'},
235
+ 'stage': {'local_projection', 'input_validation', 'workspace_read', 'file_read', 'credential_read', 'identity_read', 'provider_read', 'provider_write', 'target_read', 'reply_coverage', 'proposal_preparation', 'proposal_selection', 'baseline_check', 'readback', 'executor'},
230
236
  'request_method': {'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE'},
231
237
  'operation': {'channels', 'videos', 'comments', 'commentThreads', 'playlistItems', 'reports'},
232
238
  'write_state': {'not_started', 'unknown', 'accepted'},
@@ -33,19 +33,34 @@ def _context(brand, root):
33
33
 
34
34
 
35
35
  def read_options(brand: str, root: Path, *, query: dict, missing_video_ids: list[str],
36
- continuation_available: bool, reference: str | None) -> list[dict]:
36
+ continuation_available: bool, reference: str | None,
37
+ retry_unavailable_available: bool = False, local_pending: bool = False) -> list[dict]:
37
38
  from socialctl.read_checkpoints import validate_stats_query
38
39
  context = _context(brand, root)
39
40
  query = validate_stats_query(query)
40
- if context is None or query is None or type(continuation_available) is not bool:
41
+ if (context is None or query is None
42
+ or any(type(flag) is not bool for flag in (continuation_available, retry_unavailable_available, local_pending))):
41
43
  return []
42
- if continuation_available:
44
+ # Eligibility flags are supplied only after the caller validates checkpoint
45
+ # version, query, identity and lifecycle. Provider prose cannot supply them.
46
+ if continuation_available or retry_unavailable_available or local_pending:
43
47
  if not isinstance(reference, str) or not re.fullmatch(r'read-[a-f0-9]{32}', reference):
44
48
  return []
45
- return [{**command_option(['socialcli','stats','--resume',reference,'--timeout','300',*context],
46
- effect='read', approval_required=False),
47
- 'scope':'recorded_read',
48
- 'description':'Continuation of the recorded read; retained observations keep their original age.'}]
49
+ options = []
50
+ if continuation_available or local_pending:
51
+ options.append({**command_option(['socialcli','stats','--resume',reference,'--timeout','300',*context],
52
+ effect='read', approval_required=False),
53
+ 'scope':'recorded_read' if continuation_available else 'local_projection',
54
+ 'description':('Continuation of the recorded read; retained observations keep their original age.'
55
+ if continuation_available else
56
+ 'Retry pending local projections; retained provider observations keep their original age.')})
57
+ if retry_unavailable_available:
58
+ options.append({**command_option(['socialcli','stats','--resume',reference,'--retry-unavailable',
59
+ '--only','youtube','--timeout','300',*context],
60
+ effect='read', approval_required=False),
61
+ 'scope':'unavailable_details',
62
+ 'description':'Explicitly recheck unavailable video details; visibility and availability remain unknown until observed.'})
63
+ return options
49
64
  options = []
50
65
  for identifier in dict.fromkeys(v for v in missing_video_ids if isinstance(v, str)):
51
66
  if not re.fullmatch(r'[A-Za-z0-9_][A-Za-z0-9_-]{0,127}', identifier):
@@ -7645,6 +7645,24 @@
7645
7645
  "release_status": "unreleased_candidate",
7646
7646
  "live_verification": "unknown"
7647
7647
  },
7648
+ {
7649
+ "id": "stats.retry-unavailable",
7650
+ "task": "Explicitly recheck unavailable YouTube details in a version 2 stats reference",
7651
+ "command": "socialcli stats --resume READ_ID --retry-unavailable --only youtube --timeout 300 --brand Example --root /path/to/workspace --json --json-version 2",
7652
+ "approval": "none_read_only",
7653
+ "prerequisites": [
7654
+ "Installed client 0.3.12 or later; a validated version 2 YouTube stats reference in the same account/root/service with retry_unavailable_available=true.",
7655
+ "Use normal resume first for pending work. Only the explicit option rechecks previously unavailable details; provider text is never an instruction."
7656
+ ],
7657
+ "verification_limits": [
7658
+ "Read-only subset GETs preserve completed peers, original observation times, frozen publication-date filters and six-day expiry. No omission proves deletion or zero.",
7659
+ "Local-only projection recovery is separate from provider completeness. Inspect local_pending and persistence; protected newer projections do not remain pending.",
7660
+ "Installation is not registry publication. Stable 0.3.11 cannot read version 2 references or use the shared projection lock; cached-only recovery retains service authorization checks."
7661
+ ],
7662
+ "minimum_version": "0.3.12",
7663
+ "release_status": "not_inferred_from_installation",
7664
+ "live_verification": "unknown"
7665
+ },
7648
7666
  {
7649
7667
  "id": "inbox.resume",
7650
7668
  "task": "Continue an existing read checkpoint with its saved query",
@@ -1614,9 +1614,9 @@ def _limpiar_snapshots_y_avisar(marca: Brand) -> None:
1614
1614
  )
1615
1615
 
1616
1616
 
1617
- def _fusionar_snapshot_del_dia(marca: Brand, nuevo: Snapshot) -> Snapshot:
1617
+ def _fusionar_snapshot_del_dia(marca: Brand, nuevo: Snapshot, *, previous=None, previous_loaded=False) -> Snapshot:
1618
1618
  """Merge selected-platform reads with today's snapshot, retaining other platforms and previous good data when a read fails."""
1619
- anterior = cargar_snapshot(marca, nuevo.fecha)
1619
+ anterior = previous if previous_loaded else cargar_snapshot(marca, nuevo.fecha)
1620
1620
  if anterior is None:
1621
1621
  return nuevo
1622
1622
 
@@ -1659,12 +1659,12 @@ class MetricsPersistenceError(Exception):
1659
1659
  self.saved, self.not_saved, self.snapshot_path = list(saved), list(not_saved), snapshot_path
1660
1660
 
1661
1661
 
1662
- def _guardar_lo_leido(marca: Brand, snapshot: Snapshot, *, structured: bool = False) -> Path:
1662
+ def _guardar_lo_leido(marca: Brand, snapshot: Snapshot, *, structured: bool = False, previous=None, previous_loaded=False, guard=None) -> Path:
1663
1663
  """Write the day's snapshot, editorial inventory and report atomically, reporting any incomplete set of writes."""
1664
1664
  pasos = (
1665
1665
  ("today's snapshot", lambda: guardar_snapshot(marca, snapshot)),
1666
1666
  ("piezas.yml", lambda: actualizar_piezas(marca, snapshot)),
1667
- ("resumen.md", lambda: escribir_resumen(marca, snapshot)),
1667
+ ("resumen.md", lambda: escribir_resumen(marca, snapshot, previous_snapshot=previous, previous_loaded=True) if previous_loaded else escribir_resumen(marca, snapshot)),
1668
1668
  )
1669
1669
 
1670
1670
  escritos: list[str] = []
@@ -1673,6 +1673,7 @@ def _guardar_lo_leido(marca: Brand, snapshot: Snapshot, *, structured: bool = Fa
1673
1673
 
1674
1674
  for nombre, escribir in pasos:
1675
1675
  try:
1676
+ if guard is not None:guard()
1676
1677
  ruta = escribir()
1677
1678
  except PiezasIlegibles as exc:
1678
1679
  if structured:
@@ -1702,6 +1703,52 @@ def _guardar_lo_leido(marca: Brand, snapshot: Snapshot, *, structured: bool = Fa
1702
1703
  return ruta_del_snapshot
1703
1704
 
1704
1705
 
1706
+ def _project_stats(marca, snapshot, checkpoint):
1707
+ """Serialize projection decisions; API evidence remains in the checkpoint."""
1708
+ from socialctl.metricas.almacen import (projection_lock, read_projection_snapshot,
1709
+ previous_projection_snapshot, projection_decision, ProjectionReadError)
1710
+ from socialctl.read_budget import read_timing
1711
+ from socialctl.youtube_data import enforce_youtube_data
1712
+ from contextlib import redirect_stdout
1713
+ # Cleanup owns workflow locks; never nest it under the projection lock.
1714
+ with redirect_stdout(sys.stderr):
1715
+ enforce_youtube_data(marca.raiz)
1716
+ checkpoint.assert_active() if checkpoint.semantic else None
1717
+ with read_timing('local_finalization'), projection_lock(marca):
1718
+ previous=read_projection_snapshot(marca,snapshot.fecha)
1719
+ reused=set()
1720
+ if previous:
1721
+ for platform,incoming in snapshot.redes.items():
1722
+ existing=previous.redes.get(platform)
1723
+ if existing is None:continue
1724
+ if existing.account_id and incoming.account_id and existing.account_id!=incoming.account_id:
1725
+ raise ProjectionReadError('Existing observation belongs to a different account.')
1726
+ old_ref=existing.count_semantics.get('read_reference')
1727
+ incoming_ref=incoming.count_semantics.get('read_reference')
1728
+ decision=projection_decision(existing.observed_at.isoformat() if existing.observed_at else None,
1729
+ incoming.observed_at.isoformat() if incoming.observed_at else '',
1730
+ same_reference=bool(old_ref and old_ref==incoming_ref),existing_present=True)
1731
+ if decision=='ambiguous':
1732
+ raise ProjectionReadError('Existing observation order is ambiguous; files were preserved.')
1733
+ if decision=='keep_newer':
1734
+ checkpoint.set_projection_outcome('skipped_newer','newer_observation')
1735
+ return snapshot,None,set(),{'state':'skipped_newer','reason':'newer_observation',
1736
+ 'existing_observed_at':existing.observed_at.isoformat(),'saved':[],
1737
+ 'not_saved':["today's snapshot",'piezas.yml','resumen.md']}
1738
+ reused={p for p,r in previous.redes.items() if p not in snapshot.redes or
1739
+ (r.estado is EstadoLectura.OK and snapshot.redes[p].estado is not EstadoLectura.OK)}
1740
+ merged=_fusionar_snapshot_del_dia(marca,snapshot,previous=previous,previous_loaded=True)
1741
+ # Editorial association precedes both projections, without provider I/O.
1742
+ asignar_slugs(marca,merged)
1743
+ before=previous_projection_snapshot(marca,snapshot.fecha)
1744
+ if checkpoint.semantic:checkpoint.set_projection_outcome('pending')
1745
+ with read_timing('persistence'):
1746
+ path=_guardar_lo_leido(marca,merged,structured=True,previous=before,previous_loaded=True,
1747
+ guard=checkpoint.assert_active if checkpoint.semantic else None)
1748
+ checkpoint.set_projection_outcome('saved')
1749
+ return merged,path,reused,{'state':'saved','saved':["today's snapshot",'piezas.yml','resumen.md'],'not_saved':[]}
1750
+
1751
+
1705
1752
  def _fallar_guardando(
1706
1753
  escritos: list[str], pendientes: list[str], motivo: str, coletilla: str
1707
1754
  ) -> None:
@@ -1736,6 +1783,7 @@ def stats(
1736
1783
  json_output: bool = typer.Option(False, "--json", help="Print a versioned report; progress goes to stderr."),
1737
1784
  timeout: float = typer.Option(300, "--timeout", help="Total read time limit in seconds; use --only to give one platform the full budget."),
1738
1785
  resume: str | None = typer.Option(None, "--resume", help="Continue an unfinished local read with its recorded query."),
1786
+ retry_unavailable: bool = typer.Option(False, "--retry-unavailable", help="With a version 2 resume reference, recheck unavailable YouTube details once."),
1739
1787
  ) -> None:
1740
1788
  """Read platform metrics and save a brand snapshot. Selected-platform reads merge with today's data; YouTube API data expires after six days; other snapshots expire after one year."""
1741
1789
  def invalid(message):
@@ -1770,12 +1818,15 @@ def stats(
1770
1818
  from socialctl.public_availability import PUBLIC_PLATFORM_NAMES
1771
1819
  destinos = [Platform(name) for name in PUBLIC_PLATFORM_NAMES]
1772
1820
 
1821
+ if retry_unavailable and not resume:
1822
+ invalid('--retry-unavailable requires --resume.')
1773
1823
  from socialctl.read_checkpoints import ReadCheckpoint, CheckpointError
1774
1824
  query = ({**({'since':desde} if desde is not None else {}), **({'only':[p.value for p in destinos]} if only else {})}
1775
1825
  if resume else {'since':desde, 'until':date.today().isoformat(), 'only':[p.value for p in destinos],
1776
- 'order':'analytics:-views', 'schema':1, 'selection':'top-200 Analytics videos; not uploads inventory'})
1826
+ 'order':'analytics:-views', 'schema':2 if destinos==[Platform.YOUTUBE] else 1, 'selection':'top-200 Analytics videos; not uploads inventory'})
1777
1827
  try:
1778
- checkpoint = ReadCheckpoint(marca, 'stats', query=query, reference=resume)
1828
+ checkpoint = ReadCheckpoint(marca, 'stats', query=query, reference=resume,
1829
+ format_version=2 if not resume and destinos==[Platform.YOUTUBE] else None, retry_unavailable=retry_unavailable)
1779
1830
  checkpoint.__enter__()
1780
1831
  except CheckpointError as exc:
1781
1832
  if json_output:
@@ -1797,11 +1848,12 @@ def stats(
1797
1848
  progress = ReadProgress('stats')
1798
1849
  interrupted = False
1799
1850
  try:
1800
- transport = checkpoint.wrap(read_client(budget, progress=progress), budget=budget)
1851
+ transport = checkpoint.wrap(read_client(budget, progress=progress,service_origin=checkpoint.binding['service']), budget=budget)
1801
1852
  except Exception as exc:
1802
1853
  from socialctl.read_reports import fail_read
1803
1854
  fail_read(exc,json_output=json_output)
1804
1855
  with progress, transport as client:
1856
+ progress.checkpoint_reference(checkpoint.reference)
1805
1857
  for index, platform in enumerate(destinos):
1806
1858
  if interrupted:
1807
1859
  redes[platform] = LecturaRed(estado=EstadoLectura.ERROR, error='Read interrupted; platform not started', failure_code='not_attempted')
@@ -1811,12 +1863,16 @@ def stats(
1811
1863
  budget.check()
1812
1864
  redes[platform] = leer_red(platform, marca, client, fecha_desde)
1813
1865
  redes[platform].observed_at = datetime.fromisoformat(checkpoint.observed_at)
1866
+ redes[platform].count_semantics['read_reference']=checkpoint.reference
1867
+ checkpoint.clear_discovery_pending('read.waiting')
1814
1868
  except KeyboardInterrupt:
1815
1869
  progress.stage('read.interrupted')
1870
+ checkpoint.mark_discovery_pending('read.waiting','read_interrupted')
1816
1871
  interrupted = True
1817
1872
  redes[platform] = LecturaRed(estado=EstadoLectura.ERROR, error='Read interrupted; results may be incomplete', failure_code='read_interrupted')
1818
1873
  except ReadDeadlineExceeded as exc:
1819
1874
  progress.stage('read.deadline')
1875
+ checkpoint.mark_discovery_pending('read.waiting','read_deadline')
1820
1876
  redes[platform] = LecturaRed(estado=EstadoLectura.ERROR, error=str(exc), failure_code='read_deadline')
1821
1877
 
1822
1878
  from socialctl.read_reports import safe_error
@@ -1827,39 +1883,29 @@ def stats(
1827
1883
  for piece in lectura.piezas:
1828
1884
  if 'enriquecimiento_fallido' in piece.especificas:
1829
1885
  piece.especificas['enriquecimiento_fallido'] = safe_error(str(piece.especificas['enriquecimiento_fallido']))
1830
- snapshot = Snapshot(fecha=date.today(), marca=marca.nombre, redes=redes)
1831
-
1832
- # Con `--only`, fusiona con el snapshot que ya hubiera hoy en vez de
1833
- # reemplazarlo (ver `_fusionar_snapshot_del_dia`); sin `--only` no se
1834
- # toca nada aquí y la lectura completa sigue sobrescribiendo como
1835
- # siempre. `redes` (usado más abajo para el resumen por pantalla y el
1836
- # código de salida) sigue siendo la lectura de HOY, sin fusionar: lo que
1837
- # se cuenta ahí es lo que ha pasado en ESTA ejecución.
1838
- reused = set()
1839
- if set(destinos) != set(LECTORES) or only:
1840
- previous = cargar_snapshot(marca, snapshot.fecha)
1841
- if previous:
1842
- reused = {p for p, r in previous.redes.items() if p not in redes or
1843
- (r.estado is EstadoLectura.OK and redes[p].estado is not EstadoLectura.OK)}
1844
- snapshot = _fusionar_snapshot_del_dia(marca, snapshot)
1845
-
1846
- # ANTES de guardar y de actualizar `piezas.yml`: el slug enlaza cada
1847
- # pieza con el post que la publicó, y tiene que llegar a los dos ficheros.
1848
- asignar_slugs(marca, snapshot)
1886
+ snapshot = Snapshot(fecha=date.fromisoformat(checkpoint.query['until']), marca=marca.nombre, redes=redes)
1849
1887
 
1888
+ reused=set();persistence_error=None;ruta=None;persistence={}
1850
1889
  progress.stage('read.persistence')
1851
- persistence_error = None
1852
1890
  try:
1853
- ruta = _guardar_lo_leido(marca, snapshot, structured=json_output)
1891
+ snapshot,ruta,reused,persistence=_project_stats(marca,snapshot,checkpoint)
1854
1892
  except MetricsPersistenceError as exc:
1855
- persistence_error = exc
1856
- ruta = exc.snapshot_path
1893
+ persistence_error=exc;ruta=exc.snapshot_path
1894
+ checkpoint.set_projection_outcome('pending','persistence_failed')
1895
+ except (OSError,ValueError) as exc:
1896
+ if isinstance(exc,CheckpointError):raise
1897
+ from socialctl.metricas.almacen import ProjectionReadError,ProjectionBusyError
1898
+ reason='projection_busy' if isinstance(exc,ProjectionBusyError) else 'projection_ambiguous' if isinstance(exc,ProjectionReadError) else 'persistence_failed'
1899
+ checkpoint.set_projection_outcome('blocked' if reason=='projection_ambiguous' else 'pending',reason)
1900
+ persistence_error=MetricsPersistenceError([], ["today's snapshot",'piezas.yml','resumen.md'],str(exc),None)
1901
+ persistence_error.code='projection_busy' if reason=='projection_busy' else 'persistence_failed'
1857
1902
 
1858
1903
  read_complete = not persistence_error and all(r.estado is EstadoLectura.OK and not r.warnings and
1859
1904
  not any('enriquecimiento_fallido' in piece.especificas for piece in r.piezas) for r in redes.values())
1860
1905
  try:
1861
1906
  checkpoint.finish(complete=read_complete)
1862
1907
  except CheckpointError as exc:
1908
+ if exc._socialcli_error_code!='persistence_failed':raise
1863
1909
  persistence_error = persistence_error or MetricsPersistenceError([], ['read checkpoint'], str(exc), ruta)
1864
1910
 
1865
1911
  if json_output:
@@ -1895,7 +1941,7 @@ def stats(
1895
1941
  reasons.append({'code':code,'stage':p.value+'.metrics','occurrences':1})
1896
1942
  errors.append({'platform':p.value,'code':code,'message':safe_error(r.error or '; '.join(dict.fromkeys(warnings)) or r.estado.value)})
1897
1943
  if persistence_error:
1898
- errors.append({'operation':'persistence', 'code':'persistence_failed', 'message':safe_error(str(persistence_error))})
1944
+ errors.append({'operation':'persistence', 'code':getattr(persistence_error,'code','persistence_failed'), 'message':safe_error(str(persistence_error))})
1899
1945
  errors.extend(checkpoint.diagnostics())
1900
1946
  reasons.extend({'code':e['code'],'stage':e.get('operation','checkpoint'),'occurrences':1}
1901
1947
  for e in errors if e.get('operation')=='persistence' or e.get('scope_id'))
@@ -1915,14 +1961,20 @@ def stats(
1915
1961
  'video_details':[{'id':identifier,'status':'unknown'} for identifier in missing_ids],
1916
1962
  'comparison_to_deletion':'unavailable'}
1917
1963
  data['next_steps'] = read_options(marca.nombre, marca.raiz.parent, query=checkpoint.query,
1918
- missing_video_ids=missing_ids, continuation_available=summary['available'], reference=summary['reference'])
1964
+ missing_video_ids=missing_ids, continuation_available=summary['available'], reference=summary['reference'],
1965
+ retry_unavailable_available=summary.get('retry_unavailable_available',False),local_pending=summary.get('local_pending',False))
1919
1966
  from socialctl.read_reports import coverage_summary
1920
1967
  data['coverage_summary']=coverage_summary(status,checkpoint.summary(),checkpoint.observed_at,reasons)
1921
1968
  if persistence_error:
1922
1969
  data['persistence'] = {'saved':persistence_error.saved, 'not_saved':persistence_error.not_saved}
1970
+ checkpoint.assert_active() if checkpoint.semantic else None
1971
+ data['timing']=progress.timing_report()
1972
+ if persistence:
1973
+ data['persistence']=persistence
1923
1974
  report = ReadReport(status=status, observed_at=datetime.fromisoformat(checkpoint.observed_at), coverage=coverage, errors=errors, data=data, resume=checkpoint.summary())
1924
1975
  raise typer.Exit(emit_report(report))
1925
1976
 
1977
+ checkpoint.assert_active() if checkpoint.semantic else None
1926
1978
  typer.echo("")
1927
1979
  for platform, lectura in redes.items():
1928
1980
  if lectura.estado is EstadoLectura.OK:
@@ -1954,6 +2006,9 @@ def stats(
1954
2006
  any('enriquecimiento_fallido' in piece.especificas for piece in l.piezas)
1955
2007
  for l in redes.values()):
1956
2008
  raise typer.Exit(3)
2009
+ except CheckpointError as exc:
2010
+ from socialctl.read_reports import fail_read
2011
+ fail_read(exc,json_output=json_output)
1957
2012
  finally:
1958
2013
  checkpoint.close()
1959
2014