This commit is contained in:
Quentin 2025-12-10 19:25:16 +01:00 committed by Quentin
parent 5e449cdd94
commit af43abea60
13 changed files with 39 additions and 23 deletions

2
.vscode/launch.json vendored
View file

@ -1,5 +1,5 @@
{ {
"version": "1.1.0", "version": "1.1.1",
"configurations": [ "configurations": [
{ {
"name": "ACP Server", "name": "ACP Server",

View file

@ -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/), 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). 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 ## [1.1.0] - 2025-12-10
### Fixed ### Fixed

View file

@ -1,7 +1,7 @@
id = "mistral-vibe" id = "mistral-vibe"
name = "Mistral Vibe" name = "Mistral Vibe"
description = "Mistral's open-source coding assistant" description = "Mistral's open-source coding assistant"
version = "1.1.0" version = "1.1.1"
schema_version = 1 schema_version = 1
authors = ["Mistral AI"] authors = ["Mistral AI"]
repository = "https://github.com/mistralai/mistral-vibe" repository = "https://github.com/mistralai/mistral-vibe"
@ -11,25 +11,25 @@ name = "Mistral Vibe"
icon = "./icons/mistral_vibe.svg" icon = "./icons/mistral_vibe.svg"
[agent_servers.mistral-vibe.targets.darwin-aarch64] [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" cmd = "./vibe-acp"
[agent_servers.mistral-vibe.targets.darwin-x86_64] [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" cmd = "./vibe-acp"
# [agent_servers.mistral-vibe.targets.linux-aarch64] # [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" # cmd = "./vibe-acp"
[agent_servers.mistral-vibe.targets.linux-x86_64] [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" cmd = "./vibe-acp"
# [agent_servers.mistral-vibe.targets.windows-aarch64] # [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" # cmd = "./vibe-acp.exe"
[agent_servers.mistral-vibe.targets.windows-x86_64] [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" cmd = "./vibe-acp.exe"

View file

@ -1,6 +1,6 @@
[project] [project]
name = "mistral-vibe" name = "mistral-vibe"
version = "1.1.0" version = "1.1.1"
description = "Minimal CLI coding agent by Mistral" description = "Minimal CLI coding agent by Mistral"
readme = "README.md" readme = "README.md"
requires-python = ">=3.12" requires-python = ">=3.12"

View file

@ -351,7 +351,7 @@ class TestInitialization:
mcpCapabilities=McpCapabilities(http=False, sse=False), mcpCapabilities=McpCapabilities(http=False, sse=False),
) )
assert response.result.agentInfo == Implementation( 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( vibe_setup_method = next(
( (

View file

@ -66,6 +66,7 @@ def make_config(
include_project_context=False, include_project_context=False,
include_prompt_detail=False, include_prompt_detail=False,
include_model_info=False, include_model_info=False,
include_commit_signature=False,
enabled_tools=enabled_tools or [], enabled_tools=enabled_tools or [],
tools=tools or {}, tools=tools or {},
) )

View file

@ -47,6 +47,7 @@ def test_run_programmatic_preload_streaming_is_batched(
include_project_context=False, include_project_context=False,
include_prompt_detail=False, include_prompt_detail=False,
include_model_info=False, include_model_info=False,
include_commit_signature=False,
) )
previous = [ previous = [
@ -107,6 +108,7 @@ def test_run_programmatic_ignores_system_messages_in_previous(
include_project_context=False, include_project_context=False,
include_prompt_detail=False, include_prompt_detail=False,
include_model_info=False, include_model_info=False,
include_commit_signature=False,
) )
run_programmatic( run_programmatic(

View file

@ -20,6 +20,7 @@ def test_get_universal_system_prompt_includes_windows_prompt_on_windows(
include_project_context=False, include_project_context=False,
include_prompt_detail=True, include_prompt_detail=True,
include_model_info=False, include_model_info=False,
include_commit_signature=False,
) )
tool_manager = ToolManager(config) tool_manager = ToolManager(config)

2
uv.lock generated
View file

@ -661,7 +661,7 @@ wheels = [
[[package]] [[package]]
name = "mistral-vibe" name = "mistral-vibe"
version = "1.1.0" version = "1.1.1"
source = { editable = "." } source = { editable = "." }
dependencies = [ dependencies = [
{ name = "agent-client-protocol" }, { name = "agent-client-protocol" },

View file

@ -1,6 +1,6 @@
from __future__ import annotations from __future__ import annotations
__all__ = ["__version__", "run_programmatic"] __all__ = ["__version__", "run_programmatic"]
__version__ = "1.1.0" __version__ = "1.1.1"
from vibe.core.programmatic import run_programmatic from vibe.core.programmatic import run_programmatic

View file

@ -305,6 +305,7 @@ class VibeConfig(BaseSettings):
instructions: str = "" instructions: str = ""
workdir: Path | None = Field(default=None, exclude=True) workdir: Path | None = Field(default=None, exclude=True)
system_prompt_id: str = "cli" system_prompt_id: str = "cli"
include_commit_signature: bool = True
include_model_info: bool = True include_model_info: bool = True
include_project_context: bool = True include_project_context: bool = True
include_prompt_detail: bool = True include_prompt_detail: bool = True

View file

@ -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. 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. 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 "<Commit message here>
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>"
```

View file

@ -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 <Commit message here>\n\n"
"Generated by Mistral Vibe.\n"
"Co-Authored-By: Mistral Vibe <vibe@mistral.ai>\n"
"```"
)
def get_universal_system_prompt(tool_manager: ToolManager, config: VibeConfig) -> str: def get_universal_system_prompt(tool_manager: ToolManager, config: VibeConfig) -> str:
sections = [config.system_prompt] sections = [config.system_prompt]
if config.include_commit_signature:
sections.append(_add_commit_signature())
if config.include_model_info: if config.include_model_info:
sections.append(f"Your model name is: `{config.active_model}`") sections.append(f"Your model name is: `{config.active_model}`")