evo-agents-core-plugins 2.6.2__tar.gz → 2.7.0__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 (191) hide show
  1. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/PKG-INFO +14 -1
  2. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/README.md +13 -0
  3. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_agents_core_plugins.egg-info/PKG-INFO +14 -1
  4. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/__init__.py +1 -1
  5. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/telegram/__init__.py +1 -1
  6. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/telegram/bridge.py +14 -6
  7. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/telegram/server.py +78 -22
  8. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/LICENSE +0 -0
  9. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_agents_core_plugins.egg-info/SOURCES.txt +0 -0
  10. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_agents_core_plugins.egg-info/dependency_links.txt +0 -0
  11. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_agents_core_plugins.egg-info/entry_points.txt +0 -0
  12. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_agents_core_plugins.egg-info/top_level.txt +0 -0
  13. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/__main__.py +0 -0
  14. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/chats/__init__.py +0 -0
  15. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/chats/kg.py +0 -0
  16. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/crm/__init__.py +0 -0
  17. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/crm/cli.json +0 -0
  18. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/crm/cli_text.py +0 -0
  19. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/crm/github.py +0 -0
  20. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/crm/intake.py +0 -0
  21. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/crm/job.py +0 -0
  22. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/crm/kg.py +0 -0
  23. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/crm/loop.py +0 -0
  24. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/crm/migrations/0001_adopt.py +0 -0
  25. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/crm/migrations/__init__.py +0 -0
  26. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/crm/models.py +0 -0
  27. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/crm/push.py +0 -0
  28. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/crm/rules.py +0 -0
  29. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/crm/server.py +0 -0
  30. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/crm/settings.py +0 -0
  31. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/crm/staging.py +0 -0
  32. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/crm/store.py +0 -0
  33. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/crm/tables.py +0 -0
  34. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/crm/tools.py +0 -0
  35. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/crm/ui/pages/common.css +0 -0
  36. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/crm/ui/pages/common.js +0 -0
  37. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/crm/ui/pages/contacts.html +0 -0
  38. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/crm/ui/pages/contacts.js +0 -0
  39. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/crm/ui/pages/i18n/en.js +0 -0
  40. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/crm/ui/pages/i18n/vi.js +0 -0
  41. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/__init__.py +0 -0
  42. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/cli.json +0 -0
  43. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/cli_text.py +0 -0
  44. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/document.py +0 -0
  45. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/events.py +0 -0
  46. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/flow.py +0 -0
  47. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/judge.py +0 -0
  48. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/kg.py +0 -0
  49. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/ledger.py +0 -0
  50. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/marginalia.py +0 -0
  51. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/migrations/0001_create.py +0 -0
  52. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/migrations/0002_flow.py +0 -0
  53. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/migrations/__init__.py +0 -0
  54. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/models.py +0 -0
  55. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/probes.py +0 -0
  56. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/server.py +0 -0
  57. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/service.py +0 -0
  58. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/settings.py +0 -0
  59. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/store.py +0 -0
  60. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/tables.py +0 -0
  61. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/tools.py +0 -0
  62. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/ui/pages/common.css +0 -0
  63. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/ui/pages/common.js +0 -0
  64. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/ui/pages/editorial.css +0 -0
  65. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/ui/pages/feedback.html +0 -0
  66. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/ui/pages/feedback.js +0 -0
  67. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/ui/pages/i18n/en.js +0 -0
  68. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/ui/pages/i18n/vi.js +0 -0
  69. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/ui/pages/post-actions.js +0 -0
  70. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/ui/pages/post-list.js +0 -0
  71. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/ui/pages/posts.html +0 -0
  72. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/ui/pages/posts.js +0 -0
  73. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/editorial/ui/pages/workspace.js +0 -0
  74. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/jev/__init__.py +0 -0
  75. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/jev/automatic.py +0 -0
  76. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/jev/cli.json +0 -0
  77. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/jev/cli_text.py +0 -0
  78. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/jev/client.py +0 -0
  79. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/jev/corrections.py +0 -0
  80. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/jev/migrations/0001_create.py +0 -0
  81. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/jev/migrations/0002_asked_matches.py +0 -0
  82. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/jev/migrations/__init__.py +0 -0
  83. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/jev/models.py +0 -0
  84. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/jev/rank.py +0 -0
  85. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/jev/review.py +0 -0
  86. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/jev/server.py +0 -0
  87. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/jev/service.py +0 -0
  88. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/jev/settings.py +0 -0
  89. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/jev/store.py +0 -0
  90. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/jev/tables.py +0 -0
  91. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/jev/tools.py +0 -0
  92. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/jev/triage.py +0 -0
  93. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/jev/ui/pages/common.css +0 -0
  94. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/jev/ui/pages/common.js +0 -0
  95. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/jev/ui/pages/i18n/en.js +0 -0
  96. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/jev/ui/pages/i18n/vi.js +0 -0
  97. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/jev/ui/pages/jev.css +0 -0
  98. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/jev/ui/pages/jev.html +0 -0
  99. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/jev/ui/pages/jev.js +0 -0
  100. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/__init__.py +0 -0
  101. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/adapters/__init__.py +0 -0
  102. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/adapters/apis.py +0 -0
  103. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/adapters/base.py +0 -0
  104. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/adapters/oauth1.py +0 -0
  105. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/breaker.py +0 -0
  106. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/browser.py +0 -0
  107. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/budget.py +0 -0
  108. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/campaign.py +0 -0
  109. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/cli.json +0 -0
  110. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/cli_text.py +0 -0
  111. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/flow.py +0 -0
  112. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/gate.py +0 -0
  113. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/health.py +0 -0
  114. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/job.py +0 -0
  115. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/judge.py +0 -0
  116. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/loop.py +0 -0
  117. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/metrics.py +0 -0
  118. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/migrations/0001_adopt.py +0 -0
  119. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/migrations/__init__.py +0 -0
  120. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/models.py +0 -0
  121. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/outcome.py +0 -0
  122. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/push.py +0 -0
  123. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/registry.py +0 -0
  124. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/replies.py +0 -0
  125. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/server.py +0 -0
  126. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/settings.py +0 -0
  127. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/store.py +0 -0
  128. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/tables.py +0 -0
  129. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/tools.py +0 -0
  130. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/ui/pages/common.css +0 -0
  131. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/ui/pages/common.js +0 -0
  132. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/ui/pages/decide.html +0 -0
  133. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/ui/pages/decide.js +0 -0
  134. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/ui/pages/i18n/en.js +0 -0
  135. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/ui/pages/i18n/vi.js +0 -0
  136. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/ui/pages/marketing.js +0 -0
  137. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/ui/pages/overview.html +0 -0
  138. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/ui/pages/overview.js +0 -0
  139. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/ui/pages/posts.html +0 -0
  140. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/ui/pages/posts.js +0 -0
  141. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/ui/pages/weekly.html +0 -0
  142. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/ui/pages/weekly.js +0 -0
  143. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/marketing/weekly.py +0 -0
  144. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/okr/__init__.py +0 -0
  145. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/okr/cli.json +0 -0
  146. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/okr/cli_text.py +0 -0
  147. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/okr/facts.py +0 -0
  148. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/okr/migrations/0001_create.py +0 -0
  149. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/okr/migrations/__init__.py +0 -0
  150. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/okr/models.py +0 -0
  151. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/okr/rules.py +0 -0
  152. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/okr/server.py +0 -0
  153. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/okr/service.py +0 -0
  154. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/okr/store.py +0 -0
  155. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/okr/tables.py +0 -0
  156. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/okr/tools.py +0 -0
  157. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/okr/ui/pages/common.css +0 -0
  158. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/okr/ui/pages/common.js +0 -0
  159. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/okr/ui/pages/i18n/en.js +0 -0
  160. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/okr/ui/pages/i18n/vi.js +0 -0
  161. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/okr/ui/pages/tree.css +0 -0
  162. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/okr/ui/pages/tree.html +0 -0
  163. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/okr/ui/pages/tree.js +0 -0
  164. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/pm/__init__.py +0 -0
  165. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/pm/agent.py +0 -0
  166. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/pm/cli.json +0 -0
  167. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/pm/cli_text.py +0 -0
  168. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/pm/facts.py +0 -0
  169. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/pm/job.py +0 -0
  170. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/pm/migrations/0001_adopt.py +0 -0
  171. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/pm/migrations/__init__.py +0 -0
  172. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/pm/models.py +0 -0
  173. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/pm/outcome.py +0 -0
  174. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/pm/reads.py +0 -0
  175. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/pm/report.py +0 -0
  176. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/pm/server.py +0 -0
  177. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/pm/service.py +0 -0
  178. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/pm/settings.py +0 -0
  179. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/pm/sprint_view.py +0 -0
  180. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/pm/tables.py +0 -0
  181. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/pm/ui/pages/common.css +0 -0
  182. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/pm/ui/pages/common.js +0 -0
  183. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/pm/ui/pages/daily.html +0 -0
  184. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/pm/ui/pages/daily.js +0 -0
  185. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/pm/ui/pages/i18n/en.js +0 -0
  186. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/pm/ui/pages/i18n/vi.js +0 -0
  187. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/pm/workdays.py +0 -0
  188. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/telegram/bridge_model.py +0 -0
  189. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/evo_core_plugins/telegram/model.py +0 -0
  190. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/pyproject.toml +0 -0
  191. {evo_agents_core_plugins-2.6.2 → evo_agents_core_plugins-2.7.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: evo-agents-core-plugins
3
- Version: 2.6.2
3
+ Version: 2.7.0
4
4
  Summary: The first-party core plugins of the evo-agents hub: Telegram, the chat history in the knowledge graph, crm, pm, marketing, editorial, okr and jev (TypeSafe's Jev)
5
5
  Author: maycuatroi
6
6
  License-Expression: Apache-2.0
@@ -100,6 +100,19 @@ versions.
100
100
 
101
101
  ### Releases
102
102
 
103
+ - **2.7.0**: telegram 1.2.0 finishes an answer in words (UC DEV-8). A reply to a decision's message answers that
104
+ decision alone; the bot edits the message to say who answered it in words, drops its options, keeps its web button,
105
+ and tells the member the answer went to the run. Words that reply to no decision's message answer nothing and get
106
+ how to reply; a decision answered already (on Telegram, the web or the CLI) changes nothing and the member is told
107
+ so; words the hub refuses because they look like they hold a secret get their own message, which does not repeat
108
+ them. The decision keeping the channel (`answered_via`) and the refusal of secrets are the hub's (evo-agents, plan
109
+ dev8-telegram-free-answer step 1): an older hub keeps no channel and filters nothing. API 1.7, no migration.
110
+
111
+ - **2.6.3**: telegram 1.1.2 tells the hub how long a held message waits: the bridge's `Later` carries
112
+ `retry_after`, the pace's wait when a group has had its 20 messages a minute, Telegram's `retry_after` on a 429,
113
+ 1 second when files are left for the next try. A hub of evo-agents pull request #569 (plan events-out-in-seconds)
114
+ tries the event again then instead of after its minute of backoff; an older hub ignores it. API 1.7, no migration.
115
+
103
116
  - **2.6.2**: telegram 1.1.1 shows the bot as typing in a bridged group while a run that the group started is
104
117
  picked up or working (sendChatAction every 4 seconds, at most 30 minutes a run). API 1.7, no migration.
105
118
 
@@ -84,6 +84,19 @@ versions.
84
84
 
85
85
  ### Releases
86
86
 
87
+ - **2.7.0**: telegram 1.2.0 finishes an answer in words (UC DEV-8). A reply to a decision's message answers that
88
+ decision alone; the bot edits the message to say who answered it in words, drops its options, keeps its web button,
89
+ and tells the member the answer went to the run. Words that reply to no decision's message answer nothing and get
90
+ how to reply; a decision answered already (on Telegram, the web or the CLI) changes nothing and the member is told
91
+ so; words the hub refuses because they look like they hold a secret get their own message, which does not repeat
92
+ them. The decision keeping the channel (`answered_via`) and the refusal of secrets are the hub's (evo-agents, plan
93
+ dev8-telegram-free-answer step 1): an older hub keeps no channel and filters nothing. API 1.7, no migration.
94
+
95
+ - **2.6.3**: telegram 1.1.2 tells the hub how long a held message waits: the bridge's `Later` carries
96
+ `retry_after`, the pace's wait when a group has had its 20 messages a minute, Telegram's `retry_after` on a 429,
97
+ 1 second when files are left for the next try. A hub of evo-agents pull request #569 (plan events-out-in-seconds)
98
+ tries the event again then instead of after its minute of backoff; an older hub ignores it. API 1.7, no migration.
99
+
87
100
  - **2.6.2**: telegram 1.1.1 shows the bot as typing in a bridged group while a run that the group started is
88
101
  picked up or working (sendChatAction every 4 seconds, at most 30 minutes a run). API 1.7, no migration.
89
102
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: evo-agents-core-plugins
3
- Version: 2.6.2
3
+ Version: 2.7.0
4
4
  Summary: The first-party core plugins of the evo-agents hub: Telegram, the chat history in the knowledge graph, crm, pm, marketing, editorial, okr and jev (TypeSafe's Jev)
5
5
  Author: maycuatroi
6
6
  License-Expression: Apache-2.0
@@ -100,6 +100,19 @@ versions.
100
100
 
101
101
  ### Releases
102
102
 
103
+ - **2.7.0**: telegram 1.2.0 finishes an answer in words (UC DEV-8). A reply to a decision's message answers that
104
+ decision alone; the bot edits the message to say who answered it in words, drops its options, keeps its web button,
105
+ and tells the member the answer went to the run. Words that reply to no decision's message answer nothing and get
106
+ how to reply; a decision answered already (on Telegram, the web or the CLI) changes nothing and the member is told
107
+ so; words the hub refuses because they look like they hold a secret get their own message, which does not repeat
108
+ them. The decision keeping the channel (`answered_via`) and the refusal of secrets are the hub's (evo-agents, plan
109
+ dev8-telegram-free-answer step 1): an older hub keeps no channel and filters nothing. API 1.7, no migration.
110
+
111
+ - **2.6.3**: telegram 1.1.2 tells the hub how long a held message waits: the bridge's `Later` carries
112
+ `retry_after`, the pace's wait when a group has had its 20 messages a minute, Telegram's `retry_after` on a 429,
113
+ 1 second when files are left for the next try. A hub of evo-agents pull request #569 (plan events-out-in-seconds)
114
+ tries the event again then instead of after its minute of backoff; an older hub ignores it. API 1.7, no migration.
115
+
103
116
  - **2.6.2**: telegram 1.1.1 shows the bot as typing in a bridged group while a run that the group started is
104
117
  picked up or working (sendChatAction every 4 seconds, at most 30 minutes a run). API 1.7, no migration.
105
118
 
@@ -10,7 +10,7 @@ which every plugin of one release shares.
10
10
  Nothing here imports another plugin's package: ``PLUGINS`` names them for the checks and the command alone.
11
11
  """
12
12
 
13
- __version__ = "2.6.2"
13
+ __version__ = "2.7.0"
14
14
 
15
15
  PLUGINS = (
16
16
  "telegram",
@@ -31,7 +31,7 @@ BRIDGE = "evo_core_plugins.telegram.bridge"
31
31
 
32
32
  MANIFEST = {
33
33
  "id": "telegram",
34
- "version": "1.1.1",
34
+ "version": "1.2.0",
35
35
  "publisher": "evo-agents",
36
36
  "tier": "core",
37
37
  "name": "Telegram",
@@ -24,8 +24,9 @@ check) go with it: a photo within 10 MB with sendPhoto, any file within 50 MB wi
24
24
  message, or the first of them with its author as the caption when the message is files alone; a larger file stays on
25
25
  the hub, named in the message with a link to it there. One try of the event uploads at most MAX_MEDIA_BYTES after its
26
26
  first file, so that it ends within the hub's 30 seconds; the rest go on the next try. At most 20 messages a minute go
27
- to one group (``bridge_model.Pace``): a message that would wait longer than MAX_WAIT_SECONDS fails its try, and the
28
- hub sends the event again later. A 429 fails it the same way.
27
+ to one group (``bridge_model.Pace``): a message that would wait longer than MAX_WAIT_SECONDS fails its try with
28
+ ``Later``, whose ``retry_after`` tells the hub when the pace lets it go, and the hub sends the event again then. A 429
29
+ fails it the same way with Telegram's retry_after, and files left for the next try with 1 second.
29
30
 
30
31
  While a run that a message of the group started is at work (``bridge_model.TYPING_STATES``), the bot shows as typing
31
32
  in the group: sendChatAction every TYPING_SECONDS, from a loop of the process that took the run's progress, until no
@@ -314,13 +315,19 @@ async def member_changed(updates: server.Updates, change: dict) -> str:
314
315
 
315
316
 
316
317
  class Later(Exception): # noqa: N818 (a try of the event that waits for the group, not an error of the hub)
317
- """The group's pace or Telegram's 429 holds the message: the event's try fails, and the hub tries it again."""
318
+ """The group's pace or Telegram's 429 holds the message: the event's try fails, and the hub tries it again after
319
+ ``retry_after`` seconds (a hub that serves 1.7 from evo-agents' plan events-out-in-seconds reads it; an older one
320
+ waits its own backoff)."""
321
+
322
+ def __init__(self, message: str, retry_after: float):
323
+ super().__init__(message)
324
+ self.retry_after = retry_after
318
325
 
319
326
 
320
327
  async def _paced(chat_id: int) -> None:
321
328
  wait = PACE.wait(chat_id)
322
329
  if wait > MAX_WAIT_SECONDS:
323
- raise Later(f"the group's pace holds the message for {wait:.0f}s")
330
+ raise Later(f"the group's pace holds the message for {wait:.0f}s", wait)
324
331
  if wait > 0:
325
332
  await server.pause(wait)
326
333
 
@@ -351,7 +358,8 @@ async def _send(
351
358
  chat_id = exc.migrate_to
352
359
  continue
353
360
  if exc.code == 429:
354
- raise Later(f"Telegram asked to wait {exc.retry_after or 0:.0f}s") from None
361
+ wait = exc.retry_after or MAX_WAIT_SECONDS
362
+ raise Later(f"Telegram asked to wait {wait:.0f}s", wait) from None
355
363
  if server._gone(exc):
356
364
  async with hub.transaction(context) as conn:
357
365
  await hub.bridge_unlink(conn, plugin(), bridge.id, by="bot")
@@ -475,7 +483,7 @@ async def _carry(
475
483
  going = [found for found in going if found.id in pending]
476
484
  for index, found in enumerate(going):
477
485
  if uploaded and uploaded + found.size > telegram.MAX_MEDIA_BYTES:
478
- raise Later("the files of the message go on the next try, within the hub's time for one")
486
+ raise Later("the files of the message go on the next try, within the hub's time for one", 1.0)
479
487
  await _upload(context, bot, bridge, message_id, found, None, head)
480
488
  uploaded += found.size
481
489
  async with hub.transaction(context) as conn:
@@ -37,7 +37,13 @@ in INBOUND_SECONDS and drops the rest unanswered, and answers 200 for anything i
37
37
  send it again. A button answers a decision or a proposal (``hub.answer_decision``, ``hub.answer_proposal``) through the
38
38
  same code as the web, as the member the chat is linked to, with no token (the audit row ends ``via=telegram``); then
39
39
  the hub answers the button (answerCallbackQuery) and edits the message to say what happened, the web's button kept. A
40
- reply to a decision's message is its answer in words. Before anything of a decision or proposal is read, the hub checks
40
+ reply to a decision's message is its answer in words, to that decision alone: the hub keeps it as a free answer that
41
+ came through telegram (``answered_via``), the message replied to is edited to say who answered it in words, its options
42
+ gone and its web button kept, and the chat is told the answer went to the run. Words that reply to no message, or to a
43
+ message that is no decision's, answer nothing and are told how (NO_BLOCKER); a decision answered already, on Telegram,
44
+ the web or the CLI, changes nothing and the chat is told so (ALREADY_ANSWERED), which holds for an update Telegram
45
+ sends again too; words the hub's filter of secrets catches are kept nowhere and the chat is told so without them
46
+ (HOLDS_SECRET). Before anything of a decision or proposal is read, the hub checks
41
47
  that the member holds a grant on its project: a button or reply naming one they do not gets NOT_YOURS, the same words
42
48
  whether it exists or not, and a project whose messages are restricted takes no answer from Telegram
43
49
  (RESTRICTED_ANSWER), as its messages carry no buttons. A proposal takes no answer while a hub admin has turned the
@@ -122,7 +128,22 @@ NOT_THE_HUBS = "This button is not the hub's."
122
128
  NOT_LINKED = "This chat is not linked to the hub: link it from the hub's Inbox first."
123
129
  NO_LONGER_OPEN = "This is no longer open: it was answered already, or it closed."
124
130
  WORDS_FOR_DECISIONS = "Only a decision takes an answer in words: answer a proposal with its buttons."
131
+ NO_BLOCKER = (
132
+ "Only a decision takes an answer in words, and these words answer none: reply to the message of the decision you "
133
+ "answer, the one with its options, with your answer. A proposal takes its buttons."
134
+ )
125
135
  TOO_LONG = "That answer is too long for the hub (4 KiB at most): answer on the web."
136
+ ALREADY_ANSWERED = "Decision #{decision_id} has its answer already, so nothing changed: your words were not kept."
137
+ HOLDS_SECRET = (
138
+ "That answer looks like it holds a secret (a token, a key or a password), so the hub kept none of it: answer "
139
+ "again without it, and give a credential on the hub."
140
+ )
141
+ # The 422 the hub's answer_decision gives words its filter of secrets masks any part of, word for word
142
+ # (core_plugin_api._acts.HOLDS_SECRET of evo-agents, which the API does not export): every other 422 is their length.
143
+ HUBS_HOLDS_SECRET = (
144
+ "the answer looks like it holds a secret (a token, a key or a password), so the hub kept none of it: "
145
+ "answer again without it, and give a credential on the hub"
146
+ )
126
147
  THE_HUBS_WORDS = {hub.NOT_YOURS: NOT_YOURS, hub.RESTRICTED_ANSWER: RESTRICTED_ANSWER} # what this channel says instead
127
148
 
128
149
  TRANSPORT: httpx.AsyncBaseTransport | None = None # tests put a fake Bot API here
@@ -827,7 +848,13 @@ class Updates:
827
848
  return await self.stop(chat_id, sender)
828
849
  replied = message.get("reply_to_message")
829
850
  if found is None and text.strip() and isinstance(replied, dict) and isinstance(replied.get("message_id"), int):
830
- return await self.reply(message, chat_id, sender, replied["message_id"], text)
851
+ return await self.reply(message, chat_id, sender, replied, text)
852
+ if found is None and text.strip() and isinstance(sender.get("id"), int):
853
+ async with hub.begin(self.request) as conn:
854
+ member = await _member_of(conn, chat_id, sender["id"])
855
+ if member is not None: # words of a linked chat that reply to no message: they answer nothing
856
+ await self.say(chat_id, NO_BLOCKER, reply_to=message.get("message_id"))
857
+ return "guided"
831
858
  await self.say(chat_id, HELP)
832
859
  return "help"
833
860
 
@@ -866,33 +893,49 @@ class Updates:
866
893
  await self.say(chat_id, "This chat is unlinked from the hub: nothing more comes here until you link it again.")
867
894
  return "unlinked"
868
895
 
869
- async def reply(self, message: dict, chat_id: int, sender: dict, replied_id: int, text: str) -> str:
870
- """A reply to a message the hub sent in this chat: the answer in words to its decision."""
896
+ async def reply(self, message: dict, chat_id: int, sender: dict, replied: dict, text: str) -> str:
897
+ """A reply to a message the hub sent in this chat: the answer in words to the decision of that message, and of
898
+ no other (a member with several waiting answers each in reply to its own). Once the hub took it, the message
899
+ replied to is edited to say who answered it in words, its options gone and its web button kept."""
871
900
  sender_id = sender.get("id")
901
+ answered_by = decision_id = None
872
902
  try:
873
903
  async with hub.begin(self.request) as conn:
874
904
  member = await _member_of(conn, chat_id, sender_id) if isinstance(sender_id, int) else None
875
905
  if member is None:
876
906
  outcome = NOT_LINKED
877
907
  else:
878
- found = await hub.delivered_notification(conn, member, telegram.message_ref(chat_id, replied_id))
879
- if found is None or found.kind != "decision" or found.decision_id is None:
908
+ ref = telegram.message_ref(chat_id, replied["message_id"])
909
+ found = await hub.delivered_notification(conn, member, ref)
910
+ if found is not None and found.kind == "proposal":
880
911
  outcome = WORDS_FOR_DECISIONS
912
+ elif found is None or found.kind != "decision" or found.decision_id is None:
913
+ outcome = NO_BLOCKER
881
914
  else:
882
- outcome = await self._answer_in_words(conn, member, found.decision_id, text)
915
+ decision_id = found.decision_id
916
+ outcome, answered_by = await self._answer_in_words(conn, member, decision_id, text)
883
917
  except HTTPException as exc:
884
918
  outcome = f"The hub did not take that answer: {_words(exc)}"
919
+ answered_by = None
920
+ if answered_by is not None and decision_id is not None:
921
+ await self.edit_answered(chat_id, replied, f"Answered in words by {answered_by}", decision_id)
885
922
  await self.say(chat_id, outcome, reply_to=message.get("message_id"))
886
923
  return "replied"
887
924
 
888
- async def _answer_in_words(self, conn, member: hub.Member, decision_id: int, text: str) -> str:
925
+ async def _answer_in_words(self, conn, member: hub.Member, decision_id: int, text: str) -> tuple[str, str | None]:
926
+ """What the chat is told of ``text`` as the answer to ``decision_id``, and who answered it when the hub took
927
+ it. The words are never repeated: not in what the chat is told, nor in a log line."""
889
928
  try:
890
929
  answered = await hub.answer_decision(conn, member, decision_id, CLEARED, text=text)
891
930
  except hub.Refused as exc:
892
- if exc.status_code == 422: # the one body check words fail: their length
893
- return TOO_LONG
931
+ if exc.status_code == 422 and exc.detail == HUBS_HOLDS_SECRET:
932
+ return HOLDS_SECRET, None
933
+ if exc.status_code == 422: # the other body check words fail: their length
934
+ return TOO_LONG, None
935
+ if exc.status_code == 409 and str(exc.detail).startswith(f"decision {decision_id} is answered,"):
936
+ return ALREADY_ANSWERED.format(decision_id=decision_id), None
894
937
  raise
895
- return f"Your answer to decision #{decision_id} went to run #{answered.inbox_run}."
938
+ return f"Your answer to decision #{decision_id} went to run #{answered.inbox_run}.", member.login
896
939
 
897
940
  async def button(self, callback: dict, chat_id: int) -> str:
898
941
  """A button of a decision's or a proposal's message."""
@@ -926,19 +969,32 @@ class Updates:
926
969
  callback_query_id=str(callback.get("id")),
927
970
  text=telegram.clip(toast or "Done.", telegram.TOAST_CHARS),
928
971
  )
929
- if settled is not None and isinstance(message.get("message_id"), int):
930
- buttons = telegram.url_buttons(message.get("reply_markup"))
931
- await self.bot.call(
932
- "editMessageText",
933
- chat_id=chat_id,
934
- message_id=message["message_id"],
935
- text=telegram.answered_text(str(message.get("text") or ""), settled),
936
- parse_mode=telegram.PARSE_MODE,
937
- reply_markup={"inline_keyboard": buttons} if buttons else None,
938
- link_preview_options={"is_disabled": True},
939
- )
940
972
  except BotApiError as exc:
941
973
  log.warning("telegram answer to a button failed", extra={"code": exc.code})
974
+ return
975
+ if settled is not None:
976
+ await self.edit_answered(chat_id, message, settled)
977
+
978
+ async def edit_answered(self, chat_id: int, message: dict, settled: str, decision_id: int | None = None) -> None:
979
+ """Edit ``message``, a message the hub sent, to end with ``settled``: its options go and its web button stays.
980
+ A message Telegram sent back without its buttons gets the web button of ``decision_id``."""
981
+ if not isinstance(message.get("message_id"), int):
982
+ return
983
+ buttons = telegram.url_buttons(message.get("reply_markup"))
984
+ if not buttons and decision_id is not None:
985
+ buttons = telegram.web_button(hub.web_url(self.config, f"/inbox?decision={decision_id}"))
986
+ try:
987
+ await self.bot.call(
988
+ "editMessageText",
989
+ chat_id=chat_id,
990
+ message_id=message["message_id"],
991
+ text=telegram.answered_text(str(message.get("text") or ""), settled),
992
+ parse_mode=telegram.PARSE_MODE,
993
+ reply_markup={"inline_keyboard": buttons} if buttons else None,
994
+ link_preview_options={"is_disabled": True},
995
+ )
996
+ except BotApiError as exc:
997
+ log.warning("telegram edit of an answered message failed", extra={"code": exc.code})
942
998
 
943
999
  async def _answer(self, conn, member: hub.Member, data: telegram.Callback) -> str:
944
1000
  """Answer what ``data`` names as ``member``, in ``conn``; what the message says it became. The hub checks the