Fixes:
- resume_folder braucht confirm bei sendreceive/sendonly (Löschungen würden
sich auf alle Geräte verteilen)
- accept_folder legt Ordner unter <Default-Pfad>/<Label> an statt direkt im
Default-Pfad; belegte Pfade werden abgelehnt
- override/revert prüfen den Ordnertyp
- Fehler als MCP-ToolError (isError) mit verständlichem Text
- truncate hält JSON gültig
- pause/resume patchen nur "paused"; Bearer-Vergleich zeitkonstant
- uv.lock zum mcp<2.0-Pin synchronisiert
Neu: syncthing_find_conflicts, syncthing_list_versions,
syncthing_restore_version, syncthing_folder_stats, syncthing_add_device,
syncthing_share_folder, syncthing_set_device_paused
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The blade had no write gate and no confirm parameter anywhere — every
mutating tool (override, revert, restart, accept-device, replace-stignore,
…) fired ungated, unlike every sibling blade. This brings syncthing up to
the class baseline:
- All 13 mutating tools now require SYNCTHING_WRITE_ENABLED=true
(models.require_write, env read at call time) and refuse with a clear
message when the gate is off.
- Destructive/disruptive operations additionally require confirm=true:
syncthing_override_folder, syncthing_revert_folder, syncthing_restart,
syncthing_accept_device, syncthing_accept_folder, syncthing_set_ignores.
Refusals explain what the operation would do. These six are now
annotated destructiveHint: true.
- New ConfirmWriteParams / ConfirmFolderWriteParams models; confirm field
added to AcceptDeviceInput, AcceptFolderInput, SetIgnoresInput.
- Server-level FastMCP instructions document the gate + confirm contract;
README, SKILL.md, and stallari-plugin.yaml (setup field + env entry)
updated to match.
- Regression suite tests/test_write_gate.py: gated-off refusal (all 13,
unset + non-"true" value), gated-on-without-confirm refusal (all 6
destructive), gated-on-with-confirm proceeds (mocked), and
non-destructive-needs-no-confirm. Existing write-tool tests updated to
enable the gate + pass confirm. 201 tests green.
Version 0.8.0 → 0.9.0 (behaviour-affecting safety gate).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Pure substrate swap. Local `domain_hint.py` (155 LOC) deleted; canonical
`Pattern`, `compute_domain_hint`, `load_patterns_from_yaml` are now imported
from `stallari-mcp-helpers>=0.1.0,<1.0.0`. Local `meta_envelope` +
`append_meta` helpers in `formatters.py` deleted; canonical implementations
re-exported from the lib for backward call-site compatibility.
Surfaced two API divergences vs the spec's "names stay identical" assumption:
1. The lib's `append_meta(body, meta_line)` takes a pre-built meta line; the
prior blade-local `append_meta(payload, **kwargs)` built the envelope
internally. All 11 call-sites in `tools/folders.py` (8), `tools/devices.py`
(1), `tools/instances.py` (1), `tools/system.py` (1) refactored to the
two-step `append_meta(payload, meta_envelope(...))` pattern.
2. The lib's `compute_domain_hint(record, patterns)` takes 2 args and uses
built-in dot-path field resolution; the prior blade-local
`compute_domain_hint(record, patterns, projector)` took a per-blade
projector callable. The flat record shapes this blade emits (folders +
devices) resolve identically under either approach. The blade's
`_syncthing_field_projector` was removed (was only used as the 3rd arg).
Wire-shape change (test fixtures updated for 2 sites):
- `_meta` field order now follows lib convention (matched_total, returned,
latency_ms, filtered_by, redactions, next_cursor, error_notes?,
domain_hints?). Prior local helper emitted latency_ms last.
- `_meta.next_cursor` is now always present (defaults to `null`). Tests
pinning "next_cursor not in meta" updated to "next_cursor is None".
- `_meta.redactions`, `filtered_by`, `error_notes?`, `domain_hints?` all
unchanged in conditional-inclusion semantics.
Pure substrate swap — no behavioural change to any tool. Pack-spec catalog
declarations unchanged.
Version: 0.7.0 → 0.8.0.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>