cconnect 2.2.5__tar.gz → 2.2.6__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 (243) hide show
  1. {cconnect-2.2.5 → cconnect-2.2.6}/PKG-INFO +1 -1
  2. {cconnect-2.2.5 → cconnect-2.2.6}/cconnect.egg-info/PKG-INFO +1 -1
  3. {cconnect-2.2.5 → cconnect-2.2.6}/cconnect.egg-info/SOURCES.txt +2 -0
  4. {cconnect-2.2.5 → cconnect-2.2.6}/core/cli.py +56 -63
  5. cconnect-2.2.6/core/detached.py +46 -0
  6. {cconnect-2.2.5 → cconnect-2.2.6}/core/paths.py +1 -0
  7. {cconnect-2.2.5 → cconnect-2.2.6}/core/release.py +1 -1
  8. cconnect-2.2.6/core/self_update.py +67 -0
  9. {cconnect-2.2.5 → cconnect-2.2.6}/routers/system.py +4 -1
  10. {cconnect-2.2.5 → cconnect-2.2.6}/services/repo.py +18 -1
  11. {cconnect-2.2.5 → cconnect-2.2.6}/README.md +0 -0
  12. {cconnect-2.2.5 → cconnect-2.2.6}/cconnect.egg-info/dependency_links.txt +0 -0
  13. {cconnect-2.2.5 → cconnect-2.2.6}/cconnect.egg-info/entry_points.txt +0 -0
  14. {cconnect-2.2.5 → cconnect-2.2.6}/cconnect.egg-info/requires.txt +0 -0
  15. {cconnect-2.2.5 → cconnect-2.2.6}/cconnect.egg-info/top_level.txt +0 -0
  16. {cconnect-2.2.5 → cconnect-2.2.6}/core/__init__.py +0 -0
  17. {cconnect-2.2.5 → cconnect-2.2.6}/core/access.py +0 -0
  18. {cconnect-2.2.5 → cconnect-2.2.6}/core/app.py +0 -0
  19. {cconnect-2.2.5 → cconnect-2.2.6}/core/capture/manifest.json +0 -0
  20. {cconnect-2.2.5 → cconnect-2.2.6}/core/capture/offscreen.html +0 -0
  21. {cconnect-2.2.5 → cconnect-2.2.6}/core/capture/offscreen.js +0 -0
  22. {cconnect-2.2.5 → cconnect-2.2.6}/core/capture/worker.js +0 -0
  23. {cconnect-2.2.5 → cconnect-2.2.6}/core/cli_manager.py +0 -0
  24. {cconnect-2.2.5 → cconnect-2.2.6}/core/config.py +0 -0
  25. {cconnect-2.2.5 → cconnect-2.2.6}/core/databases/engines.json +0 -0
  26. {cconnect-2.2.5 → cconnect-2.2.6}/core/db.py +0 -0
  27. {cconnect-2.2.5 → cconnect-2.2.6}/core/display.py +0 -0
  28. {cconnect-2.2.5 → cconnect-2.2.6}/core/migrations/env.py +0 -0
  29. {cconnect-2.2.5 → cconnect-2.2.6}/core/migrations/script.py.mako +0 -0
  30. {cconnect-2.2.5 → cconnect-2.2.6}/core/migrations/versions/20261107_7d5d3c3df2d8_baseline.py +0 -0
  31. {cconnect-2.2.5 → cconnect-2.2.6}/core/migrations/versions/20261107_ba9d242701ac_trash_timestamps.py +0 -0
  32. {cconnect-2.2.5 → cconnect-2.2.6}/core/migrations/versions/20261107_e27b5df5f03a_server_state.py +0 -0
  33. {cconnect-2.2.5 → cconnect-2.2.6}/core/migrations/versions/20261108_4c1f0a9e2b7d_mcp_catalogs.py +0 -0
  34. {cconnect-2.2.5 → cconnect-2.2.6}/core/models.py +0 -0
  35. {cconnect-2.2.5 → cconnect-2.2.6}/core/packages.py +0 -0
  36. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/builtin.json +0 -0
  37. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect/accents.json +0 -0
  38. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect/pack.json +0 -0
  39. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect/terminal/black.json +0 -0
  40. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect/themes/cconnect-dark.json +0 -0
  41. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect/themes/cconnect-light.json +0 -0
  42. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/backgrounds/cyberpunk.json +0 -0
  43. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/backgrounds/darkwave.json +0 -0
  44. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/backgrounds/doodles.json +0 -0
  45. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/pack.json +0 -0
  46. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/campbell.json +0 -0
  47. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/catppuccin-latte.json +0 -0
  48. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/catppuccin-mocha.json +0 -0
  49. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/claude-dark.json +0 -0
  50. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/claude-light.json +0 -0
  51. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/dark-plus.json +0 -0
  52. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/dracula.json +0 -0
  53. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/github-dark-hc.json +0 -0
  54. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/github-dark.json +0 -0
  55. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/github-dimmed.json +0 -0
  56. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/github-light-hc.json +0 -0
  57. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/github-light.json +0 -0
  58. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/gruvbox-dark.json +0 -0
  59. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/light-plus.json +0 -0
  60. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/monokai.json +0 -0
  61. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/nord.json +0 -0
  62. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/one-dark.json +0 -0
  63. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/one-half-dark.json +0 -0
  64. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/one-half-light.json +0 -0
  65. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/rose-pine.json +0 -0
  66. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/solarized-dark.json +0 -0
  67. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/solarized-light.json +0 -0
  68. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/tango-dark.json +0 -0
  69. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/tango-light.json +0 -0
  70. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/tokyo-night.json +0 -0
  71. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/ubuntu.json +0 -0
  72. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/vscode-dark-modern.json +0 -0
  73. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/vscode-hc-dark.json +0 -0
  74. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/vscode-hc-light.json +0 -0
  75. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/vscode-light-modern.json +0 -0
  76. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/ayu-dark.json +0 -0
  77. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/ayu-light.json +0 -0
  78. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/ayu-mirage.json +0 -0
  79. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/catppuccin-latte.json +0 -0
  80. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/catppuccin-mocha.json +0 -0
  81. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/claude-dark.json +0 -0
  82. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/claude-light.json +0 -0
  83. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/dracula.json +0 -0
  84. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/everforest-dark.json +0 -0
  85. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/everforest-light.json +0 -0
  86. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/github-dark-hc.json +0 -0
  87. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/github-dark.json +0 -0
  88. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/github-dimmed.json +0 -0
  89. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/github-light-hc.json +0 -0
  90. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/github-light.json +0 -0
  91. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/gruvbox-dark.json +0 -0
  92. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/kanagawa.json +0 -0
  93. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/monokai.json +0 -0
  94. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/nord.json +0 -0
  95. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/one-dark.json +0 -0
  96. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/rose-pine.json +0 -0
  97. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/solarized-dark.json +0 -0
  98. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/solarized-light.json +0 -0
  99. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/tokyo-night.json +0 -0
  100. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/ubuntu-dark.json +0 -0
  101. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/ubuntu-light.json +0 -0
  102. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/vscode-dark-modern.json +0 -0
  103. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/vscode-dark-plus.json +0 -0
  104. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/vscode-light-modern.json +0 -0
  105. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/vscode-light-plus.json +0 -0
  106. {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/schema.json +0 -0
  107. {cconnect-2.2.5 → cconnect-2.2.6}/core/process_job.py +0 -0
  108. {cconnect-2.2.5 → cconnect-2.2.6}/core/process_tree.py +0 -0
  109. {cconnect-2.2.5 → cconnect-2.2.6}/core/prompts/BLOCKS.md +0 -0
  110. {cconnect-2.2.5 → cconnect-2.2.6}/core/prompts/BROWSER.md +0 -0
  111. {cconnect-2.2.5 → cconnect-2.2.6}/core/prompts/CCONNECT.md +0 -0
  112. {cconnect-2.2.5 → cconnect-2.2.6}/core/prompts/COMMIT.md +0 -0
  113. {cconnect-2.2.5 → cconnect-2.2.6}/core/prompts/INSTALL.md +0 -0
  114. {cconnect-2.2.5 → cconnect-2.2.6}/core/prompts/MODS.md +0 -0
  115. {cconnect-2.2.5 → cconnect-2.2.6}/core/prompts/SUGGESTIONS.md +0 -0
  116. {cconnect-2.2.5 → cconnect-2.2.6}/core/prompts/TOOLS.md +0 -0
  117. {cconnect-2.2.5 → cconnect-2.2.6}/core/rate_limit.py +0 -0
  118. {cconnect-2.2.5 → cconnect-2.2.6}/core/responses.py +0 -0
  119. {cconnect-2.2.5 → cconnect-2.2.6}/core/scripts/browse.py +0 -0
  120. {cconnect-2.2.5 → cconnect-2.2.6}/core/scripts/mcp_bridge.py +0 -0
  121. {cconnect-2.2.5 → cconnect-2.2.6}/core/scripts/page_frame.js +0 -0
  122. {cconnect-2.2.5 → cconnect-2.2.6}/core/scripts/page_icon.js +0 -0
  123. {cconnect-2.2.5 → cconnect-2.2.6}/core/sdk.py +0 -0
  124. {cconnect-2.2.5 → cconnect-2.2.6}/core/settings_defs.py +0 -0
  125. {cconnect-2.2.5 → cconnect-2.2.6}/core/slugs.py +0 -0
  126. {cconnect-2.2.5 → cconnect-2.2.6}/core/ws.py +0 -0
  127. {cconnect-2.2.5 → cconnect-2.2.6}/mcps/__init__.py +0 -0
  128. {cconnect-2.2.5 → cconnect-2.2.6}/mcps/browser.py +0 -0
  129. {cconnect-2.2.5 → cconnect-2.2.6}/mcps/check_progress.py +0 -0
  130. {cconnect-2.2.5 → cconnect-2.2.6}/mcps/components.py +0 -0
  131. {cconnect-2.2.5 → cconnect-2.2.6}/mcps/databases.py +0 -0
  132. {cconnect-2.2.5 → cconnect-2.2.6}/mcps/definition.py +0 -0
  133. {cconnect-2.2.5 → cconnect-2.2.6}/mcps/delegate.py +0 -0
  134. {cconnect-2.2.5 → cconnect-2.2.6}/mcps/media.py +0 -0
  135. {cconnect-2.2.5 → cconnect-2.2.6}/mcps/packs.py +0 -0
  136. {cconnect-2.2.5 → cconnect-2.2.6}/mcps/session.py +0 -0
  137. {cconnect-2.2.5 → cconnect-2.2.6}/mcps/shared_files.py +0 -0
  138. {cconnect-2.2.5 → cconnect-2.2.6}/mcps/terminal.py +0 -0
  139. {cconnect-2.2.5 → cconnect-2.2.6}/middleware/__init__.py +0 -0
  140. {cconnect-2.2.5 → cconnect-2.2.6}/middleware/error_handler.py +0 -0
  141. {cconnect-2.2.5 → cconnect-2.2.6}/middleware/public_auth.py +0 -0
  142. {cconnect-2.2.5 → cconnect-2.2.6}/middleware/security.py +0 -0
  143. {cconnect-2.2.5 → cconnect-2.2.6}/pyproject.toml +0 -0
  144. {cconnect-2.2.5 → cconnect-2.2.6}/routers/__init__.py +0 -0
  145. {cconnect-2.2.5 → cconnect-2.2.6}/routers/accounts.py +0 -0
  146. {cconnect-2.2.5 → cconnect-2.2.6}/routers/agents.py +0 -0
  147. {cconnect-2.2.5 → cconnect-2.2.6}/routers/browser.py +0 -0
  148. {cconnect-2.2.5 → cconnect-2.2.6}/routers/capabilities.py +0 -0
  149. {cconnect-2.2.5 → cconnect-2.2.6}/routers/chat.py +0 -0
  150. {cconnect-2.2.5 → cconnect-2.2.6}/routers/claude.py +0 -0
  151. {cconnect-2.2.5 → cconnect-2.2.6}/routers/cli.py +0 -0
  152. {cconnect-2.2.5 → cconnect-2.2.6}/routers/databases.py +0 -0
  153. {cconnect-2.2.5 → cconnect-2.2.6}/routers/git.py +0 -0
  154. {cconnect-2.2.5 → cconnect-2.2.6}/routers/health.py +0 -0
  155. {cconnect-2.2.5 → cconnect-2.2.6}/routers/list.py +0 -0
  156. {cconnect-2.2.5 → cconnect-2.2.6}/routers/network.py +0 -0
  157. {cconnect-2.2.5 → cconnect-2.2.6}/routers/packs.py +0 -0
  158. {cconnect-2.2.5 → cconnect-2.2.6}/routers/pages.py +0 -0
  159. {cconnect-2.2.5 → cconnect-2.2.6}/routers/projects.py +0 -0
  160. {cconnect-2.2.5 → cconnect-2.2.6}/routers/sessions.py +0 -0
  161. {cconnect-2.2.5 → cconnect-2.2.6}/routers/settings.py +0 -0
  162. {cconnect-2.2.5 → cconnect-2.2.6}/routers/shared.py +0 -0
  163. {cconnect-2.2.5 → cconnect-2.2.6}/routers/terminal.py +0 -0
  164. {cconnect-2.2.5 → cconnect-2.2.6}/schemas/__init__.py +0 -0
  165. {cconnect-2.2.5 → cconnect-2.2.6}/schemas/accounts.py +0 -0
  166. {cconnect-2.2.5 → cconnect-2.2.6}/schemas/chat.py +0 -0
  167. {cconnect-2.2.5 → cconnect-2.2.6}/schemas/chat_events.py +0 -0
  168. {cconnect-2.2.5 → cconnect-2.2.6}/schemas/contract.py +0 -0
  169. {cconnect-2.2.5 → cconnect-2.2.6}/schemas/network.py +0 -0
  170. {cconnect-2.2.5 → cconnect-2.2.6}/services/__init__.py +0 -0
  171. {cconnect-2.2.5 → cconnect-2.2.6}/services/accounts.py +0 -0
  172. {cconnect-2.2.5 → cconnect-2.2.6}/services/acp_events.py +0 -0
  173. {cconnect-2.2.5 → cconnect-2.2.6}/services/acp_peer.py +0 -0
  174. {cconnect-2.2.5 → cconnect-2.2.6}/services/agent_connections.py +0 -0
  175. {cconnect-2.2.5 → cconnect-2.2.6}/services/agent_mcp.py +0 -0
  176. {cconnect-2.2.5 → cconnect-2.2.6}/services/agent_registry.py +0 -0
  177. {cconnect-2.2.5 → cconnect-2.2.6}/services/agent_sessions.py +0 -0
  178. {cconnect-2.2.5 → cconnect-2.2.6}/services/agents.py +0 -0
  179. {cconnect-2.2.5 → cconnect-2.2.6}/services/api_errors.py +0 -0
  180. {cconnect-2.2.5 → cconnect-2.2.6}/services/asset_icons.py +0 -0
  181. {cconnect-2.2.5 → cconnect-2.2.6}/services/attachments.py +0 -0
  182. {cconnect-2.2.5 → cconnect-2.2.6}/services/blocks.py +0 -0
  183. {cconnect-2.2.5 → cconnect-2.2.6}/services/browser.py +0 -0
  184. {cconnect-2.2.5 → cconnect-2.2.6}/services/categories.py +0 -0
  185. {cconnect-2.2.5 → cconnect-2.2.6}/services/chat_list.py +0 -0
  186. {cconnect-2.2.5 → cconnect-2.2.6}/services/claude_assets.py +0 -0
  187. {cconnect-2.2.5 → cconnect-2.2.6}/services/claude_manage.py +0 -0
  188. {cconnect-2.2.5 → cconnect-2.2.6}/services/claude_runtime.py +0 -0
  189. {cconnect-2.2.5 → cconnect-2.2.6}/services/claude_status.py +0 -0
  190. {cconnect-2.2.5 → cconnect-2.2.6}/services/cli_info.py +0 -0
  191. {cconnect-2.2.5 → cconnect-2.2.6}/services/cli_login.py +0 -0
  192. {cconnect-2.2.5 → cconnect-2.2.6}/services/cli_settings.py +0 -0
  193. {cconnect-2.2.5 → cconnect-2.2.6}/services/control_requests.py +0 -0
  194. {cconnect-2.2.5 → cconnect-2.2.6}/services/database_data.py +0 -0
  195. {cconnect-2.2.5 → cconnect-2.2.6}/services/database_engines.py +0 -0
  196. {cconnect-2.2.5 → cconnect-2.2.6}/services/database_tunnels.py +0 -0
  197. {cconnect-2.2.5 → cconnect-2.2.6}/services/databases.py +0 -0
  198. {cconnect-2.2.5 → cconnect-2.2.6}/services/delegate_runner.py +0 -0
  199. {cconnect-2.2.5 → cconnect-2.2.6}/services/delegate_runs.py +0 -0
  200. {cconnect-2.2.5 → cconnect-2.2.6}/services/delegates.py +0 -0
  201. {cconnect-2.2.5 → cconnect-2.2.6}/services/diffs.py +0 -0
  202. {cconnect-2.2.5 → cconnect-2.2.6}/services/directories.py +0 -0
  203. {cconnect-2.2.5 → cconnect-2.2.6}/services/directory_watch.py +0 -0
  204. {cconnect-2.2.5 → cconnect-2.2.6}/services/elicitation.py +0 -0
  205. {cconnect-2.2.5 → cconnect-2.2.6}/services/event_rows.py +0 -0
  206. {cconnect-2.2.5 → cconnect-2.2.6}/services/file_info.py +0 -0
  207. {cconnect-2.2.5 → cconnect-2.2.6}/services/files.py +0 -0
  208. {cconnect-2.2.5 → cconnect-2.2.6}/services/git.py +0 -0
  209. {cconnect-2.2.5 → cconnect-2.2.6}/services/git_ops.py +0 -0
  210. {cconnect-2.2.5 → cconnect-2.2.6}/services/hook_events.py +0 -0
  211. {cconnect-2.2.5 → cconnect-2.2.6}/services/live_sessions.py +0 -0
  212. {cconnect-2.2.5 → cconnect-2.2.6}/services/mcp_lazy.py +0 -0
  213. {cconnect-2.2.5 → cconnect-2.2.6}/services/memory_pressure.py +0 -0
  214. {cconnect-2.2.5 → cconnect-2.2.6}/services/mods.py +0 -0
  215. {cconnect-2.2.5 → cconnect-2.2.6}/services/network.py +0 -0
  216. {cconnect-2.2.5 → cconnect-2.2.6}/services/pack_format.py +0 -0
  217. {cconnect-2.2.5 → cconnect-2.2.6}/services/packs.py +0 -0
  218. {cconnect-2.2.5 → cconnect-2.2.6}/services/pages.py +0 -0
  219. {cconnect-2.2.5 → cconnect-2.2.6}/services/persistent_sessions.py +0 -0
  220. {cconnect-2.2.5 → cconnect-2.2.6}/services/processes.py +0 -0
  221. {cconnect-2.2.5 → cconnect-2.2.6}/services/project_files.py +0 -0
  222. {cconnect-2.2.5 → cconnect-2.2.6}/services/project_watch.py +0 -0
  223. {cconnect-2.2.5 → cconnect-2.2.6}/services/projects.py +0 -0
  224. {cconnect-2.2.5 → cconnect-2.2.6}/services/prompt_cache.py +0 -0
  225. {cconnect-2.2.5 → cconnect-2.2.6}/services/providers.py +0 -0
  226. {cconnect-2.2.5 → cconnect-2.2.6}/services/questions.py +0 -0
  227. {cconnect-2.2.5 → cconnect-2.2.6}/services/rewind.py +0 -0
  228. {cconnect-2.2.5 → cconnect-2.2.6}/services/sessions.py +0 -0
  229. {cconnect-2.2.5 → cconnect-2.2.6}/services/settings_store.py +0 -0
  230. {cconnect-2.2.5 → cconnect-2.2.6}/services/shared.py +0 -0
  231. {cconnect-2.2.5 → cconnect-2.2.6}/services/shared_links.py +0 -0
  232. {cconnect-2.2.5 → cconnect-2.2.6}/services/shared_watch.py +0 -0
  233. {cconnect-2.2.5 → cconnect-2.2.6}/services/speedtest.py +0 -0
  234. {cconnect-2.2.5 → cconnect-2.2.6}/services/system_monitor.py +0 -0
  235. {cconnect-2.2.5 → cconnect-2.2.6}/services/system_watch.py +0 -0
  236. {cconnect-2.2.5 → cconnect-2.2.6}/services/terminal.py +0 -0
  237. {cconnect-2.2.5 → cconnect-2.2.6}/services/todos.py +0 -0
  238. {cconnect-2.2.5 → cconnect-2.2.6}/services/tool_calls.py +0 -0
  239. {cconnect-2.2.5 → cconnect-2.2.6}/services/tool_props.py +0 -0
  240. {cconnect-2.2.5 → cconnect-2.2.6}/services/trash.py +0 -0
  241. {cconnect-2.2.5 → cconnect-2.2.6}/services/usage.py +0 -0
  242. {cconnect-2.2.5 → cconnect-2.2.6}/services/visibility.py +0 -0
  243. {cconnect-2.2.5 → cconnect-2.2.6}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cconnect
3
- Version: 2.2.5
3
+ Version: 2.2.6
4
4
  Summary: Remote bridge between the CConnect client and Claude Code
5
5
  Author: jahirtrap
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cconnect
3
- Version: 2.2.5
3
+ Version: 2.2.6
4
4
  Summary: Remote bridge between the CConnect client and Claude Code
5
5
  Author: jahirtrap
6
6
  License-Expression: MIT
@@ -13,6 +13,7 @@ core/cli.py
13
13
  core/cli_manager.py
14
14
  core/config.py
15
15
  core/db.py
16
+ core/detached.py
16
17
  core/display.py
17
18
  core/models.py
18
19
  core/packages.py
@@ -23,6 +24,7 @@ core/rate_limit.py
23
24
  core/release.py
24
25
  core/responses.py
25
26
  core/sdk.py
27
+ core/self_update.py
26
28
  core/settings_defs.py
27
29
  core/slugs.py
28
30
  core/ws.py
@@ -24,7 +24,7 @@ import psutil
24
24
  import qrcode
25
25
  from dotenv import set_key
26
26
 
27
- from core import cli_manager, paths, process_tree, release, sdk
27
+ from core import cli_manager, detached, paths, process_tree, release, sdk, self_update
28
28
  from core.config import PORT, RESTART_EXIT_CODE, SUPERVISOR_VAR
29
29
  from services import agent_registry, repo, system_monitor
30
30
 
@@ -37,7 +37,6 @@ _PROVIDERS = ("tailscale", "tailnet", "caddy")
37
37
  _PRIVATE_PROVIDERS = ("tailnet",)
38
38
  _STOP_TIMEOUT = 10
39
39
  _POLL_SECONDS = 0.5
40
- _MODULE = "core.cli"
41
40
  _APP = "core.app:app"
42
41
  _COMMANDS = ("run", "expose", "stop", "restart", "status", "logs", "doctor", "update", "key")
43
42
  _TOP_FLAGS = ("-h", "--help", "-v", "--version")
@@ -297,29 +296,6 @@ def _expose(
297
296
  _print_qr(json.dumps(payload, separators=(",", ":")))
298
297
 
299
298
 
300
- def _running_pid() -> int | None:
301
- """PID of a live detached launcher, or None when the recorded one is gone."""
302
- try:
303
- pid = int(paths.DETACHED_PID_FILE.read_text(encoding="utf-8").strip())
304
- except (OSError, ValueError):
305
- return None
306
- try:
307
- process = psutil.Process(pid)
308
- if _MODULE in " ".join(process.cmdline()):
309
- return pid
310
- except (psutil.Error, OSError):
311
- pass
312
- paths.DETACHED_PID_FILE.unlink(missing_ok=True)
313
- return None
314
-
315
-
316
- def _detached_provider() -> str:
317
- """The provider the detached run exposed with."""
318
- with suppress(OSError):
319
- return paths.DETACHED_PROVIDER_FILE.read_text(encoding="utf-8").strip()
320
- return ""
321
-
322
-
323
299
  def _spawn_detached() -> int:
324
300
  handle = paths.DETACHED_LOG_FILE.open("ab")
325
301
  kwargs: dict = {
@@ -334,7 +310,7 @@ def _spawn_detached() -> int:
334
310
  kwargs["creationflags"] = subprocess.CREATE_NO_WINDOW | subprocess.CREATE_NEW_PROCESS_GROUP
335
311
  else:
336
312
  kwargs["start_new_session"] = True
337
- process = subprocess.Popen([sys.executable, "-m", _MODULE], **kwargs)
313
+ process = subprocess.Popen([sys.executable, "-m", detached.CLI_MODULE], **kwargs)
338
314
  paths.DETACHED_PID_FILE.write_text(str(process.pid), encoding="utf-8")
339
315
  return process.pid
340
316
 
@@ -344,10 +320,10 @@ def _terminate_tree(pid: int) -> None:
344
320
 
345
321
 
346
322
  def _close_exposure() -> None:
347
- detached = _detached_provider()
348
- if detached == "tailscale":
323
+ exposed = detached.provider()
324
+ if exposed == "tailscale":
349
325
  _stop_tailscale_funnel()
350
- elif detached == "tailnet":
326
+ elif exposed == "tailnet":
351
327
  _stop_tailscale_serve()
352
328
  paths.DETACHED_PROVIDER_FILE.unlink(missing_ok=True)
353
329
 
@@ -355,7 +331,7 @@ def _close_exposure() -> None:
355
331
  def _serving(port: int) -> bool:
356
332
  """True once the recorded server itself listens on the port, not whatever else took it."""
357
333
  with suppress(psutil.Error, KeyError, ValueError):
358
- sockets = psutil.Process(int(_runtime()["PID"])).net_connections(kind="tcp")
334
+ sockets = psutil.Process(int(detached.runtime()["PID"])).net_connections(kind="tcp")
359
335
  return any(sock.status == psutil.CONN_LISTEN and sock.laddr.port == port for sock in sockets)
360
336
  return False
361
337
 
@@ -379,7 +355,7 @@ def _supervisor(live: dict[str, str]) -> psutil.Process | None:
379
355
 
380
356
 
381
357
  def _hand_over() -> None:
382
- live = _runtime()
358
+ live = detached.runtime()
383
359
  if not live:
384
360
  return
385
361
  supervisor = _supervisor(live)
@@ -394,19 +370,19 @@ def _hand_over() -> None:
394
370
 
395
371
 
396
372
  def _refuse_second() -> None:
397
- live = _runtime()
373
+ live = detached.runtime()
398
374
  if not live:
399
375
  return
400
376
  how = (
401
377
  f"It runs in the background: stop it with {_invocation()} stop."
402
- if _running_pid() is not None
378
+ if detached.running_pid() is not None
403
379
  else "Stop it in its terminal, or move it to the background with --detach."
404
380
  )
405
381
  _abort(f"a backend is already running (pid {live['PID']} on port {live.get('PORT', '?')}). {how}")
406
382
 
407
383
 
408
384
  def _stop_detached() -> None:
409
- pid = _running_pid()
385
+ pid = detached.running_pid()
410
386
  if pid is None:
411
387
  print("No detached backend is running.")
412
388
  else:
@@ -440,7 +416,7 @@ def _flag_parser() -> argparse.ArgumentParser:
440
416
  help="Print the key that unlocks the terminal and ignored files, generating it the first time.")
441
417
  parser.add_argument("--rotate", action="store_true",
442
418
  help="With --security-key, replace the existing key instead of printing it.")
443
- parser.set_defaults(command="", source="", force=False, json=False, follow=False)
419
+ parser.set_defaults(command="", source="", force=False, json=False, follow=False, plan=False)
444
420
  return parser
445
421
 
446
422
 
@@ -449,7 +425,7 @@ def _command_parser() -> argparse.ArgumentParser:
449
425
  parser.add_argument("-v", "--version", action="version", version=f"cconnect {release.VERSION}")
450
426
  parser.set_defaults(
451
427
  expose="", public_host="", detach=False, port=None,
452
- security_key=False, rotate=False, source="", force=False, json=False, follow=False,
428
+ security_key=False, rotate=False, source="", force=False, json=False, follow=False, plan=False,
453
429
  )
454
430
  commands = parser.add_subparsers(dest="command")
455
431
 
@@ -479,7 +455,9 @@ def _command_parser() -> argparse.ArgumentParser:
479
455
 
480
456
  commands.add_parser("doctor", help="Check what the backend needs on this machine.")
481
457
 
482
- commands.add_parser("update", help="Upgrade this install to the latest release.")
458
+ update = commands.add_parser("update", help="Upgrade this install to the latest release.")
459
+ update.add_argument("--plan", action="store_true",
460
+ help="Print the upgrade command as JSON instead of running it, for the desktop app.")
483
461
 
484
462
  key = commands.add_parser("key", help="Print the key that unlocks the terminal and ignored files.")
485
463
  key.add_argument("--rotate", action="store_true",
@@ -499,23 +477,9 @@ def _parse(argv: list[str]) -> argparse.Namespace:
499
477
  return args
500
478
 
501
479
 
502
- def _runtime() -> dict[str, str]:
503
- """What the running server recorded, empty when the pid it wrote is gone."""
504
- try:
505
- recorded = dict(
506
- entry.split("=", 1)
507
- for entry in paths.RUNTIME_FILE.read_text(encoding="utf-8").split()
508
- if "=" in entry
509
- )
510
- except OSError:
511
- return {}
512
- pid = int(recorded.get("PID") or 0)
513
- return recorded if pid and psutil.pid_exists(pid) else {}
514
-
515
-
516
480
  def _print_status(as_json: bool) -> None:
517
- live = _runtime()
518
- detached = _running_pid()
481
+ live = detached.runtime()
482
+ launcher = detached.running_pid()
519
483
  if as_json:
520
484
  print(json.dumps({
521
485
  "version": release.VERSION,
@@ -524,7 +488,7 @@ def _print_status(as_json: bool) -> None:
524
488
  "port": int(live.get("PORT") or PORT),
525
489
  "pid": int(live.get("PID") or 0) or None,
526
490
  "running": bool(live),
527
- "detached": detached,
491
+ "detached": launcher,
528
492
  }))
529
493
  return
530
494
  rows = [
@@ -532,8 +496,8 @@ def _print_status(as_json: bool) -> None:
532
496
  ("Data", str(paths.DATA_DIR)),
533
497
  ("Server", f"pid {live['PID']} on port {live.get('PORT', '?')}" if live else "not running"),
534
498
  ]
535
- if detached is not None:
536
- rows.append(("Detached", f"pid {detached}"))
499
+ if launcher is not None:
500
+ rows.append(("Detached", f"pid {launcher}"))
537
501
  _print_rows(rows)
538
502
 
539
503
 
@@ -553,7 +517,7 @@ def _print_logs(follow: bool) -> None:
553
517
 
554
518
 
555
519
  def _restart() -> None:
556
- live = _runtime()
520
+ live = detached.runtime()
557
521
  if not live:
558
522
  _abort("No backend is running.")
559
523
  paths.RESTART_FLAG.touch()
@@ -581,7 +545,7 @@ def _port_taken(port: int) -> bool:
581
545
 
582
546
 
583
547
  def _port_state(port: int) -> str:
584
- live = _runtime()
548
+ live = detached.runtime()
585
549
  if live and int(live.get("PORT") or 0) == port:
586
550
  return f"{port}, this backend (pid {live['PID']})"
587
551
  return f"{port}, taken by another program" if _port_taken(port) else f"{port}, free"
@@ -604,16 +568,45 @@ def _doctor(port: int) -> None:
604
568
  ])
605
569
 
606
570
 
607
- def _update() -> None:
571
+ def _print_upgrade(command: list[str]) -> None:
572
+ print(f"\n {' '.join(command)}\n")
573
+
574
+
575
+ def _update_after_exit(command: list[str]) -> None:
576
+ live = detached.runtime()
577
+ if live and detached.running_pid() is None:
578
+ _abort(
579
+ f"a backend is running (pid {live['PID']}) from the files the update replaces. "
580
+ "Stop it first, or start it with --detach and the update restarts it."
581
+ )
582
+ _print_upgrade(command)
583
+ restart = self_update.restart_command()
584
+ self_update.hand_over(command, restart)
585
+ if restart:
586
+ _stop_detached()
587
+ print(f"\n The upgrade runs once this command exits. Log: {paths.UPDATE_LOG_FILE}")
588
+ if restart:
589
+ print(" The backend starts again when it finishes.")
590
+ print()
591
+
592
+
593
+ def _update(plan: bool) -> None:
608
594
  if not paths.INSTALLED:
609
595
  _abort("this is a git checkout, not an installed release: update it with git pull.")
610
- print(f"\n {' '.join(repo.upgrade_command())}\n")
596
+ command = repo.upgrade_command()
597
+ if plan:
598
+ print(json.dumps({"command": command}))
599
+ return
600
+ if self_update.needed():
601
+ _update_after_exit(command)
602
+ return
603
+ _print_upgrade(command)
611
604
  result = repo.upgrade()
612
605
  if result["message"]:
613
606
  print(f"{result['message']}\n")
614
607
  if not result["ok"]:
615
608
  _abort(f"the upgrade failed. Stop the server and try again: {_invocation()} stop")
616
- if result["changed"] and _runtime():
609
+ if result["changed"] and detached.runtime():
617
610
  print(" The server that is running keeps the old version until it restarts.\n")
618
611
 
619
612
 
@@ -645,7 +638,7 @@ def main():
645
638
  return
646
639
 
647
640
  if args.command == "update":
648
- _update()
641
+ _update(args.plan)
649
642
  return
650
643
 
651
644
  if args.command == "stop":
@@ -653,7 +646,7 @@ def main():
653
646
  return
654
647
 
655
648
  if args.detach:
656
- running = _running_pid()
649
+ running = detached.running_pid()
657
650
  if running is not None:
658
651
  _abort(f"a detached backend is already running (pid {running}). Use --stop first.")
659
652
  _hand_over()
@@ -0,0 +1,46 @@
1
+ """What the running server and a detached launcher left on disk, read by the command and by the update."""
2
+
3
+ from contextlib import suppress
4
+
5
+ import psutil
6
+
7
+ from core import paths
8
+
9
+ CLI_MODULE = "core.cli"
10
+
11
+
12
+ def runtime() -> dict[str, str]:
13
+ """What the running server recorded, empty when the pid it wrote is gone."""
14
+ try:
15
+ recorded = dict(
16
+ entry.split("=", 1)
17
+ for entry in paths.RUNTIME_FILE.read_text(encoding="utf-8").split()
18
+ if "=" in entry
19
+ )
20
+ except OSError:
21
+ return {}
22
+ pid = int(recorded.get("PID") or 0)
23
+ return recorded if pid and psutil.pid_exists(pid) else {}
24
+
25
+
26
+ def running_pid() -> int | None:
27
+ """PID of a live detached launcher, or None when the recorded one is gone."""
28
+ try:
29
+ pid = int(paths.DETACHED_PID_FILE.read_text(encoding="utf-8").strip())
30
+ except (OSError, ValueError):
31
+ return None
32
+ try:
33
+ process = psutil.Process(pid)
34
+ if CLI_MODULE in " ".join(process.cmdline()):
35
+ return pid
36
+ except (psutil.Error, OSError):
37
+ pass
38
+ paths.DETACHED_PID_FILE.unlink(missing_ok=True)
39
+ return None
40
+
41
+
42
+ def provider() -> str:
43
+ """The provider the detached run exposed with."""
44
+ with suppress(OSError):
45
+ return paths.DETACHED_PROVIDER_FILE.read_text(encoding="utf-8").strip()
46
+ return ""
@@ -57,6 +57,7 @@ BROWSER_PROFILE_DIR = Path(os.environ.get("BROWSER_PROFILE_DIR") or CACHE_DIR /
57
57
  SERVER_LOG_FILE = LOGS_DIR / "server.jsonl"
58
58
  PREVIOUS_SERVER_LOG_FILE = LOGS_DIR / "server.prev.jsonl"
59
59
  DETACHED_LOG_FILE = LOGS_DIR / "detached.log"
60
+ UPDATE_LOG_FILE = LOGS_DIR / "update.log"
60
61
 
61
62
 
62
63
  def is_link(path: Path) -> bool:
@@ -1,5 +1,5 @@
1
1
  """The version contract, read by the API and by the packaging metadata."""
2
2
 
3
- VERSION = "2.2.5"
3
+ VERSION = "2.2.6"
4
4
  SUPPORTED_APP = ">=2.2.0"
5
5
  SUPPORTED_CLI = ">=2.1.323"
@@ -0,0 +1,67 @@
1
+ """Updating an installed release on Windows, where nothing may still run from the environment the update replaces."""
2
+
3
+ import shutil
4
+ import subprocess
5
+ import sys
6
+ from pathlib import Path
7
+
8
+ from core import detached, paths
9
+ from core.config import PORT
10
+
11
+ _SHELL = ["powershell", "-NoProfile", "-NonInteractive", "-Command"]
12
+ _HOLDERS = (
13
+ "function Holders { Get-Process | Where-Object { $path = $_.Path; "
14
+ "$path -and ($held | Where-Object { $path.StartsWith($_, [StringComparison]::OrdinalIgnoreCase) }) } }"
15
+ )
16
+ _WAIT = "while ($running = Holders) { $running | Wait-Process -ErrorAction SilentlyContinue }"
17
+
18
+
19
+ def needed() -> bool:
20
+ return sys.platform == "win32" and paths.INSTALLED
21
+
22
+
23
+ def restart_command() -> list[str] | None:
24
+ """How the detached backend starts again once updated, None when none runs."""
25
+ if detached.running_pid() is None:
26
+ return None
27
+ exposed = detached.provider()
28
+ port = detached.runtime().get("PORT")
29
+ return [
30
+ sys.executable, "-m", detached.CLI_MODULE,
31
+ *(["expose", exposed] if exposed else ["run"]),
32
+ *(["--port", port] if port and int(port) != PORT else []),
33
+ "--detach",
34
+ ]
35
+
36
+
37
+ def _quoted(value: str) -> str:
38
+ return "'" + value.replace("'", "''") + "'"
39
+
40
+
41
+ def _call(command: list[str]) -> str:
42
+ return "& " + " ".join(_quoted(part) for part in command)
43
+
44
+
45
+ def hand_over(upgrade: list[str], restart: list[str] | None) -> None:
46
+ """Runs the upgrade from a detached shell once no process of this install is left, then the restart."""
47
+ held = [str(Path(sys.prefix)) + "\\"]
48
+ launcher = shutil.which("cconnect")
49
+ if launcher:
50
+ held.append(launcher)
51
+ steps = [f"$held = @({', '.join(_quoted(path) for path in held)})", _HOLDERS, _WAIT, _call(upgrade)]
52
+ if restart:
53
+ steps.append(f"if ($LASTEXITCODE -eq 0) {{ {_call(restart)} }}")
54
+ command = [*_SHELL, "\n".join(steps)]
55
+ flags = subprocess.CREATE_NO_WINDOW | subprocess.CREATE_NEW_PROCESS_GROUP
56
+ with paths.UPDATE_LOG_FILE.open("wb") as log:
57
+ options: dict = {
58
+ "stdin": subprocess.DEVNULL,
59
+ "stdout": log,
60
+ "stderr": subprocess.STDOUT,
61
+ "cwd": str(paths.DATA_DIR),
62
+ "close_fds": True,
63
+ }
64
+ try:
65
+ subprocess.Popen(command, creationflags=flags | subprocess.CREATE_BREAKAWAY_FROM_JOB, **options)
66
+ except OSError:
67
+ subprocess.Popen(command, creationflags=flags, **options)
@@ -70,7 +70,10 @@ async def check_update():
70
70
 
71
71
  @router.post("/system/update")
72
72
  async def update_server():
73
- return api_response(data=await asyncio.to_thread(repo.pull))
73
+ result = await asyncio.to_thread(repo.pull)
74
+ if result.get("handover"):
75
+ _exit_after(0)
76
+ return api_response(data=result)
74
77
 
75
78
 
76
79
  @router.get("/system/dirs")
@@ -8,7 +8,7 @@ import httpx
8
8
  from packaging.version import InvalidVersion, Version
9
9
  from sqlalchemy.exc import OperationalError
10
10
 
11
- from core import packages, paths, release
11
+ from core import packages, paths, release, self_update
12
12
  from services import database_engines, databases, git
13
13
 
14
14
  _TIMEOUT = 120
@@ -50,8 +50,25 @@ def _on_disk() -> str:
50
50
  return release.VERSION
51
51
 
52
52
 
53
+ def _upgrade_after_stop() -> dict:
54
+ """On Windows the package changes only once this server has stopped, so only a detached one can update itself."""
55
+ restart = self_update.restart_command()
56
+ if restart is None:
57
+ return {
58
+ **_package_status(),
59
+ "ok": False,
60
+ "message": "This server can only update itself when it runs with --detach. "
61
+ "Stop it and run cconnect update.",
62
+ "changed": False,
63
+ }
64
+ self_update.hand_over(upgrade_command(), restart)
65
+ return {**_package_status(), "ok": True, "message": "", "changed": False, "handover": True}
66
+
67
+
53
68
  def upgrade() -> dict:
54
69
  """Replaces the installed package with the newest release."""
70
+ if self_update.needed():
71
+ return _upgrade_after_stop()
55
72
  try:
56
73
  result = packages.run(upgrade_command(), _TIMEOUT)
57
74
  except (OSError, subprocess.SubprocessError) as exc:
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes