This commit is contained in:
Vincent G 2025-12-09 21:46:38 +01:00
parent 72bf84d8fa
commit fc1817caa5
10 changed files with 42 additions and 16 deletions

20
.vscode/launch.json vendored
View file

@ -1,12 +1,15 @@
{ {
"version": "1.0.4", "version": "1.0.5",
"configurations": [ "configurations": [
{ {
"name": "ACP Server", "name": "ACP Server",
"type": "debugpy", "type": "debugpy",
"request": "launch", "request": "launch",
"program": "vibe/acp/entrypoint.py", "program": "vibe/acp/entrypoint.py",
"args": ["--workdir", "${workspaceFolder}"], "args": [
"--workdir",
"${workspaceFolder}"
],
"console": "integratedTerminal", "console": "integratedTerminal",
"justMyCode": false "justMyCode": false
}, },
@ -15,7 +18,10 @@
"type": "debugpy", "type": "debugpy",
"request": "launch", "request": "launch",
"module": "pytest", "module": "pytest",
"args": ["-v", "-s"], "args": [
"-v",
"-s"
],
"console": "integratedTerminal", "console": "integratedTerminal",
"justMyCode": false, "justMyCode": false,
"cwd": "${workspaceFolder}", "cwd": "${workspaceFolder}",
@ -28,7 +34,13 @@
"type": "debugpy", "type": "debugpy",
"request": "launch", "request": "launch",
"module": "pytest", "module": "pytest",
"args": ["-k", "${input:test_identifier}", "-vvv", "-s", "--no-header"], "args": [
"-k",
"${input:test_identifier}",
"-vvv",
"-s",
"--no-header"
],
"console": "integratedTerminal", "console": "integratedTerminal",
"justMyCode": false, "justMyCode": false,
"cwd": "${workspaceFolder}", "cwd": "${workspaceFolder}",

View file

@ -25,3 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Remove .envrc file - Remove .envrc file
- Rename agent in distribution/zed/extension.toml to mistral-vibe, fix icon and description - Rename agent in distribution/zed/extension.toml to mistral-vibe, fix icon and description
## v1.0.5
- Fix streaming with OpenAI adapter

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.0.4" version = "1.0.5"
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.0.4/vibe-acp-darwin-aarch64-1.0.4.zip" archive = "https://github.com/mistralai/mistral-vibe/releases/download/v1.0.5/vibe-acp-darwin-aarch64-1.0.5.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.0.4/vibe-acp-darwin-x86_64-1.0.4.zip" archive = "https://github.com/mistralai/mistral-vibe/releases/download/v1.0.5/vibe-acp-darwin-x86_64-1.0.5.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.0.4/vibe-acp-linux-aarch64-1.0.4.zip" # archive = "https://github.com/mistralai/mistral-vibe/releases/download/v1.0.5/vibe-acp-linux-aarch64-1.0.5.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.0.4/vibe-acp-linux-x86_64-1.0.4.zip" archive = "https://github.com/mistralai/mistral-vibe/releases/download/v1.0.5/vibe-acp-linux-x86_64-1.0.5.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.0.4/vibe-acp-windows-aarch64-1.0.4.zip" # archive = "https://github.com/mistralai/mistral-vibe/releases/download/v1.0.5/vibe-acp-windows-aarch64-1.0.5.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.0.4/vibe-acp-windows-x86_64-1.0.4.zip" archive = "https://github.com/mistralai/mistral-vibe/releases/download/v1.0.5/vibe-acp-windows-x86_64-1.0.5.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.0.4" version = "1.0.5"
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.0.4" name="@mistralai/mistral-vibe", title="Mistral Vibe", version="1.0.5"
) )
vibe_setup_method = next( vibe_setup_method = next(
( (

View file

@ -23,6 +23,7 @@ def default_config() -> VibeConfig:
textual_theme="gruvbox", textual_theme="gruvbox",
disable_welcome_banner_animation=True, disable_welcome_banner_animation=True,
displayed_workdir="/test/workdir", displayed_workdir="/test/workdir",
enable_update_checks=False,
) )

View file

@ -14,7 +14,11 @@ class SnapshotTestAppWithUpdate(BaseSnapshotTestApp):
version_update_notifier = FakeVersionUpdateGateway( version_update_notifier = FakeVersionUpdateGateway(
update=VersionUpdate(latest_version="1000.2.0") update=VersionUpdate(latest_version="1000.2.0")
) )
super().__init__(config=config, version_update_notifier=version_update_notifier) super().__init__(
config=config,
version_update_notifier=version_update_notifier,
current_version="1.0.4",
)
def test_snapshot_shows_release_update_notification(snap_compare: SnapCompare) -> None: def test_snapshot_shows_release_update_notification(snap_compare: SnapCompare) -> None:

2
uv.lock generated
View file

@ -661,7 +661,7 @@ wheels = [
[[package]] [[package]]
name = "mistral-vibe" name = "mistral-vibe"
version = "1.0.4" version = "1.0.5"
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.0.4" __version__ = "1.0.5"
from vibe.core.programmatic import run_programmatic from vibe.core.programmatic import run_programmatic

View file

@ -122,6 +122,11 @@ class OpenAIAdapter(APIAdapter):
model_name, converted_messages, temperature, tools, max_tokens, tool_choice model_name, converted_messages, temperature, tools, max_tokens, tool_choice
) )
if enable_streaming:
payload["stream"] = True
if provider.name == "mistral":
payload["stream_options"] = {"stream_tool_calls": True}
headers = self.build_headers(api_key) headers = self.build_headers(api_key)
body = json.dumps(payload).encode("utf-8") body = json.dumps(payload).encode("utf-8")