utim-cli 2.6.0__tar.gz → 2.6.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. {utim_cli-2.6.0 → utim_cli-2.6.1}/CHANGELOG.md +9 -0
  2. {utim_cli-2.6.0/utim_cli.egg-info → utim_cli-2.6.1}/PKG-INFO +1 -1
  3. {utim_cli-2.6.0 → utim_cli-2.6.1}/pyproject.toml +1 -1
  4. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim/__init__.py +1 -1
  5. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/__init__.py +1 -1
  6. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/_version.py +1 -1
  7. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/ask_helper.py +20 -4
  8. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/context_pruner.py +19 -3
  9. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/api_models_db.py +38 -1
  10. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/plan_integrity.py +7 -1
  11. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/platform_billing.py +8 -2
  12. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/routes/admin_bonus_routes.py +26 -3
  13. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/routes/api_models_admin_routes.py +64 -3
  14. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/routes/api_models_public_routes.py +269 -23
  15. {utim_cli-2.6.0 → utim_cli-2.6.1/utim_cli.egg-info}/PKG-INFO +1 -1
  16. {utim_cli-2.6.0 → utim_cli-2.6.1}/LICENSE +0 -0
  17. {utim_cli-2.6.0 → utim_cli-2.6.1}/MANIFEST.in +0 -0
  18. {utim_cli-2.6.0 → utim_cli-2.6.1}/README.md +0 -0
  19. {utim_cli-2.6.0 → utim_cli-2.6.1}/setup.cfg +0 -0
  20. {utim_cli-2.6.0 → utim_cli-2.6.1}/setup.py +0 -0
  21. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/_chip_test.py +0 -0
  22. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/_verify_repro.py +0 -0
  23. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/_verify_syntax.py +0 -0
  24. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/_wizard_smoke_test.py +0 -0
  25. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/adaptation_engine.py +0 -0
  26. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/agent.py +0 -0
  27. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/architecture_indexer.py +0 -0
  28. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/auth.py +0 -0
  29. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/background_models.py +0 -0
  30. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/backup.py +0 -0
  31. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/behavior_telemetry.py +0 -0
  32. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/billing.py +0 -0
  33. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/blender_agent.py +0 -0
  34. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/bootstrap.py +0 -0
  35. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/brain.py +0 -0
  36. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/builtin/skills/utim-guide/SKILL.md +0 -0
  37. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/client_utils.py +0 -0
  38. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/config.py +0 -0
  39. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/constants.py +0 -0
  40. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/context_inspector.py +0 -0
  41. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/crawler/__init__.py +0 -0
  42. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/crawler/engine.py +0 -0
  43. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/crawler/markdown_distiller.py +0 -0
  44. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/dependency_manager.py +0 -0
  45. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/doctor.py +0 -0
  46. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/evidence_registry.py +0 -0
  47. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/harbor.py +0 -0
  48. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/knowledge_graph.py +0 -0
  49. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/local_db.py +0 -0
  50. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/logger.py +0 -0
  51. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/mcp_clean_wrapper.py +0 -0
  52. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/mcp_client.py +0 -0
  53. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/mcp_registry.json +0 -0
  54. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/models.txt +0 -0
  55. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/orchestrator.py +0 -0
  56. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/orchestrator_helpers.py +0 -0
  57. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/orchestrator_llm_transport.py +0 -0
  58. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/orchestrator_tool_exec.py +0 -0
  59. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/orchestrator_turn_history.py +0 -0
  60. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/personalities.py +0 -0
  61. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/platform_installer.py +0 -0
  62. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/plugins/__init__.py +0 -0
  63. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/plugins/hooks.py +0 -0
  64. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/plugins/loader.py +0 -0
  65. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/plugins/manager.py +0 -0
  66. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/plugins/registry.py +0 -0
  67. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/plugins/runtime.py +0 -0
  68. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/plugins/schema.py +0 -0
  69. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/plugins/tool_loader.py +0 -0
  70. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/reflection.py +0 -0
  71. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/report.py +0 -0
  72. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/scrapy_search.py +0 -0
  73. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/sdk/__init__.py +0 -0
  74. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/sdk/config.py +0 -0
  75. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/sdk/context.py +0 -0
  76. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/sdk/events.py +0 -0
  77. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/sdk/handlers.py +0 -0
  78. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/sdk/session.py +0 -0
  79. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/sdk/sidecar.py +0 -0
  80. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/__init__.py +0 -0
  81. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/admin_auth.py +0 -0
  82. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/api_request_logs.py +0 -0
  83. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/attribution.py +0 -0
  84. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/audit_log.py +0 -0
  85. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/auth.py +0 -0
  86. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/batch_processor.py +0 -0
  87. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/bot_detection.py +0 -0
  88. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/captcha.py +0 -0
  89. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/cli_auth.py +0 -0
  90. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/concurrency.py +0 -0
  91. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/crypto_utils.py +0 -0
  92. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/db.py +0 -0
  93. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/disposable_email_guard.py +0 -0
  94. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/docs_md/SECRET_PROVISIONING.md +0 -0
  95. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/docs_md/about.md +0 -0
  96. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/docs_md/changelog.md +0 -0
  97. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/docs_md/docs.md +0 -0
  98. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/docs_md/features.md +0 -0
  99. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/docs_md/license.md +0 -0
  100. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/docs_md/pricing.md +0 -0
  101. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/docs_md/privacy.md +0 -0
  102. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/docs_md/refund.md +0 -0
  103. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/docs_md/support.md +0 -0
  104. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/docs_md/terms.md +0 -0
  105. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/email_utils.py +0 -0
  106. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/exchange_rate.py +0 -0
  107. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/firebase.py +0 -0
  108. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/firewall.py +0 -0
  109. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/fix_duplicate_users.py +0 -0
  110. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/history.py +0 -0
  111. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/hobby_throttler.py +0 -0
  112. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/key_rotator.py +0 -0
  113. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/local_llm.py +0 -0
  114. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/logging_config.py +0 -0
  115. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/maintenance.py +0 -0
  116. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/model_agent.py +0 -0
  117. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/models.py +0 -0
  118. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/pricing_updater.py +0 -0
  119. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/provider_balance.py +0 -0
  120. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/provider_batcher.py +0 -0
  121. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/provider_discovery.py +0 -0
  122. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/provider_router.py +0 -0
  123. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/provision_build.py +0 -0
  124. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/purge_disposable_users.py +0 -0
  125. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/rate_limit.py +0 -0
  126. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/request_batcher.py +0 -0
  127. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/request_queue.py +0 -0
  128. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/rewards_engine.py +0 -0
  129. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/router.py +0 -0
  130. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/routes/__init__.py +0 -0
  131. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/routes/activity_routes.py +0 -0
  132. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/routes/admin_db_routes.py +0 -0
  133. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/routes/admin_providers_routes.py +0 -0
  134. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/routes/admin_separated_models_routes.py +0 -0
  135. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/routes/api_gateway_extensions_routes.py +0 -0
  136. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/routes/api_key_routes.py +0 -0
  137. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/routes/auth_routes.py +0 -0
  138. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/routes/billing_routes.py +0 -0
  139. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/routes/completion_routes.py +0 -0
  140. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/routes/compression_routes.py +0 -0
  141. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/routes/credit_routes.py +0 -0
  142. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/routes/discord_routes.py +0 -0
  143. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/routes/feedback_routes.py +0 -0
  144. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/routes/marketplace_routes.py +0 -0
  145. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/routes/provider_compat_routes.py +0 -0
  146. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/routes/quota_routes.py +0 -0
  147. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/routes/quota_share_routes.py +0 -0
  148. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/routes/referral_routes.py +0 -0
  149. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/routes/rewards_routes.py +0 -0
  150. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/routes/security_routes.py +0 -0
  151. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/routes/session_routes.py +0 -0
  152. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/routes/share_routes.py +0 -0
  153. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/routes/wallet_routes.py +0 -0
  154. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/routes/webhook_routes.py +0 -0
  155. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/security_alerts.py +0 -0
  156. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/server.py +0 -0
  157. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/signup_guard.py +0 -0
  158. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/storage_nodes.py +0 -0
  159. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/tier_tables.py +0 -0
  160. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/uptime_monitor.py +0 -0
  161. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/server/utils.py +0 -0
  162. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/share.py +0 -0
  163. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/share_tui.py +0 -0
  164. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/situational_scoring.py +0 -0
  165. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/state.py +0 -0
  166. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/subagent_manager.py +0 -0
  167. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/syntax_fix.py +0 -0
  168. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/task_dispatcher.py +0 -0
  169. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/task_logger.py +0 -0
  170. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tools.py +0 -0
  171. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tools_grep.py +0 -0
  172. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tui/__init__.py +0 -0
  173. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tui/compression_dialog.py +0 -0
  174. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tui/feedback_dialog.py +0 -0
  175. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tui/history_dialog.py +0 -0
  176. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tui/marketplace_app_state.py +0 -0
  177. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tui/marketplace_dialog.py +0 -0
  178. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tui/marketplace_layout_engine.py +0 -0
  179. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tui/mcp_dialog.py +0 -0
  180. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tui/miniagents_dialog.py +0 -0
  181. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tui/model_dialog.py +0 -0
  182. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tui/personality_dialog.py +0 -0
  183. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tui/plugins_dialog.py +0 -0
  184. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tui/publish_dialog.py +0 -0
  185. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tui/quota_dialog.py +0 -0
  186. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tui/quota_redeem_dialog.py +0 -0
  187. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tui/quota_share_dialog.py +0 -0
  188. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tui/resume_dialog.py +0 -0
  189. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tui/rewards_tui.py +0 -0
  190. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tui/skills_dialog.py +0 -0
  191. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tui/spinner.py +0 -0
  192. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tui/stream_diagnostics.py +0 -0
  193. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tui/subagents_dialog.py +0 -0
  194. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tui/tasks_dialog.py +0 -0
  195. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tui/thinking_display.py +0 -0
  196. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tui/thinking_phrases.py +0 -0
  197. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tui/token_meter.py +0 -0
  198. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tui/tool_theme_preview.py +0 -0
  199. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tui/tool_themes.py +0 -0
  200. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tui/tools_dialog.py +0 -0
  201. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tui/update_dialog.py +0 -0
  202. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/tui/verbosity_dialog.py +0 -0
  203. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/update_checker.py +0 -0
  204. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/utilities.py +0 -0
  205. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/utim.py +0 -0
  206. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/utimmodel.txt +0 -0
  207. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/vector_memory.py +0 -0
  208. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/voice.py +0 -0
  209. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/voice_coding.py +0 -0
  210. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/voice_events.py +0 -0
  211. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/voice_handler.py +0 -0
  212. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/voice_instant.py +0 -0
  213. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/voice_orchestrator.py +0 -0
  214. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/voice_session.py +0 -0
  215. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/voice_stt.py +0 -0
  216. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/voice_tts.py +0 -0
  217. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/wheel.py +0 -0
  218. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli/workspace.py +0 -0
  219. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli.egg-info/SOURCES.txt +0 -0
  220. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli.egg-info/dependency_links.txt +0 -0
  221. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli.egg-info/entry_points.txt +0 -0
  222. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli.egg-info/requires.txt +0 -0
  223. {utim_cli-2.6.0 → utim_cli-2.6.1}/utim_cli.egg-info/top_level.txt +0 -0
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.6.1] - 2026-11-03
4
+
5
+ ### 🐛 Fixes
6
+ - **Discord Bot — Referral Commands Restored**: The referral toolkit defined a `/leaderboard` command that collided with the economy `/leaderboard`, and both claimed the `top` alias. Because commands register sequentially, the conflict aborted registration and silently disabled every referral command declared after it — `/syncinvites` and `/resetinvites` never registered at all. The invite ranking command is now `/inviteleaderboard` (aliases: `topinvites`, `reftop`, `referralboard`, `invitetop`, `invtop`); the stolen `top` alias is returned to the economy leaderboard.
7
+ - **Discord Bot — Voice Warning On Windows**: `ensure_opus_loaded()` searched only Linux/Nix paths, so every local Windows start logged a spurious `Could not automatically locate libopus library!` warning. Windows DLL candidates are now probed, and the failure is logged at debug level on Windows while remaining a genuine warning on Linux/Railway, where voice actually runs.
8
+
9
+ ### ✨ New Commands
10
+ - **`/translate` (Discord)**: Translate text into English (default) or 20 other languages, chosen by name, ISO code, or locale (`es`, `de_DE`, `zh-cn`). Reply to any message and run the command to translate it in place. Aliases: `/tr`, `/trans`. Model output is cleaned of code fences, quotation wrapping, and `Translation:` labels before display.
11
+
3
12
  ## [2.6.0] - 2026-11-03
4
13
 
5
14
  ### ✨ New Theme
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: utim-cli
3
- Version: 2.6.0
3
+ Version: 2.6.1
4
4
  Summary: UTIM – Universal Terminal Intelligence Manager. A powerful agentic AI coding assistant for your terminal.
5
5
  License: Emend AI Proprietary EULA
6
6
  Project-URL: Homepage, https://utim.dev
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "utim-cli"
7
- version = "2.6.0"
7
+ version = "2.6.1"
8
8
 
9
9
  description = "UTIM – Universal Terminal Intelligence Manager. A powerful agentic AI coding assistant for your terminal."
10
10
  readme = "README.md"
@@ -14,7 +14,7 @@ Quickstart:
14
14
  try:
15
15
  from utim_cli._version import VERSION as __version__
16
16
  except ImportError:
17
- __version__ = "2.6.0"
17
+ __version__ = "2.6.1"
18
18
 
19
19
  # Developer-friendly core classes (similar to `import genai` / `import openai`)
20
20
  from utim_cli.sdk.session import UtimSession as Session
@@ -5,7 +5,7 @@ try:
5
5
  from utim_cli._version import VERSION as __version__
6
6
  except ImportError:
7
7
  # Fallback during first-install / editable-install edge cases
8
- __version__ = "2.6.0"
8
+ __version__ = "2.6.1"
9
9
 
10
10
 
11
11
  import builtins, os, pathlib, urllib.parse, re
@@ -11,6 +11,6 @@
11
11
  # from here so every surface stays in sync automatically.
12
12
  # ─────────────────────────────────────────────────────────────────────────────
13
13
 
14
- VERSION = "2.6.0"
14
+ VERSION = "2.6.1"
15
15
 
16
16
 
@@ -475,6 +475,24 @@ def execute_ask_helper(
475
475
 
476
476
  # ── UI Presentation (/ask & /btw component — Tool Indicator Layout) ──────────
477
477
 
478
+ def _sidecar_card_height(term_lines: int) -> int:
479
+ """Number of body lines the sidecar card may occupy.
480
+
481
+ The card renders: top rule + header + body + bottom rule (3 chrome lines).
482
+ Previously the body was capped at ``term_lines // 2 - 2``, which on a 24-row
483
+ terminal left only 8 lines — so almost any real answer immediately scrolled
484
+ and the panel felt far too small.
485
+
486
+ We now reserve the chrome plus a couple of rows so the input prompt stays
487
+ visible, cap at 70% of the screen, and keep a sane floor for tiny terminals.
488
+ """
489
+ chrome = 3 # top rule + header + bottom rule
490
+ reserved = 4 # keep the prompt line + breathing room visible
491
+ available = term_lines - chrome - reserved
492
+ cap = max(3, int(term_lines * 0.70) - chrome)
493
+ return max(3, min(available, cap))
494
+
495
+
478
496
  def render_ask_response(question: str, answer: str, console: Console) -> None:
479
497
  """
480
498
  Renders the sidecar helper component using native UTIM tool-indicator layout
@@ -482,8 +500,7 @@ def render_ask_response(question: str, answer: str, console: Console) -> None:
482
500
  """
483
501
  term_cols, term_lines = shutil.get_terminal_size((80, 24))
484
502
  half_w = max(15, term_cols // 2)
485
- max_card_h = max(6, term_lines // 2)
486
- max_inner_h = max(3, max_card_h - 2)
503
+ max_inner_h = _sidecar_card_height(term_lines)
487
504
 
488
505
  content_renderable = build_sidecar_dialog_content(question, answer, max_lines=max_inner_h)
489
506
 
@@ -513,8 +530,7 @@ def render_sidecar_formatted_text() -> List[Any]:
513
530
  term_cols, term_lines = shutil.get_terminal_size((80, 24))
514
531
  panel_width = max(40, term_cols - 2)
515
532
  half_w = max(15, term_cols // 2)
516
- max_card_h = max(6, term_lines // 2)
517
- max_inner_h = max(3, max_card_h - 2)
533
+ max_inner_h = _sidecar_card_height(term_lines)
518
534
 
519
535
  spinner_chars = ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏']
520
536
  sp_char = spinner_chars[int(time.time() * 10) % len(spinner_chars)]
@@ -2393,11 +2393,27 @@ def build_compacted_history_message(past_messages: List[Dict]) -> List[Dict]:
2393
2393
  # Anchor-from-newest: newest past turn gets newest_ratio, older turns decay back.
2394
2394
  keep_ratio = _progressive_keep_ratio(local_idx, ind_total)
2395
2395
 
2396
- # Add the native user prompt with proper status tag (done or aborted)
2396
+ # Add the native user prompt with proper status tag (done or aborted).
2397
+ # IMPORTANT: the final turn is the *live* prompt if nothing answered it.
2398
+ # Tagging an unanswered prompt as "[status: done]" makes the model read
2399
+ # it as an already-completed past task and ignore it entirely (this was
2400
+ # the "UTIM says: happy to dig in once I know the error" bug). Only a
2401
+ # turn with at least one assistant/tool reply may be marked done.
2397
2402
  is_aborted = any(m.get("aborted") or m.get("content") == "[Aborted by user]" for m in msgs)
2398
- status = "aborted" if is_aborted else "done"
2403
+ _has_reply = any(
2404
+ (m.get("role") in ("assistant", "tool"))
2405
+ and str(m.get("content") or "").strip()
2406
+ for m in msgs
2407
+ )
2408
+ _is_final_turn = local_idx == ind_total - 1
2409
+ if is_aborted:
2410
+ status = "aborted"
2411
+ elif _is_final_turn and not _has_reply:
2412
+ status = "pending"
2413
+ else:
2414
+ status = "done"
2399
2415
  clean_p = re.sub(r"^\[status:\s*(?:done|pending|aborted)\]\s*", "", prompt.strip(), flags=re.IGNORECASE)
2400
- tagged_prompt = f"[status: {status}] {clean_p}"
2416
+ tagged_prompt = f"[status: {status}] {clean_p}" if status != "pending" else clean_p
2401
2417
  structurally_compressed_history.append({"role": "user", "content": tagged_prompt})
2402
2418
 
2403
2419
  # Compress the turn's internal messages natively
@@ -435,12 +435,19 @@ class ApiModelProvider(ApiModelBase):
435
435
  submitted_by_email = Column(String(255), nullable=True)
436
436
  user_commission_rate = Column(Float, default=0.90, nullable=False) # 90% commission
437
437
 
438
- # Status: 'active', 'pending_verification', 'rejected', 'disabled'
438
+ # Status: 'active', 'pending_verification', 'rejected', 'disabled', 'pending_removal'
439
439
  status = Column(String(32), default="active", nullable=False, index=True)
440
440
  verification_notes = Column(Text, nullable=True)
441
441
  verified_at = Column(DateTime, nullable=True)
442
442
  verified_by = Column(String(128), nullable=True)
443
443
 
444
+ # Removal requests (owner-initiated takedown of a previously approved node).
445
+ # Kept as an explicit status transition ('pending_removal') rather than a raw
446
+ # DELETE, so the provider row stays addressable for admin review/undo and can
447
+ # never be resurrected by an unguarded insert path.
448
+ removal_requested_at = Column(DateTime, nullable=True)
449
+ removal_reason = Column(Text, nullable=True)
450
+
444
451
  # Health & routing
445
452
  priority = Column(Integer, default=10, index=True) # Lower = higher routing priority
446
453
  is_active = Column(Boolean, default=True, index=True)
@@ -529,6 +536,8 @@ class ApiModelProvider(ApiModelBase):
529
536
  "verification_notes": self.verification_notes,
530
537
  "verified_at": self.verified_at.isoformat() if self.verified_at else None,
531
538
  "verified_by": self.verified_by,
539
+ "removal_requested_at": self.removal_requested_at.isoformat() if self.removal_requested_at else None,
540
+ "removal_reason": self.removal_reason,
532
541
  "priority": self.priority,
533
542
  "is_active": self.is_active,
534
543
  "uptime_pct": self.uptime_pct,
@@ -1387,6 +1396,22 @@ def _ensure_api_models_columns():
1387
1396
  logger.info("Migrating schema: adding test_api_key to utim_model_providers")
1388
1397
  with api_engine.begin() as conn:
1389
1398
  conn.execute(text("ALTER TABLE utim_model_providers ADD COLUMN test_api_key TEXT"))
1399
+ if "removal_requested_at" not in cols:
1400
+ logger.info("Migrating schema: adding removal_requested_at to utim_model_providers")
1401
+ with api_engine.begin() as conn:
1402
+ col_type = "TIMESTAMP" if api_engine.dialect.name != "sqlite" else "DATETIME"
1403
+ try:
1404
+ conn.execute(text(
1405
+ f"ALTER TABLE utim_model_providers ADD COLUMN removal_requested_at {col_type}"
1406
+ ))
1407
+ except Exception:
1408
+ conn.execute(text(
1409
+ "ALTER TABLE utim_model_providers ADD COLUMN removal_requested_at DATETIME"
1410
+ ))
1411
+ if "removal_reason" not in cols:
1412
+ logger.info("Migrating schema: adding removal_reason to utim_model_providers")
1413
+ with api_engine.begin() as conn:
1414
+ conn.execute(text("ALTER TABLE utim_model_providers ADD COLUMN removal_reason TEXT"))
1390
1415
  if "api_keys" not in cols:
1391
1416
  logger.info("Migrating schema: adding api_keys to utim_model_providers (multi-key pool)")
1392
1417
  with api_engine.begin() as conn:
@@ -1507,6 +1532,18 @@ def init_api_models_db():
1507
1532
  logger.error(f"Error initializing legacy utim_models db: {exc}")
1508
1533
 
1509
1534
 
1535
+ # Self-healing column migration MUST run at import time, not only inside
1536
+ # init_api_models_db(). That function returns early whenever the legacy DDL is
1537
+ # disabled (the default), which would leave models declaring columns that the
1538
+ # on-disk table does not have — every query then dies with
1539
+ # `no such column: utim_model_providers.removal_requested_at`.
1540
+ # Runs once per process; it is idempotent (guarded by PRAGMA/inspector checks).
1541
+ try:
1542
+ _ensure_api_models_columns()
1543
+ except Exception as _mig_exc: # never block app startup on a migration hiccup
1544
+ logger.warning("api_models column migration at import failed: %s", _mig_exc)
1545
+
1546
+
1510
1547
  def get_api_db():
1511
1548
  """FastAPI dependency for obtaining a Session to the utim_models database."""
1512
1549
  db = ApiSessionLocal()
@@ -543,6 +543,8 @@ def _credit_payload(credit) -> str:
543
543
  "balance": round(float(getattr(credit, "balance", 0.0) or 0.0), 4),
544
544
  "bonus_balance": round(float(getattr(credit, "bonus_balance", 0.0) or 0.0), 4),
545
545
  "api_balance": round(float(getattr(credit, "api_balance", 0.0) or 0.0), 4),
546
+ "api_total_spent": round(float(getattr(credit, "api_total_spent", 0.0) or 0.0), 4),
547
+ "api_total_topped_up": round(float(getattr(credit, "api_total_topped_up", 0.0) or 0.0), 4),
546
548
  }, sort_keys=True)
547
549
 
548
550
 
@@ -557,9 +559,13 @@ def sign_credit(db, credit) -> None:
557
559
  from sqlalchemy import text
558
560
  sig = credit_signature(credit)
559
561
  credit.credit_signature = sig
562
+ # The PAYG wallet needs its own signature: api_credit_signature was
563
+ # declared and migrated but NEVER assigned, so every row had NULL there
564
+ # — the API balance was the one bucket with no tamper protection.
565
+ credit.api_credit_signature = sig
560
566
  with db.begin_nested():
561
567
  db.execute(
562
- text("UPDATE credits SET credit_signature = :s WHERE id = :id"),
568
+ text("UPDATE credits SET credit_signature = :s, api_credit_signature = :s WHERE id = :id"),
563
569
  {"s": sig, "id": str(credit.id)}
564
570
  )
565
571
  db.commit()
@@ -190,8 +190,14 @@ def atomic_api_charge(
190
190
  amount = max(0.0, float(caller_cost_tokens or 0.0))
191
191
  if amount > 0.0:
192
192
  caller_credit.api_balance = max(0.0, float(getattr(caller_credit, "api_balance", 0.0) or 0.0) - amount)
193
- caller_credit.api_total_spent = float(getattr(caller_credit, "api_total_spent", 0.0) or 0.0) + amount
194
- db.add(Transaction(id=str(uuid.uuid4()), user_id=caller_user_id, kind="api_completion", amount=-amount, balance_after=float(getattr(caller_credit, "api_balance", 0.0) or 0.0), description=caller_description[:512]))
193
+ # Spend is only accrued for requests that actually cost money.
194
+ # Previously this ran unconditionally, so every $0 / free-model API
195
+ # request still incremented api_total_spent and wrote a billed txn
196
+ # row — making "API spend" appear for users who never paid anything.
197
+ caller_credit.api_total_spent = float(getattr(caller_credit, "api_total_spent", 0.0) or 0.0) + amount
198
+ db.add(Transaction(id=str(uuid.uuid4()), user_id=caller_user_id, kind="api_completion", amount=-amount, balance_after=float(getattr(caller_credit, "api_balance", 0.0) or 0.0), description=caller_description[:512]))
199
+ else:
200
+ logger.debug("api_charge_zero_cost_skip user_id=%s", caller_user_id)
195
201
  if owner_user_id and commission_tokens > 0:
196
202
  owner_credit = db.query(Credit).filter(Credit.user_id == owner_user_id).with_for_update().first()
197
203
  if owner_credit is None:
@@ -47,7 +47,12 @@ def get_db():
47
47
  class BonusGrantRequest(BaseModel):
48
48
  user_id: Optional[str] = Field(None, description="Target user id (preferred)")
49
49
  email: Optional[str] = Field(None, description="Target user email (used if user_id absent)")
50
- amount: float = Field(..., gt=0, le=100000, description="Bonus credits to grant (positive)")
50
+ amount: float = Field(
51
+ ...,
52
+ gt=0,
53
+ description="Bonus tokens to grant (positive, no upper limit). Only "
54
+ "free-plan accounts may receive bonus tokens.",
55
+ )
51
56
  note: Optional[str] = Field(None, max_length=300, description="Optional reason stored in the ledger")
52
57
 
53
58
 
@@ -99,7 +104,7 @@ def search_users(
99
104
  @router.post("/grant", status_code=status.HTTP_200_OK)
100
105
  def grant_bonus_credits(req: BonusGrantRequest, db: Session = Depends(get_db)):
101
106
  """
102
- Grant bonus credits to a user, write an immutable ledger record and
107
+ Grant bonus tokens to a free-plan user, write an immutable ledger record and
103
108
  trigger the "Bonus credits granted" email in a background thread.
104
109
  """
105
110
  user = None
@@ -112,7 +117,7 @@ def grant_bonus_credits(req: BonusGrantRequest, db: Session = Depends(get_db)):
112
117
 
113
118
  amount = float(req.amount)
114
119
  if amount <= 0:
115
- raise HTTPException(status_code=400, detail="Amount must be a positive number of credits")
120
+ raise HTTPException(status_code=400, detail="Amount must be a positive number of tokens")
116
121
 
117
122
  note = (req.note or "").strip()
118
123
 
@@ -129,6 +134,24 @@ def grant_bonus_credits(req: BonusGrantRequest, db: Session = Depends(get_db)):
129
134
 
130
135
  bonus_cap = get_max_bonus_limit(getattr(user.subscription, "plan", None).name if user.subscription and user.subscription.plan else "free")
131
136
 
137
+ # Bonus tokens are a free-tier benefit only. Paid plans draw from their own
138
+ # quota, so granting bonus tokens to a paying account would double-provision
139
+ # them. Reject anything that is not the free plan.
140
+ _plan_name = (
141
+ (getattr(user.subscription, "plan", None).name or "free").lower().strip()
142
+ if user.subscription and user.subscription.plan
143
+ else "free"
144
+ )
145
+ if _plan_name != "free":
146
+ raise HTTPException(
147
+ status_code=400,
148
+ detail=(
149
+ "Bonus tokens can only be granted to free-plan accounts. "
150
+ f"This user is on the '{_plan_name}' plan — use /add-tokens to "
151
+ "top up a paid account's regular balance instead."
152
+ ),
153
+ )
154
+
132
155
  before_bonus = float(credit.bonus_balance or 0.0)
133
156
  credit.bonus_balance = before_bonus + amount
134
157
  # Keep the informational bonus allowance in sync (capped like the referral flow).
@@ -177,7 +177,7 @@ class UpdateModelProviderRequest(BaseModel):
177
177
 
178
178
 
179
179
  class VerifyProviderRequest(BaseModel):
180
- action: str = Field(..., description="'approve' or 'reject'")
180
+ action: str = Field(..., description="'approve', 'reject', 'under_review', 'removal' or 'deny_removal'")
181
181
  notes: Optional[str] = Field(default="", description="Review or rejection reason")
182
182
  # Amount (USD) to credit on approval. This reimburses the PAYG wallet balance
183
183
  # that the provider "Test Ping" connectivity checks deducted from the submitter.
@@ -862,8 +862,11 @@ async def verify_community_provider(
862
862
  raise HTTPException(status_code=404, detail=f"Provider '{provider_id}' not found")
863
863
 
864
864
  action = req.action.lower().strip()
865
- if action not in ("approve", "reject", "under_review"):
866
- raise HTTPException(status_code=400, detail="Action must be 'approve', 'reject' or 'under_review'")
865
+ if action not in ("approve", "reject", "under_review", "removal", "deny_removal"):
866
+ raise HTTPException(
867
+ status_code=400,
868
+ detail="Action must be 'approve', 'reject', 'under_review', 'removal' or 'deny_removal'",
869
+ )
867
870
 
868
871
  now = datetime.datetime.utcnow()
869
872
  provider.verification_notes = req.notes or ""
@@ -906,6 +909,64 @@ async def verify_community_provider(
906
909
  "email_sent": False,
907
910
  }
908
911
 
912
+ # ── Removal request handling ───────────────────────────────────────────
913
+ # A provider owner can queue a takedown request (status 'pending_removal').
914
+ # 'removal' finalises it; 'deny_removal' restores the node to service.
915
+ #
916
+ # We deliberately do NOT hard-delete the row on finalisation. The provider is
917
+ # marked 'disabled' + inactive and left in place as a tombstone, so:
918
+ # * the audit trail (and its ProviderReviewLog history) survives,
919
+ # * an accidental removal can be reversed,
920
+ # * the row keeps its identity, so an unguarded insert path can't resurrect
921
+ # the node under a fresh id and silently re-bill it.
922
+ if action in ("removal", "deny_removal"):
923
+ if provider.status != "pending_removal":
924
+ raise HTTPException(
925
+ status_code=409,
926
+ detail=(
927
+ f"Provider '{provider.provider_name}' has no pending removal request "
928
+ f"(current status: '{provider.status}')."
929
+ ),
930
+ )
931
+ if action == "removal":
932
+ _log_review("removal_approved")
933
+ provider.status = "disabled"
934
+ provider.is_active = False
935
+ provider.verification_notes = req.notes or "Removal request approved by admin."
936
+ logger.info(
937
+ "Admin finalised removal of community provider %s (id=%s, model=%s)",
938
+ provider.provider_name, provider.id, provider.model_id,
939
+ )
940
+ else: # deny_removal
941
+ _log_review("removal_denied")
942
+ provider.status = "active"
943
+ # Restore traffic unless it was already disabled for an unrelated reason.
944
+ provider.is_active = True
945
+ provider.removal_requested_at = None
946
+ provider.removal_reason = None
947
+ provider.verification_notes = req.notes or "Removal request denied; provider restored."
948
+ logger.info(
949
+ "Admin denied removal of community provider %s (id=%s) — restored to active",
950
+ provider.provider_name, provider.id,
951
+ )
952
+
953
+ db.commit()
954
+ db.refresh(provider)
955
+ return {
956
+ "success": True,
957
+ "action": action,
958
+ "message": (
959
+ f"Removal of provider '{provider.provider_name}' finalised. "
960
+ "The node is disabled, stopped routing traffic, and retained as an audit record."
961
+ if action == "removal"
962
+ else f"Removal of provider '{provider.provider_name}' denied — node restored to active."
963
+ ),
964
+ "status": provider.status,
965
+ "is_active": provider.is_active,
966
+ "wallet_credited": False,
967
+ "email_sent": False,
968
+ }
969
+
909
970
  if action == "approve":
910
971
  _log_review("approved")
911
972
  provider.status = "active"