comate-cli 0.3.7__tar.gz → 0.3.8__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.
- {comate_cli-0.3.7 → comate_cli-0.3.8}/.gitignore +0 -2
- {comate_cli-0.3.7 → comate_cli-0.3.8}/PKG-INFO +1 -2
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/app.py +3 -8
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/codenames.py +0 -1
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/tui.py +7 -7
- {comate_cli-0.3.7 → comate_cli-0.3.8}/pyproject.toml +1 -2
- comate_cli-0.3.8/uv.lock +2231 -0
- comate_cli-0.3.7/tests/test_update_check.py +0 -152
- comate_cli-0.3.7/uv.lock +0 -2217
- {comate_cli-0.3.7 → comate_cli-0.3.8}/README.md +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/__init__.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/__main__.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/main.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/mcp_cli.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/__init__.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/animations.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/assistant_render.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/custom_slash_commands.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/env_utils.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/error_display.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/event_renderer.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/fragment_utils.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/history_printer.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/input_geometry.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/layout_coordinator.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/logging_adapter.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/logo.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/markdown_render.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/mention_completer.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/message_style.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/models.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/path_context_hint.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/preflight.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/question_view.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/resume_selector.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/rewind_store.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/rpc_protocol.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/rpc_stdio.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/selection_menu.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/session_view.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/slash_commands.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/startup.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/status_bar.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/text_effects.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/tips.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/tool_view.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/tui_parts/__init__.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/tui_parts/commands.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/tui_parts/history_sync.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/tui_parts/input_behavior.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/tui_parts/key_bindings.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/tui_parts/render_panels.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/tui_parts/slash_command_registry.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/comate_cli/terminal_agent/tui_parts/ui_mode.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/conftest.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_app_mcp_preload.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_app_preflight_gate.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_app_print_mode.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_app_shutdown.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_app_usage_line.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_cli_project_root.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_compact_command_semantics.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_completion_context_activation.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_completion_status_panel.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_context_command.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_custom_slash_commands.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_event_renderer.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_format_error.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_handle_error.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_history_printer.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_history_sync.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_input_behavior.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_input_history.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_interrupt_exit_semantics.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_layout_coordinator.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_logging_adapter.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_logo.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_main_args.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_mcp_cli.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_mcp_slash_command.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_mention_completer.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_path_context_hint.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_preflight.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_preflight_copilot.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_question_key_bindings.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_question_view.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_resume_selector.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_rewind_command_semantics.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_rewind_store.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_rpc_protocol.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_rpc_stdio_bridge.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_selection_menu.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_skills_slash_command.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_slash_argument_hint.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_slash_completer.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_slash_registry.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_status_bar.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_status_bar_transient.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_task_panel_format.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_task_panel_key_bindings.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_task_panel_rendering.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_task_poll.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_tool_view.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_tui_elapsed_status.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_tui_mcp_init_gate.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_tui_paste_placeholder.py +0 -0
- {comate_cli-0.3.7 → comate_cli-0.3.8}/tests/test_tui_split_invariance.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: comate-cli
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.8
|
|
4
4
|
Summary: Comate terminal CLI built on comate-agent-sdk
|
|
5
5
|
Project-URL: Homepage, https://github.com/AndyLee1024/agent-sdk
|
|
6
6
|
Project-URL: Repository, https://github.com/AndyLee1024/agent-sdk
|
|
@@ -15,7 +15,6 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.13
|
|
16
16
|
Requires-Python: >=3.11
|
|
17
17
|
Requires-Dist: comate-agent-sdk<1.0.0,>=0.0.2
|
|
18
|
-
Requires-Dist: packaging>=25.0
|
|
19
18
|
Requires-Dist: prompt-toolkit>=3.0
|
|
20
19
|
Requires-Dist: rich>=14.0
|
|
21
20
|
Description-Content-Type: text/markdown
|
|
@@ -60,7 +60,7 @@ def _is_chinese_locale() -> bool:
|
|
|
60
60
|
async def _check_update() -> str | None:
|
|
61
61
|
"""异步检查 comate-cli 是否有新版本,返回提示字符串或 None。
|
|
62
62
|
|
|
63
|
-
中文 locale
|
|
63
|
+
中文 locale 自动使用腾讯云镜像源,其余使用官方 PyPI。
|
|
64
64
|
"""
|
|
65
65
|
package = "comate-cli"
|
|
66
66
|
try:
|
|
@@ -86,8 +86,8 @@ async def _check_update() -> str | None:
|
|
|
86
86
|
return None
|
|
87
87
|
|
|
88
88
|
try:
|
|
89
|
+
from importlib.metadata import version as _v
|
|
89
90
|
from packaging.version import Version
|
|
90
|
-
|
|
91
91
|
if Version(latest) > Version(current):
|
|
92
92
|
return (
|
|
93
93
|
f"[dim] New version available: [bold cyan]{latest}[/] "
|
|
@@ -95,12 +95,7 @@ async def _check_update() -> str | None:
|
|
|
95
95
|
f"Run [bold green]uv tool upgrade {package}[/] to upgrade.[/]"
|
|
96
96
|
)
|
|
97
97
|
except Exception:
|
|
98
|
-
|
|
99
|
-
"update comparison failed (current=%s, latest=%s)",
|
|
100
|
-
current,
|
|
101
|
-
latest,
|
|
102
|
-
exc_info=True,
|
|
103
|
-
)
|
|
98
|
+
pass
|
|
104
99
|
return None
|
|
105
100
|
|
|
106
101
|
|
|
@@ -1305,16 +1305,16 @@ class TerminalAgentTUI(
|
|
|
1305
1305
|
except asyncio.TimeoutError:
|
|
1306
1306
|
logger.debug(
|
|
1307
1307
|
"MCP init timed out after "
|
|
1308
|
-
f"{self._mcp_init_gate_timeout_s:.1f}s;
|
|
1308
|
+
f"{self._mcp_init_gate_timeout_s:.1f}s; continuing in background",
|
|
1309
1309
|
)
|
|
1310
1310
|
self._status_bar.show_transient(
|
|
1311
|
-
"
|
|
1312
|
-
|
|
1313
|
-
await self._cancel_task_with_timeout(
|
|
1314
|
-
init_task,
|
|
1315
|
-
timeout_s=self._mcp_init_cancel_timeout_s,
|
|
1316
|
-
task_name="terminal-mcp-init-worker",
|
|
1311
|
+
"MCP: init timed out, continuing in background…",
|
|
1312
|
+
duration_s=5.0,
|
|
1317
1313
|
)
|
|
1314
|
+
# Don't cancel init_task — let it complete in background.
|
|
1315
|
+
# asyncio.shield above already protects it from wait_for's
|
|
1316
|
+
# auto-cancellation. When it finishes, runtime._mcp_manager
|
|
1317
|
+
# will be set and tools become available for the next turn.
|
|
1318
1318
|
except asyncio.CancelledError:
|
|
1319
1319
|
await self._cancel_task_with_timeout(
|
|
1320
1320
|
init_task,
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "comate-cli"
|
|
7
|
-
version = "0.3.
|
|
7
|
+
version = "0.3.8"
|
|
8
8
|
description = "Comate terminal CLI built on comate-agent-sdk"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.11"
|
|
@@ -25,7 +25,6 @@ dependencies = [
|
|
|
25
25
|
"comate-agent-sdk>=0.0.2,<1.0.0",
|
|
26
26
|
"rich>=14.0",
|
|
27
27
|
"prompt-toolkit>=3.0",
|
|
28
|
-
"packaging>=25.0",
|
|
29
28
|
]
|
|
30
29
|
|
|
31
30
|
[project.urls]
|