cconnect 2.2.6__tar.gz → 2.2.7__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.6 → cconnect-2.2.7}/PKG-INFO +9 -1
- {cconnect-2.2.6 → cconnect-2.2.7}/README.md +7 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/cconnect.egg-info/PKG-INFO +9 -1
- {cconnect-2.2.6 → cconnect-2.2.7}/cconnect.egg-info/SOURCES.txt +12 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/cconnect.egg-info/requires.txt +1 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/access.py +2 -2
- {cconnect-2.2.6 → cconnect-2.2.7}/core/app.py +3 -1
- {cconnect-2.2.6 → cconnect-2.2.7}/core/cli.py +36 -8
- {cconnect-2.2.6 → cconnect-2.2.7}/core/detached.py +0 -5
- cconnect-2.2.7/core/devices/tools.json +32 -0
- cconnect-2.2.7/core/migrations/versions/20261115_1b175242d337_devices.py +36 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/models.py +34 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/paths.py +7 -0
- cconnect-2.2.7/core/prompts/DEVICES.md +8 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/release.py +1 -1
- {cconnect-2.2.6 → cconnect-2.2.7}/core/self_update.py +0 -4
- cconnect-2.2.7/mcps/devices.py +368 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/pyproject.toml +2 -1
- {cconnect-2.2.6 → cconnect-2.2.7}/routers/browser.py +1 -2
- {cconnect-2.2.6 → cconnect-2.2.7}/routers/claude.py +11 -5
- cconnect-2.2.7/routers/devices.py +274 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/routers/settings.py +3 -7
- cconnect-2.2.7/services/adb.py +248 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/browser.py +2 -2
- {cconnect-2.2.6 → cconnect-2.2.7}/services/claude_assets.py +135 -40
- {cconnect-2.2.6 → cconnect-2.2.7}/services/claude_manage.py +36 -6
- {cconnect-2.2.6 → cconnect-2.2.7}/services/claude_runtime.py +19 -21
- {cconnect-2.2.6 → cconnect-2.2.7}/services/cli_settings.py +9 -3
- {cconnect-2.2.6 → cconnect-2.2.7}/services/database_data.py +5 -15
- {cconnect-2.2.6 → cconnect-2.2.7}/services/databases.py +2 -9
- cconnect-2.2.7/services/device_screen.py +485 -0
- cconnect-2.2.7/services/device_tools.py +148 -0
- cconnect-2.2.7/services/devices.py +626 -0
- cconnect-2.2.7/services/discovery.py +54 -0
- cconnect-2.2.7/services/frames.py +17 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/live_sessions.py +12 -2
- {cconnect-2.2.6 → cconnect-2.2.7}/services/mcp_lazy.py +2 -2
- cconnect-2.2.7/services/plugin_updates.py +59 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/processes.py +51 -16
- {cconnect-2.2.6 → cconnect-2.2.7}/services/project_files.py +7 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/repo.py +0 -2
- {cconnect-2.2.6 → cconnect-2.2.7}/services/sessions.py +19 -5
- {cconnect-2.2.6 → cconnect-2.2.7}/services/settings_store.py +14 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/shared.py +17 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/cconnect.egg-info/dependency_links.txt +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/cconnect.egg-info/entry_points.txt +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/cconnect.egg-info/top_level.txt +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/__init__.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/capture/manifest.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/capture/offscreen.html +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/capture/offscreen.js +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/capture/worker.js +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/cli_manager.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/config.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/databases/engines.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/db.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/display.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/migrations/env.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/migrations/script.py.mako +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/migrations/versions/20261107_7d5d3c3df2d8_baseline.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/migrations/versions/20261107_ba9d242701ac_trash_timestamps.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/migrations/versions/20261107_e27b5df5f03a_server_state.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/migrations/versions/20261108_4c1f0a9e2b7d_mcp_catalogs.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packages.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/builtin.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect/accents.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect/pack.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect/terminal/black.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect/themes/cconnect-dark.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect/themes/cconnect-light.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/backgrounds/cyberpunk.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/backgrounds/darkwave.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/backgrounds/doodles.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/pack.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/terminal/campbell.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/terminal/catppuccin-latte.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/terminal/catppuccin-mocha.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/terminal/claude-dark.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/terminal/claude-light.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/terminal/dark-plus.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/terminal/dracula.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/terminal/github-dark-hc.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/terminal/github-dark.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/terminal/github-dimmed.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/terminal/github-light-hc.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/terminal/github-light.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/terminal/gruvbox-dark.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/terminal/light-plus.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/terminal/monokai.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/terminal/nord.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/terminal/one-dark.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/terminal/one-half-dark.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/terminal/one-half-light.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/terminal/rose-pine.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/terminal/solarized-dark.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/terminal/solarized-light.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/terminal/tango-dark.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/terminal/tango-light.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/terminal/tokyo-night.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/terminal/ubuntu.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/terminal/vscode-dark-modern.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/terminal/vscode-hc-dark.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/terminal/vscode-hc-light.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/terminal/vscode-light-modern.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/themes/ayu-dark.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/themes/ayu-light.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/themes/ayu-mirage.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/themes/catppuccin-latte.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/themes/catppuccin-mocha.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/themes/claude-dark.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/themes/claude-light.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/themes/dracula.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/themes/everforest-dark.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/themes/everforest-light.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/themes/github-dark-hc.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/themes/github-dark.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/themes/github-dimmed.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/themes/github-light-hc.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/themes/github-light.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/themes/gruvbox-dark.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/themes/kanagawa.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/themes/monokai.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/themes/nord.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/themes/one-dark.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/themes/rose-pine.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/themes/solarized-dark.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/themes/solarized-light.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/themes/tokyo-night.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/themes/ubuntu-dark.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/themes/ubuntu-light.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/themes/vscode-dark-modern.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/themes/vscode-dark-plus.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/themes/vscode-light-modern.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/cconnect-extras/themes/vscode-light-plus.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/packs/schema.json +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/process_job.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/process_tree.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/prompts/BLOCKS.md +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/prompts/BROWSER.md +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/prompts/CCONNECT.md +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/prompts/COMMIT.md +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/prompts/INSTALL.md +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/prompts/MODS.md +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/prompts/SUGGESTIONS.md +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/prompts/TOOLS.md +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/rate_limit.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/responses.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/scripts/browse.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/scripts/mcp_bridge.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/scripts/page_frame.js +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/scripts/page_icon.js +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/sdk.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/settings_defs.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/slugs.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/core/ws.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/mcps/__init__.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/mcps/browser.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/mcps/check_progress.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/mcps/components.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/mcps/databases.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/mcps/definition.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/mcps/delegate.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/mcps/media.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/mcps/packs.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/mcps/session.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/mcps/shared_files.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/mcps/terminal.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/middleware/__init__.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/middleware/error_handler.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/middleware/public_auth.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/middleware/security.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/routers/__init__.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/routers/accounts.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/routers/agents.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/routers/capabilities.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/routers/chat.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/routers/cli.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/routers/databases.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/routers/git.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/routers/health.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/routers/list.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/routers/network.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/routers/packs.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/routers/pages.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/routers/projects.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/routers/sessions.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/routers/shared.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/routers/system.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/routers/terminal.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/schemas/__init__.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/schemas/accounts.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/schemas/chat.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/schemas/chat_events.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/schemas/contract.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/schemas/network.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/__init__.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/accounts.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/acp_events.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/acp_peer.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/agent_connections.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/agent_mcp.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/agent_registry.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/agent_sessions.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/agents.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/api_errors.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/asset_icons.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/attachments.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/blocks.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/categories.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/chat_list.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/claude_status.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/cli_info.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/cli_login.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/control_requests.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/database_engines.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/database_tunnels.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/delegate_runner.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/delegate_runs.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/delegates.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/diffs.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/directories.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/directory_watch.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/elicitation.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/event_rows.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/file_info.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/files.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/git.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/git_ops.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/hook_events.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/memory_pressure.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/mods.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/network.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/pack_format.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/packs.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/pages.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/persistent_sessions.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/project_watch.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/projects.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/prompt_cache.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/providers.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/questions.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/rewind.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/shared_links.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/shared_watch.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/speedtest.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/system_monitor.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/system_watch.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/terminal.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/todos.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/tool_calls.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/tool_props.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/trash.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/usage.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/services/visibility.py +0 -0
- {cconnect-2.2.6 → cconnect-2.2.7}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cconnect
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.7
|
|
4
4
|
Summary: Remote bridge between the CConnect client and Claude Code
|
|
5
5
|
Author: jahirtrap
|
|
6
6
|
License-Expression: MIT
|
|
@@ -40,6 +40,7 @@ Requires-Dist: rarfile>=4.2
|
|
|
40
40
|
Requires-Dist: av>=18.1
|
|
41
41
|
Requires-Dist: pypdf>=7.0.1
|
|
42
42
|
Requires-Dist: watchfiles>=1.2.0
|
|
43
|
+
Requires-Dist: zeroconf>=0.154.0
|
|
43
44
|
Requires-Dist: pywinpty>=2.0.13; sys_platform == "win32"
|
|
44
45
|
Requires-Dist: ptyprocess>=0.7.0; sys_platform != "win32"
|
|
45
46
|
Provides-Extra: dev
|
|
@@ -166,6 +167,13 @@ with the tailnet mode or a public one.
|
|
|
166
167
|
open with the security key, and Claude gets them as tools in turns sent with it: it queries,
|
|
167
168
|
changes data, exports, manages connections and drivers, and each query shows in the chat with
|
|
168
169
|
its rows.
|
|
170
|
+
- **Devices.** The Android phones, tablets and emulators the server reaches with adb, listed as
|
|
171
|
+
they appear: plugged in over USB, paired over Wi‑Fi with a QR code or a pairing code and found
|
|
172
|
+
again on their own, or started from the machine's Android SDK. Tapping one mirrors its screen
|
|
173
|
+
live through scrcpy, with touch, keyboard, the navigation keys, rotation, screenshots, APK
|
|
174
|
+
installs and logcat. The server uses the adb it has, or downloads adb and scrcpy's server with
|
|
175
|
+
one tap; nothing else is bundled. Behind the security key, and Claude gets the same devices as
|
|
176
|
+
tools in turns sent with it: list, screenshot, shell, logcat, tap and type, install and manage.
|
|
169
177
|
- **Notes.** A Markdown editor with formatting, search and syntax highlighting.
|
|
170
178
|
|
|
171
179
|
### The PC
|
|
@@ -118,6 +118,13 @@ with the tailnet mode or a public one.
|
|
|
118
118
|
open with the security key, and Claude gets them as tools in turns sent with it: it queries,
|
|
119
119
|
changes data, exports, manages connections and drivers, and each query shows in the chat with
|
|
120
120
|
its rows.
|
|
121
|
+
- **Devices.** The Android phones, tablets and emulators the server reaches with adb, listed as
|
|
122
|
+
they appear: plugged in over USB, paired over Wi‑Fi with a QR code or a pairing code and found
|
|
123
|
+
again on their own, or started from the machine's Android SDK. Tapping one mirrors its screen
|
|
124
|
+
live through scrcpy, with touch, keyboard, the navigation keys, rotation, screenshots, APK
|
|
125
|
+
installs and logcat. The server uses the adb it has, or downloads adb and scrcpy's server with
|
|
126
|
+
one tap; nothing else is bundled. Behind the security key, and Claude gets the same devices as
|
|
127
|
+
tools in turns sent with it: list, screenshot, shell, logcat, tap and type, install and manage.
|
|
121
128
|
- **Notes.** A Markdown editor with formatting, search and syntax highlighting.
|
|
122
129
|
|
|
123
130
|
### The PC
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cconnect
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.7
|
|
4
4
|
Summary: Remote bridge between the CConnect client and Claude Code
|
|
5
5
|
Author: jahirtrap
|
|
6
6
|
License-Expression: MIT
|
|
@@ -40,6 +40,7 @@ Requires-Dist: rarfile>=4.2
|
|
|
40
40
|
Requires-Dist: av>=18.1
|
|
41
41
|
Requires-Dist: pypdf>=7.0.1
|
|
42
42
|
Requires-Dist: watchfiles>=1.2.0
|
|
43
|
+
Requires-Dist: zeroconf>=0.154.0
|
|
43
44
|
Requires-Dist: pywinpty>=2.0.13; sys_platform == "win32"
|
|
44
45
|
Requires-Dist: ptyprocess>=0.7.0; sys_platform != "win32"
|
|
45
46
|
Provides-Extra: dev
|
|
@@ -166,6 +167,13 @@ with the tailnet mode or a public one.
|
|
|
166
167
|
open with the security key, and Claude gets them as tools in turns sent with it: it queries,
|
|
167
168
|
changes data, exports, manages connections and drivers, and each query shows in the chat with
|
|
168
169
|
its rows.
|
|
170
|
+
- **Devices.** The Android phones, tablets and emulators the server reaches with adb, listed as
|
|
171
|
+
they appear: plugged in over USB, paired over Wi‑Fi with a QR code or a pairing code and found
|
|
172
|
+
again on their own, or started from the machine's Android SDK. Tapping one mirrors its screen
|
|
173
|
+
live through scrcpy, with touch, keyboard, the navigation keys, rotation, screenshots, APK
|
|
174
|
+
installs and logcat. The server uses the adb it has, or downloads adb and scrcpy's server with
|
|
175
|
+
one tap; nothing else is bundled. Behind the security key, and Claude gets the same devices as
|
|
176
|
+
tools in turns sent with it: list, screenshot, shell, logcat, tap and type, install and manage.
|
|
169
177
|
- **Notes.** A Markdown editor with formatting, search and syntax highlighting.
|
|
170
178
|
|
|
171
179
|
### The PC
|
|
@@ -33,12 +33,14 @@ core/capture/offscreen.html
|
|
|
33
33
|
core/capture/offscreen.js
|
|
34
34
|
core/capture/worker.js
|
|
35
35
|
core/databases/engines.json
|
|
36
|
+
core/devices/tools.json
|
|
36
37
|
core/migrations/env.py
|
|
37
38
|
core/migrations/script.py.mako
|
|
38
39
|
core/migrations/versions/20261107_7d5d3c3df2d8_baseline.py
|
|
39
40
|
core/migrations/versions/20261107_ba9d242701ac_trash_timestamps.py
|
|
40
41
|
core/migrations/versions/20261107_e27b5df5f03a_server_state.py
|
|
41
42
|
core/migrations/versions/20261108_4c1f0a9e2b7d_mcp_catalogs.py
|
|
43
|
+
core/migrations/versions/20261115_1b175242d337_devices.py
|
|
42
44
|
core/packs/builtin.json
|
|
43
45
|
core/packs/schema.json
|
|
44
46
|
core/packs/cconnect/accents.json
|
|
@@ -114,6 +116,7 @@ core/prompts/BLOCKS.md
|
|
|
114
116
|
core/prompts/BROWSER.md
|
|
115
117
|
core/prompts/CCONNECT.md
|
|
116
118
|
core/prompts/COMMIT.md
|
|
119
|
+
core/prompts/DEVICES.md
|
|
117
120
|
core/prompts/INSTALL.md
|
|
118
121
|
core/prompts/MODS.md
|
|
119
122
|
core/prompts/SUGGESTIONS.md
|
|
@@ -129,6 +132,7 @@ mcps/components.py
|
|
|
129
132
|
mcps/databases.py
|
|
130
133
|
mcps/definition.py
|
|
131
134
|
mcps/delegate.py
|
|
135
|
+
mcps/devices.py
|
|
132
136
|
mcps/media.py
|
|
133
137
|
mcps/packs.py
|
|
134
138
|
mcps/session.py
|
|
@@ -147,6 +151,7 @@ routers/chat.py
|
|
|
147
151
|
routers/claude.py
|
|
148
152
|
routers/cli.py
|
|
149
153
|
routers/databases.py
|
|
154
|
+
routers/devices.py
|
|
150
155
|
routers/git.py
|
|
151
156
|
routers/health.py
|
|
152
157
|
routers/list.py
|
|
@@ -169,6 +174,7 @@ services/__init__.py
|
|
|
169
174
|
services/accounts.py
|
|
170
175
|
services/acp_events.py
|
|
171
176
|
services/acp_peer.py
|
|
177
|
+
services/adb.py
|
|
172
178
|
services/agent_connections.py
|
|
173
179
|
services/agent_mcp.py
|
|
174
180
|
services/agent_registry.py
|
|
@@ -196,13 +202,18 @@ services/databases.py
|
|
|
196
202
|
services/delegate_runner.py
|
|
197
203
|
services/delegate_runs.py
|
|
198
204
|
services/delegates.py
|
|
205
|
+
services/device_screen.py
|
|
206
|
+
services/device_tools.py
|
|
207
|
+
services/devices.py
|
|
199
208
|
services/diffs.py
|
|
200
209
|
services/directories.py
|
|
201
210
|
services/directory_watch.py
|
|
211
|
+
services/discovery.py
|
|
202
212
|
services/elicitation.py
|
|
203
213
|
services/event_rows.py
|
|
204
214
|
services/file_info.py
|
|
205
215
|
services/files.py
|
|
216
|
+
services/frames.py
|
|
206
217
|
services/git.py
|
|
207
218
|
services/git_ops.py
|
|
208
219
|
services/hook_events.py
|
|
@@ -215,6 +226,7 @@ services/pack_format.py
|
|
|
215
226
|
services/packs.py
|
|
216
227
|
services/pages.py
|
|
217
228
|
services/persistent_sessions.py
|
|
229
|
+
services/plugin_updates.py
|
|
218
230
|
services/processes.py
|
|
219
231
|
services/project_files.py
|
|
220
232
|
services/project_watch.py
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"""The security key gating what belongs to the machine itself: shells, ignored files and
|
|
1
|
+
"""The security key gating what belongs to the machine itself: shells, ignored files, database connections and Android devices."""
|
|
2
2
|
|
|
3
3
|
import hmac
|
|
4
4
|
from typing import Optional
|
|
@@ -6,7 +6,7 @@ from typing import Optional
|
|
|
6
6
|
from core.config import PUBLIC_ACCESS_TOKEN, SECURITY_KEY
|
|
7
7
|
|
|
8
8
|
KEY_HEADER = "X-Security-Key"
|
|
9
|
-
KEYED_CAPABILITIES = ("terminal", "databases")
|
|
9
|
+
KEYED_CAPABILITIES = ("terminal", "databases", "devices")
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
def gated() -> bool:
|
|
@@ -57,8 +57,10 @@ async def lifespan(app: FastAPI):
|
|
|
57
57
|
project_watch.hub.stop()
|
|
58
58
|
system_watch.hub.stop()
|
|
59
59
|
network.watchdog.stop()
|
|
60
|
-
from services import databases, live_sessions
|
|
60
|
+
from services import databases, device_screen, devices, live_sessions
|
|
61
61
|
await live_sessions.close_processes()
|
|
62
|
+
await device_screen.close_all()
|
|
63
|
+
devices.hub.close()
|
|
62
64
|
await asyncio.to_thread(databases.close_all)
|
|
63
65
|
paths.RUNTIME_FILE.unlink(missing_ok=True)
|
|
64
66
|
|
|
@@ -37,6 +37,11 @@ _PROVIDERS = ("tailscale", "tailnet", "caddy")
|
|
|
37
37
|
_PRIVATE_PROVIDERS = ("tailnet",)
|
|
38
38
|
_STOP_TIMEOUT = 10
|
|
39
39
|
_POLL_SECONDS = 0.5
|
|
40
|
+
_WINDOWS_APP = "tailscale-ipn.exe"
|
|
41
|
+
_MAC_APP = "Tailscale"
|
|
42
|
+
_TAILSCALE_WAIT = 30
|
|
43
|
+
_SIGNED_OUT = ("NeedsLogin", "NoState")
|
|
44
|
+
_NOT_UP = ("", *_SIGNED_OUT)
|
|
40
45
|
_APP = "core.app:app"
|
|
41
46
|
_COMMANDS = ("run", "expose", "stop", "restart", "status", "logs", "doctor", "update", "key")
|
|
42
47
|
_TOP_FLAGS = ("-h", "--help", "-v", "--version")
|
|
@@ -82,10 +87,8 @@ def _security_key_row(generated: bool) -> tuple[str, str]:
|
|
|
82
87
|
return ("Security key", f"{os.environ[_SECURITY_KEY_VAR]}{' [Auto]' if generated else ''}")
|
|
83
88
|
|
|
84
89
|
|
|
85
|
-
def _print_security_key(generated: bool
|
|
90
|
+
def _print_security_key(generated: bool) -> None:
|
|
86
91
|
_print_rows([_security_key_row(generated)])
|
|
87
|
-
if qr:
|
|
88
|
-
_print_qr(json.dumps({"security_key": os.environ[_SECURITY_KEY_VAR]}, separators=(",", ":")))
|
|
89
92
|
|
|
90
93
|
|
|
91
94
|
def _tailscale_status() -> dict:
|
|
@@ -105,14 +108,41 @@ def _tailscale_status() -> dict:
|
|
|
105
108
|
return {}
|
|
106
109
|
|
|
107
110
|
|
|
111
|
+
def _app_running(name: str) -> bool:
|
|
112
|
+
return any(process.info["name"] == name for process in psutil.process_iter(["name"]))
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
def _open_app(tailscale: str) -> bool:
|
|
116
|
+
if sys.platform == "win32":
|
|
117
|
+
app = Path(tailscale).with_name(_WINDOWS_APP)
|
|
118
|
+
if not app.is_file() or _app_running(_WINDOWS_APP):
|
|
119
|
+
return False
|
|
120
|
+
os.startfile(app)
|
|
121
|
+
elif sys.platform == "darwin":
|
|
122
|
+
if _app_running(_MAC_APP) or subprocess.run(["open", "-a", _MAC_APP], capture_output=True).returncode != 0:
|
|
123
|
+
return False
|
|
124
|
+
else:
|
|
125
|
+
return False
|
|
126
|
+
with suppress(OSError, subprocess.SubprocessError):
|
|
127
|
+
subprocess.run(
|
|
128
|
+
["tailscale", "wait", "--timeout", f"{_TAILSCALE_WAIT}s"],
|
|
129
|
+
capture_output=True, text=True, timeout=_TAILSCALE_WAIT + _STOP_TIMEOUT,
|
|
130
|
+
)
|
|
131
|
+
return True
|
|
132
|
+
|
|
133
|
+
|
|
108
134
|
def _require_tailscale() -> dict:
|
|
109
|
-
|
|
135
|
+
tailscale = shutil.which("tailscale")
|
|
136
|
+
if tailscale is None:
|
|
110
137
|
_abort("Tailscale is not installed. Get it from https://tailscale.com/download and try again.")
|
|
111
138
|
status = _tailscale_status()
|
|
112
139
|
state = status.get("BackendState") or ""
|
|
140
|
+
if state in _NOT_UP and _open_app(tailscale):
|
|
141
|
+
status = _tailscale_status()
|
|
142
|
+
state = status.get("BackendState") or ""
|
|
113
143
|
if not state:
|
|
114
144
|
_abort("Tailscale is installed but not running. Start the Tailscale app or service and try again.")
|
|
115
|
-
if state in
|
|
145
|
+
if state in _SIGNED_OUT:
|
|
116
146
|
_abort("Tailscale is not signed in. Run 'tailscale up', then try again.")
|
|
117
147
|
if state == "Stopped":
|
|
118
148
|
subprocess.run(["tailscale", "up"], capture_output=True, text=True, timeout=60)
|
|
@@ -329,7 +359,6 @@ def _close_exposure() -> None:
|
|
|
329
359
|
|
|
330
360
|
|
|
331
361
|
def _serving(port: int) -> bool:
|
|
332
|
-
"""True once the recorded server itself listens on the port, not whatever else took it."""
|
|
333
362
|
with suppress(psutil.Error, KeyError, ValueError):
|
|
334
363
|
sockets = psutil.Process(int(detached.runtime()["PID"])).net_connections(kind="tcp")
|
|
335
364
|
return any(sock.status == psutil.CONN_LISTEN and sock.laddr.port == port for sock in sockets)
|
|
@@ -399,7 +428,6 @@ def _invocation() -> str:
|
|
|
399
428
|
|
|
400
429
|
|
|
401
430
|
def _flag_parser() -> argparse.ArgumentParser:
|
|
402
|
-
"""The launcher's original flags, accepted alongside the subcommands."""
|
|
403
431
|
parser = argparse.ArgumentParser(description="CConnect backend launcher.")
|
|
404
432
|
parser.add_argument("--expose", choices=list(_PROVIDERS), default="",
|
|
405
433
|
help="Serve the backend through the given provider: tailnet keeps it "
|
|
@@ -616,7 +644,7 @@ def main():
|
|
|
616
644
|
os.environ["PORT"] = str(port)
|
|
617
645
|
|
|
618
646
|
if args.command == "key":
|
|
619
|
-
_print_security_key(_ensure_security_key(args.rotate)
|
|
647
|
+
_print_security_key(_ensure_security_key(args.rotate))
|
|
620
648
|
if args.rotate:
|
|
621
649
|
print(" Every device has to enter it again, and a running backend needs a restart.\n")
|
|
622
650
|
return
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
"""What the running server and a detached launcher left on disk, read by the command and by the update."""
|
|
2
|
-
|
|
3
1
|
from contextlib import suppress
|
|
4
2
|
|
|
5
3
|
import psutil
|
|
@@ -10,7 +8,6 @@ CLI_MODULE = "core.cli"
|
|
|
10
8
|
|
|
11
9
|
|
|
12
10
|
def runtime() -> dict[str, str]:
|
|
13
|
-
"""What the running server recorded, empty when the pid it wrote is gone."""
|
|
14
11
|
try:
|
|
15
12
|
recorded = dict(
|
|
16
13
|
entry.split("=", 1)
|
|
@@ -24,7 +21,6 @@ def runtime() -> dict[str, str]:
|
|
|
24
21
|
|
|
25
22
|
|
|
26
23
|
def running_pid() -> int | None:
|
|
27
|
-
"""PID of a live detached launcher, or None when the recorded one is gone."""
|
|
28
24
|
try:
|
|
29
25
|
pid = int(paths.DETACHED_PID_FILE.read_text(encoding="utf-8").strip())
|
|
30
26
|
except (OSError, ValueError):
|
|
@@ -40,7 +36,6 @@ def running_pid() -> int | None:
|
|
|
40
36
|
|
|
41
37
|
|
|
42
38
|
def provider() -> str:
|
|
43
|
-
"""The provider the detached run exposed with."""
|
|
44
39
|
with suppress(OSError):
|
|
45
40
|
return paths.DETACHED_PROVIDER_FILE.read_text(encoding="utf-8").strip()
|
|
46
41
|
return ""
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"adb": {
|
|
3
|
+
"version": "37.0.3",
|
|
4
|
+
"folder": "platform-tools",
|
|
5
|
+
"archives": {
|
|
6
|
+
"win32": {
|
|
7
|
+
"url": "https://dl.google.com/android/repository/platform-tools_r37.0.3-win.zip",
|
|
8
|
+
"sha256": "b5d2015f5d5b7a24a2ac646a245f20f63fb501e4174c61863c74bed1df6de4bd",
|
|
9
|
+
"size": 8188595,
|
|
10
|
+
"executable": "adb.exe"
|
|
11
|
+
},
|
|
12
|
+
"darwin": {
|
|
13
|
+
"url": "https://dl.google.com/android/repository/platform-tools_r37.0.3-darwin.zip",
|
|
14
|
+
"sha256": "f89baeb829903ceaf3ac92a78a2d25152728049d6316ebeaaca06d716e64842d",
|
|
15
|
+
"size": 16597640,
|
|
16
|
+
"executable": "adb"
|
|
17
|
+
},
|
|
18
|
+
"linux": {
|
|
19
|
+
"url": "https://dl.google.com/android/repository/platform-tools_r37.0.3-linux.zip",
|
|
20
|
+
"sha256": "214548146cadb2ca3508143d8a1d4be4c59de5bb837253e3ede89ed74cf450d1",
|
|
21
|
+
"size": 9571024,
|
|
22
|
+
"executable": "adb"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"scrcpy": {
|
|
27
|
+
"version": "5.0.1",
|
|
28
|
+
"url": "https://github.com/Genymobile/scrcpy/releases/download/v5.0.1/scrcpy-server-v5.0.1",
|
|
29
|
+
"sha256": "764eb6f79811d5211fe9df341120882ba9994c7a61b897d7bf3fb662e53bc536",
|
|
30
|
+
"size": 733930
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"""devices
|
|
2
|
+
|
|
3
|
+
Revision ID: 1b175242d337
|
|
4
|
+
Revises: 4c1f0a9e2b7d
|
|
5
|
+
Create Date: 2026-11-15 03:19:11.126143
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from typing import Sequence, Union
|
|
9
|
+
|
|
10
|
+
import sqlalchemy as sa
|
|
11
|
+
from alembic import op
|
|
12
|
+
|
|
13
|
+
revision: str = '1b175242d337'
|
|
14
|
+
down_revision: Union[str, Sequence[str], None] = '4c1f0a9e2b7d'
|
|
15
|
+
branch_labels: Union[str, Sequence[str], None] = None
|
|
16
|
+
depends_on: Union[str, Sequence[str], None] = None
|
|
17
|
+
|
|
18
|
+
NOW = sa.text("(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))")
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def upgrade() -> None:
|
|
22
|
+
op.create_table(
|
|
23
|
+
"devices",
|
|
24
|
+
sa.Column("id", sa.String(), primary_key=True, comment="Slug of the name the device was first saved with, used in the app's routes"),
|
|
25
|
+
sa.Column("serial", sa.String(), nullable=False, unique=True, comment="Hardware serial the device reports (ro.serialno), the same over USB and Wi-Fi"),
|
|
26
|
+
sa.Column("name", sa.String(), nullable=False, comment="Name the panel shows: the device's marketing name until the user renames it"),
|
|
27
|
+
sa.Column("model", sa.String(), nullable=False, comment="Model the device reports (ro.product.model)"),
|
|
28
|
+
sa.Column("address", sa.String(), nullable=True, comment="host:port it was last reached at over Wi-Fi, to connect it again where mDNS does not reach; NULL for a device only seen over USB"),
|
|
29
|
+
sa.Column("created_at", sa.String(), nullable=False, server_default=NOW, comment="When it was first seen authorized, in UTC"),
|
|
30
|
+
sa.Column("seen_at", sa.String(), nullable=False, server_default=NOW, comment="When it was last connected, in UTC; the panel lists saved devices newest first"),
|
|
31
|
+
comment="Android devices the Devices panel has seen authorized, so one paired over Wi-Fi keeps its name and can be connected again",
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def downgrade() -> None:
|
|
36
|
+
op.drop_table("devices")
|
|
@@ -428,3 +428,37 @@ class McpCatalog(Base):
|
|
|
428
428
|
server_default=text(NOW),
|
|
429
429
|
comment="When it was last read from the running server, in UTC",
|
|
430
430
|
)
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
class Device(Base):
|
|
434
|
+
__tablename__ = "devices"
|
|
435
|
+
__table_args__ = {"comment": "Android devices the Devices panel has seen authorized, so one paired over Wi-Fi keeps its name and can be connected again"}
|
|
436
|
+
|
|
437
|
+
id: Mapped[str] = mapped_column(
|
|
438
|
+
primary_key=True,
|
|
439
|
+
comment="Slug of the name the device was first saved with, used in the app's routes",
|
|
440
|
+
)
|
|
441
|
+
serial: Mapped[str] = mapped_column(
|
|
442
|
+
unique=True,
|
|
443
|
+
comment="Hardware serial the device reports (ro.serialno), the same over USB and Wi-Fi",
|
|
444
|
+
)
|
|
445
|
+
name: Mapped[str] = mapped_column(
|
|
446
|
+
comment="Name the panel shows: the device's marketing name until the user renames it",
|
|
447
|
+
)
|
|
448
|
+
model: Mapped[str] = mapped_column(
|
|
449
|
+
comment="Model the device reports (ro.product.model)",
|
|
450
|
+
)
|
|
451
|
+
address: Mapped[Optional[str]] = mapped_column(
|
|
452
|
+
nullable=True,
|
|
453
|
+
comment="host:port it was last reached at over Wi-Fi, to connect it again where mDNS does not reach; NULL for a device only seen over USB",
|
|
454
|
+
)
|
|
455
|
+
created_at: Mapped[datetime] = mapped_column(
|
|
456
|
+
Timestamp,
|
|
457
|
+
server_default=text(NOW),
|
|
458
|
+
comment="When it was first seen authorized, in UTC",
|
|
459
|
+
)
|
|
460
|
+
seen_at: Mapped[datetime] = mapped_column(
|
|
461
|
+
Timestamp,
|
|
462
|
+
server_default=text(NOW),
|
|
463
|
+
comment="When it was last connected, in UTC; the panel lists saved devices newest first",
|
|
464
|
+
)
|
|
@@ -7,12 +7,17 @@ import subprocess
|
|
|
7
7
|
import sys
|
|
8
8
|
from pathlib import Path
|
|
9
9
|
|
|
10
|
+
from dotenv import load_dotenv
|
|
11
|
+
|
|
10
12
|
PACKAGE_DIR = Path(__file__).resolve().parent
|
|
11
13
|
BACKEND_DIR = PACKAGE_DIR.parent
|
|
12
14
|
|
|
13
15
|
INSTALLED = not (BACKEND_DIR / "pyproject.toml").exists()
|
|
14
16
|
"""True when imported from a wheel rather than from a source tree."""
|
|
15
17
|
|
|
18
|
+
if not INSTALLED:
|
|
19
|
+
load_dotenv(BACKEND_DIR / ".env")
|
|
20
|
+
|
|
16
21
|
HOME_DATA_DIR = Path.home() / ".cconnect" / "data"
|
|
17
22
|
|
|
18
23
|
DATA_DIR = Path(
|
|
@@ -33,6 +38,7 @@ SCRIPTS_DIR = PACKAGE_DIR / "scripts"
|
|
|
33
38
|
CAPTURE_DIR = PACKAGE_DIR / "capture"
|
|
34
39
|
BUILTIN_PACKS_DIR = PACKAGE_DIR / "packs"
|
|
35
40
|
DATABASE_ENGINES_FILE = PACKAGE_DIR / "databases" / "engines.json"
|
|
41
|
+
DEVICE_TOOLS_FILE = PACKAGE_DIR / "devices" / "tools.json"
|
|
36
42
|
MIGRATIONS_DIR = PACKAGE_DIR / "migrations"
|
|
37
43
|
ENV_FILE = (CONFIG_DIR if INSTALLED else BACKEND_DIR) / ".env"
|
|
38
44
|
|
|
@@ -53,6 +59,7 @@ AI_WORKDIR = Path(os.environ.get("AI_WORKDIR") or STATE_DIR / "internal_task")
|
|
|
53
59
|
NETWORK_STATE_FILE = CACHE_DIR / "network_state.json"
|
|
54
60
|
CONTEXT_WINDOWS_FILE = CACHE_DIR / "context_windows.json"
|
|
55
61
|
BROWSER_PROFILE_DIR = Path(os.environ.get("BROWSER_PROFILE_DIR") or CACHE_DIR / "browser")
|
|
62
|
+
ANDROID_TOOLS_DIR = CACHE_DIR / "android"
|
|
56
63
|
|
|
57
64
|
SERVER_LOG_FILE = LOGS_DIR / "server.jsonl"
|
|
58
65
|
PREVIOUS_SERVER_LOG_FILE = LOGS_DIR / "server.prev.jsonl"
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# The Devices panel
|
|
2
|
+
|
|
3
|
+
The user has Android phones, tablets and emulators reachable from the machine running CConnect,
|
|
4
|
+
listed in a panel beside the chat where they also watch a device's screen live and drive it. The
|
|
5
|
+
device tools reach the same devices: list them first, take a screenshot to look, read with shell
|
|
6
|
+
and logcat, tap and type with input, and put an APK on one with install. A device holds the
|
|
7
|
+
user's own apps and accounts, so touch only what the task needs, and never wipe, reset or lock
|
|
8
|
+
one.
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
"""Updating an installed release on Windows, where nothing may still run from the environment the update replaces."""
|
|
2
|
-
|
|
3
1
|
import shutil
|
|
4
2
|
import subprocess
|
|
5
3
|
import sys
|
|
@@ -21,7 +19,6 @@ def needed() -> bool:
|
|
|
21
19
|
|
|
22
20
|
|
|
23
21
|
def restart_command() -> list[str] | None:
|
|
24
|
-
"""How the detached backend starts again once updated, None when none runs."""
|
|
25
22
|
if detached.running_pid() is None:
|
|
26
23
|
return None
|
|
27
24
|
exposed = detached.provider()
|
|
@@ -43,7 +40,6 @@ def _call(command: list[str]) -> str:
|
|
|
43
40
|
|
|
44
41
|
|
|
45
42
|
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
43
|
held = [str(Path(sys.prefix)) + "\\"]
|
|
48
44
|
launcher = shutil.which("cconnect")
|
|
49
45
|
if launcher:
|