cconnect 2.0.3__tar.gz → 2.0.4__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.0.3 → cconnect-2.0.4}/PKG-INFO +1 -1
- {cconnect-2.0.3 → cconnect-2.0.4}/cconnect.egg-info/PKG-INFO +1 -1
- {cconnect-2.0.3 → cconnect-2.0.4}/cconnect.egg-info/SOURCES.txt +9 -1
- {cconnect-2.0.3 → cconnect-2.0.4}/core/app.py +4 -1
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packages.py +12 -2
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect/themes/cconnect-dark.json +4 -1
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect/themes/cconnect-light.json +4 -1
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/themes/catppuccin-latte.json +4 -1
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/themes/catppuccin-mocha.json +4 -1
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/themes/claude-dark.json +4 -1
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/themes/claude-light.json +4 -1
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/themes/dracula.json +4 -1
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/themes/github-dark-hc.json +4 -1
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/themes/github-dark.json +4 -1
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/themes/github-dimmed.json +4 -1
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/themes/github-light-hc.json +4 -1
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/themes/github-light.json +4 -1
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/themes/gruvbox-dark.json +4 -1
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/themes/nord.json +4 -1
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/themes/one-dark.json +4 -1
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/themes/rose-pine.json +4 -1
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/themes/solarized-dark.json +4 -1
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/themes/solarized-light.json +4 -1
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/themes/tokyo-night.json +4 -1
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/themes/vscode-dark-modern.json +4 -1
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/themes/vscode-dark-plus.json +4 -1
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/themes/vscode-hc-dark.json +4 -1
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/themes/vscode-hc-light.json +4 -1
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/themes/vscode-light-modern.json +4 -1
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/themes/vscode-light-plus.json +4 -1
- cconnect-2.0.4/core/packs/schema.json +115 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/paths.py +3 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/release.py +2 -2
- {cconnect-2.0.3 → cconnect-2.0.4}/core/settings_defs.py +2 -2
- cconnect-2.0.4/core/slugs.py +12 -0
- cconnect-2.0.4/mcps/delegate.py +336 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/mcps/packs.py +6 -1
- {cconnect-2.0.3 → cconnect-2.0.4}/routers/accounts.py +9 -1
- cconnect-2.0.4/routers/agents.py +238 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/routers/chat.py +67 -4
- {cconnect-2.0.3 → cconnect-2.0.4}/routers/sessions.py +3 -1
- {cconnect-2.0.3 → cconnect-2.0.4}/schemas/accounts.py +5 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/schemas/chat.py +12 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/accounts.py +18 -3
- cconnect-2.0.4/services/acp_events.py +350 -0
- cconnect-2.0.4/services/acp_peer.py +128 -0
- cconnect-2.0.4/services/agent_connections.py +289 -0
- cconnect-2.0.4/services/agent_registry.py +84 -0
- cconnect-2.0.4/services/agent_sessions.py +677 -0
- cconnect-2.0.4/services/agents.py +401 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/attachments.py +2 -2
- {cconnect-2.0.3 → cconnect-2.0.4}/services/chat_list.py +10 -2
- {cconnect-2.0.3 → cconnect-2.0.4}/services/claude_runtime.py +28 -3
- {cconnect-2.0.3 → cconnect-2.0.4}/services/delegate_runner.py +81 -168
- cconnect-2.0.4/services/delegate_runs.py +67 -0
- cconnect-2.0.4/services/delegates.py +103 -0
- cconnect-2.0.4/services/event_rows.py +89 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/live_sessions.py +56 -11
- {cconnect-2.0.3 → cconnect-2.0.4}/services/pack_format.py +7 -12
- {cconnect-2.0.3 → cconnect-2.0.4}/services/persistent_sessions.py +2 -7
- {cconnect-2.0.3 → cconnect-2.0.4}/services/repo.py +9 -7
- {cconnect-2.0.3 → cconnect-2.0.4}/services/sessions.py +0 -11
- {cconnect-2.0.3 → cconnect-2.0.4}/services/terminal.py +42 -10
- {cconnect-2.0.3 → cconnect-2.0.4}/services/visibility.py +6 -0
- cconnect-2.0.3/core/packs/schema.json +0 -79
- cconnect-2.0.3/mcps/delegate.py +0 -234
- cconnect-2.0.3/routers/delegates.py +0 -24
- cconnect-2.0.3/services/delegate_runs.py +0 -113
- cconnect-2.0.3/services/delegates.py +0 -130
- {cconnect-2.0.3 → cconnect-2.0.4}/cconnect.egg-info/dependency_links.txt +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/cconnect.egg-info/entry_points.txt +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/cconnect.egg-info/requires.txt +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/cconnect.egg-info/top_level.txt +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/__init__.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/access.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/cli.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/cli_manager.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/config.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/data_migration.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/db.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/display.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/models.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/builtin.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect/accents.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect/pack.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect/terminal/black.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/backgrounds/cyberpunk.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/backgrounds/darkwave.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/pack.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/terminal/campbell.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/terminal/catppuccin-latte.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/terminal/catppuccin-mocha.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/terminal/claude-dark.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/terminal/claude-light.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/terminal/dark-plus.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/terminal/dracula.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/terminal/github-dark-hc.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/terminal/github-dark.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/terminal/github-dimmed.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/terminal/github-light-hc.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/terminal/github-light.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/terminal/gruvbox-dark.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/terminal/light-plus.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/terminal/monokai.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/terminal/nord.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/terminal/one-dark.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/terminal/one-half-dark.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/terminal/one-half-light.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/terminal/rose-pine.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/terminal/solarized-dark.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/terminal/solarized-light.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/terminal/tango-dark.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/terminal/tango-light.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/terminal/tokyo-night.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/terminal/ubuntu.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/terminal/vscode-dark-modern.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/terminal/vscode-hc-dark.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/terminal/vscode-hc-light.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/packs/cconnect-extras/terminal/vscode-light-modern.json +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/prompts/BLOCKS.md +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/prompts/BROWSER.md +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/prompts/CCONNECT.md +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/prompts/COMMIT.md +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/prompts/MODS.md +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/prompts/SUGGESTIONS.md +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/rate_limit.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/responses.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/scripts/page_icon.js +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/sdk.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/core/ws.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/mcps/__init__.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/mcps/browser.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/mcps/check_progress.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/mcps/components.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/mcps/media.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/mcps/session.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/mcps/shared_files.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/mcps/terminal.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/middleware/__init__.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/middleware/error_handler.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/middleware/public_auth.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/middleware/security.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/pyproject.toml +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/routers/__init__.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/routers/browser.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/routers/capabilities.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/routers/claude.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/routers/cli.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/routers/git.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/routers/health.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/routers/list.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/routers/network.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/routers/packs.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/routers/projects.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/routers/settings.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/routers/shared.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/routers/system.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/routers/terminal.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/schemas/__init__.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/schemas/network.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/__init__.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/account_login.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/api_errors.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/blocks.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/browser.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/categories.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/claude_assets.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/claude_manage.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/claude_status.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/cli_info.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/cli_settings.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/diffs.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/directories.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/directory_watch.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/files.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/git.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/git_ops.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/mods.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/network.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/packs.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/project_files.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/project_watch.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/projects.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/prompt_cache.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/providers.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/questions.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/rewind.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/settings_store.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/shared.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/shared_links.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/shared_watch.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/speedtest.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/system_monitor.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/system_watch.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/todos.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/tool_calls.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/tool_props.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/trash.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/services/usage.py +0 -0
- {cconnect-2.0.3 → cconnect-2.0.4}/setup.cfg +0 -0
|
@@ -22,6 +22,7 @@ core/release.py
|
|
|
22
22
|
core/responses.py
|
|
23
23
|
core/sdk.py
|
|
24
24
|
core/settings_defs.py
|
|
25
|
+
core/slugs.py
|
|
25
26
|
core/ws.py
|
|
26
27
|
core/packs/builtin.json
|
|
27
28
|
core/packs/schema.json
|
|
@@ -109,12 +110,12 @@ middleware/public_auth.py
|
|
|
109
110
|
middleware/security.py
|
|
110
111
|
routers/__init__.py
|
|
111
112
|
routers/accounts.py
|
|
113
|
+
routers/agents.py
|
|
112
114
|
routers/browser.py
|
|
113
115
|
routers/capabilities.py
|
|
114
116
|
routers/chat.py
|
|
115
117
|
routers/claude.py
|
|
116
118
|
routers/cli.py
|
|
117
|
-
routers/delegates.py
|
|
118
119
|
routers/git.py
|
|
119
120
|
routers/health.py
|
|
120
121
|
routers/list.py
|
|
@@ -133,6 +134,12 @@ schemas/network.py
|
|
|
133
134
|
services/__init__.py
|
|
134
135
|
services/account_login.py
|
|
135
136
|
services/accounts.py
|
|
137
|
+
services/acp_events.py
|
|
138
|
+
services/acp_peer.py
|
|
139
|
+
services/agent_connections.py
|
|
140
|
+
services/agent_registry.py
|
|
141
|
+
services/agent_sessions.py
|
|
142
|
+
services/agents.py
|
|
136
143
|
services/api_errors.py
|
|
137
144
|
services/attachments.py
|
|
138
145
|
services/blocks.py
|
|
@@ -151,6 +158,7 @@ services/delegates.py
|
|
|
151
158
|
services/diffs.py
|
|
152
159
|
services/directories.py
|
|
153
160
|
services/directory_watch.py
|
|
161
|
+
services/event_rows.py
|
|
154
162
|
services/files.py
|
|
155
163
|
services/git.py
|
|
156
164
|
services/git_ops.py
|
|
@@ -31,6 +31,8 @@ async def lifespan(app: FastAPI):
|
|
|
31
31
|
init_db()
|
|
32
32
|
settings_store.load()
|
|
33
33
|
cli_settings.migrate()
|
|
34
|
+
from services import delegates
|
|
35
|
+
delegates.migrate()
|
|
34
36
|
from services import accounts
|
|
35
37
|
await asyncio.to_thread(accounts.link_all_shared_dirs)
|
|
36
38
|
paths.RUNTIME_FILE.write_text(f"PORT={PORT}\nPID={os.getpid()}\n", encoding="utf-8")
|
|
@@ -55,8 +57,9 @@ async def lifespan(app: FastAPI):
|
|
|
55
57
|
project_watch.hub.stop()
|
|
56
58
|
system_watch.hub.stop()
|
|
57
59
|
network.watchdog.stop()
|
|
58
|
-
from services import persistent_sessions
|
|
60
|
+
from services import agent_connections, persistent_sessions
|
|
59
61
|
await persistent_sessions.pool.close_all()
|
|
62
|
+
await agent_connections.pool.close_all()
|
|
60
63
|
paths.RUNTIME_FILE.unlink(missing_ok=True)
|
|
61
64
|
|
|
62
65
|
|
|
@@ -5,6 +5,8 @@ import subprocess
|
|
|
5
5
|
import sys
|
|
6
6
|
from pathlib import Path
|
|
7
7
|
|
|
8
|
+
NO_WINDOW = getattr(subprocess, "CREATE_NO_WINDOW", 0)
|
|
9
|
+
|
|
8
10
|
|
|
9
11
|
def uv_tool() -> str:
|
|
10
12
|
parts = Path(sys.prefix).parts
|
|
@@ -27,7 +29,15 @@ def upgrade_command(distribution: str) -> list[str]:
|
|
|
27
29
|
return [sys.executable, "-m", "pip", "install", "--upgrade", distribution]
|
|
28
30
|
|
|
29
31
|
|
|
30
|
-
def run(command: list[str], timeout: int) -> subprocess.CompletedProcess:
|
|
32
|
+
def run(command: list[str], timeout: int, cwd: Path | None = None, env: dict[str, str] | None = None) -> subprocess.CompletedProcess:
|
|
31
33
|
return subprocess.run(
|
|
32
|
-
command,
|
|
34
|
+
command,
|
|
35
|
+
capture_output=True,
|
|
36
|
+
text=True,
|
|
37
|
+
timeout=timeout,
|
|
38
|
+
encoding="utf-8",
|
|
39
|
+
errors="replace",
|
|
40
|
+
cwd=cwd,
|
|
41
|
+
env=env,
|
|
42
|
+
creationflags=NO_WINDOW,
|
|
33
43
|
)
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": 3,
|
|
3
|
+
"extension": ".ccpack",
|
|
4
|
+
"mime": "application/zip",
|
|
5
|
+
"manifest": "pack.json",
|
|
6
|
+
"themeKinds": ["light", "dark"],
|
|
7
|
+
"colors": [
|
|
8
|
+
"background",
|
|
9
|
+
"on-background",
|
|
10
|
+
"surface",
|
|
11
|
+
"surface-variant",
|
|
12
|
+
"surface-nested",
|
|
13
|
+
"float",
|
|
14
|
+
"on-surface-variant",
|
|
15
|
+
"faint",
|
|
16
|
+
"hover",
|
|
17
|
+
"shadow",
|
|
18
|
+
"shadow-soft",
|
|
19
|
+
"outline",
|
|
20
|
+
"outline-variant",
|
|
21
|
+
"error",
|
|
22
|
+
"on-accent",
|
|
23
|
+
"scrollbar",
|
|
24
|
+
"scrollbar-hover",
|
|
25
|
+
"red",
|
|
26
|
+
"red-bg",
|
|
27
|
+
"green",
|
|
28
|
+
"green-bg",
|
|
29
|
+
"blue",
|
|
30
|
+
"blue-bg",
|
|
31
|
+
"yellow",
|
|
32
|
+
"orange",
|
|
33
|
+
"cyan",
|
|
34
|
+
"purple",
|
|
35
|
+
"gray",
|
|
36
|
+
"logo",
|
|
37
|
+
"logo-ring",
|
|
38
|
+
"logo-mark"
|
|
39
|
+
],
|
|
40
|
+
"colorRoles": {
|
|
41
|
+
"background": "the window behind everything: the chat, the panels and the browser's start page",
|
|
42
|
+
"on-background": "main text and icons",
|
|
43
|
+
"surface": "panels, dialogs and cards on the background: the chat list, blocks in the chat, date separators",
|
|
44
|
+
"surface-variant": "raised controls: the composer, fields, chips, toolbar buttons and your own messages",
|
|
45
|
+
"surface-nested": "a block inside another block, such as the body of an open collapsible",
|
|
46
|
+
"float": "menus, popovers and floating cards",
|
|
47
|
+
"on-surface-variant": "secondary text and icons: summaries, captions, inactive icons",
|
|
48
|
+
"faint": "the faintest text and marks: placeholders, timestamps and hints",
|
|
49
|
+
"hover": "the tint under the pointer on rows and buttons",
|
|
50
|
+
"shadow": "the shadow under floating surfaces",
|
|
51
|
+
"shadow-soft": "the shadow under raised controls",
|
|
52
|
+
"outline": "visible borders and strokes, such as outlined buttons",
|
|
53
|
+
"outline-variant": "subtle dividers and the hairline around menus and media",
|
|
54
|
+
"error": "error text and the ring of a field in error",
|
|
55
|
+
"on-accent": "text and icons on accent buttons",
|
|
56
|
+
"scrollbar": "the scrollbar thumb",
|
|
57
|
+
"scrollbar-hover": "the scrollbar thumb under the pointer",
|
|
58
|
+
"red": "errors, danger buttons, deleted files, a context or plan limit nearly used up, the Bypass permissions mode and the caution alert in Markdown",
|
|
59
|
+
"red-bg": "the tint behind removed lines in a diff and behind failed output",
|
|
60
|
+
"green": "success, online dots, an idle chat, new files, the Accept edits mode and the tip alert in Markdown",
|
|
61
|
+
"green-bg": "the tint behind added lines in a diff",
|
|
62
|
+
"blue": "information notices, compacting, Plan mode, modified files, diff hunk headers and the note alert in Markdown",
|
|
63
|
+
"blue-bg": "the tint behind a diff's hunk headers",
|
|
64
|
+
"yellow": "the spinner of a chat retrying a request, degraded service status, warning lines in the server log and the warning alert in Markdown",
|
|
65
|
+
"orange": "warnings, a chat waiting for you, an interrupted turn, the notice of a request being retried, a plan limit running low, a signed-out account, a network without internet and the Don't ask mode",
|
|
66
|
+
"cyan": "the Auto permission mode",
|
|
67
|
+
"purple": "a chat being renamed, a commit message being written and the important alert in Markdown",
|
|
68
|
+
"gray": "the Default permission mode, a chat opened from the trash and a service status that could not be read",
|
|
69
|
+
"logo": "the tile of the CConnect logo, always dark: in a light theme a dark tone that fits its palette, never white",
|
|
70
|
+
"logo-ring": "the faint full circle inside the logo, a tone between logo and logo-mark",
|
|
71
|
+
"logo-mark": "the C and the prompt of the logo, in strong contrast with logo"
|
|
72
|
+
},
|
|
73
|
+
"derived": {
|
|
74
|
+
"red-bg": { "from": "red", "alpha": 0.15 },
|
|
75
|
+
"green-bg": { "from": "green", "alpha": 0.15 },
|
|
76
|
+
"blue-bg": { "from": "blue", "alpha": 0.1 },
|
|
77
|
+
"hover": { "from": "on-background", "alpha": 0.05 },
|
|
78
|
+
"scrollbar": { "from": "on-background", "alpha": 0.2 },
|
|
79
|
+
"scrollbar-hover": { "from": "on-background", "alpha": 0.35 }
|
|
80
|
+
},
|
|
81
|
+
"terminal": [
|
|
82
|
+
"background",
|
|
83
|
+
"foreground",
|
|
84
|
+
"black",
|
|
85
|
+
"red",
|
|
86
|
+
"green",
|
|
87
|
+
"yellow",
|
|
88
|
+
"blue",
|
|
89
|
+
"magenta",
|
|
90
|
+
"cyan",
|
|
91
|
+
"white",
|
|
92
|
+
"bright-black",
|
|
93
|
+
"bright-red",
|
|
94
|
+
"bright-green",
|
|
95
|
+
"bright-yellow",
|
|
96
|
+
"bright-blue",
|
|
97
|
+
"bright-magenta",
|
|
98
|
+
"bright-cyan",
|
|
99
|
+
"bright-white"
|
|
100
|
+
],
|
|
101
|
+
"backgroundEffects": {
|
|
102
|
+
"opacity": { "min": 0, "max": 100 },
|
|
103
|
+
"brightness": { "min": 0, "max": 180 },
|
|
104
|
+
"blur": { "min": 0, "max": 20 },
|
|
105
|
+
"saturation": { "min": 0, "max": 200 },
|
|
106
|
+
"x": { "min": 0, "max": 100 },
|
|
107
|
+
"y": { "min": 0, "max": 100 }
|
|
108
|
+
},
|
|
109
|
+
"backgroundFits": ["cover", "contain"],
|
|
110
|
+
"fontKinds": ["text", "mono", "symbols", "emoji"],
|
|
111
|
+
"fontFormats": ["woff2", "woff", "ttf", "otf"],
|
|
112
|
+
"imageFormats": ["png", "jpg", "jpeg", "webp", "gif", "avif", "svg"],
|
|
113
|
+
"maxFileBytes": 10485760,
|
|
114
|
+
"maxPackBytes": 52428800
|
|
115
|
+
}
|
|
@@ -23,6 +23,7 @@ STATE_DIR = DATA_DIR / "state"
|
|
|
23
23
|
LOGS_DIR = DATA_DIR / "logs"
|
|
24
24
|
SHARED_DIR = Path(os.environ.get("CCONNECT_SHARED_DIR") or DATA_DIR / "shared")
|
|
25
25
|
TRASH_DIR = DATA_DIR / "trash"
|
|
26
|
+
AGENTS_DIR = DATA_DIR / "agents"
|
|
26
27
|
|
|
27
28
|
CACHE_DIR = Path(os.environ.get("CCONNECT_CACHE_DIR") or DATA_DIR.parent / "cache")
|
|
28
29
|
|
|
@@ -35,6 +36,7 @@ DB_FILE = CONFIG_DIR / "cconnect.db"
|
|
|
35
36
|
ACCOUNTS_DIR = CONFIG_DIR / "accounts"
|
|
36
37
|
MCP_DISABLED_FILE = CONFIG_DIR / "mcp_disabled.json"
|
|
37
38
|
DELEGATES_FILE = CONFIG_DIR / "delegates.json"
|
|
39
|
+
AGENTS_FILE = CONFIG_DIR / "agents.json"
|
|
38
40
|
USER_PROMPT_FILE = CONFIG_DIR / "prompts" / "USER.md"
|
|
39
41
|
COMMIT_PROMPT_FILE = CONFIG_DIR / "prompts" / "COMMIT.md"
|
|
40
42
|
PROJECT_PROMPTS_DIR = CONFIG_DIR / "prompts" / "projects"
|
|
@@ -48,6 +50,7 @@ DETACHED_PROVIDER_FILE = STATE_DIR / ".detached.provider"
|
|
|
48
50
|
REWIND_FILE = STATE_DIR / "rewind_pending.json"
|
|
49
51
|
TODOS_FILE = STATE_DIR / "session_todos.json"
|
|
50
52
|
DELEGATE_RUNS_DIR = STATE_DIR / "delegate_runs"
|
|
53
|
+
AGENT_HISTORY_DIR = STATE_DIR / "agent_history"
|
|
51
54
|
AI_WORKDIR = Path(os.environ.get("AI_WORKDIR") or STATE_DIR / "internal_task")
|
|
52
55
|
|
|
53
56
|
NETWORK_STATE_FILE = CACHE_DIR / "network_state.json"
|
|
@@ -48,8 +48,8 @@ SETTINGS: dict[str, SettingDef] = {
|
|
|
48
48
|
"suggestions": SettingDef(True, bool, "The model ends a turn with buttons for the next step, either sent as they are or left written for you to finish"),
|
|
49
49
|
"sdk_auto_update": SettingDef(True, bool, "Install the latest Claude Agent SDK every time the server starts"),
|
|
50
50
|
"persistent_sessions": SettingDef(False, bool, "Keep a chat's Claude process alive while it stays open: instant answers and commands that keep running in the background, at about 400 MB of memory per open chat"),
|
|
51
|
-
"
|
|
52
|
-
"
|
|
51
|
+
"session_grace": SettingDef(300, int, "Seconds a persistent chat or an ACP agent stays alive after the last device closes it, so a reconnection does not restart it"),
|
|
52
|
+
"session_limit": SettingDef(10, int, "How many persistent chats and ACP agents may hold a live process at once; the oldest idle one is closed past that"),
|
|
53
53
|
"mod_surfaces": SettingDef(True, bool, "Show what mods report in every chat, and the panes and band they draw in a persistent one through the CLI's internal UI protocol, which can change between versions; off, only the lines the transcript keeps"),
|
|
54
54
|
"default_category": SettingDef("", str, "Category a new chat is filed into; empty leaves it out of every category"),
|
|
55
55
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"""Ids written from the names people give things."""
|
|
2
|
+
|
|
3
|
+
import re
|
|
4
|
+
import unicodedata
|
|
5
|
+
|
|
6
|
+
_SEPARATORS = re.compile(r"[^a-z0-9]+")
|
|
7
|
+
_EDGES = re.compile(r"^-+|-+$")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def slug(name: str) -> str:
|
|
11
|
+
plain = "".join(char for char in unicodedata.normalize("NFKD", name) if not unicodedata.combining(char))
|
|
12
|
+
return _EDGES.sub("", _SEPARATORS.sub("-", plain.lower()))
|