From af43abea60c2987b7cd0cc2a20e6b6b6dfd7f44e Mon Sep 17 00:00:00 2001 From: Quentin Date: Wed, 10 Dec 2025 19:25:16 +0100 Subject: [PATCH] v1.1.1 --- .vscode/launch.json | 2 +- CHANGELOG.md | 6 ++++++ distribution/zed/extension.toml | 14 +++++++------- pyproject.toml | 2 +- tests/acp/test_acp.py | 2 +- tests/test_agent_observer_streaming.py | 1 + tests/test_cli_programmatic_preload.py | 2 ++ tests/test_system_prompt.py | 1 + uv.lock | 2 +- vibe/core/__init__.py | 2 +- vibe/core/config.py | 1 + vibe/core/prompts/cli.md | 11 ----------- vibe/core/system_prompt.py | 16 ++++++++++++++++ 13 files changed, 39 insertions(+), 23 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index f685d82..5b96cf2 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,5 +1,5 @@ { - "version": "1.1.0", + "version": "1.1.1", "configurations": [ { "name": "ACP Server", diff --git a/CHANGELOG.md b/CHANGELOG.md index d126f06..15f4511 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.1.1] - 2025-12-10 + +### Changed + +- added `include_commit_signature` in `config.toml` to disable signing commits + ## [1.1.0] - 2025-12-10 ### Fixed diff --git a/distribution/zed/extension.toml b/distribution/zed/extension.toml index b1f71f4..b7fd0e6 100644 --- a/distribution/zed/extension.toml +++ b/distribution/zed/extension.toml @@ -1,7 +1,7 @@ id = "mistral-vibe" name = "Mistral Vibe" description = "Mistral's open-source coding assistant" -version = "1.1.0" +version = "1.1.1" schema_version = 1 authors = ["Mistral AI"] repository = "https://github.com/mistralai/mistral-vibe" @@ -11,25 +11,25 @@ name = "Mistral Vibe" icon = "./icons/mistral_vibe.svg" [agent_servers.mistral-vibe.targets.darwin-aarch64] -archive = "https://github.com/mistralai/mistral-vibe/releases/download/v1.1.0/vibe-acp-darwin-aarch64-1.1.0.zip" +archive = "https://github.com/mistralai/mistral-vibe/releases/download/v1.1.1/vibe-acp-darwin-aarch64-1.1.1.zip" cmd = "./vibe-acp" [agent_servers.mistral-vibe.targets.darwin-x86_64] -archive = "https://github.com/mistralai/mistral-vibe/releases/download/v1.1.0/vibe-acp-darwin-x86_64-1.1.0.zip" +archive = "https://github.com/mistralai/mistral-vibe/releases/download/v1.1.1/vibe-acp-darwin-x86_64-1.1.1.zip" cmd = "./vibe-acp" # [agent_servers.mistral-vibe.targets.linux-aarch64] -# archive = "https://github.com/mistralai/mistral-vibe/releases/download/v1.1.0/vibe-acp-linux-aarch64-1.1.0.zip" +# archive = "https://github.com/mistralai/mistral-vibe/releases/download/v1.1.1/vibe-acp-linux-aarch64-1.1.1.zip" # cmd = "./vibe-acp" [agent_servers.mistral-vibe.targets.linux-x86_64] -archive = "https://github.com/mistralai/mistral-vibe/releases/download/v1.1.0/vibe-acp-linux-x86_64-1.1.0.zip" +archive = "https://github.com/mistralai/mistral-vibe/releases/download/v1.1.1/vibe-acp-linux-x86_64-1.1.1.zip" cmd = "./vibe-acp" # [agent_servers.mistral-vibe.targets.windows-aarch64] -# archive = "https://github.com/mistralai/mistral-vibe/releases/download/v1.1.0/vibe-acp-windows-aarch64-1.1.0.zip" +# archive = "https://github.com/mistralai/mistral-vibe/releases/download/v1.1.1/vibe-acp-windows-aarch64-1.1.1.zip" # cmd = "./vibe-acp.exe" [agent_servers.mistral-vibe.targets.windows-x86_64] -archive = "https://github.com/mistralai/mistral-vibe/releases/download/v1.1.0/vibe-acp-windows-x86_64-1.1.0.zip" +archive = "https://github.com/mistralai/mistral-vibe/releases/download/v1.1.1/vibe-acp-windows-x86_64-1.1.1.zip" cmd = "./vibe-acp.exe" diff --git a/pyproject.toml b/pyproject.toml index fe40f8d..14ddeb4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "mistral-vibe" -version = "1.1.0" +version = "1.1.1" description = "Minimal CLI coding agent by Mistral" readme = "README.md" requires-python = ">=3.12" diff --git a/tests/acp/test_acp.py b/tests/acp/test_acp.py index c5dd142..a47a60f 100644 --- a/tests/acp/test_acp.py +++ b/tests/acp/test_acp.py @@ -351,7 +351,7 @@ class TestInitialization: mcpCapabilities=McpCapabilities(http=False, sse=False), ) assert response.result.agentInfo == Implementation( - name="@mistralai/mistral-vibe", title="Mistral Vibe", version="1.1.0" + name="@mistralai/mistral-vibe", title="Mistral Vibe", version="1.1.1" ) vibe_setup_method = next( ( diff --git a/tests/test_agent_observer_streaming.py b/tests/test_agent_observer_streaming.py index 0c9dfa8..0adc108 100644 --- a/tests/test_agent_observer_streaming.py +++ b/tests/test_agent_observer_streaming.py @@ -66,6 +66,7 @@ def make_config( include_project_context=False, include_prompt_detail=False, include_model_info=False, + include_commit_signature=False, enabled_tools=enabled_tools or [], tools=tools or {}, ) diff --git a/tests/test_cli_programmatic_preload.py b/tests/test_cli_programmatic_preload.py index 8e2c78a..4e06b82 100644 --- a/tests/test_cli_programmatic_preload.py +++ b/tests/test_cli_programmatic_preload.py @@ -47,6 +47,7 @@ def test_run_programmatic_preload_streaming_is_batched( include_project_context=False, include_prompt_detail=False, include_model_info=False, + include_commit_signature=False, ) previous = [ @@ -107,6 +108,7 @@ def test_run_programmatic_ignores_system_messages_in_previous( include_project_context=False, include_prompt_detail=False, include_model_info=False, + include_commit_signature=False, ) run_programmatic( diff --git a/tests/test_system_prompt.py b/tests/test_system_prompt.py index d5a1165..ee54496 100644 --- a/tests/test_system_prompt.py +++ b/tests/test_system_prompt.py @@ -20,6 +20,7 @@ def test_get_universal_system_prompt_includes_windows_prompt_on_windows( include_project_context=False, include_prompt_detail=True, include_model_info=False, + include_commit_signature=False, ) tool_manager = ToolManager(config) diff --git a/uv.lock b/uv.lock index 737c8f9..9cdbdc9 100644 --- a/uv.lock +++ b/uv.lock @@ -661,7 +661,7 @@ wheels = [ [[package]] name = "mistral-vibe" -version = "1.1.0" +version = "1.1.1" source = { editable = "." } dependencies = [ { name = "agent-client-protocol" }, diff --git a/vibe/core/__init__.py b/vibe/core/__init__.py index 852e031..8797205 100644 --- a/vibe/core/__init__.py +++ b/vibe/core/__init__.py @@ -1,6 +1,6 @@ from __future__ import annotations __all__ = ["__version__", "run_programmatic"] -__version__ = "1.1.0" +__version__ = "1.1.1" from vibe.core.programmatic import run_programmatic diff --git a/vibe/core/config.py b/vibe/core/config.py index 290a40d..f45121d 100644 --- a/vibe/core/config.py +++ b/vibe/core/config.py @@ -305,6 +305,7 @@ class VibeConfig(BaseSettings): instructions: str = "" workdir: Path | None = Field(default=None, exclude=True) system_prompt_id: str = "cli" + include_commit_signature: bool = True include_model_info: bool = True include_project_context: bool = True include_prompt_detail: bool = True diff --git a/vibe/core/prompts/cli.md b/vibe/core/prompts/cli.md index 99ce2d0..7fce433 100644 --- a/vibe/core/prompts/cli.md +++ b/vibe/core/prompts/cli.md @@ -11,14 +11,3 @@ Answer the user's request using the relevant tool(s), if they are available. Che Always try your hardest to use the tools to answer the user's request. If you can't use the tools, explain why and ask the user for more information. Act as an agentic assistant, if a user asks for a long task, break it down and do it step by step. - -When you want to commit changes, you will always use the 'git commit' bash command. It will always -be suffixed with a line telling it was generated by Mistral Vibe with the appropriate co-authoring information. -The format you will always uses is the following heredoc. - -```bash -git commit -m " - -Generated by Mistral Vibe. -Co-Authored-By: Mistral Vibe " -``` diff --git a/vibe/core/system_prompt.py b/vibe/core/system_prompt.py index eb4a9b4..2de6e11 100644 --- a/vibe/core/system_prompt.py +++ b/vibe/core/system_prompt.py @@ -361,9 +361,25 @@ def _get_windows_system_prompt() -> str: ) +def _add_commit_signature() -> str: + return ( + "When you want to commit changes, you will always use the 'git commit' bash command.\n" + "It will always be suffixed with a line telling it was generated by Mistral Vibe with the appropriate co-authoring information.\n" + "The format you will always uses is the following heredoc.\n\n" + "```bash\n" + "git commit -m \n\n" + "Generated by Mistral Vibe.\n" + "Co-Authored-By: Mistral Vibe \n" + "```" + ) + + def get_universal_system_prompt(tool_manager: ToolManager, config: VibeConfig) -> str: sections = [config.system_prompt] + if config.include_commit_signature: + sections.append(_add_commit_signature()) + if config.include_model_info: sections.append(f"Your model name is: `{config.active_model}`")