utim-cli 2.6.6__tar.gz → 2.6.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. {utim_cli-2.6.6 → utim_cli-2.6.8}/CHANGELOG.md +22 -0
  2. {utim_cli-2.6.6/utim_cli.egg-info → utim_cli-2.6.8}/PKG-INFO +31 -1
  3. {utim_cli-2.6.6 → utim_cli-2.6.8}/README.md +203 -173
  4. {utim_cli-2.6.6 → utim_cli-2.6.8}/pyproject.toml +3 -3
  5. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim/__init__.py +1 -1
  6. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/__init__.py +20 -9
  7. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/_version.py +1 -1
  8. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/adaptation_engine.py +30 -1
  9. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/agent.py +40 -13
  10. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/blender_agent.py +10 -2
  11. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/brain.py +46 -37
  12. utim_cli-2.6.8/utim_cli/cli_entry.py +108 -0
  13. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/client_utils.py +126 -13
  14. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/constants.py +6 -0
  15. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/context_pruner.py +63 -3
  16. utim_cli-2.6.8/utim_cli/design_prompt.py +775 -0
  17. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/design_studio.py +2 -562
  18. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/doctor.py +17 -8
  19. utim_cli-2.6.8/utim_cli/embed_worker.py +70 -0
  20. utim_cli-2.6.8/utim_cli/embeddings.py +205 -0
  21. utim_cli-2.6.8/utim_cli/first_run_setup.py +616 -0
  22. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/orchestrator.py +143 -16
  23. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/orchestrator_helpers.py +74 -11
  24. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/orchestrator_llm_transport.py +125 -24
  25. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/orchestrator_turn_history.py +105 -2
  26. utim_cli-2.6.8/utim_cli/provider_registry.py +410 -0
  27. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/sdk/__init__.py +51 -51
  28. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/sdk/session.py +14 -1
  29. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/api_models_db.py +46 -0
  30. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/auth.py +74 -9
  31. utim_cli-2.6.8/utim_cli/server/backfill_package_entitlements.py +129 -0
  32. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/bot_detection.py +9 -4
  33. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/captcha.py +25 -2
  34. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/concurrency.py +51 -9
  35. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/db.py +1230 -48
  36. utim_cli-2.6.8/utim_cli/server/docs_md/PAYMENT_BREACH_RUNBOOK.md +84 -0
  37. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/field_crypto.py +19 -0
  38. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/firewall.py +34 -65
  39. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/hobby_throttler.py +277 -250
  40. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/key_rotator.py +255 -31
  41. utim_cli-2.6.8/utim_cli/server/model_discounts.py +349 -0
  42. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/models.py +349 -34
  43. utim_cli-2.6.8/utim_cli/server/payment_integrity.py +406 -0
  44. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/pricing_updater.py +13 -6
  45. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/provider_balance.py +506 -472
  46. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/rate_limit.py +25 -11
  47. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/request_batcher.py +1 -1
  48. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/request_queue.py +552 -545
  49. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/router.py +370 -6
  50. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/routes/__init__.py +10 -2
  51. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/routes/admin_separated_models_routes.py +31 -0
  52. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/routes/api_key_routes.py +11 -2
  53. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/routes/api_models_admin_routes.py +157 -0
  54. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/routes/api_models_public_routes.py +1731 -124
  55. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/routes/billing_routes.py +24 -5
  56. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/routes/completion_routes.py +442 -66
  57. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/routes/compression_routes.py +213 -56
  58. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/routes/credit_routes.py +124 -34
  59. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/routes/design_routes.py +420 -407
  60. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/routes/marketplace_routes.py +78 -41
  61. utim_cli-2.6.8/utim_cli/server/routes/package_checkout_routes.py +373 -0
  62. utim_cli-2.6.8/utim_cli/server/routes/package_orders_routes.py +792 -0
  63. utim_cli-2.6.8/utim_cli/server/routes/packages_routes.py +1267 -0
  64. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/routes/provider_compat_routes.py +1 -1
  65. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/routes/quota_routes.py +111 -58
  66. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/routes/referral_routes.py +138 -58
  67. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/routes/webhook_routes.py +33 -0
  68. utim_cli-2.6.8/utim_cli/server/scripts/backfill_signup_tokens.py +101 -0
  69. utim_cli-2.6.8/utim_cli/server/scripts/migrate_now.py +11 -0
  70. utim_cli-2.6.8/utim_cli/server/scripts/migrate_packages_columns.py +134 -0
  71. utim_cli-2.6.8/utim_cli/server/scripts/reconcile_payments.py +174 -0
  72. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/scripts/vault_ops.py +19 -6
  73. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/server.py +74 -12
  74. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/signup_guard.py +11 -4
  75. utim_cli-2.6.8/utim_cli/server/token_packs.py +188 -0
  76. utim_cli-2.6.8/utim_cli/server/token_pricing.py +288 -0
  77. utim_cli-2.6.8/utim_cli/server/uptime_monitor.py +609 -0
  78. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/utils.py +29 -0
  79. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/vault.py +12 -0
  80. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/situational_scoring.py +371 -369
  81. utim_cli-2.6.8/utim_cli/sticky_context.py +504 -0
  82. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/subagent_manager.py +10 -1
  83. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tools.py +752 -49
  84. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tui/personality_dialog.py +10 -2
  85. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tui/resume_dialog.py +94 -12
  86. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tui/verbosity_dialog.py +4 -1
  87. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/utim.py +265 -28
  88. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/vector_memory.py +6 -1
  89. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/voice_handler.py +18 -8
  90. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/voice_instant.py +233 -233
  91. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/voice_tts.py +65 -7
  92. {utim_cli-2.6.6 → utim_cli-2.6.8/utim_cli.egg-info}/PKG-INFO +31 -1
  93. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli.egg-info/SOURCES.txt +20 -0
  94. utim_cli-2.6.8/utim_cli.egg-info/entry_points.txt +3 -0
  95. utim_cli-2.6.6/utim_cli/server/uptime_monitor.py +0 -199
  96. utim_cli-2.6.6/utim_cli.egg-info/entry_points.txt +0 -3
  97. {utim_cli-2.6.6 → utim_cli-2.6.8}/LICENSE +0 -0
  98. {utim_cli-2.6.6 → utim_cli-2.6.8}/MANIFEST.in +0 -0
  99. {utim_cli-2.6.6 → utim_cli-2.6.8}/setup.cfg +0 -0
  100. {utim_cli-2.6.6 → utim_cli-2.6.8}/setup.py +0 -0
  101. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/_chip_test.py +0 -0
  102. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/_verify_repro.py +0 -0
  103. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/_verify_spinner_ignore.py +0 -0
  104. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/_verify_syntax.py +0 -0
  105. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/_wizard_smoke_test.py +0 -0
  106. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/architecture_indexer.py +0 -0
  107. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/ask_helper.py +0 -0
  108. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/auth.py +0 -0
  109. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/background_models.py +0 -0
  110. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/backup.py +0 -0
  111. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/behavior_telemetry.py +0 -0
  112. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/billing.py +0 -0
  113. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/bootstrap.py +0 -0
  114. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/builtin/skills/utim-guide/SKILL.md +0 -0
  115. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/config.py +0 -0
  116. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/context_inspector.py +0 -0
  117. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/crawler/__init__.py +0 -0
  118. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/crawler/engine.py +0 -0
  119. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/crawler/markdown_distiller.py +0 -0
  120. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/dependency_manager.py +0 -0
  121. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/evidence_registry.py +0 -0
  122. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/harbor.py +0 -0
  123. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/knowledge_graph.py +0 -0
  124. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/local_db.py +0 -0
  125. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/logger.py +0 -0
  126. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/mcp_clean_wrapper.py +0 -0
  127. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/mcp_client.py +0 -0
  128. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/mcp_registry.json +0 -0
  129. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/models.txt +0 -0
  130. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/motion_audio.py +0 -0
  131. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/motion_bridge.py +0 -0
  132. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/motion_graphics.py +0 -0
  133. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/orchestrator_tool_exec.py +0 -0
  134. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/personalities.py +0 -0
  135. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/platform_installer.py +0 -0
  136. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/plugins/__init__.py +0 -0
  137. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/plugins/hooks.py +0 -0
  138. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/plugins/loader.py +0 -0
  139. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/plugins/manager.py +0 -0
  140. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/plugins/registry.py +0 -0
  141. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/plugins/runtime.py +0 -0
  142. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/plugins/schema.py +0 -0
  143. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/plugins/tool_loader.py +0 -0
  144. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/reflection.py +0 -0
  145. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/report.py +0 -0
  146. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/scrapy_search.py +0 -0
  147. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/sdk/config.py +0 -0
  148. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/sdk/context.py +0 -0
  149. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/sdk/events.py +0 -0
  150. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/sdk/handlers.py +0 -0
  151. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/sdk/sidecar.py +0 -0
  152. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/__init__.py +0 -0
  153. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/admin_auth.py +0 -0
  154. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/api_request_logs.py +0 -0
  155. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/attribution.py +0 -0
  156. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/audit_log.py +0 -0
  157. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/batch_processor.py +0 -0
  158. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/bonus_ledger.py +0 -0
  159. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/cli_auth.py +0 -0
  160. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/crypto_utils.py +0 -0
  161. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/discord_verification.py +0 -0
  162. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/disposable_email_guard.py +0 -0
  163. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/docs_md/SECRET_PROVISIONING.md +0 -0
  164. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/docs_md/about.md +0 -0
  165. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/docs_md/changelog.md +0 -0
  166. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/docs_md/docs.md +0 -0
  167. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/docs_md/features.md +0 -0
  168. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/docs_md/license.md +0 -0
  169. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/docs_md/pricing.md +0 -0
  170. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/docs_md/privacy.md +0 -0
  171. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/docs_md/refund.md +0 -0
  172. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/docs_md/support.md +0 -0
  173. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/docs_md/terms.md +0 -0
  174. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/email_utils.py +0 -0
  175. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/exchange_rate.py +0 -0
  176. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/firebase.py +0 -0
  177. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/fix_duplicate_users.py +0 -0
  178. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/history.py +0 -0
  179. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/local_llm.py +0 -0
  180. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/logging_config.py +0 -0
  181. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/maintenance.py +0 -0
  182. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/model_agent.py +0 -0
  183. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/plan_integrity.py +0 -0
  184. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/platform_billing.py +0 -0
  185. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/provider_batcher.py +0 -0
  186. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/provider_discovery.py +0 -0
  187. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/provider_router.py +0 -0
  188. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/provision_build.py +0 -0
  189. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/purge_disposable_users.py +0 -0
  190. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/quota_bank.py +0 -0
  191. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/rewards_engine.py +0 -0
  192. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/routes/account_verification_routes.py +0 -0
  193. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/routes/activity_routes.py +0 -0
  194. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/routes/admin_bonus_routes.py +0 -0
  195. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/routes/admin_db_routes.py +0 -0
  196. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/routes/admin_providers_routes.py +0 -0
  197. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/routes/api_gateway_extensions_routes.py +0 -0
  198. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/routes/auth_routes.py +0 -0
  199. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/routes/feedback_routes.py +0 -0
  200. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/routes/quota_share_routes.py +0 -0
  201. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/routes/rewards_routes.py +0 -0
  202. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/routes/security_routes.py +0 -0
  203. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/routes/session_routes.py +0 -0
  204. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/routes/share_routes.py +0 -0
  205. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/routes/wallet_routes.py +0 -0
  206. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/scripts/__init__.py +0 -0
  207. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/security_alerts.py +0 -0
  208. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/storage_nodes.py +0 -0
  209. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/server/tier_tables.py +0 -0
  210. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/share.py +0 -0
  211. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/share_tui.py +0 -0
  212. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/skill_router.py +0 -0
  213. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/state.py +0 -0
  214. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/syntax_fix.py +0 -0
  215. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/task_dispatcher.py +0 -0
  216. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/task_logger.py +0 -0
  217. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tests_quota_bank_scratch.py +0 -0
  218. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tools_grep.py +0 -0
  219. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tui/__init__.py +0 -0
  220. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tui/compression_dialog.py +0 -0
  221. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tui/feedback_dialog.py +0 -0
  222. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tui/history_dialog.py +0 -0
  223. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tui/marketplace_app_state.py +0 -0
  224. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tui/marketplace_dialog.py +0 -0
  225. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tui/marketplace_layout_engine.py +0 -0
  226. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tui/mcp_dialog.py +0 -0
  227. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tui/miniagents_dialog.py +0 -0
  228. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tui/model_dialog.py +0 -0
  229. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tui/plugins_dialog.py +0 -0
  230. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tui/publish_dialog.py +0 -0
  231. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tui/quota_dialog.py +0 -0
  232. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tui/quota_redeem_dialog.py +0 -0
  233. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tui/quota_share_dialog.py +0 -0
  234. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tui/rewards_tui.py +0 -0
  235. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tui/skills_dialog.py +0 -0
  236. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tui/spinner.py +0 -0
  237. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tui/stream_diagnostics.py +0 -0
  238. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tui/subagents_dialog.py +0 -0
  239. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tui/tasks_dialog.py +0 -0
  240. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tui/thinking_display.py +0 -0
  241. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tui/thinking_phrases.py +0 -0
  242. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tui/token_meter.py +0 -0
  243. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tui/tool_theme_preview.py +0 -0
  244. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tui/tool_themes.py +0 -0
  245. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tui/tools_dialog.py +0 -0
  246. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/tui/update_dialog.py +0 -0
  247. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/update_checker.py +0 -0
  248. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/utilities.py +0 -0
  249. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/utimmodel.txt +0 -0
  250. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/voice.py +0 -0
  251. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/voice_coding.py +0 -0
  252. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/voice_events.py +0 -0
  253. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/voice_orchestrator.py +0 -0
  254. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/voice_session.py +0 -0
  255. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/voice_stt.py +0 -0
  256. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/wheel.py +0 -0
  257. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli/workspace.py +0 -0
  258. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli.egg-info/dependency_links.txt +0 -0
  259. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli.egg-info/requires.txt +0 -0
  260. {utim_cli-2.6.6 → utim_cli-2.6.8}/utim_cli.egg-info/top_level.txt +0 -0
@@ -1,5 +1,27 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.6.8] - 2026-11-27
4
+
5
+ ### ⚡ Connection Reliability & Streaming Performance
6
+ - **Enabled OS-level TCP Keep-Alive on the CLI HTTP session**: the shared `requests.Session` now sets `SO_KEEPALIVE`, `TCP_KEEPIDLE=30`, `TCP_KEEPINTVL=10`, and `TCP_KEEPCNT=5` on pooled sockets, so long-distance users no longer lose streams when NATs, carrier gateways, or stateful firewalls purge idle connections during slow model reasoning or generation pauses.
7
+ - **Disabled Nagle's algorithm (`TCP_NODELAY`)**: token deltas are flushed onto the wire immediately instead of being buffered into full TCP packets, removing transmission stutter and lowering latency over high-RTT routes.
8
+ - **Expanded connection pooling**: raised `pool_connections` to 25 and `pool_maxsize` to 50 with exponential backoff on connect retries, cutting TLS handshake round-trips and improving resilience on unstable links.
9
+ - **Added proxy-bypass streaming headers to the completions endpoint**: `StreamingResponse` now emits `X-Accel-Buffering: no`, `Cache-Control: no-cache, no-transform`, and `Connection: keep-alive`, forcing Nginx/Cloudflare/ALB edge proxies to flush each chunk immediately instead of buffering or timing out.
10
+
11
+ ## [2.6.7] - 2026-11-16
12
+
13
+ ### 🐛 Compression Pipeline Bug Fixes
14
+ - **Fixed stale turn indices corrupting context slices**: the active turn's start position is now resolved robustly via object identity, the active flag, and a backwards scan fallback. Previously a stale index could slice the wrong range of messages, silently dropping parts of the current turn or dragging older turns into the live window.
15
+ - **Fixed tool output being compressed away mid-turn**: compression now uses a **tool-aware tail** that protects the most recent 8 tool interactions (roughly 6–20 messages) verbatim, so the model keeps the exact results it is actively reasoning over instead of losing them to a synthetic summary.
16
+ - **Fixed structural LLM tool compression**: tool payloads are compacted structurally rather than truncated as flat text, and older tool outputs are pruned in two tiers — a soft pass on warm-tier tools, then a hard pass on stale outputs only if context is still over the elastic overclock threshold.
17
+ - **Fixed active-turn isolation**: the current turn's messages can no longer be merged into historical compaction artifacts. The frozen prefix and the live dynamic context block (timestamp, brain memory, experience lessons, user hints, subagent checklist) are now assembled separately, so live context is injected without rewriting the immutable prefix.
18
+ - **Fixed over-eager compaction on small histories**: turns with very little history (≤10 messages and well under capacity) are preserved verbatim instead of being replaced with synthetic summaries.
19
+ - **Added abort-aware compression** (see below): response-end compression no longer runs unconditionally on an aborted turn.
20
+
21
+ ### ⚡ Improvements
22
+ - Intra-turn compression is now gentle by design — capped at 5–15% of the active turn after each 25 iterations, keeping 85–95% verbatim so working memory survives long agent loops.
23
+ - Aborted turns are only compressed when they were tool-heavy (>8 executed tool calls); short aborts stay fully verbatim so the next attempt sees exact partial state.
24
+
3
25
  ## [2.6.6] - 2026-11-11
4
26
 
5
27
  ### 🐛 Minor Bug Fixes
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: utim-cli
3
- Version: 2.6.6
3
+ Version: 2.6.8
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
@@ -99,12 +99,42 @@ On first run, UTIM checks for `.utim/config.json`. If it does not exist, it runs
99
99
 
100
100
  ---
101
101
 
102
+ ## 📦 Dependency Setup Wizard
103
+
104
+ The first time you launch the CLI on a new machine, UTIM asks **before
105
+ installing anything** how much of UTIM you want. Three options are offered,
106
+ each with the system requirements it needs:
107
+
108
+ | Option | What you get | System requirements |
109
+ |---|---|---|
110
+ | **1. Lite** | The 13 baseline packages (HTTP, async, CLI framework, terminal UI, local DB). | Python 3.9+, any OS (incl. Termux), ~60 MB disk, ~150 MB RAM, **no compiler** |
111
+ | **2. Standard** *(recommended)* | Lite **+** tree-sitter (Knowledge Graph), Pillow (images), MCP client, Scrapy web search. | Python 3.9+, Windows/macOS/Linux, ~350 MB disk, ~400 MB RAM, ~120 MB download |
112
+ | **3. Full Workstation** | Standard **+** ChromaDB + sentence-transformers (RAG vector memory, local MiniLM embeddings). | Python 3.9–3.11, x86-64 only (no Termux/ARM), ~5 GB disk, 8 GB RAM, C toolchain, ~2 GB download |
113
+
114
+ Pick with `1`/`2`/`3` (or type the tier name). The choice is remembered in
115
+ `~/.utim/setup_state.json`, so the wizard never runs twice.
116
+
117
+ You can review or change the tier at any time:
118
+
119
+ ```bash
120
+ utim setup # pick a tier interactively
121
+ utim setup --show # just print the options + system requirements
122
+ utim setup lite # install a specific tier non-interactively
123
+ utim setup --reset # forget the recorded choice
124
+ ```
125
+
126
+ In non-interactive environments (CI, Docker, piped stdin) the wizard is
127
+ skipped and the **Standard** tier is installed automatically.
128
+
129
+ ---
130
+
102
131
  ## ⚡ Main CLI Commands
103
132
 
104
133
  - **`utim`**: Starts the interactive chat terminal (TUI).
105
134
  - **`utim task "<prompt>"`**: Executes a single task autonomously from the command line and exits. In an interactive terminal (`stdin` is a TTY) file writes and commands prompt for confirmation; when piped/scripted they run in auto-accept mode.
106
135
  - **`utim --dry-run`**: Starts the session in **Dry-Run Mode** (all code modifications and shell commands are simulated, not written/executed).
107
136
  - **`utim --sandbox`**: Runs all mutating shell command proposals in the intelligent local sandbox (untrusted commands will block until approved).
137
+ - **`utim setup`**: Choose / change the dependency installation tier (see above).
108
138
  - **`utim doctor`** / **`utim init`** / **`utim reset`**: Administrative commands for state diagnosis, initialization, and factory resets.
109
139
 
110
140
  ---
@@ -1,173 +1,203 @@
1
- # UTIM CLI Agent: Enterprise Coder Assistant
2
-
3
- UTIM is an agentic developer CLI assistant designed to automate coding tasks directly inside your local terminal, featuring robust safety controls, self-healing quality gates, and local-first semantic memory.
4
-
5
- ---
6
-
7
- ## 🚀 Quick Start
8
-
9
- ### 1. Installation
10
-
11
- **Recommended: Automated Installer (UNIX / macOS / Android Termux)**
12
- Use the automated installation script, which detects your environment (such as Termux) and automatically installs build dependencies (like `rust`, `clang`, and `binutils`) and configures correct API levels:
13
-
14
- ```bash
15
- curl -sL https://raw.githubusercontent.com/emendai/utim/main/install.sh | bash
16
- ```
17
-
18
- **Alternative: Local Installation (from source)**
19
- ```bash
20
- # Basic installation
21
- pip install .
22
-
23
- # Recommended: Full installation (includes semantic vector RAG & web search)
24
- pip install ".[full]"
25
- ```
26
-
27
- ### 2. Provider & Model Configuration
28
- Start the chat session:
29
- ```bash
30
- utim
31
- ```
32
- On first run, UTIM checks for `.utim/config.json`. If it does not exist, it runs a provider and model configuration wizard. You can configure:
33
- - **Default Providers**: OpenRouter, OpenAI, custom servers, etc.
34
- - **Model Picker**: Press `Ctrl+M` in the chat terminal at any time to configure, pick, add, or delete LLMs.
35
-
36
- ---
37
-
38
- ## ⚡ Main CLI Commands
39
-
40
- - **`utim`**: Starts the interactive chat terminal (TUI).
41
- - **`utim task "<prompt>"`**: Executes a single task autonomously from the command line and exits. In an interactive terminal (`stdin` is a TTY) file writes and commands prompt for confirmation; when piped/scripted they run in auto-accept mode.
42
- - **`utim --dry-run`**: Starts the session in **Dry-Run Mode** (all code modifications and shell commands are simulated, not written/executed).
43
- - **`utim --sandbox`**: Runs all mutating shell command proposals in the intelligent local sandbox (untrusted commands will block until approved).
44
- - **`utim doctor`** / **`utim init`** / **`utim reset`**: Administrative commands for state diagnosis, initialization, and factory resets.
45
-
46
- ---
47
-
48
- ## 🛠️ In-Chat Slash Commands
49
-
50
- Inside the interactive chat terminal, type these slash commands for direct workspace control:
51
-
52
- - **`/undo`**: Reverts the last assistant action, restoring files to their exact "before" state and rolling back messages.
53
- - **`/redo`**: Re-applies the last undone turn, re-writing files and restoring conversation logs.
54
- - **`/rewind <turn_index>`**: Rolls back the entire session to a specific conversation turn.
55
- - **`/doctor`**: Run diagnostics on environment variables, Python version, dependencies, API model connections, and MCP server status.
56
- - **`/report`**: Generates a support bundle under `.utim_tmp/report_bundle.zip` (automatically redacts secrets, passwords, or personal names/files).
57
- - **`/reset`**: Wipes the current chat history without deleting persistent local vector memory.
58
-
59
- ---
60
-
61
- ## 🧠 Architecture & How it Works
62
-
63
- 1. **Local Memory (`.utim/memory.json` & ChromaDB)**:
64
- - Global user preferences, rules, and facts are synced to a semantic vector database (`.utim_tmp/vector_db`).
65
- - Relevant memories are dynamically fetched via semantic similarity (RAG) and injected into the system prompt context, preventing prompt bloating.
66
- 2. **Undo/Redo Stack & Session State**:
67
- - Every file change (writes, batch string edits, moves, deletions) computes a diff snapshot.
68
- - The entire stack is serialized dynamically to `.utim/session_state.json`. You can close your shell, shut down your computer, and resume later with intact rollback features.
69
- 3. **Workspace Boundary & Safety Controls**:
70
- - Prior to writing files, UTIM performs **Pre-Commit Syntax Checks** (AST compilation for Python, JSON loads, JS/TS checks).
71
- - If tests are available (`pytest`, `npm test`, etc.), UTIM runs them in a background **Regression testing loop**, prompting the model to self-heal code errors if assertions fail.
72
- - **Interactive TUI mode** (`utim`): every file mutation shows an interactive diff dialog; the developer accepts, edits, or rejects individual hunks before they are applied.
73
- - **CLI task mode** (`utim task`): when running in a real terminal, destructive operations (`rm`, package installs, `>` redirects) prompt for `y/n` confirmation. When stdin is piped/non-interactive all edits are auto-accepted.
74
- - **Sandbox mode** (`utim --sandbox`): classifies every terminal command as safe or risky and blocks risky commands until explicitly approved.
75
-
76
- ---
77
-
78
- ## ⚠️ What this Tool Can and Cannot Do
79
-
80
- ### Can Do:
81
- - Read, write, and patch codebases safely.
82
- - Install and coordinate custom MCP (Model Context Protocol) servers.
83
- - Self-heal syntax and test errors before files are written.
84
- - Revert any file modification instantly.
85
-
86
- ### Cannot Do:
87
- - **No Remote Code Execution**: Runs locally on your machine.
88
- - **Unverified Sensitive Reads Blocked**: Reading files or memory matching sensitive keys (like passwords, secret codes, or personal data) is blocked unless verified via your configured verification code.
89
- - **No Auto-Deletions**: Any command that deletes files outside the working directory is blocked automatically.
90
-
91
- ---
92
-
93
- ## 📋 Compatibility Matrix
94
-
95
- | Component | Minimum Version | Recommended Version | Notes |
96
- |-----------|-----------------|---------------------|-------|
97
- | **Python** | 3.10 | 3.11+ | 3.10 required for asyncio features |
98
- | **pip** | 21.0 | 23.0+ | For modern dependency resolution |
99
- | **Node.js** | 18.0 | 20.0+ | Only if using MCP servers |
100
- | **Operating System** | | | |
101
- | - Windows | 10 (1903+) | 11 | PowerShell or CMD required |
102
- | - macOS | 11 (Big Sur) | 14 (Sonoma) | Terminal.app or iTerm2 |
103
- | - Linux | Ubuntu 20.04 | Ubuntu 22.04+ | Any modern distro with bash |
104
- | **Terminals** | | | |
105
- | - Windows Terminal | 1.0 | 1.19+ | Full color support |
106
- | - iTerm2 | 3.4+ | 3.5+ | Recommended on macOS |
107
- | - VS Code Terminal | 1.70+ | 1.85+ | Full support |
108
- | **Required Tools** | | | |
109
- | - git | 2.30 | 2.40+ | For undo/redo and diffs |
110
- | - Docker | 20.10 | 24.0+ | Optional, for sandbox mode |
111
-
112
- ### Supported LLM Providers
113
-
114
- | Provider | API Type | Models Supported |
115
- |----------|----------|------------------|
116
- | OpenRouter | REST | Claude, GPT, Gemini, Mistral, etc. |
117
- | OpenAI | REST | GPT-4o, GPT-4 Turbo, GPT-3.5 |
118
- | Anthropic | REST | Claude 3.5, 3, 2 |
119
- | Google AI | REST | Gemini 1.5 Pro/Flash |
120
- | Azure OpenAI | REST | GPT-4, GPT-3.5 |
121
- | Ollama | Local | Llama 3, Mistral, CodeLlama |
122
- | Custom Server | REST | Any OpenAI-compatible API |
123
-
124
- ---
125
-
126
- ## 📄 Related Documentation
127
-
128
- - [📖 Full Documentation](https://utim.dev/docs)
129
- - [🔒 Security Policy](SECURITY.md) — vulnerability reporting, security@utim.dev
130
- - [🗄️ Data Handling Reference](DATA_HANDLING.md) — what stays local, what goes to backend, what goes to model providers
131
- - [📊 SLA & Support](SLA.md)
132
- - [🛡️ Privacy Policy](landing/src/docs_md/privacy.md)
133
-
134
- ## 📦 Installation Methods
135
-
136
- ### npm (recommended — works without Python pre-installed)
137
- ```bash
138
- npm install -g @emend-ai/utim
139
- ```
140
-
141
- ### pip (from PyPI)
142
- ```bash
143
- pip install utim-cli
144
- # Full install with optional features (web search, images, parsers)
145
- pip install "utim-cli[full]"
146
- ```
147
-
148
- Desktop installs include the normal SDK/MCP path automatically. Mobile/Termux
149
- installs keep those native-heavy pieces optional to avoid `pydantic-core`; use
150
- `utim-cli[mcp]` or `utim-cli[legacy-agent]` only if you explicitly need them.
151
- Do not install `utim_cli/server/requirements.txt` unless you are deploying the
152
- server.
153
-
154
- ### Source install (development)
155
- ```bash
156
- git clone https://github.com/emendai/utim.git
157
- cd utim
158
- pip install -e ".[full]"
159
- ```
160
-
161
- ### Smoke-test your install
162
- ```bash
163
- utim --version # Should print the current version
164
- utim doctor # Runs diagnostics — all checks should pass
165
- ```
166
-
167
- See [INSTALLATION_VERIFICATION.md](INSTALLATION_VERIFICATION.md) for detailed verification steps and troubleshooting.
168
-
169
- ## 🔢 Version
170
-
171
- UTIM uses a single canonical version defined in [`utim_cli/_version.py`](utim_cli/_version.py).
172
- Run `python scripts/sync_version.py` to propagate a version bump to all surfaces
173
- (`package.json`, `pyproject.toml`, `CHANGELOG.md`) before releasing.
1
+ # UTIM CLI Agent: Enterprise Coder Assistant
2
+
3
+ UTIM is an agentic developer CLI assistant designed to automate coding tasks directly inside your local terminal, featuring robust safety controls, self-healing quality gates, and local-first semantic memory.
4
+
5
+ ---
6
+
7
+ ## 🚀 Quick Start
8
+
9
+ ### 1. Installation
10
+
11
+ **Recommended: Automated Installer (UNIX / macOS / Android Termux)**
12
+ Use the automated installation script, which detects your environment (such as Termux) and automatically installs build dependencies (like `rust`, `clang`, and `binutils`) and configures correct API levels:
13
+
14
+ ```bash
15
+ curl -sL https://raw.githubusercontent.com/emendai/utim/main/install.sh | bash
16
+ ```
17
+
18
+ **Alternative: Local Installation (from source)**
19
+ ```bash
20
+ # Basic installation
21
+ pip install .
22
+
23
+ # Recommended: Full installation (includes semantic vector RAG & web search)
24
+ pip install ".[full]"
25
+ ```
26
+
27
+ ### 2. Provider & Model Configuration
28
+ Start the chat session:
29
+ ```bash
30
+ utim
31
+ ```
32
+ On first run, UTIM checks for `.utim/config.json`. If it does not exist, it runs a provider and model configuration wizard. You can configure:
33
+ - **Default Providers**: OpenRouter, OpenAI, custom servers, etc.
34
+ - **Model Picker**: Press `Ctrl+M` in the chat terminal at any time to configure, pick, add, or delete LLMs.
35
+
36
+ ---
37
+
38
+ ## 📦 Dependency Setup Wizard
39
+
40
+ The first time you launch the CLI on a new machine, UTIM asks **before
41
+ installing anything** how much of UTIM you want. Three options are offered,
42
+ each with the system requirements it needs:
43
+
44
+ | Option | What you get | System requirements |
45
+ |---|---|---|
46
+ | **1. Lite** | The 13 baseline packages (HTTP, async, CLI framework, terminal UI, local DB). | Python 3.9+, any OS (incl. Termux), ~60 MB disk, ~150 MB RAM, **no compiler** |
47
+ | **2. Standard** *(recommended)* | Lite **+** tree-sitter (Knowledge Graph), Pillow (images), MCP client, Scrapy web search. | Python 3.9+, Windows/macOS/Linux, ~350 MB disk, ~400 MB RAM, ~120 MB download |
48
+ | **3. Full Workstation** | Standard **+** ChromaDB + sentence-transformers (RAG vector memory, local MiniLM embeddings). | Python 3.9–3.11, x86-64 only (no Termux/ARM), ~5 GB disk, 8 GB RAM, C toolchain, ~2 GB download |
49
+
50
+ Pick with `1`/`2`/`3` (or type the tier name). The choice is remembered in
51
+ `~/.utim/setup_state.json`, so the wizard never runs twice.
52
+
53
+ You can review or change the tier at any time:
54
+
55
+ ```bash
56
+ utim setup # pick a tier interactively
57
+ utim setup --show # just print the options + system requirements
58
+ utim setup lite # install a specific tier non-interactively
59
+ utim setup --reset # forget the recorded choice
60
+ ```
61
+
62
+ In non-interactive environments (CI, Docker, piped stdin) the wizard is
63
+ skipped and the **Standard** tier is installed automatically.
64
+
65
+ ---
66
+
67
+ ## ⚡ Main CLI Commands
68
+
69
+ - **`utim`**: Starts the interactive chat terminal (TUI).
70
+ - **`utim task "<prompt>"`**: Executes a single task autonomously from the command line and exits. In an interactive terminal (`stdin` is a TTY) file writes and commands prompt for confirmation; when piped/scripted they run in auto-accept mode.
71
+ - **`utim --dry-run`**: Starts the session in **Dry-Run Mode** (all code modifications and shell commands are simulated, not written/executed).
72
+ - **`utim --sandbox`**: Runs all mutating shell command proposals in the intelligent local sandbox (untrusted commands will block until approved).
73
+ - **`utim setup`**: Choose / change the dependency installation tier (see above).
74
+ - **`utim doctor`** / **`utim init`** / **`utim reset`**: Administrative commands for state diagnosis, initialization, and factory resets.
75
+
76
+ ---
77
+
78
+ ## 🛠️ In-Chat Slash Commands
79
+
80
+ Inside the interactive chat terminal, type these slash commands for direct workspace control:
81
+
82
+ - **`/undo`**: Reverts the last assistant action, restoring files to their exact "before" state and rolling back messages.
83
+ - **`/redo`**: Re-applies the last undone turn, re-writing files and restoring conversation logs.
84
+ - **`/rewind <turn_index>`**: Rolls back the entire session to a specific conversation turn.
85
+ - **`/doctor`**: Run diagnostics on environment variables, Python version, dependencies, API model connections, and MCP server status.
86
+ - **`/report`**: Generates a support bundle under `.utim_tmp/report_bundle.zip` (automatically redacts secrets, passwords, or personal names/files).
87
+ - **`/reset`**: Wipes the current chat history without deleting persistent local vector memory.
88
+
89
+ ---
90
+
91
+ ## 🧠 Architecture & How it Works
92
+
93
+ 1. **Local Memory (`.utim/memory.json` & ChromaDB)**:
94
+ - Global user preferences, rules, and facts are synced to a semantic vector database (`.utim_tmp/vector_db`).
95
+ - Relevant memories are dynamically fetched via semantic similarity (RAG) and injected into the system prompt context, preventing prompt bloating.
96
+ 2. **Undo/Redo Stack & Session State**:
97
+ - Every file change (writes, batch string edits, moves, deletions) computes a diff snapshot.
98
+ - The entire stack is serialized dynamically to `.utim/session_state.json`. You can close your shell, shut down your computer, and resume later with intact rollback features.
99
+ 3. **Workspace Boundary & Safety Controls**:
100
+ - Prior to writing files, UTIM performs **Pre-Commit Syntax Checks** (AST compilation for Python, JSON loads, JS/TS checks).
101
+ - If tests are available (`pytest`, `npm test`, etc.), UTIM runs them in a background **Regression testing loop**, prompting the model to self-heal code errors if assertions fail.
102
+ - **Interactive TUI mode** (`utim`): every file mutation shows an interactive diff dialog; the developer accepts, edits, or rejects individual hunks before they are applied.
103
+ - **CLI task mode** (`utim task`): when running in a real terminal, destructive operations (`rm`, package installs, `>` redirects) prompt for `y/n` confirmation. When stdin is piped/non-interactive all edits are auto-accepted.
104
+ - **Sandbox mode** (`utim --sandbox`): classifies every terminal command as safe or risky and blocks risky commands until explicitly approved.
105
+
106
+ ---
107
+
108
+ ## ⚠️ What this Tool Can and Cannot Do
109
+
110
+ ### Can Do:
111
+ - Read, write, and patch codebases safely.
112
+ - Install and coordinate custom MCP (Model Context Protocol) servers.
113
+ - Self-heal syntax and test errors before files are written.
114
+ - Revert any file modification instantly.
115
+
116
+ ### Cannot Do:
117
+ - **No Remote Code Execution**: Runs locally on your machine.
118
+ - **Unverified Sensitive Reads Blocked**: Reading files or memory matching sensitive keys (like passwords, secret codes, or personal data) is blocked unless verified via your configured verification code.
119
+ - **No Auto-Deletions**: Any command that deletes files outside the working directory is blocked automatically.
120
+
121
+ ---
122
+
123
+ ## 📋 Compatibility Matrix
124
+
125
+ | Component | Minimum Version | Recommended Version | Notes |
126
+ |-----------|-----------------|---------------------|-------|
127
+ | **Python** | 3.10 | 3.11+ | 3.10 required for asyncio features |
128
+ | **pip** | 21.0 | 23.0+ | For modern dependency resolution |
129
+ | **Node.js** | 18.0 | 20.0+ | Only if using MCP servers |
130
+ | **Operating System** | | | |
131
+ | - Windows | 10 (1903+) | 11 | PowerShell or CMD required |
132
+ | - macOS | 11 (Big Sur) | 14 (Sonoma) | Terminal.app or iTerm2 |
133
+ | - Linux | Ubuntu 20.04 | Ubuntu 22.04+ | Any modern distro with bash |
134
+ | **Terminals** | | | |
135
+ | - Windows Terminal | 1.0 | 1.19+ | Full color support |
136
+ | - iTerm2 | 3.4+ | 3.5+ | Recommended on macOS |
137
+ | - VS Code Terminal | 1.70+ | 1.85+ | Full support |
138
+ | **Required Tools** | | | |
139
+ | - git | 2.30 | 2.40+ | For undo/redo and diffs |
140
+ | - Docker | 20.10 | 24.0+ | Optional, for sandbox mode |
141
+
142
+ ### Supported LLM Providers
143
+
144
+ | Provider | API Type | Models Supported |
145
+ |----------|----------|------------------|
146
+ | OpenRouter | REST | Claude, GPT, Gemini, Mistral, etc. |
147
+ | OpenAI | REST | GPT-4o, GPT-4 Turbo, GPT-3.5 |
148
+ | Anthropic | REST | Claude 3.5, 3, 2 |
149
+ | Google AI | REST | Gemini 1.5 Pro/Flash |
150
+ | Azure OpenAI | REST | GPT-4, GPT-3.5 |
151
+ | Ollama | Local | Llama 3, Mistral, CodeLlama |
152
+ | Custom Server | REST | Any OpenAI-compatible API |
153
+
154
+ ---
155
+
156
+ ## 📄 Related Documentation
157
+
158
+ - [📖 Full Documentation](https://utim.dev/docs)
159
+ - [🔒 Security Policy](SECURITY.md) — vulnerability reporting, security@utim.dev
160
+ - [🗄️ Data Handling Reference](DATA_HANDLING.md) — what stays local, what goes to backend, what goes to model providers
161
+ - [📊 SLA & Support](SLA.md)
162
+ - [🛡️ Privacy Policy](landing/src/docs_md/privacy.md)
163
+
164
+ ## 📦 Installation Methods
165
+
166
+ ### npm (recommended — works without Python pre-installed)
167
+ ```bash
168
+ npm install -g @emend-ai/utim
169
+ ```
170
+
171
+ ### pip (from PyPI)
172
+ ```bash
173
+ pip install utim-cli
174
+ # Full install with optional features (web search, images, parsers)
175
+ pip install "utim-cli[full]"
176
+ ```
177
+
178
+ Desktop installs include the normal SDK/MCP path automatically. Mobile/Termux
179
+ installs keep those native-heavy pieces optional to avoid `pydantic-core`; use
180
+ `utim-cli[mcp]` or `utim-cli[legacy-agent]` only if you explicitly need them.
181
+ Do not install `utim_cli/server/requirements.txt` unless you are deploying the
182
+ server.
183
+
184
+ ### Source install (development)
185
+ ```bash
186
+ git clone https://github.com/emendai/utim.git
187
+ cd utim
188
+ pip install -e ".[full]"
189
+ ```
190
+
191
+ ### Smoke-test your install
192
+ ```bash
193
+ utim --version # Should print the current version
194
+ utim doctor # Runs diagnostics — all checks should pass
195
+ ```
196
+
197
+ See [INSTALLATION_VERIFICATION.md](INSTALLATION_VERIFICATION.md) for detailed verification steps and troubleshooting.
198
+
199
+ ## 🔢 Version
200
+
201
+ UTIM uses a single canonical version defined in [`utim_cli/_version.py`](utim_cli/_version.py).
202
+ Run `python scripts/sync_version.py` to propagate a version bump to all surfaces
203
+ (`package.json`, `pyproject.toml`, `CHANGELOG.md`) before releasing.
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "utim-cli"
7
- version = "2.6.6"
7
+ version = "2.6.8"
8
8
 
9
9
  description = "UTIM – Universal Terminal Intelligence Manager. A powerful agentic AI coding assistant for your terminal."
10
10
  readme = "README.md"
@@ -89,8 +89,8 @@ memory = [
89
89
  ]
90
90
 
91
91
  [project.scripts]
92
- utim = "utim_cli.utim:main_cli_entry"
93
- utimlite = "utim_cli.utim:main_cli_entry"
92
+ utim = "utim_cli.cli_entry:main"
93
+ utimlite = "utim_cli.cli_entry:main_lite"
94
94
 
95
95
 
96
96
  [tool.setuptools.packages.find]
@@ -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.6"
17
+ __version__ = "2.6.8"
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.6"
8
+ __version__ = "2.6.8"
9
9
 
10
10
 
11
11
  import builtins, os, pathlib, urllib.parse, re
@@ -120,22 +120,33 @@ except Exception:
120
120
  # * UTIM_OFFLINE=1 -> skip (assumed pre-installed)
121
121
  # * UTIM_AUTO_INSTALL=0 -> skip (CI / locked-down envs)
122
122
  # * non-interactive stdout -> skip (can't prompt)
123
+ # * first run on a new machine -> DEFER to the first-run setup wizard, so
124
+ # the user gets to pick Lite / Standard / Full *before* anything is
125
+ # downloaded. The wizard installs the chosen tier itself.
123
126
  # * anything else -> call ensure_core_deps() which may prompt the
124
127
  # user the first time and install silently thereafter.
125
128
  # * any exception in dep mgmt is swallowed (we never want __init__ to crash)
126
129
  try:
127
130
  import os as _os_init
128
- import sys as _sys_init
129
- if _os_init.environ.get("UTIM_OFFLINE") != "1" and _os_init.environ.get("UTIM_AUTO_INSTALL") != "0":
131
+ if (_os_init.environ.get("UTIM_OFFLINE") != "1"
132
+ and _os_init.environ.get("UTIM_AUTO_INSTALL") != "0"
133
+ and not globals().get("_core_deps_checked")):
130
134
  # Only run the check once per process
131
- _already_checked = getattr(_sys_init.modules.get("utim_cli"), "_core_deps_checked", False)
132
- if not _already_checked:
133
- _sys_init.modules["utim_cli"]._core_deps_checked = True
135
+ globals()["_core_deps_checked"] = True
136
+ try:
137
+ # First-run wizard takes priority: it asks the user which
138
+ # installation tier to use before installing anything.
139
+ _defer = False
134
140
  try:
141
+ from utim_cli.first_run_setup import should_defer_install
142
+ _defer = should_defer_install()
143
+ except Exception:
144
+ _defer = False
145
+ if not _defer:
135
146
  from utim_cli.dependency_manager import ensure_core_deps
136
147
  ensure_core_deps(verbose=False) # quiet by default
137
- except Exception:
138
- # Never let dep-checking block CLI startup
139
- pass
148
+ except Exception:
149
+ # Never let dep-checking block CLI startup
150
+ pass
140
151
  except Exception:
141
152
  pass
@@ -11,6 +11,6 @@
11
11
  # from here so every surface stays in sync automatically.
12
12
  # ─────────────────────────────────────────────────────────────────────────────
13
13
 
14
- VERSION = "2.6.6"
14
+ VERSION = "2.6.8"
15
15
 
16
16
 
@@ -24,6 +24,7 @@ from __future__ import annotations
24
24
 
25
25
  import json
26
26
  import logging
27
+ import os
27
28
  import re
28
29
  import threading
29
30
  import time
@@ -33,6 +34,34 @@ from typing import Any, Dict, List, Optional, Tuple
33
34
 
34
35
  logger = logging.getLogger(__name__)
35
36
 
37
+ # ── Quiet circuit-breaker notices ───────────────────────────────────────────
38
+ # Circuit-open transitions are *routine* resilience events (a throttled 429, a
39
+ # transient 500). Logging them at WARNING on every transition is pure noise for
40
+ # the end user, so we emit a single debounced notice per model and keep the
41
+ # full detail at DEBUG level. Toggled by UTIM_QUIET_CIRCUIT_NOTICES (default on).
42
+ _QUIET_CIRCUIT_NOTICES = os.getenv("UTIM_QUIET_CIRCUIT_NOTICES", "1").strip().lower() not in (
43
+ "0", "false", "no", "off"
44
+ )
45
+ _CIRCUIT_NOTICE_INTERVAL_S = 600.0 # at most one notice per model per 10 min
46
+ _circuit_notice_last: Dict[str, float] = {}
47
+
48
+
49
+ def _log_circuit_open(model_id: str, health: float, cooldown_s: float) -> None:
50
+ """Emit a single, throttled, non-alarming notice when a circuit opens."""
51
+ logger.debug(
52
+ f"[AdaptationEngine] circuit OPEN for {model_id} "
53
+ f"(health={health:.2f}) — cooling down {cooldown_s}s"
54
+ )
55
+ if _QUIET_CIRCUIT_NOTICES:
56
+ now = time.time()
57
+ last = _circuit_notice_last.get(model_id, 0.0)
58
+ if now - last < _CIRCUIT_NOTICE_INTERVAL_S:
59
+ return
60
+ _circuit_notice_last[model_id] = now
61
+ # Soft, user-friendly one-liner: no scary "circuit OPEN / cooling down".
62
+ logger.info(f"[AdaptationEngine] model {model_id} is briefly resting; using a fallback for a moment")
63
+
64
+
36
65
  # ── Tunables ────────────────────────────────────────────────────────────────
37
66
 
38
67
  MAX_CONTINUE_ROUNDS = 5 # hard cap to avoid infinite loops
@@ -266,7 +295,7 @@ class AdaptationEngine:
266
295
  # Open circuit when health degrades past threshold
267
296
  if new < HEALTH_CIRCUIT_THRESHOLD and model_id not in self._model_circuit_open_until:
268
297
  self._model_circuit_open_until[model_id] = time.time() + HEALTH_COOLDOWN_S
269
- logger.warning(f"[AdaptationEngine] circuit OPEN for {model_id} (health={new:.2f}) — cooling down {HEALTH_COOLDOWN_S}s")
298
+ _log_circuit_open(model_id, new, HEALTH_COOLDOWN_S)
270
299
  self._persist_health()
271
300
 
272
301
  def record_failure(self, model_id: str, kind: str = "error", details: str = "") -> None: