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.
- {cconnect-2.2.5 → cconnect-2.2.6}/PKG-INFO +1 -1
- {cconnect-2.2.5 → cconnect-2.2.6}/cconnect.egg-info/PKG-INFO +1 -1
- {cconnect-2.2.5 → cconnect-2.2.6}/cconnect.egg-info/SOURCES.txt +2 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/cli.py +56 -63
- cconnect-2.2.6/core/detached.py +46 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/paths.py +1 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/release.py +1 -1
- cconnect-2.2.6/core/self_update.py +67 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/routers/system.py +4 -1
- {cconnect-2.2.5 → cconnect-2.2.6}/services/repo.py +18 -1
- {cconnect-2.2.5 → cconnect-2.2.6}/README.md +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/cconnect.egg-info/dependency_links.txt +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/cconnect.egg-info/entry_points.txt +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/cconnect.egg-info/requires.txt +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/cconnect.egg-info/top_level.txt +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/__init__.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/access.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/app.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/capture/manifest.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/capture/offscreen.html +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/capture/offscreen.js +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/capture/worker.js +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/cli_manager.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/config.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/databases/engines.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/db.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/display.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/migrations/env.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/migrations/script.py.mako +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/migrations/versions/20261107_7d5d3c3df2d8_baseline.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/migrations/versions/20261107_ba9d242701ac_trash_timestamps.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/migrations/versions/20261107_e27b5df5f03a_server_state.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/migrations/versions/20261108_4c1f0a9e2b7d_mcp_catalogs.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/models.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packages.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/builtin.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect/accents.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect/pack.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect/terminal/black.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect/themes/cconnect-dark.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect/themes/cconnect-light.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/backgrounds/cyberpunk.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/backgrounds/darkwave.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/backgrounds/doodles.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/pack.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/campbell.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/catppuccin-latte.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/catppuccin-mocha.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/claude-dark.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/claude-light.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/dark-plus.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/dracula.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/github-dark-hc.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/github-dark.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/github-dimmed.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/github-light-hc.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/github-light.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/gruvbox-dark.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/light-plus.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/monokai.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/nord.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/one-dark.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/one-half-dark.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/one-half-light.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/rose-pine.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/solarized-dark.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/solarized-light.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/tango-dark.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/tango-light.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/tokyo-night.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/ubuntu.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/vscode-dark-modern.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/vscode-hc-dark.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/vscode-hc-light.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/vscode-light-modern.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/ayu-dark.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/ayu-light.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/ayu-mirage.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/catppuccin-latte.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/catppuccin-mocha.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/claude-dark.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/claude-light.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/dracula.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/everforest-dark.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/everforest-light.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/github-dark-hc.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/github-dark.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/github-dimmed.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/github-light-hc.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/github-light.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/gruvbox-dark.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/kanagawa.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/monokai.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/nord.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/one-dark.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/rose-pine.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/solarized-dark.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/solarized-light.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/tokyo-night.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/ubuntu-dark.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/ubuntu-light.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/vscode-dark-modern.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/vscode-dark-plus.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/vscode-light-modern.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/themes/vscode-light-plus.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/packs/schema.json +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/process_job.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/process_tree.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/prompts/BLOCKS.md +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/prompts/BROWSER.md +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/prompts/CCONNECT.md +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/prompts/COMMIT.md +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/prompts/INSTALL.md +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/prompts/MODS.md +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/prompts/SUGGESTIONS.md +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/prompts/TOOLS.md +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/rate_limit.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/responses.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/scripts/browse.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/scripts/mcp_bridge.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/scripts/page_frame.js +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/scripts/page_icon.js +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/sdk.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/settings_defs.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/slugs.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/core/ws.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/mcps/__init__.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/mcps/browser.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/mcps/check_progress.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/mcps/components.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/mcps/databases.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/mcps/definition.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/mcps/delegate.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/mcps/media.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/mcps/packs.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/mcps/session.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/mcps/shared_files.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/mcps/terminal.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/middleware/__init__.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/middleware/error_handler.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/middleware/public_auth.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/middleware/security.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/pyproject.toml +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/routers/__init__.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/routers/accounts.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/routers/agents.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/routers/browser.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/routers/capabilities.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/routers/chat.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/routers/claude.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/routers/cli.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/routers/databases.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/routers/git.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/routers/health.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/routers/list.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/routers/network.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/routers/packs.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/routers/pages.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/routers/projects.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/routers/sessions.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/routers/settings.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/routers/shared.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/routers/terminal.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/schemas/__init__.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/schemas/accounts.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/schemas/chat.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/schemas/chat_events.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/schemas/contract.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/schemas/network.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/__init__.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/accounts.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/acp_events.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/acp_peer.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/agent_connections.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/agent_mcp.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/agent_registry.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/agent_sessions.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/agents.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/api_errors.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/asset_icons.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/attachments.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/blocks.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/browser.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/categories.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/chat_list.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/claude_assets.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/claude_manage.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/claude_runtime.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/claude_status.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/cli_info.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/cli_login.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/cli_settings.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/control_requests.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/database_data.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/database_engines.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/database_tunnels.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/databases.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/delegate_runner.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/delegate_runs.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/delegates.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/diffs.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/directories.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/directory_watch.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/elicitation.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/event_rows.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/file_info.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/files.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/git.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/git_ops.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/hook_events.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/live_sessions.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/mcp_lazy.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/memory_pressure.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/mods.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/network.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/pack_format.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/packs.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/pages.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/persistent_sessions.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/processes.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/project_files.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/project_watch.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/projects.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/prompt_cache.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/providers.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/questions.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/rewind.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/sessions.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/settings_store.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/shared.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/shared_links.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/shared_watch.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/speedtest.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/system_monitor.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/system_watch.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/terminal.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/todos.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/tool_calls.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/tool_props.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/trash.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/usage.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/services/visibility.py +0 -0
- {cconnect-2.2.5 → cconnect-2.2.6}/setup.cfg +0 -0
|
@@ -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",
|
|
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
|
-
|
|
348
|
-
if
|
|
323
|
+
exposed = detached.provider()
|
|
324
|
+
if exposed == "tailscale":
|
|
349
325
|
_stop_tailscale_funnel()
|
|
350
|
-
elif
|
|
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(
|
|
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 =
|
|
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 =
|
|
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
|
|
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 =
|
|
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 =
|
|
518
|
-
|
|
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":
|
|
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
|
|
536
|
-
rows.append(("Detached", f"pid {
|
|
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 =
|
|
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 =
|
|
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
|
|
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
|
-
|
|
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
|
|
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 =
|
|
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:
|
|
@@ -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
|
-
|
|
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
|
|
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
|
{cconnect-2.2.5 → cconnect-2.2.6}/core/migrations/versions/20261107_7d5d3c3df2d8_baseline.py
RENAMED
|
File without changes
|
{cconnect-2.2.5 → cconnect-2.2.6}/core/migrations/versions/20261107_ba9d242701ac_trash_timestamps.py
RENAMED
|
File without changes
|
{cconnect-2.2.5 → cconnect-2.2.6}/core/migrations/versions/20261107_e27b5df5f03a_server_state.py
RENAMED
|
File without changes
|
{cconnect-2.2.5 → cconnect-2.2.6}/core/migrations/versions/20261108_4c1f0a9e2b7d_mcp_catalogs.py
RENAMED
|
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
|
|
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
|
|
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
|
|
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
|
{cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/vscode-dark-modern.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cconnect-2.2.5 → cconnect-2.2.6}/core/packs/cconnect-extras/terminal/vscode-light-modern.json
RENAMED
|
File without changes
|
|
File without changes
|