cconnect 2.0.5__tar.gz → 2.0.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.0.5 → cconnect-2.0.6}/PKG-INFO +1 -1
- {cconnect-2.0.5 → cconnect-2.0.6}/cconnect.egg-info/PKG-INFO +1 -1
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/themes/catppuccin-mocha.json +1 -1
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/themes/claude-dark.json +1 -1
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/themes/claude-light.json +1 -1
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/themes/dracula.json +1 -1
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/themes/github-dark-hc.json +1 -1
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/themes/github-dark.json +1 -1
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/themes/github-dimmed.json +1 -1
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/themes/github-light-hc.json +1 -1
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/themes/nord.json +1 -1
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/themes/one-dark.json +1 -1
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/themes/tokyo-night.json +1 -1
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/themes/vscode-dark-plus.json +1 -1
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/themes/vscode-light-modern.json +1 -1
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/schema.json +3 -3
- {cconnect-2.0.5 → cconnect-2.0.6}/core/paths.py +1 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/release.py +1 -1
- {cconnect-2.0.5 → cconnect-2.0.6}/routers/agents.py +15 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/agent_sessions.py +50 -3
- {cconnect-2.0.5 → cconnect-2.0.6}/services/sessions.py +1 -1
- {cconnect-2.0.5 → cconnect-2.0.6}/cconnect.egg-info/SOURCES.txt +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/cconnect.egg-info/dependency_links.txt +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/cconnect.egg-info/entry_points.txt +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/cconnect.egg-info/requires.txt +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/cconnect.egg-info/top_level.txt +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/__init__.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/access.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/app.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/cli.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/cli_manager.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/config.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/data_migration.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/db.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/display.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/models.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packages.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/builtin.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect/accents.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect/pack.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect/terminal/black.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect/themes/cconnect-dark.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect/themes/cconnect-light.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/backgrounds/cyberpunk.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/backgrounds/darkwave.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/pack.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/terminal/campbell.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/terminal/catppuccin-latte.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/terminal/catppuccin-mocha.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/terminal/claude-dark.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/terminal/claude-light.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/terminal/dark-plus.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/terminal/dracula.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/terminal/github-dark-hc.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/terminal/github-dark.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/terminal/github-dimmed.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/terminal/github-light-hc.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/terminal/github-light.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/terminal/gruvbox-dark.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/terminal/light-plus.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/terminal/monokai.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/terminal/nord.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/terminal/one-dark.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/terminal/one-half-dark.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/terminal/one-half-light.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/terminal/rose-pine.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/terminal/solarized-dark.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/terminal/solarized-light.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/terminal/tango-dark.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/terminal/tango-light.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/terminal/tokyo-night.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/terminal/ubuntu.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/terminal/vscode-dark-modern.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/terminal/vscode-hc-dark.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/terminal/vscode-hc-light.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/terminal/vscode-light-modern.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/themes/catppuccin-latte.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/themes/github-light.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/themes/gruvbox-dark.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/themes/rose-pine.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/themes/solarized-dark.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/themes/solarized-light.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/themes/vscode-dark-modern.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/themes/vscode-hc-dark.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/themes/vscode-hc-light.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/themes/vscode-light-plus.json +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/process_job.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/prompts/BLOCKS.md +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/prompts/BROWSER.md +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/prompts/CCONNECT.md +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/prompts/COMMIT.md +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/prompts/MODS.md +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/prompts/SUGGESTIONS.md +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/rate_limit.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/responses.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/scripts/page_icon.js +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/sdk.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/settings_defs.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/slugs.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/core/ws.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/mcps/__init__.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/mcps/browser.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/mcps/check_progress.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/mcps/components.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/mcps/delegate.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/mcps/media.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/mcps/packs.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/mcps/session.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/mcps/shared_files.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/mcps/terminal.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/middleware/__init__.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/middleware/error_handler.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/middleware/public_auth.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/middleware/security.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/pyproject.toml +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/routers/__init__.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/routers/accounts.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/routers/browser.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/routers/capabilities.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/routers/chat.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/routers/claude.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/routers/cli.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/routers/git.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/routers/health.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/routers/list.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/routers/network.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/routers/packs.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/routers/projects.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/routers/sessions.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/routers/settings.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/routers/shared.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/routers/system.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/routers/terminal.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/schemas/__init__.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/schemas/accounts.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/schemas/chat.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/schemas/network.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/__init__.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/account_login.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/accounts.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/acp_events.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/acp_peer.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/agent_connections.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/agent_registry.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/agents.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/api_errors.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/attachments.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/blocks.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/browser.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/categories.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/chat_list.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/claude_assets.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/claude_manage.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/claude_runtime.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/claude_status.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/cli_info.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/cli_settings.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/delegate_runner.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/delegate_runs.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/delegates.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/diffs.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/directories.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/directory_watch.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/event_rows.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/files.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/git.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/git_ops.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/live_sessions.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/mods.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/network.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/pack_format.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/packs.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/persistent_sessions.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/project_files.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/project_watch.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/projects.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/prompt_cache.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/providers.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/questions.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/repo.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/rewind.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/settings_store.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/shared.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/shared_links.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/shared_watch.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/speedtest.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/system_monitor.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/system_watch.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/terminal.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/todos.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/tool_calls.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/tool_props.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/trash.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/usage.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/services/visibility.py +0 -0
- {cconnect-2.0.5 → cconnect-2.0.6}/setup.cfg +0 -0
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"colorRoles": {
|
|
41
41
|
"background": "the window behind everything: the chat, the panels and the browser's start page",
|
|
42
42
|
"on-background": "main text and icons",
|
|
43
|
-
"surface": "panels, dialogs and cards on the background: the chat list, blocks in the chat
|
|
44
|
-
"surface-variant": "raised controls
|
|
45
|
-
"surface-nested": "a block inside another block,
|
|
43
|
+
"surface": "panels, dialogs and cards on the background: the chat list, the composer, and Thinking and the other blocks in the chat",
|
|
44
|
+
"surface-variant": "raised controls and your own messages: fields, chips, buttons, the date separator and the selected row of a list",
|
|
45
|
+
"surface-nested": "code and command output in the chat and a block inside another block, a tone between surface and surface-variant",
|
|
46
46
|
"float": "menus, popovers and floating cards",
|
|
47
47
|
"on-surface-variant": "secondary text and icons: summaries, captions, inactive icons",
|
|
48
48
|
"faint": "the faintest text and marks: placeholders, timestamps and hints",
|
|
@@ -52,6 +52,7 @@ TODOS_FILE = STATE_DIR / "session_todos.json"
|
|
|
52
52
|
DELEGATE_RUNS_DIR = STATE_DIR / "delegate_runs"
|
|
53
53
|
AGENT_SESSIONS_FILE = STATE_DIR / "agent_sessions.json"
|
|
54
54
|
AGENT_DEFAULTS_FILE = STATE_DIR / "agent_defaults.json"
|
|
55
|
+
AGENT_TITLES_FILE = STATE_DIR / "agent_titles.json"
|
|
55
56
|
AI_WORKDIR = Path(os.environ.get("AI_WORKDIR") or STATE_DIR / "internal_task")
|
|
56
57
|
|
|
57
58
|
NETWORK_STATE_FILE = CACHE_DIR / "network_state.json"
|
|
@@ -52,6 +52,12 @@ class TerminalLogin(BaseModel):
|
|
|
52
52
|
cwd: str
|
|
53
53
|
|
|
54
54
|
|
|
55
|
+
class SessionRename(BaseModel):
|
|
56
|
+
cwd: str
|
|
57
|
+
session: str = Field(min_length=1)
|
|
58
|
+
title: str = Field("", max_length=200)
|
|
59
|
+
|
|
60
|
+
|
|
55
61
|
def _failed(exc: Exception) -> Response:
|
|
56
62
|
if isinstance(exc, agents.AgentError):
|
|
57
63
|
return api_response(status=422, data={"reason": exc.reason, "detail": exc.detail})
|
|
@@ -205,6 +211,15 @@ async def agent_session_delete(agent_id: str, cwd: str, session: str):
|
|
|
205
211
|
return api_response()
|
|
206
212
|
|
|
207
213
|
|
|
214
|
+
@router.post("/agents/{agent_id}/sessions/rename")
|
|
215
|
+
async def agent_session_rename(agent_id: str, body: SessionRename):
|
|
216
|
+
try:
|
|
217
|
+
await agent_sessions.rename(agent_id, body.cwd, body.session, body.title)
|
|
218
|
+
except OSError as exc:
|
|
219
|
+
return _failed(exc)
|
|
220
|
+
return api_response()
|
|
221
|
+
|
|
222
|
+
|
|
208
223
|
async def _signed_in(agent_id: str, held: terminal.Terminal) -> None:
|
|
209
224
|
await held.exited.wait()
|
|
210
225
|
if held.exit_status in (None, 0):
|
|
@@ -82,6 +82,21 @@ def _without(agent_id: str, session_id: str) -> dict[str, str]:
|
|
|
82
82
|
return {known: cwd for known, cwd in _known(agent_id).items() if known != session_id}
|
|
83
83
|
|
|
84
84
|
|
|
85
|
+
def _titles(agent_id: str) -> dict[str, str]:
|
|
86
|
+
titles = _read(paths.AGENT_TITLES_FILE).get(agent_id)
|
|
87
|
+
return {str(session_id): str(title) for session_id, title in titles.items()} if isinstance(titles, dict) else {}
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
def _name(agent_id: str, session_id: str, title: Optional[str]) -> None:
|
|
91
|
+
"""Keep the title the user gave a session, or drop it when `title` is None."""
|
|
92
|
+
stored = _read(paths.AGENT_TITLES_FILE)
|
|
93
|
+
titles = {known: kept for known, kept in _titles(agent_id).items() if known != session_id}
|
|
94
|
+
if title:
|
|
95
|
+
titles[session_id] = title
|
|
96
|
+
stored[agent_id] = titles
|
|
97
|
+
_write(paths.AGENT_TITLES_FILE, stored)
|
|
98
|
+
|
|
99
|
+
|
|
85
100
|
def _keep_id(connection: AgentConnection, agent_id: str, session_id: str, cwd: str) -> None:
|
|
86
101
|
if session_id and not _present(connection.session_capabilities, "list"):
|
|
87
102
|
_set_known(agent_id, {session_id: cwd, **_without(agent_id, session_id)})
|
|
@@ -160,6 +175,8 @@ class AgentSession:
|
|
|
160
175
|
self.reason: Optional[str] = None
|
|
161
176
|
self.detail = ""
|
|
162
177
|
self.title: Optional[str] = None
|
|
178
|
+
self._named: Optional[str] = None
|
|
179
|
+
self._named_for: Optional[str] = None
|
|
163
180
|
self.options: list[dict] = []
|
|
164
181
|
self.commands: list[dict] = []
|
|
165
182
|
self.usage: Optional[dict] = None
|
|
@@ -198,7 +215,7 @@ class AgentSession:
|
|
|
198
215
|
"reason": self.reason,
|
|
199
216
|
"detail": self.detail,
|
|
200
217
|
"session_id": self.session_id,
|
|
201
|
-
"title": self.
|
|
218
|
+
"title": self._shown_title(),
|
|
202
219
|
"options": self.options,
|
|
203
220
|
"commands": self.commands,
|
|
204
221
|
"usage": self.usage,
|
|
@@ -216,6 +233,17 @@ class AgentSession:
|
|
|
216
233
|
"info": (connection.info.get("agentInfo") if connection is not None else None) or None,
|
|
217
234
|
}
|
|
218
235
|
|
|
236
|
+
def _shown_title(self) -> Optional[str]:
|
|
237
|
+
if self._named_for != self.session_id:
|
|
238
|
+
self._named_for = self.session_id
|
|
239
|
+
self._named = _titles(self.agent_id).get(self.session_id or "")
|
|
240
|
+
return self._named or self.title
|
|
241
|
+
|
|
242
|
+
async def renamed(self, title: Optional[str]) -> None:
|
|
243
|
+
self._named_for = self.session_id
|
|
244
|
+
self._named = title
|
|
245
|
+
await self._announce()
|
|
246
|
+
|
|
219
247
|
async def _announce(self) -> None:
|
|
220
248
|
if self._emit is not None:
|
|
221
249
|
await self._emit(self.snapshot())
|
|
@@ -710,12 +738,13 @@ def _activity(session_id: str) -> Optional[str]:
|
|
|
710
738
|
|
|
711
739
|
async def all_sessions(agent_id: str, cwd: str) -> list[dict]:
|
|
712
740
|
connection = await pool.take(agent_id, cwd)
|
|
741
|
+
titles = _titles(agent_id)
|
|
713
742
|
try:
|
|
714
743
|
if _present(connection.session_capabilities, "list"):
|
|
715
744
|
return [
|
|
716
745
|
{
|
|
717
746
|
"session_id": str(item["sessionId"]),
|
|
718
|
-
"title": item.get("title"),
|
|
747
|
+
"title": titles.get(str(item["sessionId"])) or item.get("title"),
|
|
719
748
|
"updated_at": item.get("updatedAt"),
|
|
720
749
|
"cwd": item.get("cwd"),
|
|
721
750
|
"activity": _activity(str(item["sessionId"])),
|
|
@@ -725,7 +754,13 @@ async def all_sessions(agent_id: str, cwd: str) -> list[dict]:
|
|
|
725
754
|
if not (connection.capabilities.get("loadSession") or _present(connection.session_capabilities, "resume")):
|
|
726
755
|
return []
|
|
727
756
|
return [
|
|
728
|
-
{
|
|
757
|
+
{
|
|
758
|
+
"session_id": session_id,
|
|
759
|
+
"title": titles.get(session_id),
|
|
760
|
+
"updated_at": None,
|
|
761
|
+
"cwd": cwd,
|
|
762
|
+
"activity": _activity(session_id),
|
|
763
|
+
}
|
|
729
764
|
for session_id, folder in _known(agent_id).items()
|
|
730
765
|
if folder == cwd
|
|
731
766
|
]
|
|
@@ -733,6 +768,16 @@ async def all_sessions(agent_id: str, cwd: str) -> list[dict]:
|
|
|
733
768
|
pool.give(connection)
|
|
734
769
|
|
|
735
770
|
|
|
771
|
+
async def rename(agent_id: str, cwd: str, session_id: str, title: str) -> None:
|
|
772
|
+
"""Give a session the user's own title over the agent's; an empty title gives it back the agent's."""
|
|
773
|
+
clean = title.strip() or None
|
|
774
|
+
_name(agent_id, session_id, clean)
|
|
775
|
+
live = registry.get_by_session(session_id)
|
|
776
|
+
if live is not None and isinstance(live.agent, AgentSession):
|
|
777
|
+
await live.agent.renamed(clean)
|
|
778
|
+
watch.changed(agent_id, cwd)
|
|
779
|
+
|
|
780
|
+
|
|
736
781
|
async def forget(agent_id: str, cwd: str, session_id: str) -> None:
|
|
737
782
|
"""Delete a session the agent keeps, along with what this server kept of it."""
|
|
738
783
|
connection = await pool.take(agent_id, cwd)
|
|
@@ -743,6 +788,8 @@ async def forget(agent_id: str, cwd: str, session_id: str) -> None:
|
|
|
743
788
|
pool.give(connection)
|
|
744
789
|
if session_id in _known(agent_id):
|
|
745
790
|
_set_known(agent_id, _without(agent_id, session_id))
|
|
791
|
+
if session_id in _titles(agent_id):
|
|
792
|
+
_name(agent_id, session_id, None)
|
|
746
793
|
watch.changed(agent_id, cwd)
|
|
747
794
|
|
|
748
795
|
|
|
@@ -1152,7 +1152,7 @@ def list_checkpoints(project_key: str, session_id: str) -> list[dict]:
|
|
|
1152
1152
|
points.append({
|
|
1153
1153
|
"id": uuid,
|
|
1154
1154
|
"rewind_id": last_anchor,
|
|
1155
|
-
"text": text
|
|
1155
|
+
"text": text,
|
|
1156
1156
|
"ts": entry.get("timestamp"),
|
|
1157
1157
|
})
|
|
1158
1158
|
return points
|
|
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
|
|
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.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/terminal/vscode-dark-modern.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cconnect-2.0.5 → cconnect-2.0.6}/core/packs/cconnect-extras/terminal/vscode-light-modern.json
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|