Aquesta és una versió anterior. La versió actual és la 0.30.0. Mermaid 0.30.0 · Data de publicació:
Fitxers d’instal·lació 0.26.0
| Arquitectura | Tipus | Àmbit | Mida del fitxer | Baixa | SHA256 |
|---|---|---|---|---|---|
| 64 bits | ZIP → Portable | — | — | github.com | VirusTotal |
L’enllaç i l’SHA256 provenen del manifest comunitari del Gestor de paquets del Windows. Convé comparar el hash del fitxer baixat abans d’executar-lo.
Notes de la versió
## Mermaid 0.26.0
### Added
• **One integration test binary.** The 23 integration test crates under
`tests/` are one `tests/integration.rs` with a module per former crate
under `tests/it/`, so a test run links once instead of 23 times. Alongside:
`rust-lld` for Windows MSVC via `.cargo/config.toml`, line-tables-only
debug info in the dev and test profiles, `opt-level = 2` for dev
dependencies, and a `just test` recipe for nextest.
• **Windows OS sandbox.** `--no-network`, `--confine-fs` and `--sandbox`
confine model-run shell commands on Windows through an AppContainer and a
Job Object:the network kill-switch omits the container's network
capabilities (loopback to `127.0.0.1` is exempted for local tooling), write
confinement grants the container SID access to the project, working and
temp directories and nothing else, and the job kills the process tree when
the handle closes. Documented in `docs/sandbox.md`.
• **`edit_file`:single-location search-and-replace.** `path`,
`target_content`, `replacement_content`, and `allow_multiple` for when the
target legitimately repeats. Matching degrades in steps -- exact, trailing
whitespace, full trim, Unicode normalisation -- and refuses an ambiguous
match. Same containment, checkpoint and approval-replay path as
`apply_patch`, which stays for multi-hunk and new-file work.
• **Allowlisting for the web tools.** The `web_fetch` approval offers "don't
ask again" for the host (`web_fetch:docs.x.ai`, `web_fetch:localhost:8080`)
for the rest of the session; `web_search` can be allowlisted the same way.
`[web] allowed_domains = ["docs.x.ai", "localhost:8080"]` in `config.toml`
makes the trust persistent.
• **Inline Markdown in the task checklist.** Task subjects in the checklist
band, the collapsed "Next:" line and the spinner headline render `**bold**`,
`` `code` ``, `*italics*`, `~~strikethrough~~` and `[links](url)`. Long
subjects wrap with a hanging indent under the text column, and the window
around the in-progress task is budgeted in visual lines rather than
subjects. Completed tasks keep their weights under the dim and
strikethrough.
• **Grok (xAI) is a built-in provider.** `mermaid --model grok/<model>`
(alias `xai/<model>`) reaches xAI's OpenAI-compatible endpoint at
`https://api.x.ai/v1` with `XAI_API_KEY`. Vision and tool calling work as
with any Chat Completions provider.
### Fixed
• **The daemon's warnings went nowhere.** `mermaidd` called `tracing::warn!`
for a rejected client, a failed accept, a reconcile that did not finish,
and never installed a subscriber, so none of it was written anywhere. It
now uses the CLI's log (`~/.mermaid/mermaid.log`, redacted, owner-only;
`RUST_LOG` sets the level) and logs its version on start. An ignored
daemon integration test starts a real `mermaidd` and reads that line back.
• **Process hardening applies on macOS and Windows, and says what it did.**
`harden_process` was a silent no-op off Linux. macOS now sets the core-dump
limit to zero and calls `ptrace(PT_DENY_ATTACH)`; Windows suppresses the
crash dialog whose debug path hands the process to a registered handler
(there is no per-process switch for WER dump collection, and the module
doc says so). The function returns what took effect, and `mermaid` logs a
warning at startup when nothing did instead of assuming the protection is
there. `mermaidd` applies it too; it had applied none.
• **The Windows sandbox honours the half of the policy it was not asked to
enforce.** An AppContainer denies both axes by default, so `--confine-fs`
alone had also cut the network (no capability SIDs were attached) and
`--no-network` alone had blocked nearly every write (no path was granted).
Now `deny_network = false` attaches the three network capabilities, and an
empty write list grants the working directory and the temp directory. An
AppContainer cannot be told "writes unconfined", so that floor is
documented in `docs/sandbox.md`. Three Windows tests cover the capability
list, the implicit temp grant, and that write confinement alone leaves the
network reachable.
• **Concurrent sandboxed commands on Windows no longer strip each other's
write grant.** The guard that undid a command's directory grant restored
the DACL it had captured before the grant, which also removed any grant a
command started since (a background command plus a foreground one on the
same project root). It now revokes its own container SID and nothing
else; a test grants a directory to two containers, drops one, and checks
the other's grant is still there.
• **Secret files are owner-only on Windows too.** `write_atomic_with_mode`
dropped its `0600` on non-Unix and relied on the directory's inherited ACL.
On Windows it now creates the temp file through `CreateFileW` with the
same protected owner-plus-`SYSTEM` descriptor the daemon puts on its pipe,
so the config never carries a Users or Everyone grant, and a test reads the
resulting DACL back as SDDL to prove it.
• **`mode="background"` commands escaped the OS sandbox.** The
`__sandbox-exec` wrapping that enforces `--no-network` and `--confine-fs`
was computed on the foreground path only, after the background branch had
already returned, so a backgrounded command ran as a bare `sh -c` with
full network and filesystem access under either flag. The sandbox
decision is made once, before the split, and the background launcher
spawns the same invocation the foreground path does (passed as positional
parameters and run through `"$@"`, never re-parsed). An ignored
integration test drives the real tool with `safety.network = deny` and a
backgrounded socket probe; with the wrapping removed it reports
`NET_ALLOWED`. A `current_exe` failure no longer falls back to whatever
`mermaid` is on `PATH` as the launcher; the spawn fails closed instead.
• **"Don't ask again" for a shell command did not remember where it ran.**
The allowlist key for `execute_command` was the command string alone, so
approving `make` once in the project let the model run the identical
string later with `working_dir` pointing anywhere else, where a different
Makefile answers, without a prompt. A command outside the project now keys
on its working directory as well, the way the file tools key on theirs.
• **`git log --output=FILE` and `tree -o FILE` rated read-only.** Both write
an arbitrary file (git's diff machinery accepts `--output` on `log`, `diff`
and `show`; `tree -o` sends its listing to a file), and both ran without a
prompt in `read_only`, `plan` and `auto`. The classifier trusted the
read-only allowlist and inspected flags one tool at a time (`sort -o`,
`yq -i`, `date -s`). One table now names every output, in-place and exec
flag of every allowlisted reader, checked before any of them rates
read-only, and a new reader cannot be added without auditing it for one;
it also covers `fd -x`, `rg --pre`, `ack --pager`, `less -o`, plus the
positional `uniq IN OUT` and `hostname NAME`. Attached flag values
(`-o/etc/cron.d/x`) match too. Thirty-five commands pin it both ways.
• **A long reasoning trace silently emptied the answer that followed it.**
Every adapter shared one truncation flag between its reasoning and its
content accumulators, so a trace past the 400K-char response cap stopped the
content buffer accepting text; with reasoning at `max` the user saw a
truncation marker and no answer. Each buffer now caps itself.
• **The Meta adapter had no response cap.** Content and reasoning grew without
bound; every other adapter capped at 400K chars. All five share one capped
buffer type now.
• **Anthropic reported zero usage when no usage frame arrived.** A proxy that
drops `message_delta` handed the reducer a provider-sourced `0 / 0`, which
is folded as authoritative and reset the context gauge; Gemini and Ollama
had guarded this since #125. The rule is now checked for every provider by
the conformance suite.
• **Provider error bodies reached the transcript unredacted and uncapped.**
A 4xx from an OpenAI-compatible gateway routinely echoes the request,
`Authorization:Bearer …` included, and four of the five adapters copied
the body straight into the error the transcript renders and persists (Meta
redacted, with a comment explaining a risk that applied to all). Error
bodies are now read through one helper:at most 64 KiB, then redacted.
• **Unbounded per-stream maps.** Anthropic keyed its content-block map on the
stream's own block index and Meta appended a tool call per fresh `call_id`,
so a well-framed hostile stream could grow either without limit, one small
frame at a time. Both are bounded by the tool-call cap (256).
• **A streamed tool call whose arguments failed to parse dropped the reason.**
The fallback still passes the raw text through, but the parse error (most
often "the argument cap fired") is logged instead of discarded.
• **A cancel the effect runner never finished stranded the session.** `Cancelling`
waited forever for the runner's acknowledgement; a wedged child process or a
panicked task meant the composer never reopened and only killing the process
helped. The reducer now abandons the turn itself after 15 seconds, with a
notice, off the injected clock so `--replay` reproduces it.
• **Quitting during a subagent's worktree cleanup could leave the checkout on
disk.** The discard ran on a detached task nothing waited for; it joins the
runner's shutdown drain now.
• **Failed task-row writes in `mermaid run` were silent.** A task stuck on
`queued` because the status write failed left nothing in the log; the
failures are logged.
• **The Ollama capability probe's failures were indistinguishable from "yes".**
A slow or rejected `/api/show` fell back to "supports thinking" with no log
line, which is the shape of the `think`-on-a-model-without-it 400. Each
failure mode ishttps://github.com/noahsabaj/mermaid-cli/releases/tag/v0.26.0