prompt-copilot-cli 0.6.2__tar.gz → 0.6.3__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.
- {prompt_copilot_cli-0.6.2/prompt_copilot_cli.egg-info → prompt_copilot_cli-0.6.3}/PKG-INFO +1 -1
- {prompt_copilot_cli-0.6.2 → prompt_copilot_cli-0.6.3}/main.py +17 -9
- {prompt_copilot_cli-0.6.2 → prompt_copilot_cli-0.6.3/prompt_copilot_cli.egg-info}/PKG-INFO +1 -1
- {prompt_copilot_cli-0.6.2 → prompt_copilot_cli-0.6.3}/pyproject.toml +1 -1
- {prompt_copilot_cli-0.6.2 → prompt_copilot_cli-0.6.3}/LICENSE +0 -0
- {prompt_copilot_cli-0.6.2 → prompt_copilot_cli-0.6.3}/MANIFEST.in +0 -0
- {prompt_copilot_cli-0.6.2 → prompt_copilot_cli-0.6.3}/README.md +0 -0
- {prompt_copilot_cli-0.6.2 → prompt_copilot_cli-0.6.3}/README.zh-CN.md +0 -0
- {prompt_copilot_cli-0.6.2 → prompt_copilot_cli-0.6.3}/prompt_copilot_cli.egg-info/SOURCES.txt +0 -0
- {prompt_copilot_cli-0.6.2 → prompt_copilot_cli-0.6.3}/prompt_copilot_cli.egg-info/dependency_links.txt +0 -0
- {prompt_copilot_cli-0.6.2 → prompt_copilot_cli-0.6.3}/prompt_copilot_cli.egg-info/entry_points.txt +0 -0
- {prompt_copilot_cli-0.6.2 → prompt_copilot_cli-0.6.3}/prompt_copilot_cli.egg-info/requires.txt +0 -0
- {prompt_copilot_cli-0.6.2 → prompt_copilot_cli-0.6.3}/prompt_copilot_cli.egg-info/top_level.txt +0 -0
- {prompt_copilot_cli-0.6.2 → prompt_copilot_cli-0.6.3}/requirements.txt +0 -0
- {prompt_copilot_cli-0.6.2 → prompt_copilot_cli-0.6.3}/setup.cfg +0 -0
- {prompt_copilot_cli-0.6.2 → prompt_copilot_cli-0.6.3}/tests/test_cli_args.py +0 -0
- {prompt_copilot_cli-0.6.2 → prompt_copilot_cli-0.6.3}/tests/test_command_timeout.py +0 -0
- {prompt_copilot_cli-0.6.2 → prompt_copilot_cli-0.6.3}/tests/test_file_tools.py +0 -0
- {prompt_copilot_cli-0.6.2 → prompt_copilot_cli-0.6.3}/tests/test_image_tool.py +0 -0
- {prompt_copilot_cli-0.6.2 → prompt_copilot_cli-0.6.3}/tests/test_mcp_transport.py +0 -0
- {prompt_copilot_cli-0.6.2 → prompt_copilot_cli-0.6.3}/tests/test_multimodal_messages.py +0 -0
- {prompt_copilot_cli-0.6.2 → prompt_copilot_cli-0.6.3}/tests/test_think_filter.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: prompt-copilot-cli
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.3
|
|
4
4
|
Summary: A lightweight terminal-based coding agent with file tools, command execution, multimodal image support, and MCP integration.
|
|
5
5
|
Author: Jason Li
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -279,7 +279,7 @@ DEFAULT_SYSTEM_PROMPT = f"""
|
|
|
279
279
|
"""
|
|
280
280
|
|
|
281
281
|
UI_SYSTEM_LANGUAGE = "en"
|
|
282
|
-
APPLICATION_VERSION = "0.6.
|
|
282
|
+
APPLICATION_VERSION = "0.6.3"
|
|
283
283
|
WORKSPACE_DIR = ROOT / "workspace"
|
|
284
284
|
LOG_DIR = ROOT / "logs"
|
|
285
285
|
LOG_FILE = LOG_DIR / "agent_runtime.log"
|
|
@@ -1502,15 +1502,23 @@ def chat_once(client: OpenAI, model: str, messages: list[dict[str, Any]], temper
|
|
|
1502
1502
|
ensure_not_interrupted()
|
|
1503
1503
|
wait_for_model_call_interval()
|
|
1504
1504
|
tool_definitions = TOOL_DEFINITIONS + ACTIVE_MCP_TOOL_DEFINITIONS
|
|
1505
|
+
request_payload = None
|
|
1505
1506
|
if disable_tools:
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1507
|
+
request_payload = {
|
|
1508
|
+
"model": model,
|
|
1509
|
+
"messages": messages,
|
|
1510
|
+
"temperature": temperature,
|
|
1511
|
+
}
|
|
1512
|
+
else:
|
|
1513
|
+
request_payload = {
|
|
1514
|
+
"model": model,
|
|
1515
|
+
"messages": messages,
|
|
1516
|
+
"temperature": temperature,
|
|
1517
|
+
"tools": tool_definitions,
|
|
1518
|
+
}
|
|
1519
|
+
# Only include tool_choice when tools are provided; some backends reject it otherwise
|
|
1520
|
+
if tool_definitions:
|
|
1521
|
+
request_payload["tool_choice"] = "auto"
|
|
1514
1522
|
request_timeout = getattr(client, "timeout", None)
|
|
1515
1523
|
if request_timeout is None:
|
|
1516
1524
|
request_timeout = MODEL_REQUEST_TIMEOUT_SECONDS
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: prompt-copilot-cli
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.3
|
|
4
4
|
Summary: A lightweight terminal-based coding agent with file tools, command execution, multimodal image support, and MCP integration.
|
|
5
5
|
Author: Jason Li
|
|
6
6
|
License-Expression: Apache-2.0
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "prompt-copilot-cli"
|
|
7
|
-
version = "0.6.
|
|
7
|
+
version = "0.6.3"
|
|
8
8
|
description = "A lightweight terminal-based coding agent with file tools, command execution, multimodal image support, and MCP integration."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "Apache-2.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{prompt_copilot_cli-0.6.2 → prompt_copilot_cli-0.6.3}/prompt_copilot_cli.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{prompt_copilot_cli-0.6.2 → prompt_copilot_cli-0.6.3}/prompt_copilot_cli.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{prompt_copilot_cli-0.6.2 → prompt_copilot_cli-0.6.3}/prompt_copilot_cli.egg-info/requires.txt
RENAMED
|
File without changes
|
{prompt_copilot_cli-0.6.2 → prompt_copilot_cli-0.6.3}/prompt_copilot_cli.egg-info/top_level.txt
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
|